Jump to content

Commodore PET 4000 Series Keyboard Repair

From RetroTechCollection
Commodore PET 4032 with full-travel keyboard (Grossi)
A PET 4032 with the full-travel graphics keyboard and numeric keypad

The Commodore PET 4000 Series has a full-travel keyboard in which each key presses a carbon pad onto a pair of contacts on the keyboard's circuit board.[1][2] Tynemouth Software finds that keys which need extra pressure, or do not work at all, are almost always caused by dirty contacts, and that cleaning them is the fix in nearly every case.[2][3] The procedure below cleans the keyboard and then checks the scanning circuit on the logic board for the rarer faults that cleaning does not cure.

Symptoms

[edit | edit source]
  • Keys that need extra pressure, or a few keys that do nothing.[2]
  • Most keys dead, with only one row responding and other keys giving the wrong or shifted characters. Tynemouth traced this on a PET 2001 board to a failed 74LS145 decoder that drives the ten keyboard scan lines.[3]
  • Random key presses with nothing touching the keyboard. On one 8032 board Tynemouth found the keyboard 6520 had failed.[4]

Safety

[edit | edit source]

Warning: the mains switch, fuse and transformer primary are live whenever the PET is plugged in, and the display board drives the CRT.[5] Unplug the machine before opening it and keep clear of the display board and the CRT; see the CRT Discharge Procedure.

Tools and parts

[edit | edit source]
  • A keycap puller.[2]
  • A small screwdriver for the screws holding the keyboard circuit board.[2]
  • A soldering iron and desoldering tool for the shift lock wires.[2]
  • Contact cleaner for the circuit board, and warm water for washing the keycaps.[2]
  • A container for the springs, which come loose as each key is removed.[2]
  • A multimeter. Commodore's keyboard drawing allows a contact resistance of up to 1 kΩ over the life of the contact.[6]
  • For logic board faults, a logic probe or oscilloscope, and a spare 74LS145 and 6520.[7][3]

How the keyboard is scanned

[edit | edit source]
Commodore PET universal board logic diagram 8032087 sheet 3, keyboard scan UB12, UC11, UB11 and J5
Commodore's logic diagram 8032087, sheet 3. Port A of the 6520 at UB12 drives the 74LS145 at UC11, which pulls one of the ten lines on J5 pins 1 to 10 low at a time. The keys return the signal on KIN0 to KIN7, J5 pins A to H, to port B of UB12, held high by the 10 kΩ network UB11.

On the universal dynamic PET board the keyboard plugs into J5. The 6520 PIA at UB12 sends a four-bit number on PA0-PA3 to the 74LS145 decoder at UC11, whose outputs 0 to 9 drive J5 pins 1 to 10. A pressed key connects one of these lines to one of the eight return lines, KIN0 to KIN7 on J5 pins A to H, which go back to port B of UB12 and are pulled up by the resistor network UB11. J5 pin 12 is ground.[7]

Commodore PET business keyboard 320284 switch matrix
The switch matrix of Commodore's business keyboard drawing 320284. Columns 1 to 10 and rows A to H are the pins of the keyboard connector J1.

Commodore's drawing 320284 for the 73-key business keyboard shows the matrix as ten columns, numbered 1 to 10, and eight rows, A to H, on the keyboard's own connector, J1. The shift lock is the only latching key.[6] The graphics keyboard, with no numbers on its top row, is not drawn in the technical manual; trace a dead key on it with a meter.[6][2]

A whole dead column on J5 pins 1 to 10 points at one output of UC11 or its track; a whole dead row on pins A to H points at one input of UB12, its pull-up in UB11 or its track. A single dead key points at that key's contacts.[7]

Procedure

[edit | edit source]

Clean the contacts

[edit | edit source]
  1. Unplug the PET, open it and unplug the keyboard from J5.[7]
  2. Photograph the keyboard so that the keys can be put back in the right places.[2]
  3. Desolder the wires to the shift lock switch on the rear circuit board.[2]
  4. Remove the small screws holding the circuit board to the key frame; Tynemouth counted 30. Lift the board away.[2]
  5. Clean the contacts on the board with contact cleaner.[2]
  6. Check each contact pair with a meter while pressing its key against the board, or once the board is back in place. A good contact reads well under 1 kΩ.[6]

Clean the keys and plungers

[edit | edit source]
  1. Pull each keycap with a keycap puller: slide it down the sides of the key, turn it 45 degrees and lift straight up, which avoids damaging the key and its neighbours.[2]
  2. Remove the plungers from the back of the frame one at a time without losing the springs. Each key is four parts: a spring that holds the key up, a plunger with a carbon pad on its end, an adapter that plugs into the plunger, and the keycap.[2]
  3. Leave keycaps and adapters that come off together as one piece. Separate the rest and wash the keycaps.[2]
  4. Clean the frame.[2]
  5. Refit the springs, plungers and keys, using the photograph to put each key in its place. The O and zero keys look alike from the top and differ only on their sides.[2]

Reassemble

[edit | edit source]
  1. Refit the circuit board and its screws, and resolder the shift lock wires.[2]
  2. Plug the keyboard into J5 and test every key.[2][7]
  3. A key with a missing cap can be given a substitute from another keyboard. Tynemouth fitted a BBC Micro Return key to a PET business keyboard, using a cut-down Commodore 64 plunger with a slot filed in it.[2]

Check the scanning circuit

[edit | edit source]

Do this only if keys still fail after cleaning. Tynemouth stresses that cleaning fixes almost every PET keyboard fault.[3]

  1. Rule the keyboard out first. Tynemouth tests suspect boards with a known-good keyboard, or with his USB keyboard adapter and replacement keyboard.[3][2]
  2. With the machine running, probe UC11 outputs 0 to 9 with a logic probe. On Tynemouth's faulty PET 2001 decoder all the outputs sat low.[3][7]
  3. Replace UC11 if its outputs are stuck. A new 74LS145 fixed Tynemouth's board.[3]
  4. If the decoder outputs are good, check the return lines KIN0 to KIN7 at UB12 port B and the resistor network UB11.[7]
  5. Replace the 6520 at UB12 if the keyboard reads random keys with the keyboard unplugged. Tynemouth used a W65C21N as a replacement 6520 on a PET 2001.[4][3]
  6. If 6520s keep failing after replacement, look for a chip fighting the data bus before fitting another; see Commodore PET 4000 Series RAM Replacement.[4]

Testing

[edit | edit source]
  1. Press every key and check the character on the screen, including the shifted characters and the shift lock.[2][6]
  2. Check the keys that needed extra pressure before. They should now work with a normal press.[2]
  3. Leave the machine running and type at intervals. A failing 6520 can work for a while before showing random key presses.[4]

Keyboard versions

[edit | edit source]

The 4000 series was built with the graphics keyboard, which has no numbers on its top row, and with the business keyboard, which has numbers on the top row and a smaller numeric keypad. Tynemouth found both built the same way.[2] Commodore's technical manual lists separate builds of the dynamic PET board for graphic and business keyboards.[8] The same construction is used on the full-size keyboards of the other Commodore PET and CBM models.[1]

[edit | edit source]

References

[edit | edit source]
  1. ↑ 1.0 1.1 André Fachat, "PET repairs", 6502.org, section "Keyboard Repair": the construction shared by the full-size Commodore keyboards.
  2. ↑ 2.00 2.01 2.02 2.03 2.04 2.05 2.06 2.07 2.08 2.09 2.10 2.11 2.12 2.13 2.14 2.15 2.16 2.17 2.18 2.19 2.20 2.21 2.22 2.23 2.24 Tynemouth Software (Dave Curran), "Commodore PET Repair Part 8 - Keyboard Restoration", September 2014: cleaning a 4032 graphics keyboard and an 8032-SK business keyboard, the four parts of each key, and the substitute Return key.
  3. ↑ 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 Tynemouth Software (Dave Curran), "Commodore PET 2001 Repair - Keyboard only some keys responding", August 2017: cleaning as the usual fix, the W65C21N replacement 6520, and the failed 74LS145 with all outputs low.
  4. ↑ 4.0 4.1 4.2 4.3 Tynemouth Software (Dave Curran), "Commodore PET 8032 Repairs - Killer RAM Chips!", January 2018: random key presses from a failed keyboard 6520, and repeated 6520 failures caused by a RAM chip driving the data bus.
  5. ↑ Commodore Business Machines, PET 4000 Series Technical Manual, drawing 8032051, Power Supply Assy, parts list and wiring diagram (PDF pp. 39-40): the mains fuse, fuse holder, rocker switch, filter power connector and transformer.
  6. ↑ 6.0 6.1 6.2 6.3 6.4 Commodore Business Machines, drawing 320284 Rev D, Keyboard, Business, 73 Stations, in the PET 4000 Series Technical Manual (PDF p. 37): switch matrix on connector J1, the 1 kΩ contact resistance limit, and the shift lock as the only alternate-action key.
  7. ↑ 7.0 7.1 7.2 7.3 7.4 7.5 7.6 Commodore Business Machines, logic diagram 8032087 Rev C, Universal Dynamic PET, sheet 3 of 11, "Cassette & Keyboard", in the PET 4000 Series Technical Manual (PDF p. 11), hosted at Commodore PET 4000 Series Technical Manual; cropped as File:Commodore PET universal board logic diagram 8032087 sheet 3, keyboard scan UB12, UC11, UB11 and J5.png. The 6520 at UB12, the 74LS145 at UC11, the resistor network UB11 and keyboard connector J5.
  8. ↑ Commodore Business Machines, PET 4000 Series Technical Manual, P/N 990438: parts list for the dynamic PET board 320351 (PDF p. 62), with assemblies listed by memory size and by graphic or business keyboard.