Jump to content

Atari 520ST Keyboard Repair

From RetroTechCollection
Atari 520ST keyboard controller board (SAMS Computerfacts CSCS12)
The controller end of a 520ST keyboard board: the HD6301 microcomputer IC1, the buffer IC2 and the matrix diodes CR1–CR15 (photo: Howard W. Sams & Co.).

The keyboard of the Atari 520ST has its own processor, a Hitachi HD6301, which scans the keys and reads the mouse and joysticks, and sends what it finds to the main board over a serial link. On the main board the link ends at an MC6850 ACIA, U21, through the 18-way keyboard connector J12.[1][2] The 260ST, 520ST+ and 520STM use the same short case and keyboard connection.[3]

Howard W. Sams's service data for the 520ST traces a dead keyboard from the ACIA back to the keyboard processor, and single dead keys or groups of keys to the switches and the matrix diodes.[4] The mouse and joystick ports are covered on Atari 520ST Mouse and Joystick Port Repair.

Symptoms

[edit | edit source]
Keyboard faults
Symptom First place to look Source
No key works Connector J12 and its wiring, the keyboard processor IC1 and crystal, ACIA U21 SAMS
One key does not work That key's switch SAMS
A group of keys does not work The matrix diode for that group (CR1–CR15), then IC1 SAMS
Diagnostic cartridge K0 A key closed during the keyboard's self-test Atari
Diagnostic cartridge K1 No reply from the keyboard: the keyboard, or the 6850 channel Atari
Diagnostic cartridge K2 The keyboard reports a self-test failure: replace the keyboard Atari

Sources: SAMS[4] and Atari.[1]

Two things that look like keyboard faults are not. SAMS notes that on its machine most keys did nothing until a language such as BASIC had been loaded.[4] And with the keyboard unplugged, the 6850's input sits low and causes continual interrupts, which can make the display waver; test with the keyboard connected.[1]

Tools and parts

[edit | edit source]
  • An oscilloscope or logic probe and a multimeter.[4]
  • ST BASIC, for SAMS's output test.[4]
  • Parts named in SAMS's parts list: HD6301V1 (IC1), SN74LS244N (IC2) and the matrix diodes CR1–CR15; the keyboard processor runs from a 4.0 MHz crystal, XTAL1.[4]

Procedure

[edit | edit source]

Open the machine

[edit | edit source]

Atari's sequence for the short case:[1]

  1. Unplug the supply. Turn the computer over and remove the six screws from the bottom case.
  2. Turn it upright and lift off the top case. The keyboard connector is at the right front of the main board; keep it connected for the tests below.

No keys work

[edit | edit source]

SAMS's sequence, with BASIC loaded:[4]

  1. Press any key and check for pulses at pin 2 of the ACIA U21.
  2. If there are none, check for pulses at J12 pin 14 while pressing a key. If they are there, check L92, between J12 and U21.[4]
  3. If there are no pulses at J12 pin 14, check the connector's contacts and look for broken wires between pins 1, 13, 14, 15 and 16 of J12 and the keyboard. On Atari's schematic pin 13 carries +5 V to the keyboard, pin 14 the keyboard's data to the computer, pin 15 data from the computer and pin 16 reset; pin 1 is ground.[4][2]
  4. If the connector and wires are good, check the keyboard processor IC1 and its 4.0 MHz crystal XTAL1.[4]
  5. If pulses reach U21 pin 2 but the keys still do nothing, check for the 500 kHz clock at U21 pin 3. If it is missing, check the Glue U12, which generates it; if it is present, check U21.[4]

The computer cannot talk to the keyboard

[edit | edit source]
  1. In BASIC, run SAMS's line, which sends data to the keyboard continuously:[4]
10 OUT 4,100: GOTO 10
  1. Check for pulses at J12 pin 15. If they are missing, check U21 pin 6. Pulses at pin 6 but not at J12 point at L91; none at pin 6 point at U21.[4]

Single keys and groups of keys

[edit | edit source]
  1. For a single dead key, check the key for continuity while it is pressed, and clean or repair it.[4]
  2. For a group of dead keys, check the matrix diode for that group, CR1 to CR15, and then IC1.[4]

Reassemble

[edit | edit source]

Refit the top case and its six screws, the longer ones at the rear.[1]

Testing

[edit | edit source]
  • Type on every key in a text editor or BASIC.
  • Run the diagnostic cartridge's keyboard tests; it reports K0–K2 as above.[1]
[edit | edit source]

References

[edit | edit source]
  1. ↑ 1.0 1.1 1.2 1.3 1.4 1.5 Atari Corporation, 520ST/1040ST Computer Field Service Manual, C026118-002 Rev B (3.6), January 1987. Keyboard error codes K0–K2 (printed p. 3.9, PDF p. 35); the wavering display caused by an unplugged keyboard (PDF p. 34); the symptom checklist (PDF p. 51); 520ST disassembly (pp. 4.3–4.4, PDF pp. 48–49). Hosted here: File:Atari 520ST and 1040ST Computer Field Service Manual.pdf.
  2. ↑ 2.0 2.1 Atari (Japan) Corporation, Schematic Diagram (520ST/260ST), drawing C070231, revision M (April 1986), sheet 1: the ACIA U21, the keyboard connector J12 (pin 13 +5 V through L30, pin 14 RxDATA, pin 15 TxDATA, pin 16 RESET), and the joystick ports J10 and J11. Hosted here: File:Atari 520ST Schematic C070231.pdf.
  3. ↑ "Atari 520ST, 260ST, 520ST+, 520STM, 130ST und ST Junior", atari-computermuseum.de (in German), revised 26 June 2024: the short-case models and their common main board, C070243.
  4. ↑ 4.00 4.01 4.02 4.03 4.04 4.05 4.06 4.07 4.08 4.09 4.10 4.11 4.12 4.13 4.14 SAMS Computerfacts CSCS12: Atari Model 520ST, Howard W. Sams & Co., June 1986, ISBN 0-672-08974-2. Keyboard schematic (printed p. 3, PDF p. 5); keyboard board photographs (pp. 14–15, PDF pp. 16–17); parts list, keyboard (IC1 HD6301V1, IC2 SN74LS244N, CR1–CR15) (p. 22, PDF p. 24); troubleshooting, "Keyboard" (p. 27, PDF p. 29). Internet Archive.