# Sound (and the optional speech system) Citations as in [start-here.md](start-here.md). ## The SN76489 - The part: "SN76489" in the manuals and parts lists (SM85-1 parts list item 148, IC18; SMBP item 168 "IC SN76489N", IC38) (DOC). MAME calls it "SN76489A" (OBSERVED: device list), a different TI part number; **C5**: the board follows Acorn's parts list. - Clock: **4 MHz**, "frequency = 4000000/32 x 10 bit binary number" (DOC: AUG 23.3.1). - Write path: the CPU puts the byte on the slow data bus (system VIA port A, DDRA all outputs), then pulls the latch's B0 (sound write enable) low "for at least 8 us" and high again (DOC: AUG 23.3). So the chip sees a write when the latch bit falls, through the VIA's port and the latch flip-flop clocked at 1 MHz ([via6522.md](via6522.md)); the time a write lands is a board fact built from those steps, not a CPU-cycle fact. - Output: summed with the speech output and the 1 MHz bus's analogue input by IC17, then low-pass filtered (8 kHz) (DOC: SM 3.8). The filter is a later concern (Aubrey's "sound: good enough" rule): the board outputs the chip's level per sample; a filter, if any, is a named, switchable stage. ## Reuse: sn76489-python Its `SN76489AN` row is the discrete TI part (SG-1000, SC-3000) and its one hardware measurement is a **BBC Micro capture** (Kortink's: periodic noise "1 in 15", the tone divider measured at one value), per its README. That is the BBC's chip family, so: - **No new core.** Pin sn76489-python (main at `1379eff`, 2026-11-24, at Phase 0) and use its `SN76489AN` row clocked at 4 MHz. - **What the board needs from it**: a write entry point the board calls at the time the latch bit falls (it has one: `write`), and `run(clocks)` stepped from the board's timeline at 4 MHz (2 chip clocks per 2 MHz CPU cycle). - **Raise on the core** if the BBC's own documents add evidence: the BBC is where its one capture came from, so a BBC-board sound row later may feed back to the core's claims. Nothing found in this Phase 0 contradicts the core's README. ## Speech (TMS5220 + TMS6100), optional Fitted to few machines; MAME models it ("BBC Micro Voice Synthesis Processor slot", TMS5220 at 640 kHz). The VSP reads its data through the system VIA's slow bus and the latch's B1/B2, with PB6/PB7 its ready and interrupt (DOC: AUG 23.1, 23.6). **Out of scope for rows 1-3**: a socket on the board (`SpeechSocket`), empty by default. A TMS5220 core would be a sound core of its own (other users: TI-99/4A, arcade boards), open decision 9. ## Judges | Behaviour | Judge | Tier | | --- | --- | --- | | the chip | sn76489-python's ladder (TI's manual, Kortink's BBC capture) | 2-1 | | the write path's timing (port, latch, strobe width) | AUG 23.3, SM 3.6/3.8 | 2 | | audio overall | MAME (5) | detector |