# The Speech Synthesizer (PHP1500): TMS5220-family LPC chip + TMS6100 speech ROMs (a later row) An add-on that plugs into the console's I/O port (the PEB or other cards plug through it). Sources: **[5220]** TMS5220 Voice Synthesis Processor data manual, preliminary, June 1981 (tier 2, scan, OCR'd); **[6100]** TMS6100 voice synthesis memory manual (tier 2, scan); **[CTD]** A.2-A.3 (the I/O port's SBE, AUDIO IN, ±5 V; the 9000/9400 blocks). Tags as in memory-and-bus.md. ## The chips - **LPC synthesizer.** [5220] §1-5: pitch-excited linear predictive coding, a ten-pole lattice filter, 8 kHz samples, 40 Hz frames (25 ms), eight interpolation steps per frame, all from a 640 kHz internal RC oscillator (divided by 4 into two phases; 20 bit-times per sample, 25 samples per 3.125 ms interpolation interval). A 16-byte FIFO takes speech data from the CPU for **Speak External**; commands Read Byte, Load Address, Read and Branch, Speak, Speak External, Reset, through the command register; status bits TS (talk status), BL (buffer low: FIFO more than half empty), BE (buffer empty) [5220 §5-6]. - **Speech ROMs.** Two 16 KiB voice synthesis memories hold TI's vocabulary; the synthesizer addresses them serially with Load Address nibbles (five Load Address operations for a full address) and reads them with Read Byte or Speak [5220 §6.3; 6100]. - **Which chip?** The caller's brief and common usage say TMS5220. MAME 0.285's `ti99_speech` device instead holds a **CD2501E** (TI's custom-number for a TMS5200-class part) at 640 kHz (`listxml ti99_4a`, OBSERVED), and whtech's archive titles a TMS5220C manual "like 5200 in 99-4 speech". The two parts differ in their coefficient tables and some commands (per MAME's device names only; not read). C4 in the brief; judge: a photograph or a TI document of the PHP1500's board, or the VSM's speech data played through each table and compared with a recording of a real unit (none in hand). ## How the 99/4A reaches it - Reads at 9000-93FF return the status (or a byte from Read Byte); writes at 9400-97FF take commands and FIFO bytes; SBE on the I/O port marks the 9000-97FF block [CTD A.2-A.3]. - The synthesizer is slow: it holds the CPU through READY while it accepts a byte (the [5220] write and read cycle timing figures; how long on the PHP1500 is U23). - Its audio comes back on the I/O port's AUDIO IN and is mixed with the console's sound. ## Speech ROM images (by SHA-1; census.md) | Image | SHA-1 | Size | | --- | --- | --- | | VSM 0 (cd2325a.u2a) | 0ef4f178716b575a1c0c970c56af8a8d97561ffe | 16,384 | | VSM 1 (cd2326a.u2b) | a367242c2c96cebf0e2bf21862f3f6734b2b3020 | 16,384 | ## The chip rule (the second LPC chip next to the SP0256) - The SP0256 (General Instrument, Intellivoice and many home-computer add-ons; intellivision- python docs/addons.md, open decision 3 there) and the TMS5200/5220 are **different chips** that share only the idea of LPC synthesis: different frame formats, coefficient tables, filters, interfaces and makers. There is no shared code to extract between them; each is judged by the chip rule on its own users. - MAME 0.285 (`listxml`, 2026-11-26, OBSERVED) counts the TMS5220 in 54 machines and 9 devices (Acorn BBC and Electron speech, Atari arcade, pinball, Apple II cards, IBM's speech adapter), the TMS5220C in 76 machines (70 Atari), the TMS5200 in 29 (pinball, Zaccaria, Midway). No other board in the family's plans uses one. - So: the speech chip stays inside the speech add-on, behind a pin-shaped class (`Tms5220` with a part row for the CD2501E/TMS5200), and is extracted as `tms5220-python` with history the day a second family board (a BBC Micro, an Atari System 1 or Gauntlet board) needs it. The add-on itself is a separate board repository that pins ti99-python and plugs into its I/O-port socket (the family's add-on shape), not part of the base board: open decision 4 in the brief. - Oracles: no die model or hardware capture known; [5220] (tier 2) for commands, timing and frame format; the coefficient tables are the hard part (not in [5220]'s preliminary edition as far as the OCR shows; MAME's `tms5220.cpp` is BSD-3-Clause but closed here). Look for a published decap or ROM read-out of the tables when the row starts.