Atari 520ST MIDI Port Repair

The Atari 520ST has MIDI built in: a second MC6850 ACIA, U20, runs the 31.25 kbaud current loop, with MIDI IN on J7 and MIDI OUT on J8. The output passes through two inverters to the socket; the input is isolated by a PC-900 opto-coupler, U39; and the MIDI OUT socket also carries a THRU copy of the input on its spare pins.[1][2] The 260ST, 520ST+ and 520STM have the same circuit on the same short-case board.[3]
Atari's checklist for MIDI faults names the opto-isolator, the 6850 and the inverter; Howard W. Sams's service data gives a test for each direction.[2][4]
Symptoms
[edit | edit source]- Instruments connected to MIDI OUT receive nothing.[4]
- The computer does not respond to a keyboard or other device on MIDI IN.[4]
- MIDI IN works but nothing comes out of the THRU contacts on MIDI OUT.[4]
- Diagnostic cartridge errors: M0, no data received through the loop-back cable; M1, data mismatch (replace the 6850); M2 and M3, framing and parity errors from a bad 6850 or a noisy driver or receiver.[2]
Try another MIDI cable and device before opening the computer.
Tools and parts
[edit | edit source]- An oscilloscope or logic probe.
- A TTL function generator for the input test, set to a 5 V, 5 kHz square wave.[4]
- ST BASIC, for the output test.[4]
- Atari's diagnostic cartridge and MIDI loop-back cable, if available.[2]
- Parts from the schematic: MC6850 (U20), 74LS04 (U35), 74LS05 (U36), PC-900 opto-coupler (U39), 1N914 (CR7), 220 Ω resistors (R76–R80) and 4.7 kΩ (R81).[1]

| Path | From | Through | To |
|---|---|---|---|
| MIDI OUT | U20 transmit data (pin 6) | U35 pins 1→2, U36 pins 5→6, R79 220 Ω | J8 pin 5; pin 4 to +5 V through R78 220 Ω |
| MIDI IN | J7 pin 4 (+) and pin 5 | R76 220 Ω, U39 LED (pins 1 and 2), CR7 across it | U39 output, pulled up by R81 4.7 kΩ, to U20 receive data (pin 2) |
| MIDI THRU | U39 output | U35 pins 3→4, U36 pins 9→8, R80 220 Ω | J8 pin 3; pin 1 to +5 V through R77 220 Ω |
Sources: the schematic,[1] with the ACIA pin numbers from SAMS.[4]
Procedure
[edit | edit source]Open the machine
[edit | edit source]Atari's sequence for the short case:[2]
- Unplug the supply. Turn the computer over and remove the six screws from the bottom case.
- Turn it upright, lift off the top case and unplug the keyboard at the right front of the board.
- Remove the three screws at the front edge of the board and the three at the rear, reached through holes in the shield, and lift the board assembly out.
- Straighten the ten twist tabs and lift off the top shield. Reconnect the keyboard, supply and monitor to work on the board.
MIDI OUT
[edit | edit source]- Load ST BASIC and run SAMS's line, which sends data to the MIDI port continuously:[4]
10 OUT 3,100: GOTO 10
- Check for pulses at J8 pin 5. If they are there, check the socket's joints and the cable.[4]
- If not, check for pulses at U36 pin 5. If they are present there, U36 is faulty.[4]
- If they are missing at U36 pin 5, check U20 pin 6. Pulses at U20 pin 6 point at U35; none there point at U20.[4]
- Check R79 and R78 with the power off.[1]
MIDI IN
[edit | edit source]- Connect the function generator's TTL output, 5 V at 5 kHz, to J7: the high side to pin 4 and the low side to pin 5.[4]
- Check for pulses at U39 pin 1. If they are missing, check R76, CR7 and the socket J7.[4]
- If they are present, check U20 pin 2. Pulses missing there point at the opto-coupler U39; pulses present there point at U20.[4]
MIDI THRU
[edit | edit source]- With the input signal still applied and reaching U20 pin 2, check for it at J8 pin 3.[4]
- If it is missing, check U35 pin 4. Missing there points at U35; present there points at U36.[4]
Reassemble
[edit | edit source]Refit the top shield and its tabs, the board and its six screws, the keyboard and the top case, with the longer case screws at the rear.[2]
Testing
[edit | edit source]- Connect a MIDI OUT to MIDI IN cable and run the diagnostic cartridge's MIDI test, which sends data out, reads it back and checks the 6850's interrupt through the MFP.[2]
- Play a MIDI keyboard into the ST with a sequencer, and play back to an instrument.
Related pages
[edit | edit source]- Atari 520ST, Atari 260ST, Atari 520ST+ and Atari 520STM
- Atari 520ST RS-232 Port Repair
- Atari ST Troubleshooting Guide
- Atari 520ST Schematic (C070231)
References
[edit | edit source]- ↑ 1.0 1.1 1.2 1.3 Atari (Japan) Corporation, Schematic Diagram (520ST/260ST), drawing C070231, revision M (April 1986), sheet 1: the ACIA U20, U35 (74LS04), U36 (74LS05), the opto-coupler U39 (PC-900), R76–R81, CR7, C59 and the sockets J7 and J8. Hosted here: File:Atari 520ST Schematic C070231.pdf.
- ↑ 2.0 2.1 2.2 2.3 2.4 2.5 2.6 Atari Corporation, 520ST/1040ST Computer Field Service Manual, C026118-002 Rev B (3.6), January 1987. MIDI interface description, 31.25 kbaud current loop and MIDI OUT carrying MIDI THRU (PDF p. 19); MIDI test and error codes M0–M3 (printed p. 3.9, PDF p. 35); symptom checklist, MIDI (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.
- ↑ "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.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 4.15 SAMS Computerfacts CSCS12: Atari Model 520ST, Howard W. Sams & Co., June 1986, ISBN 0-672-08974-2. Troubleshooting, "MIDI ports": the output test program and the input test with a function generator (printed p. 28, PDF p. 30). Internet Archive.