Jump to content

Atari CX85 Encoder Circuit Repair

From RetroTechCollection
Atari CX85 numerical keypad
The Atari CX85 Numerical Keypad, with ESCAPE, NO, DELETE and YES down its left side

The Atari CX85 Numerical Keypad has seventeen keys wired as a matrix of rows and columns. An MM74C923N keyboard encoder (IC2) scans the matrix and turns a key press into a five-bit code and a key-down signal, and a 4049B inverter (IC1) drives those six signals onto pins 1 to 6 of the controller port cable. The keypad takes +5 V and ground from pins 7 and 8.[1] Atari's field service manual restricts repair to replacing the cable or the whole keypad board, and its troubleshooting guide names the likely cause for each symptom.[2] With the manual's schematic and the encoder's data sheet, each fault can be followed to a key, a row or column of the matrix, one of the two ICs or a wire in the cable.[1][3]

The keypad has no power supply and no electrolytic capacitors.[4]

Symptoms

[edit | edit source]

Run Atari's BASIC test program first (it is listed on the Atari CX85 page and in the FSM), with the keypad in controller port 2. Each key should show its own response once, repeating only while held.[5]

Atari's troubleshooting guide groups the faults by symptom:[2]

  • No response from any key. Atari checks the cable wiring at the board, +5 V between pin 7 (violet) and pin 8 (grey), +5 V at IC1 pin 1 and IC2 pin 20, and the underside of the board for cold joints and cut tracks. See Checking the supply.
  • No response from one or two keys. Atari checks that the key's spring contacts close. See Checking the scan and the keys.
  • Wrong response from all keys. Atari checks the cable colour code and suspects a faulty IC. See Checking the outputs.
  • Wrong response from one or two keys. Atari checks the cable connections at the board and looks for solder bridges under it.
  • The display keeps responding after the key is released. Atari checks for a key rubbing on the case, for solder bridges or cold joints, and for a key contact stuck closed.
  • Intermittent operation. Atari checks that the cable connections are tight and the key switches are not loose.

Safety

[edit | edit source]

The keypad runs from the computer's +5 V on pin 7.[1] Do not short pin 7 to ground while probing a powered keypad.

Tools and parts

[edit | edit source]
  • A Phillips screwdriver.[4]
  • A multimeter. A logic probe or oscilloscope helps to see the scanning.
  • An Atari 8-bit computer with BASIC, to run the test program. The FSM names the Atari 400.[5]
  • Replacement ICs if needed: a 4049 hex inverter for IC1 and an MM74C923 20-key encoder for IC2.[4][3] Texas Instruments still makes the 4049 as the CD4049UB, with the same pinout (supply on pin 1, ground on pin 8).[6] See IC Removal and Socketing for removing a soldered IC without damaging the board.
CX85 components (FSM parts list)
Position Part Atari part number
IC1 4049B –
IC2 MCM74C923N –
C1 0.01 µF ceramic disc, 12 V (alternative 0.01 µF 25 V ceramic axial) 2B-007 (C014181-02)
C2 0.47 µF ceramic axial, 25 V C014181-07
C3 0.1 µF ceramic disc, 12 V (alternative 0.1 µF ceramic axial) 2C-001 (C014181-03)
Cable assembly – CA060158-01, CA060158-02
Keypad board assembly – CA060140-01 (Hi-Tek), CA060140-02 (Atari Wong)

[4]

How the circuit works

[edit | edit source]
Atari CX85 schematic (field service manual figure 2)
Atari's figure 2: the key matrix (top), IC2 MCM74C923N, IC1 4049B, C1 to C3, the cable pinout and the truth table

IC2's four column outputs (X1 to X4) go low one at a time, at a rate set by the capacitor on its oscillator pin; its five row inputs (Y1 to Y5) are held high by internal pull-ups. When a key is pressed, its row goes low as its column is scanned, scanning stops, and once the key has been held for the debounce period set by the capacitor on the key-bounce mask pin, the code is latched onto outputs A to E and the Data Available output goes high. Data Available goes low again when the key is released; the outputs keep the last code.[3] On the CX85, C3 (0.1 µF) is the oscillator capacitor on pin 6, C2 (0.47 µF) the key-bounce capacitor on pin 7, and the output enable (pin 14) is tied to ground so the outputs are always on.[1][3]

IC1 inverts each of IC2's six outputs before they reach the cable, so a key press pulls the trigger line (pin 6) low, as a joystick button does, and the cable carries the inverse of IC2's code.[1][6]

Signal path from IC2 to the cable (FSM figure 2)
IC2 pin IC2 signal IC1 input pin IC1 output pin Cable pin Port signal
19 A 3 2 1 Forward
18 B 5 4 2 Back
17 C 7 6 3 Left
16 D 9 10 4 Right
15 E 11 12 5 B paddle
13 Data Available 14 15 6 Trigger

[1]

Supply and other pins: +5 V reaches IC1 pin 1 and IC2 pin 20, with C1 (0.01 µF) from the supply to ground at IC1; ground is IC1 pin 8, IC2 pin 10 and IC2 pin 14. Pin 9 of the cable (the A paddle input) is not used, and IC1 pins 13 and 16 are not connected.[1]

Key matrix (FSM figure 2)
Row (IC2 pin) X1 (pin 12) X2 (pin 11) X3 (pin 9) X4 (pin 8)
Y1 (pin 1) − + ENTER . 0
Y2 (pin 2) 3 2 1 YES
Y3 (pin 3) 9 8 7 NO
Y4 (pin 4) 6 5 4 DELETE
Y5 (pin 5) – – – ESCAPE

[1]

The encoder numbers a key from its row and column, counting along each row: Y1 X1 is code 0, Y1 X4 is 3, Y2 X1 is 4, and so on to Y5 X4, code 19.[3] After IC1 inverts it, that code is the one printed in Atari's truth table: the 0 key (Y1 X4, code 3) reads 1 1 1 0 0 on cable pins 5 to 1, and ESCAPE (Y5 X4, code 19) reads 0 1 1 0 0.[1][3] Atari defines a logic 0 on the cable as 0.4 V or less at 3.2 mA and a logic 1 as 4.0 V or more at −0.7 mA.[1]

Procedure

[edit | edit source]

Opening the keypad

[edit | edit source]
Atari CX85 assembly drawing (field service manual figure 1)
Atari's figure 1: the keypad board between the two enclosures, the four screws and four rubber feet under the bottom enclosure, and the nine colour-coded wires on the board's edge tabs
  1. Unplug the keypad from the computer.
  2. Turn it over and remove the four screws from the bottom enclosure. The FSM lists them as #6 × 3/4 in pan-head Phillips screws, part 72-F612.[7][4]
  3. Lift the bottom enclosure away. The keypad board sits in the top enclosure, and the cable's nine wires connect to tabs along one edge of the board.[7]
  4. Check the wires against figure 1: from one end of the board edge they run brown, red, orange, yellow, green, blue, violet, grey and white. The troubleshooting guide identifies violet as +5 V (pin 7) and grey as ground (pin 8).[7][2]

Checking the supply

[edit | edit source]
  1. Plug the keypad into port 2 with the board exposed and switch the computer on.[5]
  2. Measure between the violet and grey wires at the board: there should be +5 V. If it is missing at the board but present at the computer's port pins 7 and 8, the cable is at fault.[2]
  3. Measure +5 V at IC1 pin 1 and IC2 pin 20, with the meter's other probe on ground (IC1 pin 8 or IC2 pin 10). If the supply reaches the cable tabs but not the ICs, look under the board for a cold solder joint or a cut track. See PCB Trace Repair for repairing a track.[2][1]

Checking the scan and the keys

[edit | edit source]
  1. With no key pressed, check the row inputs IC2 pins 1 to 5: each should be high, pulled up inside IC2.[3][1]
  2. With a logic probe or oscilloscope, check the oscillator pin (IC2 pin 6, with C3) and the column outputs (pins 12, 11, 9 and 8): the columns are driven low in turn while no key is pressed. If nothing changes, suspect C3 or IC2.[3][1]
  3. Hold down one key and measure its row and column pins on IC2 from the matrix table. The encoder stops scanning with that key's column low, so both pins should read low. For example, holding 1 (row Y2, column X3) should bring pin 2 and pin 9 low.[3][1]
  4. If the row stays high while the key is held, the key is not closing or its track is open. Pull off the keycap and check that the key's spring contacts close when it is pressed.[2] Use a meter across the key, then follow the row and column tracks to IC2. See Continuity Testing and Signal Tracing.
  5. If every key in one row, or one column, fails, follow that line from the keys to its IC2 pin and look for a break.[1]

Checking the outputs

[edit | edit source]
  1. Hold a key and measure IC2 pin 13 (Data Available): it should be high while a valid key is held and low after release.[3] If it stays high after release, a key is stuck closed or two lines are bridged; check for a key rubbing on the case and for solder bridges under the board.[2]
  2. With the key still held, measure IC2's outputs A to E (pins 19, 18, 17, 16 and 15). They should carry the key's code from the matrix: for 1 (code 6), A = 0, B = 1, C = 1, D = 0, E = 0.[3]
  3. Measure IC1's matching outputs (pins 2, 4, 6, 10 and 12) and pin 15. Each should be the inverse of its input, and the cable pins should match Atari's truth table: for 1, cable pins 5 to 1 read 1 1 0 0 1, and the trigger (pin 6) is low.[1][6]
  4. Locate the fault from where the code first goes wrong:
    • IC2's output wrong for a key whose row and column pins behave correctly: replace IC2.[2][3]
    • IC2's output right but IC1's output wrong, with +5 V on IC1 pin 1: replace IC1.[2][6]
    • IC1's output right but the reading wrong at the cable's plug: the cable, its contacts at the board, or a wire in the wrong position. Check continuity from each plug pin to its IC1 output pin, as listed in the signal path table.[2][1]
    • Some keys give a wrong code while others are right: look under the board for a solder bridge and check the cable connections at the board.[2]

Closing the keypad

[edit | edit source]
  1. Check that every cable connection at the board is tight.[2]
  2. Refit the bottom enclosure and its four screws.[7]

Testing

[edit | edit source]
  1. Run the FSM test program with the keypad in port 2 and press each key once. The screen should show the right response for each key (1 for 1, - for -, NO for NO), repeating only while the key is held.[5]
  2. If every key responds correctly but the keypad still fails in use, check that the owner is using port 2 and following the operator's manual; the FSM then points at the handler diskette or the computer.[5]
[edit | edit source]

References

[edit | edit source]
  1. ↑ 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 Atari, Inc., CX85 Numeric Keypad Field Service Manual, FD100176, figure 2, "CX85 Schematic": key matrix, IC2 and IC1 pin connections, C1 to C3, cable pinout, truth table and signal definition (p. 5, PDF p. 9). Hosted as File:Atari CX85 Numeric Keypad Field Service Manual FD100176.pdf.
  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 Atari, Inc., CX85 Numeric Keypad Field Service Manual, FD100176: the note restricting repair to the cable or keypad board, and the troubleshooting guide for no response, wrong response, continued response and intermittent operation (pp. 2 and 3, PDF pp. 6 and 7). Hosted as File:Atari CX85 Numeric Keypad Field Service Manual FD100176.pdf.
  3. ↑ 3.00 3.01 3.02 3.03 3.04 3.05 3.06 3.07 3.08 3.09 3.10 3.11 Fairchild Semiconductor, MM74C922 • MM74C923 16-Key Encoder • 20-Key Encoder, data sheet DS006037, October 1987, revised January 1999: pin assignment, truth table (switch positions Y1 X1 to Y5 X4, codes 0 to 19), row pull-ups, theory of operation (column scan, debounce, Data Available, output latches, output enable). Internet Archive item manuallib-id-2710692.
  4. ↑ 4.0 4.1 4.2 4.3 4.4 Atari, Inc., CX85 Numeric Keypad Field Service Manual, FD100176, Atari CX85 keypad parts list (PDF p. 10). Hosted as File:Atari CX85 Numeric Keypad Field Service Manual FD100176.pdf.
  5. ↑ 5.0 5.1 5.2 5.3 5.4 Atari, Inc., CX85 Numeric Keypad Field Service Manual, FD100176, November 1982: overview, BASIC test program and test procedure (p. 1, PDF p. 5). Hosted as File:Atari CX85 Numeric Keypad Field Service Manual FD100176.pdf.
  6. ↑ 6.0 6.1 6.2 6.3 Texas Instruments, CD4049UB and CD4050B CMOS Hex Inverting Buffer and Converter, data sheet SCHS046L, revised February 2026: pin configuration and functions (inputs A to F on pins 3, 5, 7, 9, 11 and 14, outputs on pins 2, 4, 6, 10, 12 and 15, VCC pin 1, VSS pin 8, pins 13 and 16 not connected).
  7. ↑ 7.0 7.1 7.2 7.3 Atari, Inc., CX85 Numeric Keypad Field Service Manual, FD100176, figure 1, "CX85 Assembly Drawing", with the keyboard PCB connector hook-up (p. 4, PDF p. 8). Hosted as File:Atari CX85 Numeric Keypad Field Service Manual FD100176.pdf.