At the beginning of this post, I cover some basic power supply stuff, so if you already know a lot skip to the later part where I cover the more interesting 12V DC rail.
Not as obvious as it seems.
While browsing “SAMS Commodore 64 Troubleshooting & Repair Guide” I came across the block diagram of the internal power supply system. It was interesting to me for a number of reasons. First, I’m “into” Commodore restorations those days so this generic knowledge is useful, also I hoping to develop a DC only power supply (so that you could run the C64 off of a 12V car power socket). As a reminder this is the block diagram that I’m talking about, from the book:
Something wasn’t right here… notice the diode on the +9V supply line. My background is electronics, but even though let’s just say I haven’t “practiced” for a while, the direction of that diode makes no sense, it wouldn’t work. Let’s look at the detail diagram from the C64 service manual:
Looks familiar? I’ve highlighted the section that I’m wondering about. Seem like the authors of the troubleshooting guide have made a mistake when creating the block diagram, in fact, the diode CR6 (1N4001) has nothing to do with the unregulated +9V power supply line. Since we are already discussing details of the power supply diagram let’s analyze all sections and how each of the power rails is generated one by one:
The 9V AC power is supplied from the external power supply, passes via a common mode choke filter and a fuse. It is then used to generate all other rails plus is made available on the user port pins 10 and 11. Important to note is that the 9V AC rail is also used to generate the 60Hz/50Hz signal for the hardware real time clock built into the CIA chip. This is one of the reasons we can’t replace the external power supply with a modern DC switch mode alternative.
5V DC (+digital)
Just like the 9V AC, the 5V DC is supplied from the external power supply, it’s filtered and used directly to power majority of the “chips” on-board. Important: since there are no additional components onboard of the c64 handling the 5V DC digital rail, you’re at the mercy of the quality of the external power supply – and we know those old original power supplies are failing a lot. Typically they fail with an over-voltage condition, resulting in “fried” memory and other components, so always check the condition of the external power supply before you use it for the first time.
5V DC CAN (Clock and ANalog ??)
You may ask yourself why do we need another 5V DC rail, we already have one from the external power supply. Separate, locally generated power is needed for the sensitive video and clock circuits of the computer. The configuration is “textbook” implementation of the 7805 regulator IC. The 9V AC is rectified using bridge rectifier CR4, smoothed using large electrolytic capacitor C19, decoupling capacitor C95 before getting into the regulator. Regulator output is decoupled with C102 and C103.
Now we come to the interesting part of my article.
At first glance, you see the 7812 regulator, some bypass components around it (c59, C57, C89, C88) and fed from the 9VAC. But look closely and you see 3 extra components that are not instantly recognized by most: diodes CR6, CR5 and capacitor C90. What are those for? When I first noticed those I came to the conclusion that it must be used to boost the unregulated voltage coming out of the bridge rectifier CR4 and smoothing capacitor C19 to a level required for correct operation of the 7812 regulator – that is typically around 14.6V DC. What I could see from the diagram was:
- clamper that consists of capacitor C90 and diode CR6, one should note that in our case this is a “biased clamper” type, as the anode of diode CR6 is not connected to ground but to the 9V unregulated dc supply.
- peak detector (aka half-wave rectifier) that consists of diode CR5, followed by a smoothing capacitor C88.
Ignoring the fact that we are dealing with “biased clamper”, this combination of clamper and rectifier is a typical example of the voltage doubler.
I started “poking” around my Commodore with an oscilloscope (all captures are with 5V / division setting).
Higher resolution picture here. (btw one day I will learn how to implement a proper gallery in my posts).
Looking at the oscilloscope we see the AC supply entering C90 (bottom right). The amplitude is around 12V, but we can’t fail to notice we only see the positive half of the “AC” signal. This is due to the fact that we are measuring this in reference to the power supply ground, so one of the diodes of CR4 bridge rectifier is forming a half-wave rectifier.
The output from C90 can be seen in the top right and is “shifted” from the ground by the level of “biasing” voltage, in our case, it’s around 10V DC.
Finally, we can see what happens after our supply goes through the half-wave rectifier CR5 and smoothing capacitor C88. Note the output DC voltage that is present on C88 is over 20V. That means that C88 must be rated at 25V minimum. I mention that as I’ve seen people commenting that when “re-capping” capacitors on board of the Commodore you can stick to 16V rated electrolytic capacitors – as you can see this is not true.
All this “complications” mean that it’s not easy to replace the external power supply with a simpler DC switching power supply. Without modifying the internals of your Commodore you will need both DC 5V digital rail and separate 9V AC rail.
I hope this was informative. Note that what I described above is what I think is happening, and I’m around 95% sure, but feel free to comment if you think I’m wrong and I will fix it.
I’m working on more Commodore related “material”, so more will follow.
7 thoughts on “Commodore 64 Power Supply magic.”
Thanks, just what I was looking for, when documenting stuff found on a C64 PCB.
BTW, how about using a sine wave generator and audio amp to supply the AC 9V line? Could easily convert whatever input voltage to high enough voltage for the amp; with a floating output buck-boost converter the AC lines would even be floating, which is likely required by the electronics. Chinese web shops full of suitable modules (except floating buck-boost might not be trivial), would probably cost around $15 and fit inside a tiny box (custom HW could be made to fit inside a DIN connector) or inside the C64.
Hey Turo, thanks for the comment. There are efforts currently to create a power supply using the method you are describing, Jari Tulilahti is working on it: https://gitlab.com/jartza/nepapsu Unfortunately this implementation is quite complex to do in practice (just see his schematic diagram). This is not going to be cheap PSU and will require an external 5V/3A power supply at a minimum. Unless you don’t have access to AC line and you need a full DC-based solution. a power supply based on 9V AC transformer and a switch mode 5V module is going to be the best approach.
Hi I’ve built a psu for my c64c short board rev 4 and have only just realised that I’m using (9V (DC)!) As well as 5v DC but it seems to be working perfectly fine? So I tried it on my c64c (long board) and All I get is a black screen? Any thoughts on why my short board c64c is running fine on the 9v DC? Instead of AC? Thanks.
Hey Jaye, from what I remember, some of the newer VIC chips didn’t require the 12V supply so maybe you’re running that – that would explain why on some boards it is fine and on some, it’s not. The lack of AC on the 9V line will make the Real-Time Clock not work as the computer is using the AC line frequency as a clock reference, so long term you might want to re-introduce the AC power for the 9V line.
Ok thanks for your reply. So is it save for my c64c to use the 9vDC and not have the clock running?
I’m sure it’s safe to use it this way, but the lack of clock will affect something (not sure yet what)…keep using it and let us know what didn’t work without the clock.