Showing posts with label 3032. Show all posts
Showing posts with label 3032. Show all posts

Sunday, 12 July 2026

Commodore PET No Video Output Repair - 3032 #1

This is not the post I had planned to write.

This is not the board I had planned to repair.

But here we are, let's get on with it.

This is a Commodore PET 3032, sometimes badged a 2001N-32.

The N is important, this is the "New technology" 2001, an almost complete redesign of the PET 2001.

(not to be confused with the 4032N where the N was "Normal" keyboard, and the 8032B was "Business" keyboard)

This has dynamic RAM, 16x 4116 DRAM chips giving 32K.

This has 7x normal 24 pin mask ROMs, 4 or 5 for the OS (BASIC 2 or 4 respectively) and 2 expansion sockets.

(both replacing the rather unfortunate 6540 ROMs and 6550 ROMs of the original 2001).

Or at least it would have those DRAMs and ROMs if they hadn't been removed, along with the 4x 40 pin 65xx chips.

I am afraid I am unsure of the origin of this board. It was in the "untested" pile (actually untested, rather than ebay "untested").

It was either an ebay purchase, a donation, or a part-exchange, but it was a long time ago, so the details elude me.

Oh dear, that's not good.

The electrolyte has leaked out of that capacitor. That doesn't normally happen. I rarely replace caps on boards of this vintage, as they are generally large reservoir capacitors on linear supplies. They only have to deal with 100Hz or 120Hz, rather than the more strenuous tens of KHz in switch modes.

I have not seen one just give up and decide to leak one day. I wonder if it was over voltage?

Musings on a Possible Cause?

I was sent some screenshots of an ebay listing once, a PET for sale in the UK with a US label on the back stating the voltage as 110V. That's fine if you use a step-down transformer, but in the listing in question, the 2 prong US mains plug was fitted with a travel adapter to plug direct into a UK 230V socket.

Nice.

Apparently it was working, although not sure for how long. The transformer would have been getting twice the input voltage, so would be giving twice the output voltage. The 9V that feeds the 7805s to generate 5V would now be more like 18V, and the 16V for the 12V rail more like 32V. The regulators would be cooking, and the capacitors would be over their rated voltage. This one was rated 16V and on the -9V rail, so if it got more like -18V and the regulator next to it was putting out a lot of heat, I can see why it might have given up the ghost and let out the magic juice.

Capacitor Replacement

Yes, that's not good.

It's not like leaky batteries, this generally cleans up fine.

There is a nasty puddle of it under the capacitor.

That cleaned up quite easily. I was trying not to flood the board with IPA as I didn't want to lose the hand-written serial number from 1979.

Speaking of which, 1978 and 1979 must have been tricky years for voltage regulators. That is a 7905, a -5V regulator. It also says 7810, but that is the date code, 10th week 1978, and not a +10V regulator. That same thing must have happened with 7400 series logic 5 years earlier.

The original was 470µF 16V. I have replaced it was 470µF 25V, a nice Nichicon. It never hurts to go for a slightly higher voltage rating. They tend to be physically larger and should last longer.

That all looks quite neat. Right, now why was I looking at this board?

Well, I was in the middle of another repair, and I wanted to check some of the signals on another board, and this one was the same revision.

The only thing was, it also had the same problem.

Well, to be precise, it had the same symptom, but not necessarily the same cause.

Both boards had no video output, no pixel data or vertical sync.

Back to the Other Board

Oh well, never mind, I put this board to one side and went back to the first one.

I eventually found the problem on the first board (more on that in it's own post to follow), but it had several other issues, every time I fixed one thing, I found something else broken.

I decided to leave that first board for a while and thought I may as well have a go at fixing this one.

Back to This Board Again

The video signals on this era of PET were generated from a lot of discrete logic chips, dividing down the 16MHz clock to generate the 15.625KHz horizontal sync and 60Hz vertical sync (all PETs of this era were 60Hz, even the UK ones).

Most of this half of the board is related to generating the video and DRAM refresh timing signals.

The horizontal sync output was correct, but the vertical sync was stuck high.

With something like this, it is best to start at the output and trace back until you find a chip with valid looking inputs, and invalid looking outputs. (or sometimes go the other way, trace the signal from the clock through all the dividers and combinational logic until the signal goes flat).

In this case, there wasn't far to go.

Vertical sync is generated from two halves of a 74LS107 JK flip-flop, via a 74LS00 gate.

I checked the 74LS00 and it's inputs were flat.

I checked the 74LS107 and it's inputs were also flat.

Onto the next page, the next signal, or in this case it's actually called NEXT.

This is generated from a 74S74 D-type flip-flop (shown as 7474 on the schematic).

The inputs to this were wiggling all over the place, but both outputs were flat.

Bingo.

Checking with the scope, it almost looked like the clock signals were always getting blocked by the clear, so I wired up the logic analyser to be sure.

It is not obvious at first glance, but the top chip, G9, is a 74LS74, but the bottom one, G8, the problem chip is actually a 74S74 (Schottky rather than Low-power Schottky).

There must have been a performance gain on the 74S chip that outweighed the extra cost over using another 74LS chip.

The 74LS74 needs a minimum pulse length of 30ns, but the 74S74 fitted only needs 6ns

It did look like the rising edges of the clock were going to be immediately cleared by the falling edge of /CLR, but it was at least 100ns later, so it should definitely have changed the Q output before it was cleared again.

I removed the suspect IC and fitted a socket, since the board already had quite a lot of sockets. It seems to have had a lot of work before. Some a little dubious as there are some bodge wires presumably repairing damage caused with the 74LS153s were all replaced.

Testing the chip in the Mini Pro / T48, and it shows a fail. That's always good to see when you get proof you found the fault (or at least one of them).

I didn't have a 74S74, so I fitted a new 74LS74. It should be fast enough, but I could potentially use a 74HCT74 if it proves not?

I wired it back up to the logic analyser, and there was the Q output, changing when it should.

Yay, it works.

Time to Test The Video Out

I don't like using PET CRT monitors when there are video problems, I don't want bright lines or spots potentially damaging the CRT, so I am using a PET Video Out board to generate NTSC composite video to display on an LCD monitor.


I am expecting a screen of random characters.

Hmm, that's not right.

It is normally random characters with any of 256 values, but there is a distinct pattern there. No inverted characters, no numbers or graphics. Hmm, I think the RAM chip that handles the highest 4 bits is bad. It is a bit unusual, or at least unlikely, that it would randomly pick 1000 values that were all 0-15 from a range of 0-255 (1 in 16 ^ 1000 ?)

Looking at this, the white sockets are original (awful, but original), but I don't think either of the video RAM chips are. The soldered chips are mostly dated early 1979. The MOS 2114 is possibly original, early 1980, but the Fairchild part is from 1983. It is also F7, the one which handles bits 4-7, the one possibly at fault.

A simple test is to swap them around.

Ah, there you go, it is now the lower 3 bits that are stuck low.

If the problem had not changed with the chips swapped, then I would have been looking at the associated buffers and latches (or probably just blaming the white sockets).

It is difficult to find a matching set of 2114 chips that will work fast enough for video RAM, so instead I removed both chips and fitted a 2114 video RAM replacement.

That's better. That is what it is meant to look like.

Testing the Board

Since the ROM and RAM were absent, I fitted a PET ROM/RAM and enabled both.

I also fitted two new WDC W65C21N and a WDC W65C22N, and set it up for testing with a keyboard and datasette and the PET Video out.

Ready for instruction.

A quick test loading from tape.

All looks good.

It initially failed to load from SD2PET, that might be as simple as the edge connector needs cleaning or one of the MC3446 drivers may have failed.

I will address that and do some more testing on this one later, make sure everything is stable etc. But for now the video problem has been fixed and I can leave it running memtest for a bit.

Side Note: 9V PET

It is worth noting, that the power supply on these PETs is two AC supplies, one about 16V, one about 9V. These are rectified, smoothed and feed linear regulators that generate 5V, 12V and -5V. Only the DRAM needs 12V and -5V. The rest of the PET is 5V only.

(other than the datasette which is powered from 6V that is derives from the unregulated 9V rail).

This one has had the DRAM removed and socketed. I presume it didn't come from the factory with a mixture of 16 pin sockets and pairs of 8 pins when the 16 pins ran out.

When you have a PET like this which has the DRAM removed, and you are using a PET ROM/RAM and a PET Video Out, it opens an interesting possibility. You can run it from 9V DC.

I have a PET 2001 board I use for testing sometimes, and I run that from 9V DC, as it never had DRAM.

This board could be used the same, it only requires 0V and 9V on pins 3 and 2 of the power supply connector.

I use a cable I made with a DC jack socket, centre negative obviously.

The bottom 5 pins of the 9 pin connector are the same as the PET 2001. The other pins can be ignored here. (I did make a 9 way version of this cable, but I will not find it until shortly after I put this post live, when it will probably fall off a shelf and hit me)

A setup like this draws about 1.2A at 9V.

You just need to remember to not fit any DRAM chips, but then again, how often are you going to have sixteen working 4116 chips going spare and looking for a home?


Adverts

The PET Video Out, 2114 video RAM replacement and PET ROM/RAM are available form my Tindie Store.

Or, if your PET board has more faults or missing parts than these two I have been looking at, you can always take the easy route and get a Mini PET 40/80 drop in replacement.

If you don't want to use Tindie, you can always contact me using the link at the top of the page and let me know what you want and which country you are in, and I will get you a price if you want to buy direct.


Patreon

If you enjoy posts like these, you can support me via Patreon, and get access to advance previews of blog posts (except when I am running behind, like today, sorry), and exclusive posts (like the extended update I posted earlier in the week).

You also get progress updates on new projects and other behind the scenes updates, as well as access to my Patreon only Discord server for even more regular updates, and to discuss your own projects.

Wednesday, 7 October 2015

Which PETs support which PET microSD

This is an old post, preserved for reference.
The products and services mentioned within are no longer available.

This post has been left for historic information. The PET microSD is no longer in production. The replacement SD2PET is available now, more information on the pre-order page.

Not sure which PET microSD is most appropriate for your PET?

Models
PET microSD Horizontal
PET microSD Vertical
PET microSD Internal
Features
  • plugs into back
  • easy to access
  • datasette power
  • easily removable
  • sticks out a bit
  • plugs into back
  • easy to access
  • internally powered
  • no external wires
  • low profile
  • internally fitted
  • fit and forget
  • internally powered
  • no external wires
  • low profile
2001
✔(B)
✔(B)(P)
✔(B)(P)
2001N
✔
✔
✔
3032
✔
✔
✔
4032
✔
✔
✔
8032
✔
✔
✔
8096
✔
✔(P)
✔(P)
8296
✔
✔
✔(E)
8296D
✔
✔
✔
CBM-II*
✔
✘
✘
8032-SK
✘
✘
✔
8096-SK
✘
✘
✔(P)
VIC20
✔(I)
✘
✘
C64 / C128
✔(I)
✘
✘
C16 / Plus4
✔(I)(P)
✘
✘

(B) - BASIC v1.0 does not support any IEEE-488 drives, so an upgrade will be required - see below.
(P) - Alternate power connection required - let me know when ordering
(E) - The internal board would need an extension cable as capacitor C1 is in the way inside the case
(I)  - IEEE-488 adapter required - see PETmicroSD on a VIC20
 *  - Tested on CBM-II B710 and B720 with DOS 1.25 and CPM 86. Should also work on the B128 and the 600 and 700 series CBM-II machines as long as they have datasette and IEEE-488 edge connectors


If you see the BASIC 1.0 screen when you power on

*** COMMODORE BASIC *** 

and not BASIC 2.0

### COMMODORE BASIC ### 

 or BASIC 4.0

*** COMMODORE BASIC V4.0 *** 

then you need to upgrade to make use of an IEEE-488 disk drive, such as the PET microSD. The easiest way to do this is with one of my ROM/RAM boards. This is a solderless and reversible upgrade that gives selectable BASIC 1, 2 or 4 and 8K, 16K or 32K of RAM to your 2001.

UPDATE: These are current out of stock, click here to pre-oreder a PET microSD.

2022 Update: I have since designed a much nicer SD drive for a PET. The SD2PET is available from  The Future Was 8 bit

In the style of the table above, this is the compatibility of the SD2PET:

Model
SD2PET
Features
  • plugs into back
  • easy to access
  • datasette power
  • easily removable
  • sticks out a bit
2001
✔(B)
2001N
✔
3032
✔
4032
✔
8032
✔
8096
✔
8296
✔
8296D
✔
CBM-II*
✘
8032-SK
✘
8096-SK
✘
VIC20
✘
C64 / C128
✘
C16 / Plus4
✘

(B) - BASIC v1.0 does not support any IEEE-488 drives, so an upgrade will be required 
* - The 2MHz CBM II machines do not give the drive as long to reply as the 1MHz PETs, and so the SD2PET does not always respond in time. Consider these unsupported.

Saturday, 18 July 2015

Commodore PET 3032 Mainboard Repair

This is an old post, preserved for reference.
The products and services mentioned within are no longer available.

These Commodore PET repairs are coming in thick and fast. This time it's a 3032 board. These were sometimes sold with 3032 on the front and 2001-32N on the back. This sits in the timeline between the original 2001 and the later 4032.

The earlier PETs had discrete video circuits and difficult to find 6540 and 6550 memory chips. For the 3032, they switched to using 4116 DRAM and 2532 compatible 24 pin ROMS. Later boards kept this memory arrangement, but switched to using the 6545 CRTC to drive the screen. The later boards also moved the datasette connector to the side. The 3032 still has this inside, where it used to connect to the internal drive on the 2001, but is a bit redundant on the 3032. Other than that, the Pet doesn't change much over the years. Things like the I/O ports and the IEEE-488 interface are pretty much unchanged from 1977 to 1984.
This one has apparently been to a number of 'vintage computer repair experts', who have concluded it is a ROM or RAM problem. However, their efforts have left it a little worse for wear. I try not to be critical of other people's work, but this time I have to make an exception. Before I start on the actual faults, I need to undo some of the previous 'repairs'. First comes the oddest repair I've ever seen on a Pet. Or any computer for that matter. There is a thick black wire soldered to a pin on the back of the board.
Following this around the board, it goes to the same pin on the ROM in the socket above. One of the ROM chips appears to have a damaged leg, and this has been 'repaired' with the wire.
I don't even know where to start with the reasons why this is not a good idea. It's too long, too thick, will affect timing, will pick up interference, the fact it can be easily fixed in many other ways, the fact that pin is in parallel with all the other ROM sockets in the same row and also present in many other places closer by. Let's just say it's wrong. Also the ROMs are in the wrong sockets anyway, so it was never going to work. As it arrived, they were as follows:
  • UD9 - 901465-22
  • UD8 - 901447-29
  • UD7 - 901465-23
  • UD6 - 901465-20 (with the wire)
  • UD5 - empty
  • UD4 - 901465-21
  • UD3 - empty
I don't think that is ever going to work. The editor ROM (UD8) is original, and dated the same as the rest of the board (early 1980), but the rest are a set of BASIC 4 ROMs are dated late 1981. I had thought this must have been upgraded from BASIC 2, but the editor wouldn't have worked with BASIC 2, so I'm not sure why but all the other chips date to late 79, early 80, apart from the 4 ROMS. I've heard mention of BASIC 3, but never seen a set of ROMs - was this originally BASIC 3?
The correct order of the BASIC 4 ROMs should be:
  • UD9 - 901465-22
  • UD8 - 901447-29
  • UD7 - 901465-21
  • UD6 - 901465-20 (without the wire)
  • UD5 - 901465-23
  • UD4 - empty
  • UD3 - empty
I've returned them to the correct sockets. Next, some of the capacitors have been replaced. Most are fine, but two large axial capacitors have been replaced with radial ones at some point. The legs aren't long enough, so they have been joined above the board, and I'm not to happy with that. Apart from the aesthetics, there is a chance that the leads could short out to other tracks on the board.
I've replaced those with axial ones, as they would have originally been, with the largest one held down with a cable tie through the holes provided.
Finally, it looks like someone started to repair the problems, two of the DRAM chips are missing
The appear to have been removed with a claw hammer.
I've cleaned the pads up, repaired the damaged tracks and fitted two sockets.
I've used lots of flux and what would normally be a bit too much solder on these sockets as the some of the through hole plating has been damaged so I've lets the solder go through to reconnect the two sides. Continuity tests to the pins and the other DRAMs are fine.
OK, so that's all the previous repairs undone, time to fix the actual original problems. As usual, I've started with a ROM/RAM board in place.
That is a good start, but can you spot the deliberate mistake? I'm using the monitor on the 4032, as I often do, for testing. The later Pets use different sync polarity to the older ones. In cases where I have an older Pet board and a later Pet monitor (or the reverse), I made a little board to selectively invert the video and sync signals.
This uses a quad XOR gate, so there is the same latency on the inverted and non inverted signals. The dip switches select which signals to invert, normally this is video and vertical sync. The signal timing is not quite right, but it's good enough to display. With that in place, the monitor is now displaying correctly.
So, back to the good start, it's basically running, albeit with the help of the ROM/RAM board. The lines on the screen are caused by bad video RAM. I removed the two chips - notice it is possible to do that cleanly and without damaging the board.
I started with two new 2114 chips, later testing found one of the originals was working OK, so I put that one back. With the video fixed, I tried the ROMs and found it wouldn't work using the onboard ROMs. Selectively replacing them one by one using the DIP switches on the ROM/RAM board, I found that one of the ROMs was not working.
With an EPROM, it's back to booting up again. With two 4116's in the two new DRAM sockets, the onboard RAM now passed, and I was able to remove the ROM/RAM board.
I didn't get any response from either datasette port or the IEEE-488 bus, I also noticed the screen was sometimes starting in lower case. It is normal for 80 column PETs with the business keyboard to start in lower case, and on the 80 column PETs, the shift changes from upper to lower case. This was happening here.
That is what it should look like, all the 40 column PETs with graphic keyboard should start in upper case, and shift should change between upper case characters and graphic symbols. You should be able to change between these modes using
  • PRINT CHR$(14) 
or
  • PRINT CHR$(142)
Neither of these was having any effect. This should change the output of pin 39 of the 6522, which drives one of the address lines on the character ROM and selects the alternate character sets. This line wasn't changing. This and the lack of datasette and IEEE-488 IO pointed to the 6522. I replaced that and it appeared to work for a while, The datasette and IEEE-488 was also working. Problem solved.
But no, it didn't, it continued to be intermittent and went back to lower case and no IO.
I retested the replacement 6522 in another Pet, and it seemed fine. I also tried the original 6522, and that too seemed fine. I then suspected the socket. The white sockets used in these early Pets are known for bad contacts, but in this case, all the pins were buzzing through correctly, even with a bit of wiggling. I eventually traced this back to one of the enable lines, it never seemed to change. I checked the connection and it seemed fine, so I went back to the source IC F1, a 74LS08 quad AND gate. The inputs to that were changing, but the output never went low.
I removed that and tested it, and the one gate used to drive the 6522 enable pin was indeed faulty. Replacing that with a good 74LS08 and the original 6522 and everything was back in business.
The boot screen was back in lower case, and the print statements could change mode. The datasette ports were now both working. Testing with the new blue pet microSD drive found everything working on the IEEE-488 bus side.
The connector in the middle is a piezo speaker connected to CB2. Can't play Space Invaders without the sound, and the onboard piezo didn't appear until the 4032.
Soak testing showed up a problem with another of the ROM chips, so that was replaced with an EPROM as well,
I left it running various tests, games and demos for most of the day. The temperatures were fine and no errors were reported.
All done and ready to go back. Another pet back in the land of the living. The final tally of faults was:
  • RAM - 2 chips had been removed, damaged tracks repaired, sockets and replacement DRAM chips fitted..
  • Video RAM - there were some faults in one of the video RAM chips. Both have been socketed, and one replaced.
  • ROM - Two chips were in the wrong sockets, damage to a pin and the long wire mod on another chip. Two ROMs found faulty and replaced with EPROMs.
  • I/O - Faults traced back to faulty AND gate. Replaced and now both datasettes, user port and IEEE-488 working.
  • Capacitors - two radial capacitors removed and replaced by axial versions.
How much of that is the actual original fault, and how much is due to later repair attempts, I don't know. The two missing DRAM chips may have been faulty, or just they may have been fine and just happened to be the first in line.
There are a few more PET and PET related repairs to come, and if you have anything that needs repairing, you can contact me.