# The sound board and the speech module ## Sound board (D-8224-3006 on the Sinistar drawing set, the same board on every first-generation game) Read from SIN-DS PDF page 17 (DOC) and SR-HW: - **IC9 MC6808/MC6802** with a 3.58 MHz crystal: E = 3,579,545 / 4 = 894,886 Hz (MAME 0.285 lists `MC6808 clock="3579545"`, OBSERVED). HALT, MR and IRQ pulled up; **NMI from the diagnostic switch SW1**; IRQ from the PIA. - **IC10 MC6821**: port B (PB0-PB7) takes the sound select lines from the main board; IRQA and IRQB are joined onto the CPU's IRQ; port A drives the DAC. - **IC13 MC1408** 8-bit multiplying DAC on port A, then the amplifier (DOC: SIN-DS bill of materials "IC13 1408 D/A converter"). - One 2 or 4 KB ROM at F000 (SR-HW). Bootleg rows: an MC6802 (defenderom, galwars2) and a 3.12 MHz crystal (nextcent) (OBSERVED). - The main board's ROM-board PIA port B writes the command; the sound board's PIA sees it on port B with a strobe on CB1, which interrupts the 6808 (SR-HW: "These feed to a PIA (at $0400), which interrupts the CPU"). There is **no path back** to the main CPU (DEF-T: the CB2 handshake "is not implemented in DEFENDER"). - The sound CPU computes waveforms in software and writes them to the DAC: the output is a step function of the PIA port A writes. A sample-rate converter belongs to the host. **m6800-python already ran this board** (its rung 4): Robotron's sound ROM on the core, fed 176 commands captured from MAME, gave all 199,423 PIA writes and 199,418 DAC bytes MAME's, within 3 cycles (its README). That host script is a detector here, not code to copy. ## Speech module (Sinistar; PlayBall! prototype) - A ROM extender for four 2 or 4 KB speech ROMs (Sinistar's `3004_speech_ic4..ic7`) and an analog half with the **Harris HC-55516 CVSD** decoder whose output is mixed with the DAC's (SR-HW; SIN-DS: "mixed sound/speech", "speech clock", "speech data" on the sound board's J5). - The 6808 drives the CVSD's data and clock bit by bit through PIA control lines (CA2/CB2 route off the sheet toward the speech connector on SIN-DS p. 17; which line is clock and which data is U14). So the bit rate is whatever the sound program makes it; the HC-55516 is "optimized for a 16K bits/sec data rate and usable from 9K to above 64K bits/sec" (DOC: HC55516 p. 6-2). - The HC-55516 is all-digital inside: "the analog loop filters have been replaced by digital filters", time constants set by the clock: syllabic 4.0 ms, low-pass filter 0.94 ms (55516), step-size ratio 24 dB, minimum step 0.2 %, resolution 0.1 % (DOC: HC55516 pp. 6-2 to 6-4, at 16 kb/s). Decode mode is selected by the Encode/Decode pin; data is sampled on the clock's positive edge; FZ forces the quieting pattern (DOC: HC55516 p. 6-3). - No die netlist exists: Riddle photographed the die (SR-CVSDDIE, CC BY) without analysis. The model is behavioural from the data sheet, with its constants tagged DOC and anything inferred (the exact integer arithmetic of the digital filters) FITTED or HYPOTHESIS, and judged by ear and against MAME's output as a detector (the family's "sound: good enough" rule). - **Chip rule:** within the family only this board (and Joust 2's System 11 background board, second generation) uses the HC-55516; it stays here. ## Two sound boards The Sinistar cockpit sets and Blaster carry a second sound board wired in parallel for stereo (SR-DIFF; OBSERVED: `soundcpu_b`, `rdac`). Both receive the same command; the board instantiates the sound board twice.