# Start here: the ZX Spectrum family on one page Evidence tags as in the family methodology (MEASURED, DIE, TEST ROM, DOC, OBSERVED, FITTED, HYPOTHESIS). Short names for the sources, all pinned in `scripts/`: - **FAQ48 / FAQ128**: the comp.sys.sinclair FAQ's "16K/48K" and "128K" reference pages (World of Spectrum; `$Id` 2004, contention sections revised to version 1.1.5 with Jonathan Needle). Tier 3, facts only. - **Wiki**: the Sinclair Wiki (sinclair.wiki.zxnet.co.uk, CC BY-SA 4.0), pages fetched 2026-11-26. Tier 3, facts only (share-alike: no text is copied). - **+3 manual**: Amstrad's *ZX Spectrum +3* manual, chapter 8, parts 24, 27 and 30, as WoS transcribes it. Tier 2. - **Die**: emu-russia/ula, the CC0 transistor netlist of the ULA 6C001 (`65defe9`). Tier 1 for structure. - **Tests**: the ZX Spectrum test collection (catalogue: redcode/ZXSpectrum wiki, `e755b3e`), whose pages link photographs and videos of runs on named real machines. ## The machines (DOC: FAQ48, FAQ128, Wiki, +3 manual) | Model | Years | CPU clock | Video/timing chip | T-states/line x lines | Frame (T) | ROM | RAM | Sound | Storage | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | | 16K / 48K (Issue 1-6A), 48K+ | 1982-85 | 3.5000 MHz | Ferranti ULA (5C112E, 6C001E-6/-7 on the collection's tested units) | 224 x 312 | 69,888 | 16 KB | 16 or 48 KB | beeper | tape | | 128K ("toastrack"), +2 (grey) | 1985-87 | 3.54690 MHz | Ferranti ULA 7K010 (128K); Amstrad 40056 (+2) | 228 x 311 | 70,908 | 32 KB | 128 KB | beeper + AY-3-8912 | tape (+2 built in) | | +2A/+2B, +3/+3B (black) | 1987-90 | 3.54690 MHz | Amstrad gate array 40077 | 228 x 311 | 70,908 | 64 KB | 128 KB | beeper + AY-3-8912 | +3: 3" disc (uPD765A); +2A: tape | The 5C112E, 6C001E and 7K010E5 part numbers appear on real units in the collection's hardware-result pages; 40056 (grey +2) and 40077 (+2A/+3) are the commonly reported Amstrad part numbers and are **not yet cross-checked** against a service manual (U1 in the handoff brief). Clones (Timex, Pentagon, Scorpion, Investronica's Inves) are out of scope. ## What the board is (all models) - **Z80A** (NMOS, Zilog or second sources such as SGS, GSS, NEC; a few late machines carry CMOS parts, which the collection's tests tell apart): **z80-python**. - **ULA / gate array**: video (256 x 192 pixels, 32 x 24 attribute cells, border), the memory arbitration that stalls the Z80 (contention), port FE (keyboard, EAR in, border, MIC and speaker out), the /INT pulse once a frame. One chip per model family, always inside this board (chip rule: no other family board uses it). - **Memory**: 16 KB ROM, then RAM. On the 48K the lower 16 KB of RAM (4000-7FFF) is the ULA's ("contended"); the upper 32 KB is the CPU's alone. The 128K pages 16 KB banks. - **AY-3-8912** at FFFD/BFFD on the 128K models: **ay8910-python** (`AY8912`), clocked at half the CPU clock, 1.7734 MHz (+3 manual part 30: "1.7734MHz (to 0.01%)"). - **uPD765A** FDC on the +3 at 2FFD (status) and 3FFD (data): see fdc-upd765.md. ## Memory maps and ports (DOC: FAQ48, FAQ128, Wiki, +3 manual part 24) ``` 48K: 0000-3FFF ROM | 4000-7FFF RAM, contended, screen 4000-57FF + attributes 5800-5AFF | 8000-FFFF RAM (16K model: 8000-FFFF unattached: floating bus) 128K/+2: 0000 ROM 0/1 | 4000 bank 5 | 8000 bank 2 | C000 bank 0-7 (7FFD bits 0-2) +2A/+3: as 128K with ROM 0-3 (7FFD bit 4 low, 1FFD bit 2 high), or one of four all-RAM "special" maps (1FFD bit 0 = 1, bits 1-2 choose): {0,1,2,3} {4,5,6,7} {4,5,6,3} {4,7,6,3} ``` | Port (decode) | Models | Direction | Bits | | --- | --- | --- | --- | | FE (any even port: A0 = 0) | all | out | 0-2 border, 3 MIC (active low), 4 EAR/speaker | | FE (A0 = 0; A8-A15 select keyboard half-rows, active low) | all | in | 0-4 keys (0 = pressed), 6 EAR in, 5 and 7 read 1 | | 7FFD (128K/+2: A15 = 0, A1 = 0; +2A/+3: A15 = 0, A14 = 1, A1 = 0) | 128K+ | out | 0-2 RAM bank at C000, 3 screen (bank 5 / 7), 4 ROM (low bit on +2A/+3), 5 lock until reset | | 1FFD (A15-13 = 000, A12 = 1, A1 = 0) | +2A/+3 | out | 0 special paging, 1-2 special map or (2) ROM high bit, 3 disc motor, 4 printer strobe | | FFFD (A15 = 1, A14 = 1, A1 = 0 by the usual reading) / BFFD | 128K+ | out/in, out | AY register select and read / AY data write | | 2FFD / 3FFD | +3 | in / in-out | uPD765A main status / data register | The AY port decode above is the common reading, **not checked** against a schematic (U2). Reading 7FFD on a 128K crashes the machine (the HAL10H8 does not separate reads from writes; Wiki) while FAQ128 says it returns the floating bus: contradiction C5. ## Timing at a glance (DOC: FAQ48, FAQ128, Wiki; TEST ROM: the collection) - The ULA pulls /INT low once a frame; T-state 0 of a frame is the first with /INT low (the Wiki's floating-bus page numbers from 0; others from 1: C6). - 48K: the first screen byte is fetched around T 14,336 after /INT; contention runs 6,5,4,3,2,1,0,0 from T 14,335 for 128 T of each of 192 lines (224 T apart). 128K/+2: from 14,361, 228 T apart. +2A/+3: a 1,0,7,6,5,4,3,2 pattern from 14,361 (Wiki) or 14,365 (FAQ128): C1. - "Early" and "late" ULA timing: some machines run every event one T-state later; the 2025 explanation ties it to /RFSH and temperature (ula-and-contention.md, C2). - Each line: 128 T of screen, 24 T right border, 48 T blanking, 24 T left border (48K). - FLASH swaps ink and paper every 16 frames. ## Where to read next ula-and-contention.md, floating-bus-and-snow.md, memory-and-models.md, fdc-upd765.md, tape.md, keyboard-border-sound.md, firmware.md, cpu-core.md, domains-and-speed.md, validation.md, census.md, sources.md, then handoff-brief.md.