# Sound: the MB8884, its DAC, and the discrete circuits ## Parts (DKM CPU board list; DOC) **MB8884** (Fujitsu's 8035-type microcontroller, romless; MAME treats it as an 8035: mcs48-python README) on a **6.000 MHz** crystal, a **DAC08CQ** 8-bit DAC, an **NE556** dual timer, an **MB3614** quad op-amp, a **CD4049UB**, transistors, and the passive parts listed by value. The common description "an i8035" names the role, not the part: the board's list says MB8884, and MAME agrees (`soundcpu` "Fujitsu MB8884 @ 6.00 MHz"). ## How the main CPU drives it (MAME-derived, via mcs48-python's `docs/mame-oracle.md`; tier 5 lineage, to be checked against DKS's sound sheet: U10) | MB8884 side | Connected to | | --- | --- | | program memory | its own ROM region, 0x000-0xFFF (EA high: external program memory) | | `MOVX` reads | the upper half of that ROM, 0x800-0xFFF, selected by P2.6 and banked 256 bytes at a time by P2.2-P2.0: sample and tune data | | P1 out | the DAC08 | | P2 out | bit 7 external decay, bit 6 ROM select, bits 2-0 bank | | P2 in | bit 5: "Mario is jumping", active low | | BUS in | the tune number the Z80 wrote to 7C00 | | T0, T1 in | which jump sound; "the gorilla is falling" (active low) | | INT | the Z80's write to 7D80, a level (unused by the program, per mcs48-python's trace) | The rest of the 74LS259 at 7D00-7D07 fires discrete circuits directly (walking, jumping, the stomp; the bit-to-sound table is to be read from DKS: U11). ## The sound strategy - **The MB8884 and the DAC** are exact digital models: the core (mcs48-python) runs the player's sound ROM; the board turns P1 writes into DAC levels with their cycle times, and the analog stage after the DAC (filter, external decay on P2.7) is a small circuit model from the schematic. - **The discrete sounds** (walk, jump, stomp) follow the same plan as invaders-python: our own circuit model from DKS's values, at M5, under "sound good enough". MAME 0.285 models them with its discrete system (`-listdevices dkong`: `discrete`; no netlist); `nintendo/dkong_a.cpp` is BSD-3-Clause (Couriersud), closed under tonight's rule. - **Samples:** none needed by MAME 0.285 for any of the 48 machines (census). The FinalBurn Neo samples folder in the source mirror has `dkong.zip` (5 WAVs: dkstomp, jump, run01-03; SHA-1 `764ec667084bc237c1de6bd1db7541ad8cb59975`), `dkongjr.zip` (12 WAVs; `2725373cc8e6e3c04bca4bf7bd0b027be6bec058`) and `radarscp.zip` (4 WAVs; `8b02b47a0784c43b59f92473f395bf711e2c1091`): recordings of unknown origin and licence, hashed only, never used or shipped. ## Rows - **Radar Scope TRS01** adds a Mitsubishi **M58817** speech chip with an M58819 serial ROM (MAME: `tms` "M58817 @ 640.00 kHz", `m58819`): a TMS5100-family LPC synthesiser; a new chip for one row (U12). TRS02 has no speech. - **Donkey Kong Junior**: the same sound board design with its own discrete circuits. - **Donkey Kong 3**: no MB8884; two Ricoh 2A03s (DK3M: "PC2A03 Microprocessor" at 4M and 5J; MAME: two `RP2A03` with `nesapu` at 1.78 MHz), each running its own sound program ([rows.md](rows.md)). - **Jammin'** (a prototype in the same driver): a YM2151 instead (census); ym2151-python exists in the family.