# The SAA5050 teletext character generator (mode 7) Citations as in [start-here.md](start-here.md); SAA = the Mullard SAA5050-series data sheet (pinned as TIFF scans; OCR text in `reference/text/ocr/SAA5050_*.txt`). ## What the chip does (DOC: SAA) - Input: 7-bit character codes D1-D7 from the page memory, one per 1 us character period; clocks F1 (1 MHz) and TR6 (6 MHz), "amplified and re-synchronised internally". - Each character cell is **6 dots wide and 10 TV lines high**; alphanumerics on a 5 x 9 matrix; 64 graphics characters as 2 x 3 blocks filling the cell, contiguous or separated; 32 control codes (colours, graphics, flash, conceal, double height, hold graphics, box). - **Character rounding**: "a half dot is inserted before or after a whole dot in the presence of a diagonal", using interlace (the CRS input selects the rounding field). - Inputs the BBC drives: DEW (data entry window, i.e. a frame start), LOSE (line output shift enable, the 6845's display enable through the delay), GLR (general line reset, the horizontal sync), CRS (character rounding select: the odd/even field), and the character data (from latch IC15, DOC: SM 3.3). - A 4.3 kbit internal ROM: 96 alphanumerics in a 5 x 9 matrix. ## How the BBC uses it - The 6845 in mode 7 runs 40 characters a line at 1 MHz with 10 scan lines a row in each field of an interlaced frame (R9 = 18 counts 19 lines over two fields: DOC: AUG 18.7 and appendix F), display delay 1 and cursor delay 2 (AUG 18.6), and the Video ULA's bit 1 selects the SAA5050's RGB (AUG 19.1.2). - The 6 MHz dot clock is made on the main board from 8 and 4 MHz with a flip-flop and an XOR (DOC: SM 3.3, figure 8): not exactly periodic. Whether its irregularity shows in the picture is out of scope (the board outputs a pixel grid; a 12 MHz grid of half-dots carries the rounding exactly). - Which scan line within the row the chip outputs, and how it counts lines for double height, come from the chip's own inputs (DEW, GLR, CRS) rather than from RA0-RA4 (DOC: SAA pin list): **the exact rule the BBC's wiring produces (which input drives the chip's line counter, and when it resets) is U4**, to be read from the schematic and the data sheet's timing diagrams before the chip is written. ## The character ROM: firmware or fact? The glyphs live inside the chip. MAME carries a 960-byte dump in its `saa5050` device set (SHA-1 `6c8daba70374e5aa3a6402f24cdc5f8677d58a0f`: [census.md](census.md)). The data sheet also draws every glyph (figs. 11-18), as the maker's artwork. Under the family's rule (never ship makers' firmware or artwork), **open decision 5** recommends treating the glyph ROM as firmware: the player supplies `saa5050` (identified by SHA-1) as they supply the MOS, and the board ships no font. A re-drawn font would be a separate, clearly labelled concession with its own provenance. ## Chip rule Users in or near the family: the BBC Micro; Acorn's teletext adapters; many teletext TV sets; the Philips/Mullard family appears in other micros' teletext add-ons. No second family board needs it now: **stays in the board**, written as a chip class with no BBC names inside, so it can move if one ever does. ## Judges | Behaviour | Judge | Tier | | --- | --- | --- | | control-code semantics, cell geometry, rounding rule | SAA | 2 | | the BBC's wiring of DEW, LOSE, GLR, CRS | SM 3.3, schematics | 2 | | whole pages | b2 `teletest_v1` (Chris Evans's TELETST, Kieran Connell's RED, the engineering test page) with reference images of unknown provenance | 3 at best, once provenance is known; otherwise 5 | | pictures overall | MAME (5) | detector |