# The cassette (Datasette, C2N) Tags as in [memory-map.md](memory-map.md). ## Wiring (PRG p. 176-177 and the connector table p. 282; SCH-E) | Signal | VIC-20 side | | --- | --- | | read | VIA2 CA1 (an edge per pulse) | | write | VIA2 PB3 | | motor | VIA1 CA2 drives a transistor stage (Q3-Q5 on SCH-E) that switches the motor supply | | sense (a key pressed) | VIA1 PA6 | The recording format (pulse lengths, the leader, the header and its repeat) is what the KERNAL's tape routines write and read: **the KERNAL itself is the judge** (a program; run, never copied). Cartridge-only No-Intro has no tapes; MAME's `vic1001_cass.xml` lists two. ## Model The tape is a producer of timestamped edges into VIA2 CA1 while the motor runs; it is not a domain worth a thread (domains-and-speed.md). The specification models: motor spin-up (a fitted delay, U14), play/record keys on the sense line, and edges from a pulse list. ## File formats (host side) - `.tap`: raw pulse lengths, the community format used by VICE and MAME; a version byte distinguishes the original 8-cycle units from the version with long pauses. Facts only, from VICE's manual when the tape milestone starts (not pinned tonight). - `.prg` / `.t64`: programs without timing: a host convenience that injects a program into RAM, which is a **concession** if it skips the KERNAL's loader (named, off by default), not part of the specification. ## Unknowns - U14: motor start/stop timing and the read line's filtering (the C2N's own circuit is not in the pinned documents; its operating instructions on funet have no schematic).