# The MCU, the C352, inputs and the keycus ## The sound and input MCU On both boards a 7700-family MCU runs from its own 512 KiB external program ROM (`mcu` region) and shares RAM with the 68020 ($60004000-$6000BFFF on System 22 = the MCU's $4000-$BFFF) (OBSERVED: map). It drives the **C352** (MAME maps a register window at the MCU's $2000-$2FFF; HYPOTHESIS that this is the C352) and reads the cabinet's controls (steering, pedals, guns, bikes) through its ports and A-D converter (DOC: UM37702 lists 8 A-D channels; which inputs are wired where is U9). Core: `m7700-python` ([cpu-cores.md](cpu-cores.md)). System 22's second C74 (`iomcu`, 6.144 MHz) sits on the I/O board; MAME maps only its internal ROM and never lets it leave $C030 (OBSERVED), so whatever it does is not visible (U8). ## The C352 - MAME device `c352`, clock 24.576 MHz, ROM region `c352` (2-8 MiB) (OBSERVED: `-listxml`). - "32 voices, four 16-bit output channels, 8-bit linear or mu-law PCM": Wikipedia, citing MAME's GitHub, and vgmrips (search snippet only; vgmrips.net is set aside for its anti-bot challenge). HYPOTHESIS until the MCU's write stream shows it. - **No document found.** MAME's `sound/c352.cpp` is BSD-3-Clause by its licence line (R. Belmont, superctr); it stays closed until decision 1. - **Chip rule.** MAME users: Namco System 11 (36), System 12 (58), System 22 (40), System 23 (31), NB-1 (20), ND-1 (7), FL (5) and others (MAME `-listxml`: 200 machines). No family board besides this one: it **stays in the board** behind a pin-shaped class; extract `c352-python` when a System 11/12/23 or NB-1 board starts (decision 6). ## The keycus (protection) The task asks for the keycus. MAME's machine descriptions carry no keycus device and no keycus ROM (OBSERVED: `-listxml` devices for all 40 sets), so whatever MAME does for it lives in the driver, which is closed here. The 68020 traces at 20 s show no reads of an unexplained address. The keycus is therefore **U7**: find it by tracing each game's 68020 from reset and listing reads from register windows (`$20000000`, `$20020000`, `$40000000`, `$50000008`, `$58000000` on System 22) whose values steer a branch; record per game what value is expected and when. Functional, FITTED, until better evidence exists. (MAME's BSD driver would answer it quickly: decision 1.) ## Other cabinet hardware Several Super System 22 sets declare extra "speakers" that are really motors and lamps (`tank`, `vibration`, `seat`, `road`: OBSERVED in `-listxml`, Cyber Cycles, Tokyo Wars, Prop Cycle and the racers): outputs a host may show, not part of the core picture or sound.