# Sound ## The circuit (DOC: SCH-A7007 sheet 12 "SOUND", drawn 1988-09-09) - **Z80A** (E16) at 4 MHz from its own 4.000 MHz crystal (HC04 oscillator, F17). WAIT and BUSRQ are pulled up (not used). INT comes from the YM3812's IRQ ("TINT"); **NMI** comes from a 74123 one-shot (E14) fired by the 68000's write strobe ("MWRITE") into the command latch. - **27512** program ROM (C16), **6116** RAM (C15). - **Two 74374 latches** (B14, B15): the 68000 writes the command; the second carries a byte back (MAME has two `generic_latch_8`, OBSERVED). - **YM3812** (B16) with its **YM3014** DAC (B17), then a uPC4558 op-amp stage. - **uPD7759** (C18, marked "uPC7759" on the sheet) in **stand-alone mode**: its address outputs go through a 74373 (C17) to a **27301 1 Mbit ROM** (E18), with ALE, AEN, DRQ wired to it; the Z80 drives ST (start), the data byte through a latch, and RESET from a 7474 (E15); BUSY goes back to the Z80 through a pull-up (a status bit, U6). Its clock is its own resonator on X1 (timing.md, C2). - An HA13001 amplifier (A14). Prehistoric Isle: the same parts in MAME (YM3812, uPD7759 at 640 kHz, Z80 at 4 MHz); no schematic in hand. ## What the cores must offer | Chip | Core | Mode and interface this board needs | | --- | --- | --- | | YM3812 | the proposed `ym3812-python` ([snk-python sound.md](../../snk-python/docs/sound.md), its open decision 1) | address/data write, status read, the timer IRQ, samples at clock / 72 = 55.56 kHz | | uPD7759 | the proposed `upd7759-python` (system16-python's and pico-python's open decision 3) | **stand-alone mode** (the chip fetches its own ROM through ALE/AEN, plays the phrase the Z80 selects with ST), BUSY out, RESET in. System 16B runs it in slave mode (bytes pushed by the Z80 on /DRQ), and pico-python's 315-5641 behind a FIFO. All three are one decoder with two front ends | **The uPD7759 core now has four family consumers**: system16-python (16B, slave mode), pico-python (315-5641, if it is a uPD7759 relative), konami68k-python (`upd7759.py` in its brief) and snk68-python (stand-alone mode). The chip rule is met; the decoder's evidence gap (no tier 1-3 description of the ADPCM decoder: system16-python's U11) is the same for all. NEC's documents are pinned here as DS7759 (`upd7759.pdf`, the same SHA-256 as pico's and system16's) and DS775X. ## Not here No YM2203, no MSM5205 (MAME listxml, all 22 sets). The `powbl` bootleg replaces the uPD7759 with an OKI MSM6295 (msm6295-python exists); bootlegs are later rows.