# The STIC: AY-3-8900 (PAL), AY-3-8900-1 (NTSC) The Standard Television Interface Circuit draws the picture and is the machine's only time base and only interrupt source. It stays **inside this board** (the chip rule; second users below). Sources: **[gi80]** the GI data sheet, catalogue 1980 pages 5-10 to 5-12 (tier 2; PDF pages 191-193. The timing diagrams on 5-12 do not survive OCR: read the page image, `pdftoppm -f 193 -l 193 -r 110 -png`, as was done here); **[jz-stic]** jzIntv `doc/programming/stic.txt` and its collision notes, a text file in the source tree (tier 3: a programmer's model checked against consoles by its author); **[jz-src]** jzIntv's GPL source, read in Phase 0 before the 2026-11-14 rule (tier 5): every [jz-src] value is HYPOTHESIS (for review); the source is not fetched since 2026-11-24 (Aubrey); **[wiki]** Intellivision Wiki *STIC* (tier 3); **[mame]** `src/mame/mattel/stic.cpp` (tier 5); **[hw26]** `openFPGA-Intellivision` `docs/HW_TESTS.md`, `TIMING_FIT.md` (console-measured, tier 3) and `docs/STIC_NOTES.md` (its source table T1-T12, D6-D18: a careful tier-5 survey, cited where it adds a fact). ## Variants (machine-table rows, as data) | Part | Standard | Clock | Object field | Notes | | --- | --- | --- | --- | --- | | AY-3-8900-1 | NTSC | 3.579545 MHz | 167 x 105 | the reference; 262 lines, 57 microcycles each | | AY-3-8900 | CCIR (PAL) | 4.000 MHz | 168 x 104 | line and frame counts **not documented**; jzIntv's are guesses (U1) | | SECAM | | 4 MHz? | | **no GI part found**: the data sheet lists two parts. The wiki's PSG page groups "PAL/SECAM" at 4 MHz; nothing in hand says what a SECAM console's STIC or colour encoder is (U2) | | "STIC1A" (AY-3-8900-1A?) | NTSC | | 160 x 192 shown, no 64-card limit in FGBG, register `$22` reads `$3FF7`, no extra BUSRQ | INTV88 / TutorVision, from [jz-src] only (tier 5). Out of scope; a row for later | 159 x 96 of the object field is displayed: 20 x 12 cards of 8 x 8, the 20th column 7 wide [gi80]. ## Pins that matter to the board [gi80 5-10] - `SR1`: once per frame; "STIC time is complete and the STIC has switched to CPU controlled mode". Goes out on the cartridge connector and comes back as the CPU's INTRM (a pair looped through the cartridge: [bus.md](bus.md)). - `SR2`: 13 or 14 times per frame "depending on picture offset"; taken low to request the first line of a new row of 20 cards. Out to the cartridge, back as BUSRQ (looped, as SR1). - `SR3`: pulsed once per card position; with SR2, reads card descriptors from the System RAM; alone, for the following 15 lines, replays them from the RAM's line buffer. Also issued in CPU-controlled mode in response to BAR, ADAR or DW "to enable an external device onto the 14 bit bus". - `BAR'`, `DTB'`, `DWS'`: the graphics bus strobes, used for the STIC's own pattern fetches and, in CPU-controlled mode, on the CPU's behalf. - `BC1`, `BC2`, `BDIR` in: "only validated if the STIC is in the CPU controlled mode". - `SD0-SD13`: the 14-bit bus. `V1-V5` + sync to the AY-3-8915 colour processor: a 4-bit colour and a blanking/burst code per pixel. `MSYNC` out resets the machine; `RSTIN` in. - `phi1`, `phi2` **out**: the STIC divides the crystal and clocks the CPU (pins "01", "02" in the pin list; the diagram "AY-3-8900-1 CPU control timing" is drawn against "phi1 output"). A control code lasts four numbered time slots. What the diagram on 5-12 shows (read from the image): one SR1 pulse per frame; after it "CPU time", then "graphic time" filled by a train of **13 evenly spaced SR2 pulses** in each of the two frames drawn (counted on a 300 dpi crop); in the expansion SR2 is low only across the 20 SR3 pulses of "line 1" of a row and high for lines 2 to 16, each of which has its own burst of SR3 pulses. The drawing is schematic: it does **not** show the short first bus request that jzIntv's source models, nor a 14th pulse ([bus.md](bus.md)); GI's text says "thirteen or fourteen". Whether the first of the 13 is the short mode-switch request or row 0's fetch is not decidable from the sheet. The console says 13 = one frame request (3,792-3,891) + 12 row requests, with no extra row request at vertical delay 0 ([hw26] TIMING_FIT F; [bus.md](bus.md)); the cause of GI's "fourteen" is unknown (handoff U12). "Fifteen following lines" is GI counting STIC lines: 16 per card row, two per card pixel row; a MOB at full vertical resolution uses single lines. The board's vertical unit is therefore the **scan line (192 active)**, not the card pixel (96). ## Registers (`$0000-$003F`, 14 bits; visible only in the window: [bus.md](bus.md)) Bit assignments from [jz-stic] and [wiki] (not re-checked against MAME's decode in `stic.cpp`). | Address | Register | Bits | | --- | --- | --- | | `$00-$07` | MOB X | 0-7 X (0 = off screen and no interaction), 8 INTR (interacts), 9 VISB, 10 XSIZE (double width) | | `$08-$0F` | MOB Y | 0-6 Y, 7 YRES (16 rows from two cards), 8 YSIZ2, 9 YSIZ4, 10 XFLIP, 11 YFLIP | | `$10-$17` | MOB A | 0-2 colour bits 0-2, 3-10 card number, 11 GRAM/GROM, 12 colour bit 3, 13 PRIO (behind background) | | `$18-$1F` | MOB C | 0-7 collided with MOB n, 8 with background, 9 with border; sticky; own bit always 0 | | `$20` | display enable | a strobe: an access during the frame's register window enables the picture that follows it; a later access does nothing ([hw26] `hw_frame2`) | | `$21` | mode | a strobe: **write = Foreground/Background, read = Color Stack** | | `$28-$2B` | colour stack 0-3 | 4 bits | | `$2C` | border colour | 4 bits | | `$30` | horizontal delay | 3 bits (0-7 pixels right) | | `$31` | vertical delay | 3 bits (0-7 card pixel rows down) | | `$32` | border extension | bit 0 left 8 columns, bit 1 top 8 rows | Read-back: bits a register does not implement read as **1** up to bit 13 [jz-src masks: X `$3800`, Y `$3000`, C `$3C00`, colours `$3FF0`, strobes `$3FFF`]; the console confirms it for one register: `$2C` holding colour 1 reads `$3FF1` while the window is open ([hw26] `hw_frame2`). **A read while the window is closed returns `$0000`** on the console (MAME returns the address offset). Bits 14-15 on a CPU read are not on the STIC's bus; what the System RAM returns for them is unknown (U4). `$40-$7F` reads GRAM [jz-src]. Aliases at `$4000`, `$8000`, `$C000` (+ `$00-$3F`) reach the STIC for writes and for the read strobes, but return no data to the CPU ([memory-map.md](memory-map.md)). MOB size table (YRES, YSIZ4, YSIZ2): rows shown are 8 or 16 half-lines doubled 1, 2, 4 or 8 times; at (0,0,0) a MOB is 8 scan lines tall, half a card [jz-stic]. ## Background BACKTAB is `$0200-$02EF` in the System RAM, 240 words, raster order, 14 bits seen by the STIC (bits 14-15 are free for the program). **Color Stack mode** (word): 0-2 foreground bits 0-2; 3-10 card; 11 GRAM; 12 foreground bit 3 (GRAM cards only); 13 advance the colour stack *before* drawing this card. GRAM card numbers use 6 bits; bits 9-10 are free. The stack pointer resets to 0 at the top of the frame and wraps after 3. **Colored Squares** (a Color Stack word with bit 12 = 1, bit 11 = 0): four 4 x 4 quadrants, colours in bits 0-2, 3-5, 6-8, and 9-10 + 13; colour 7 shows the current colour-stack colour and counts as "off" for collisions; the stack never advances on such a card [wiki]. **Foreground/Background mode** (word): 0-2 foreground; 3-8 card (**only 64**, from GROM or GRAM, and the limit applies to MOBs too); 11 GRAM; background colour in bits 9, 10, 12, 13 (= bits 0, 1, 3, 2). Colours: 0 black, 1 blue, 2 red, 3 tan, 4 dark green, 5 green, 6 yellow, 7 white, 8 grey, 9 cyan, 10 orange, 11 brown, 12 pink, 13 light blue, 14 yellow-green, 15 purple. **Compare pictures at the 4-bit colour number, never at RGB**: the AY-3-8915 is analogue and every emulator has its own palette (MAME's is in `intv.cpp`, jzIntv's in `doc/color/`). ## MOBs, priority, collisions MOB 0 is in front of MOB 1 and so on; PRIO puts a MOB behind *set* background pixels only. Collision rules as recorded in `collision_notes.txt` [jz-src, tier 3 by provenance, unverified here]: - MOB to border: against a 1-pixel frame round the visible area (1 half-line thick at top and bottom), with the delays and border extension taken into account. - MOB to MOB: inside the visible area plus that frame; both must have INTR; invisible MOBs still collide. - MOB to background: visible area plus one column to the right; not in the bottom edge. - A MOB with X = 0 collides with nothing. Collision bits are set during active picture and read by the CPU "on completion of the current frame" [gi80]; writing them is allowed (the program clears them). ## What is not known The STIC's **internal** schedule: at which pixel of which line it fetches a MOB's pattern, when it samples its registers and the delays, when exactly a collision bit becomes visible. GI's sheet gives only the SR1/SR2/SR3 relationship and a bus timing diagram. No die photograph or netlist of the AY-3-8900 was found ([validation.md](validation.md)). Every emulator renders a frame or a row at a time. The board should render per scan line with the row fetch at the measured BUSRQ microcycle and treat anything finer as **provisional, tier 5**. Two open points [hw26] lists with a proposed console test: whether a border colour write shows at once (pixel by pixel) or from the next frame (D17: MAME latches it per frame), and what colour a frame with the display disabled shows (D7: MAME and [hw26] the border colour, jzIntv "blank"). Neither has a console result yet (U13). ## Other users of the chip (the chip rule) GI sold the STIC as part of the GIMINI 8900 set [gi80 5-9]. In MAME 0.285 the `stic` device is used by six machines, all Intellivisions: `intv`, `intv2`, `intvsrs`, `intvoice`, `intvecs`, `intvkbd` (`mame -listxml`, checked 2026-11-12). The INTV Funhouse FAQ (sections 3.1-3.7, read 2026-11-11, not pinned) lists the other badges, all "identical to the original" or a cost-reduced Mattel design: Sears Super Video Arcade, Radio Shack Tandyvision One, GTE Sylvania Intellivision, Intellivision II, INTV System III. (A Bandai unit for Japan is often mentioned; no source in hand covers it.) The Keyboard Component carries the console inside it and genlocks its own video to the STIC through CBLNK (out of scope). The Unisonic Champion 2711 pairs the CP1610 with a *different* GI video chip (MAME `unichamp`). **No second consumer: the STIC stays in the board**, as an instance-based package so that an INTV88 row can be added.