# Disc controllers: the Intel 8271 and the WD1770 Citations as in [start-here.md](start-here.md); FDC8271 = Intel's 8271 data sheet (pinned TIFF scans, OCR in `reference/text/ocr/8271_*.txt`); WD86 = Western Digital's 1986 Storage Management Products Handbook (pinned; holds the WD1770/1772 data sheet); WDN = a community note on the WD1770 as used on the BBC (pinned, no licence: facts only). ## Which machine has which | Row | Controller | Where | Source | | --- | --- | --- | --- | | Model B (disc upgrade) | Intel 8271, FM only, with Acorn DFS 0.90-1.20 | &FE80-&FE9F; NMI for data | DOC: SM 3.10; AUG 25.1 | | Model B+ | **8271 or 1770** (two build options on one PCB) | 8271: &FE80-&FE83 registers, &FE84-&FE87 DACK data; 1770: a write-only control latch at &FE80-&FE83, the 1770's registers at &FE84-&FE87 | DOC: SMBP 5.5.1, 5.5.2 | | Master 128 | WD1770 (or 1772) | to read from MRM/MSM (U9) | DOC: MRM "the WD1770 series disc controllers", "some machines are fitted with the WD1772" | | Model B with a third-party 1770 board | Acorn's 1770 upgrade, Opus, Watford, Solidisk ... | various | MAME's `bbc_*` FDC device sets ([census.md](census.md)): later sockets, not rows | Both controllers interrupt by **NMI** for each data byte; the 8271's DACK-addressed data register (&FE84) is read in the NMI routine (DOC: SMBP 5.5.1). The 1770's control latch holds drive select, side, density (FM/MFM) and reset (DOC: SMBP 5.5.2). ## Modelling level **Transaction level** against a timed drive model: the controller sees bytes, address marks, sector IDs, CRCs, index pulses and step times from a disc image laid out as tracks (FM at 125 kbit/s on a 300 rpm 5.25" drive: 3,125 bytes a track: DOC to be cited from FDC8271/WD86 when written). Not flux level until a protected disc needs it (b2's test volume has a "1770 TESTS" drive with one test and its real-hardware output, `O.` on drive 3, and Kevin Edwards's protected-loader tests on drive 2, which were not kept: commercial software). The 8271 is an intelligent controller with internal command processing and timing (seek, settle, head load); its command set and result codes are in FDC8271; its **internal timing (command overhead, the step and settle counters' resolution) is U11**. The 1770's command timing is better documented (WD86's timing tables), its step rates selectable, its motor-on and spin-up logic internal. ## Disc images `.ssd`/`.dsd` (sector dumps, single- or double-sided, Acorn DFS layout: 10 sectors of 256 bytes a track, 40 or 80 tracks) for unprotected discs; `.hfe`/`.scp`/`.fsd` for track- or flux-level dumps. The board starts with SSD/DSD (a sector source), with HFE as the first track-level format when protection matters. **No BBC disc images are on the mirror** ([census.md](census.md)): the smoke list will need the player's own or freely distributable discs. ## Chip rule | Chip | Other family users | Proposal | | --- | --- | --- | | Intel 8271 | none known in the family (BBC Micro only among planned boards) | board | | WD1770/1772 (WD177x, close kin of the FD179x) | Atari ST, Electron Plus 3, Archimedes, Sam Coupé (none a family board yet); the FD1793 in the Spectrum's Beta Disk and the TRS-80. (The Amiga uses Paula and the Amstrad CPC a uPD765: not users.) | board now; extract `wd177x-python` (with an FD179x row) when a second family board needs it (atari-st, zxspectrum-python's Beta Disk): open decision 7 | ## Judges | Behaviour | Judge | Tier | | --- | --- | --- | | 8271 commands, results, registers | FDC8271 | 2 | | WD1770 commands, status, timing | WD86 | 2 | | the BBC's wiring (addresses, NMI, control latch) | SMBP 5.5, AUG 25, MRM | 2 | | a 1770 behaviour seen on a real BBC | b2 drive 3 (`O.` output from a real machine) | 1 | | DFS behaviour end to end | the player's DFS ROM running (firmware is the program, not the judge) | - | | everything else | MAME (5) | detector |