{"id":2384,"date":"2021-09-26T00:06:37","date_gmt":"2021-09-26T00:06:37","guid":{"rendered":"https:\/\/www.kernelcrash.com\/blog\/?p=2384"},"modified":"2021-09-26T00:06:37","modified_gmt":"2021-09-26T00:06:37","slug":"the-dragon-32","status":"publish","type":"post","link":"https:\/\/www.kernelcrash.com\/blog\/the-dragon-32\/2021\/09\/26\/","title":{"rendered":"The Dragon 32"},"content":{"rendered":"<p>So I finally bought a Dragon 32<\/p>\n<p><!--more--><\/p>\n<p><a href=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-19-50-07.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-2385\" src=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-19-50-07.png\" alt=\"\" width=\"713\" height=\"687\" srcset=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-19-50-07.png 713w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-19-50-07-300x289.png 300w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>I&#8217;d been meaning to get one for quite some time, but they rarely come up for sale in NZ, and ebay postage from the UK is not exactly cheap. Anyway, I caved in and bought this one from the UK. It was untested and had no power supply. I remember when the parcel arrived I was worried that they forgot to pack it as the parcel was so light. It is quite a light computer given its physical size.<\/p>\n<p>So first thing was to see if it worked. As I had no power supply I had to rig one up. So, first off, the &#8216;external power supply&#8217; is really just an AC transformer. The rest of the power supply is inside the case at the back (on the brown PCB to the right of the RF modulator<\/p>\n<p><a href=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-19-55-39.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-large wp-image-2386\" src=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-19-55-39-1024x573.png\" alt=\"\" width=\"1024\" height=\"573\" srcset=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-19-55-39-1024x573.png 1024w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-19-55-39-300x168.png 300w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-19-55-39-768x430.png 768w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-19-55-39.png 1481w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>As I did not have an AC transformer of the same specs as the Dragon one, I thought I would just bypass it all initially. In the photo above you can see the red connector where the voltages come in from the power supply board. This has +5, +12 and -5 volts coming in on various pins. So as a first test I just soldered some wires to allow me to connect an ATX PSU to it. I just had a 7905 regulator stuck on the ATX -12 in order to get -5.\u00a0 That was enough to get me a working Dragon! Before long, I had a audio input cable setup on the cassette port and I was able to load a few games<\/p>\n<p><a href=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-20-02-45.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-2387\" src=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-20-02-45-300x237.png\" alt=\"\" width=\"400\" height=\"316\" srcset=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-20-02-45-300x237.png 300w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-20-02-45-768x606.png 768w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-20-02-45.png 868w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a>The bright green background and strong red, blue and yellow colours brought back a few memories.\u00a0 I had a Dick Smith VZ-200 when I was younger which has the same 6847 video chip and same colours. I am sure if you under the age of 40 you might look at the video output and go &#8216;what the!&#8217;. But the 6847 was a cool simple off the shelf video chip in the early 1980s. A side story here is that I had an older brother at University doing engineering in the early 1980s and he did a semester on Microprocessors, and they studied the Motorola 6809 CPU. I ended up getting a lot of reading material on the 6809 and bought one, alongside a 6847 and was able to build a small homebrew 6809 system on a vero board. The 6847 made video very simple because it had a built in character ROM, so you could attach 2K of static RAM to it and get a picture on a monitor (which was only black and white as colour was &#8216;too hard&#8217; for me back then). I also did a lot of 6809 assembly\/machine code as well, and I always remember the 6809 having one of the nicest assembly languages.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-20-03-34.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2388 alignright\" src=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-20-03-34.png\" alt=\"\" width=\"400\" height=\"326\" srcset=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-20-03-34.png 863w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-20-03-34-300x244.png 300w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-06-17-20-03-34-768x626.png 768w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a>Anyway &#8230;<\/p>\n<p>To load a game I would type CLOADM on the Dragon 32 and then use mplayer or similar on a PC to play out the audio WAV file. Assuming it loads, generally the game does not start. You have to type EXEC on the Dragon. One oddity I noticed is that you cannot type very quickly on the keyboard (which I later discovered is an oddity of how the keyboard is scanned). However the keyboard is one of the coolest sounding keyboards of all the old computers I have. There is just something very satisfying about typing on it.<\/p>\n<p>Many of the games seem to want a joystick and the Dragon used Analog joysticks with a now obscure DIN connector. As a\u00a0 temporary joystick solution I&#8217;m using an Arduino analog joystick effectively soldered directly to the board (as I haven&#8217;t been able to find the appropriate DIN plug). This sort of works, but I don&#8217;t think the resistance range of the potentiometers is quite correct.<\/p>\n<p>So I had it running and the ATX PSU setup was purely to confirm it worked, so then I tried to work out a better power supply setup. This was the beginning of a series of\u00a0 mistakes on my part. First I decided I would use a 5V 2A plug pack with a DC 2.1mm plug and have that go directly into the 5V line of the Dragon, and to have a DC-DC boost converter that converted +5V to +12V to get the +12 line, and a DC-DC inverter thing that takes +5V in and generates -5V. I wired this up, got it all working then left the Dragon for a few days.<\/p>\n<p>Then I decided to power it on. Without using enough brain power I took a DC 2.1mm lead on my desk and plugged it in to the DC 2.1mm socket that was expecting +5V. Of course I had just plugged in a +12V DC power supply. Bad. Bad. Bad. I quickly unplugged once I&#8217;d realised my error. But the damage was done. The Dragon no longer worked and I was very annoyed with myself.\u00a0 Then ensued an evening of troubleshooting and desoldering trying to get it going again. These ended up being the dead chips:<\/p>\n<ul>\n<li>Pretty much all the 4132 DRAMs were dead.<\/li>\n<li>The 6821 that drives the keyboard was dead.<\/li>\n<li>The 74LS783 (aka 6883) was dead.<\/li>\n<\/ul>\n<p>Blowing up the 74LS783 was particularly annoying as it was a very rare chip until recently. Fortunately years ago, I had tracked one down thinking &#8220;It&#8217;d be nice to make a Dragon 32 on a breadboard one day &#8230;&#8221; so I used my one spare to get it going again. I just used 4164s instead of the 4132s. I think if you check the 74LS783 datasheet you need to use 128 cycle refresh 4164s. So lately I&#8217;ve seen a few youtube videos on &#8216;fake old chips&#8217;. It is baffling how a chip like the 74LS783 was super rare for many years, then within the past year, a quick search of ebay will show you quite a few of them. I actually ordered five of these &#8216;recently surfaced 74LS783&#8217;s. I should properly test them ( I just noticed recently that the labelling on these extra 74LS783s is not even straight &#8230; which is not a good sign).<\/p>\n<p>And so the Dragon worked again.<\/p>\n<p>But I thought &#8220;Don&#8217;t make the same mistake again! Make sure your DC 2.1mm input plug is for +12V and then you cannot possibly screw it up again&#8221;. So then I came up with a scheme where you have +12V in. That would directly drive the +12V line of the Dragon, but then I&#8217;d have a LM2596 adjustable board to get +5V and still use that +5 to -5 converter to get -5V.<\/p>\n<p>However in the midst of all this rewiring and soldering I was touching a multimeter probe against the +5V pin of the PSU input and briefly touched it to the pin next to it which is the +12V input. Doh!<\/p>\n<p>More troubleshooting and I had blown up two of the 4164s but the 74LS783 and the 6821&#8217;s were all good.<\/p>\n<p>So finally I did enough surgery inside such that a lot of the old linear power supply electronics were removed and replaced with the modern stuff and I just had a DC 2.1mm socket hanging out the back for the +12V input.<\/p>\n<p><a href=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-09-24-20-39-50.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-large wp-image-2420\" src=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-09-24-20-39-50-1024x496.png\" alt=\"\" width=\"1024\" height=\"496\" srcset=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-09-24-20-39-50-1024x496.png 1024w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-09-24-20-39-50-300x145.png 300w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-09-24-20-39-50-768x372.png 768w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/Screenshot-from-2021-09-24-20-39-50.png 1504w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>The final thing I did was to do the <a href=\"http:\/\/archive.worldofdragon.org\/index.php?title=Dragon_32_-_64K_Upgrade\">Dragon 32K to 64K upgrade<\/a>, now that I had replaced all the 4132&#8217;s with 4164s. It&#8217;s worth looking at <a href=\"http:\/\/archive.worldofdragon.org\/archive\/index.php?dir=Information\/&amp;file=Dragon_32k_to_64k_Upgrade_Guide.pdf\">the very old scan of this upgrade<\/a> (as it has a small schematic as well).<\/p>\n<p><a href=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/NEW_IMG_5535-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-2409 size-large\" src=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/NEW_IMG_5535-scaled-e1632471988818-904x1024.jpg\" alt=\"\" width=\"904\" height=\"1024\" srcset=\"https:\/\/www.kernelcrash.com\/blog\/wp-content\/NEW_IMG_5535-scaled-e1632471988818-904x1024.jpg 904w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/NEW_IMG_5535-scaled-e1632471988818-265x300.jpg 265w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/NEW_IMG_5535-scaled-e1632471988818-768x870.jpg 768w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/NEW_IMG_5535-scaled-e1632471988818-1355x1536.jpg 1355w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/NEW_IMG_5535-scaled-e1632471988818-1807x2048.jpg 1807w, https:\/\/www.kernelcrash.com\/blog\/wp-content\/NEW_IMG_5535-scaled-e1632471988818.jpg 1920w\" sizes=\"auto, (max-width: 904px) 100vw, 904px\" \/><\/a>So the Dragon did have a floppy drive expansion back in the day. Actually it had a few. The main one was based on a WD2797 floppy controller, not unlike what I&#8217;ve emulated on my MSX and Spectravideo ROM and floppy emulation projects, so the logical thing to do was to hook up a STM32F4 board to the cartridge slot. Stay tuned &#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I finally bought a Dragon 32<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-2384","post","type-post","status-publish","format-standard","hentry","category-retrocomputing"],"_links":{"self":[{"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/posts\/2384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/comments?post=2384"}],"version-history":[{"count":29,"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/posts\/2384\/revisions"}],"predecessor-version":[{"id":2463,"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/posts\/2384\/revisions\/2463"}],"wp:attachment":[{"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/media?parent=2384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/categories?post=2384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kernelcrash.com\/blog\/wp-json\/wp\/v2\/tags?post=2384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}