BBC Micro Model A/B System VIA and Addressable Latch Replacement

The system VIA of the BBC Micro Model A/B is the 6522 at IC3. Its port A is the slow data bus to the keyboard, the sound generator and the speech chip, and its port B drives IC32, a 74LS259 addressable latch whose outputs enable the keyboard and the sound chip, set the hardware scrolling offset and light the Caps Lock and Shift Lock LEDs.[1][2] When either chip fails the machine typically starts with one beep and a flashing cursor, or with a continuous tone and a keyboard that does nothing.[3] The user VIA, IC69, is a second 6522 used only for the printer and user ports, and is the usual stand-in for testing.[3][4]
Symptoms
[edit | edit source]| Symptom | Part found faulty |
|---|---|
| One beep and a flashing cursor, no double beep | System VIA (IC3)[3] |
| Continuous beep, no keyboard input | System VIA (IC3)[5]; or, with a good VIA, the latch IC32 (74LS259)[3] |
| Machine apparently dead | Port B of the system VIA[5] |
| Multiple characters on screen | System VIA[5] |
| 80-column display at switch-on | Usually the 8271 disc controller holding IRQ low; otherwise port A of the system VIA, or the 6845[5] |
| Only a flashing cursor at top left, IRQ held low | Latch IC32[5] |
| Caps Lock LED does not light | Latch IC32[5] |
The 8271 fault in that list also shows as the BBC logo and a continuous tone with an early DFS fitted; remove the DFS ROM to rule it out before changing VIAs.[5] A completely dead machine has other causes too: work through the checks in the BBC Micro Model A/B Troubleshooting Guide first. If only some keys fail, see BBC Micro Model A/B Keyboard Repair.
Tools and parts
[edit | edit source]- An oscilloscope or logic probe, and a multimeter. See Recommended Tools.
- A known good 6522 for substitution. On a Model B the user VIA, IC69, serves; a Model A has only the system VIA and needs a 6522 from elsewhere.[1][4]
- For a new replacement VIA, WDC makes two 40-pin parts. The W65C22N keeps the open-drain IRQ output of the original NMOS 6522; the W65C22S has a push-pull IRQ output, which WDC says needs a series diode where several devices share one interrupt line.[6] On the BBC Micro the 6502's IRQ line is driven by more than one device: the system VIA interrupts it, and a faulty 8271 disc controller can hold it low on its own.[2][5][7]
- A 74LS259 for IC32.[1]
Procedure
[edit | edit source]Substitute the system VIA
[edit | edit source]- Switch off and unplug the mains lead, remove the four lid screws (two on the rear panel, two underneath) and lift the lid. Remove the keyboard (two or three screws and nuts, then the 17-way and speaker connectors) to reach the board.[8] The keyboard steps are illustrated in BBC Micro Model A/B Keyboard Repair.
- Find IC3, the system VIA, to the left of the 6502A, and IC69, the user VIA, below it.[3]
- Lift IC3 out of its socket and put it aside. Move IC69 into the IC3 socket with pin 1 the same way round.[4][7] See IC Removal and Socketing for lifting a 40-pin chip without bending its legs.
- Switch on. The machine starts without a user VIA, so a normal start with the double beep and a working keyboard condemns the original IC3.[3][4]
- If the symptom changes but does not clear, for example the beep becomes continuous and the keyboard stays dead, the original VIA may still have been faulty, and something else in the same circuit has failed too. Tynemouth Software found exactly this, with a second fault in the latch.[3]
- Fit a good 6522 at IC3 and return IC69 to its own socket (or fit a new one there).
Check the addressable latch IC32
[edit | edit source]
The latch takes its address from PB0 to PB2 of the system VIA (pins 10 to 12) and its data from PB3 (pin 13), and each write is clocked into it by the flip-flop IC31.[2][1][6] Its eight outputs are the eight control bits:
| Bit | 74LS259 pin | Function |
|---|---|---|
| B0 | 4 | Write enable to the sound generator |
| B1 | 5 | Read select on the speech processor |
| B2 | 6 | Write select on the speech processor |
| B3 | 7 | Keyboard write enable |
| B4 | 9 | Hardware scrolling offset, low bit |
| B5 | 10 | Hardware scrolling offset, high bit |
| B6 | 11 | Caps Lock LED |
| B7 | 12 | Shift Lock LED |
A latch that has stopped working explains several symptoms at once: the sound chip is never written, so the start-up tone is not silenced; the keyboard is never enabled; and the screen start address can be wrong.[3][2]
- With a known good VIA at IC3, switch on and watch the latch outputs, pins 4 to 7 and 9 to 12, with a logic probe or oscilloscope. They should change during start-up; Tynemouth Software confirmed this on a working machine. Outputs that never move point to the latch or its inputs.[3][9]
- Check that the select inputs (pins 1 to 3) and data input (pin 13) are active, and that the enable input, pin 14, receives write strobes from IC31. Signals present at the inputs with static outputs condemn IC32.[9][1] Pins 8 and 16 should read 0 V and +5 V.[9]
- Remove IC32 and test it in an IC tester if you have one. The one Tynemouth Software removed failed its test.[3] The general methods are in Logic Chip Testing and Through-Hole Desoldering.
- Fit a 74LS259. Fitting a socket makes the next substitution easier; see IC Removal and Socketing.
Reassemble
[edit | edit source]- Refit the keyboard with its washers and nuts and reconnect the 17-way, speaker and, if fitted, serial ROM connectors.[8]
- Refit the lid, pressing it down at the rear while tightening the two rear screws.[8]
Testing
[edit | edit source]- The machine gives the familiar double beep at switch-on and shows the BASIC prompt.[3]
- Every key works and the Caps Lock and Shift Lock LEDs follow their keys (latch bits B6 and B7).[2]
- Change screen mode and list a long program in each mode so that the screen scrolls; bits B4 and B5 of the latch set the hardware scrolling offset for the mode in use.[2]
- Joystick fire buttons, if a joystick is available, read through PB4 and PB5 of the same VIA.[2]
Model B+
[edit | edit source]The BBC Micro Model B+ has the same arrangement with different numbers: the system VIA is IC20, with the keyboard interrupt on CA2 at pin 39, the 74LS259 latch is IC30, and the user VIA that drives the printer port is IC10.[10]
Related pages
[edit | edit source]- BBC Micro Model A/B
- BBC Micro Model A/B Troubleshooting Guide
- BBC Micro Model A/B Keyboard Repair
- BBC Micro Model A/B Power Supply Repair
- BBC Microcomputer Service Manual October 1985
- BBC Micro Advanced User Guide
References
[edit | edit source]- ↑ 1.0 1.1 1.2 1.3 1.4 Acorn Computers, BBC Microcomputer Service Manual, part no. 0433,001, issue 1, October 1985, Section 1: 2.2 "Hardware description" (two 6522 VIAs, one on the Model A; port A slow bus to the sound and speech chips and the keyboard; port B control lines); 3.1 "Processor + clock circuitry + reset circuitry", the 555 reset timer IC16 and the separate power-up Reset A from C10, R20 and D1 to IC3; 3.6 "Internal VIA", p. 21 (port B drives the addressable latch IC32, which gives the strobes for speech, keyboard and sound and the screen address lines C0 and C1, and drives the Caps Lock and Shift Lock LEDs; writes to the latch are strobed by the flip-flop IC31 from the 1 MHz clock; the section prints the VIA's number as IC9, which is IC3 everywhere else in the manual).
- ↑ 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 Andrew C. Bray, Adrian C. Dickens and Mark A. Holmes, The Advanced User Guide for the BBC Microcomputer, Cambridge Microcomputer Centre, 1983, chapter 23, pp. 417–419: system VIA port A as the slow data bus to the keyboard, sound generator and speech chip; CA1 vertical sync from the 6845; CA2 keyboard interrupt; PB0 to PB2 address and PB3 data for the addressable latch IC32; PB4 and PB5 joystick fire buttons; PB6 and PB7 from the speech processor; CB1 ADC end of conversion; CB2 light pen strobe; latch outputs B0 sound generator write enable, B1 and B2 speech read and write selects, B3 keyboard write enable, B4 and B5 hardware scrolling offset, B6 Caps Lock LED, B7 Shift Lock LED.
- ↑ 3.00 3.01 3.02 3.03 3.04 3.05 3.06 3.07 3.08 3.09 3.10 Dave Curran, "BBC Micro Repair", Tynemouth Software blog, 16 May 2017 (retrieved 2026-10-25). Tape-only issue 7 Model B: a single beep and a flashing cursor, normally a faulty system VIA (the 6522 to the left of the CPU); the user VIA (below the CPU) can be borrowed because the machine boots without it; with a substitute VIA the beep became continuous and the keyboard did not respond, and a known good 6522 gave the same result; the VIA controls internal devices, so when it is not working the boot sound is not cleared, the keyboard does not respond and screen mode problems can occur; all outputs of the 74LS259 were static where they move at boot on a working machine; the 74LS259 failed an IC tester, and replacing it restored the double beep and the keyboard. Community source.
- ↑ 4.0 4.1 4.2 4.3 stardot.org.uk, "Most common BBC IC failures?" (July 2021, retrieved 2026-10-25). 1024MAK: the system or user VIA occasionally fails, hence the common advice to remove the system VIA (IC3) and move the user VIA (IC69) into its place; cmorley, tricky and flynnjs also list 6522 failures. Community source.
- ↑ 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 Paul Martin-Matthews, "BBC Model B Computer Faults/Cures", 8-Bit Software, issue 37 (retrieved 2026-10-25). Faults on issue 2 to 7 boards: 3, apparently dead, port B of IC3 (6522) faulty; 17, logo and continuous tone with DFS 0.90 fitted, a faulty 8271 generating a continuous IRQ, found by removing the DFS ROM; 9, continuous beep with no keyboard input, IC3; 13, monitor displaying multiple characters, IC3; 43, 80-column display at switch-on, usually the 8271 holding IRQ low, otherwise IC3 port A (keyboard) or the 6845; 48, Caps Lock LED not lighting, IC32 (74LS259); 57, only a flashing cursor at the top left, with IRQ low and wrong waveforms around IC32, which was defective. Community source.
- ↑ 6.0 6.1 Western Design Center, W65C22 (W65C22N and W65C22S) Versatile Interface Adapter (VIA) Datasheet (retrieved 2026-10-25): figure 3-1, 40-pin PDIP pinout (VSS 1, PA0 to PA7 pins 2 to 9, PB0 to PB7 pins 10 to 17, CB1 18, CB2 19, VDD 20, IRQB 21, RESB 34, CA2 39, CA1 40); sections 2 and 3.5, IRQB open-drain on the W65C22N and older NMOS and CMOS parts, totem-pole on the W65C22S, which needs a series diode when wire-ORed.
- ↑ 7.0 7.1 Acorn Computers, BBC Microcomputer Service Manual, Section 1, 6.3 "Fault isolation", pp. 39–40: check reset at 6502A pin 40 and IRQ at pin 4; remove the socketed devices not needed for start-up (6850 ACIA IC4, serial processor IC7, ADC IC73 and the user 6522 IC69) and refit them one by one; if the fault remains, substitute the internal VIA IC3, the 6502A IC1, the 6845 IC2 and the video processor; TTL levels.
- ↑ 8.0 8.1 8.2 Acorn Computers, BBC Microcomputer Service Manual, Section 1, 1.4 "Mechanical assembly of case etc", p. 5: lid screws and spire clips; the lid is not to be removed with mains connected; keyboard fixings and connectors.
- ↑ 9.0 9.1 9.2 9.3 Texas Instruments, SN54259, SN54LS259B, SN74259, SN74LS259B 8-Bit Addressable Latches, SDLS086, December 1983, revised March 1988 (retrieved 2026-10-25), p. 1: pin assignments for the N package (S0 to S2 pins 1 to 3, Q0 to Q3 pins 4 to 7, GND 8, Q4 to Q7 pins 9 to 12, D 13, G 14, CLR 15, VCC 16).
- ↑ Acorn Computers, BBC Microcomputer Model B+ Service Manual (BBC Microcomputer Service Manual part no. 0433,001, issue 1, October 1985, Section 2): 5.1, keyboard read through port A of the 6522 IC20; 5.15 "Keyboard", p. 26, interrupt through CA2, pin 39 of IC20; 5.7, printer port driven by the 6522 IC10; parts list item 151, 74LS259 at IC30.