# The machine: chips, clocks, memory map, ports Sources: the FVE100 PCB schematic (Fairchild 06-9002-00 rev A, 1977; e5frog's redraw on veswiki, sheets 1 and 2, pinned) = **SCH**; veswiki pages "Port" (rev 724), "VRAM" (577), "Accessing VRAM" (624), "Reading Controllers" (615), "Outputting Sound" (790) = **VW** (tier 3 at best: community knowledge, some of it from real consoles, no licence stated, facts only); MAME 0.285 `-listxml` and the I/O tap in [mame-oracle.md](mame-oracle.md) = **MAME** (OBSERVED, closed box, never a judge); the F8 documents through `../f8-python/docs/`. ## Chips (DOC: SCH sheets 1-2) | Ref | Part | Role | | --- | --- | --- | | C7 | F3850 CPU | ports 0 and 1; INT REQ from the cartridge connector only (J5 pin 5) | | C8-9 | F3851 PSU SL31253 | BIOS 0000h-03FFh; its port A = port 4, port B = port 5 | | C10 | F3851 PSU SL31254 | BIOS 0400h-07FFh; no port lines are drawn from it on SCH (its port addresses are a mask option, not documented: U) | | D7-D10 | 4 x 4096 x 1 DRAM ("4096", MK4027-compatible per VW) | VRAM: ODD0, EVEN0, ODD1, EVEN1 | | E8-E10 | 74153 | VRAM address multiplexers: CPU coordinates (ports 4, 5) or the scan counters | | F6-F10 | 7493 | horizontal and vertical counters (1H..128H, 1V..64V-ish taps) | | B1, C2, D2 | 74195, 9322, 7445 | VRAM shift-out, palette and colour selection, colour decode | | A3 | 74153 | tone selection (sound.md) | | Y1 | 3.58 MHz crystal | colour burst; the clocks derive from it | | J5 | cartridge connector | ROMC0-4, DB0-7, phi, WRITE, INT REQ, +5 V, +12 V, ground | Later units were redesigned around custom chips: the Luxor 1909583 (May 1980) shows an F3850 marked SL31291, F3851s SL31253 and SL31254, a **9111 "video"** chip, a **9102 "audio/buffer"** chip that also takes the controller lines, and four 330470 VRAMs (DOC: Luxor service manual 1909583, pinned). [channelf-ii.md](channelf-ii.md) covers the rows. ## Clocks - CPU phi: **1,789,772 Hz** on NTSC units (MAME; = the 3.579545 MHz crystal / 2, SCH's 3.58 MHz crystal), **2,000,000 Hz** on the PAL clones (MAME `sabavdpl`, `luxorvec`, `itttelma`, `ingtelma`; VW "Accessing VRAM" also speaks of "the 2MHz PAL model"). - Video: MAME draws a 256 x 264 raster at 4,090,908 Hz on NTSC (60.53 Hz) and 256 x 312 at 4,000,000 Hz on PAL (50.08 Hz). These are MAME's numbers; see [video.md](video.md) for why they are not yet facts. ## Memory map (F8 pages: each chip answers its own 1 KB or 2 KB page) | Range | Chip | Source | | --- | --- | --- | | 0000h-03FFh | BIOS PSU 1: SL31253 (first units) or SL90025 (later units, Channel F II) | MAME `-listxml` offsets; SCH | | 0400h-07FFh | BIOS PSU 2: SL31254 | same | | 0800h-... | the cartridge's chips: 2 KB to 6 KB in No-Intro ([census.md](census.md)) | MAME software list; VW | | 2800h-2FFFh | 2 KB RAM on the Schach (SABA Videoplay 20) cartridge and homebrew boards copying it | VW "Schach RAM" (rev 666) | | 3000h | bank latch on the homebrew multi-cart (256 KB EPROM) | VW "Multi-Cart Menu" listing (`EpromLatch: equ $3000`) | There is no RAM in the console other than the CPU's 64-byte scratchpad and the VRAM, which the CPU cannot read (VW "RAM", "VRAM"). An address no chip answers leaves the F8 data bus undriven (`../f8-python/docs/romc-and-the-psus.md`, U4 there). ## Ports (DOC: SCH; VW "Port") Bit values are as the program writes or reads them; the F8 inverts at the pin (a 1 written pulls the pin low), which is why software complements coordinates before writing them (VW "Accessing VRAM": "x-coordinate needs to be inverted before it's stored"). | Port | Chip | Write | Read | | --- | --- | --- | --- | | 0 | CPU | bit 5 ARM WRT (VRAM write strobe); bit 6 enables the controller buffers (both controllers' data onto ports 1 and 4) | bits 0-3: TIME, MODE, HOLD, START (active low: 0 = pressed) | | 1 | CPU | bits 6-7: the pixel's two colour bits (WRITE DATA0/1 to the VRAM) | right controller: bit 0 right, 1 left, 2 back, 3 forward, 4 counter-clockwise, 5 clockwise, 6 pull, 7 push (active low) | | 4 | SL31253 port A | bits 0-6: VRAM column (written complemented); bit 7 not used for video | left controller, same bit order | | 5 | SL31253 port B | bits 0-5: VRAM row (complemented); bits 6-7: tone select (sound.md) | (not used) | | 6, 7 | SL31253 interrupt control and timer | per the F3851 sheet; no evidence a game uses them (MAME tap: no writes in 4 runs) | timer and interrupt control cannot be read | | 20h, 21h | Hangman-type cartridges (VC-18, Ordtaevling, Rat' Mal) | 1 K x 1 RAM (VW: "2012" sic, 2102 type) | same | | 24h, 25h | Maze (VC-10) | 1 K x 1 RAM (2102) | same | The four console buttons and RESET are on SCH sheet 1 beside port 0 (RESET to the CPU's reset input: to confirm from the CPU pin numbers, U in the brief). What MAME saw (OBSERVED): the BIOS idling at "G?" writes ports 0, 1, 4 and 5 only (15,652 / 7,525 / 7,525 / 1,505 writes in 300 frames); the plotting sequence is `OUTS 1` (colour), `OUTS 4` (column), `OUTS 5` (row), `OUTS 0` with 60h then 50h... (`0 00 40, 0 05 3F, 0 04 85, 0 01 FF, 0 00 60, 0 00 50`), i.e. bit 5 pulsed while bit 6 stays as the program left it.