KN7000 Sound Subsystem

The KN7000 is a PCM sample-playback instrument with 128-note polyphony and a full digital effects chain. This page describes the sound hardware as drawn in the service manual and as driven by the firmware: two tone-generator LSIs playing samples from four wave ROMs, a floating-point effects DSP, and the DACs and analog stages that reach the speakers. The dedicated Effects DSP page covers the DSP’s programs in depth.

Addresses are decoded from kn7000_program.rom (mapped at CPU 0x48400000); I/O registers live in the 0x98000000 sound bank. Chip identities are from the service-manual parts list and block diagram; low-level behaviour is from firmware disassembly.

The signal chain

flowchart LR
    CPU["MN103002A CPU
(MN10300)"] subgraph TG["Tone generators"] MTG["IC201 MASTER TG
C1BB00000709"] STG["IC205 SUB TG
C1BB00000709"] end WA["Wave ROMs
IC203 / IC204
(master)"] WB["Wave ROMs
IC207 / IC208
(sub)"] DSP["IC306 effects DSP
ADSP-21065L SHARC"] SD["IC307 / IC308
DSP SDRAM (4 MB)"] DAC["IC311 main DAC"] ANA["Analog: I/V filters,
FAJ board, 5-band EQ,
amps, speakers"] CPU -->|"TGCS regs
0x98040000"| MTG CPU -->|"TGCS2 regs
0x98050000"| STG CPU -->|"host port
0x98000000 / 0x9C000000"| DSP WA --- MTG WB --- STG STG -->|"SUB0-3 serial mix"| MTG MTG <-->|"sends out,
effect returns back"| DSP SD --- DSP MTG -->|"serial: direct mix
+ effect returns"| DAC DAC --> ANA

Read left to right: the CPU writes note and parameter data to the two tone generators; each TG fetches PCM samples from its own private pair of wave ROMs and renders voices; the sub TG mixes its output into the master TG over a four-wire serial link; the master TG sends serial audio to the effects DSP (reverb / chorus / EQ / insert effects) and takes the DSP’s returns back on four serial lines; the master TG mixes its direct sound with those returns into the main stereo DAC, and the analog board applies the final EQ and drives the speakers.

Everything digital sits on the MAIN P.C.B. The audio sample world runs at 44.1 kHz, clocked from a 16.9344 MHz tone-generator crystal (= 384 × 44.1 kHz) and an 11.2896 MHz system clock (= 256 × 44.1 kHz).

Tone generators (IC201, IC205)

Both tone generators are the same custom Panasonic part, C1BB00000709, a 64-voice PCM wavetable LSI. IC201 is the master; IC205 is the sub. Two chips give the instrument’s 128-note polyphony. Both also scan the key bed in hardware (the KS/KF/KB matrix pins), which is why the firmware can read key events from a tone-generator port in parallel with the MIDI input.

Each TG presents a small register-indirect interface on the CPU bus:

Port Master (IC201) Sub (IC205) Meaning
register write 0x98040000 / 0x98040002 0x98050000 / 0x98050002 address half then data half of a 32-bit register write
key/voice event 0x98040004 0x98050004 read a key-bed event (low byte = key index, bit 7 = release; high byte = velocity; 0xFFFF = empty)
wave readback 0x98040006/8/A 0x98050006/8/A page / offset / raw sample data window (used by the service ROM checksum test)

A register access packs a 16-bit address and 16-bit data into the two adjacent ports. At idle the firmware writes a cyclic 0xFC0x “system refresh” pattern; a note-on writes a per-voice sequence (pitch, velocity, key-on strobe, pan, effect sends) very much like the documented KN5000 tone generator, whose register map is the working template for decoding the KN7000’s.

Wave ROMs (IC203, IC204, IC207, IC208)

The PCM samples live in four custom mask ROMs, C3CBQD00000x, 128 Mbit each (≈ 64 MB total). They are wired to the tone generators on private buses and never appear on the CPU bus, so software cannot read them by an ordinary load — except through the wave-ROM readback window (+6/+8/+A above), which the factory WAVE ROM test uses to page through every bank and checksum it. Each TG drives two wave ROMs over two independent 24-bit address ports (AWAX/AWAY on the master, BWAX/BWAY on the sub) so it can fetch a pair of samples per cycle for interpolation.

ROM attaches to address port part
IC203 master (IC201) AWAY C3CBQD000002
IC204 master (IC201) AWAX C3CBQD000001
IC207 sub (IC205) BWAY C3CBQD000004
IC208 sub (IC205) BWAX C3CBQD000003

These four ROMs are not on the firmware-update disks. They were read on the owner’s instrument on 2026-10-19, through the readback window, by the WAVE build of the ROM dumper: two reads, byte-identical, and each chip’s byte sum exactly the one the firmware’s own WAVE ROM test expects. The rhythm data (IC18, or IC20 on earlier units) was read the same month, at CPU 0x40000000. The firmware’s WAVE ROM test labels the pair it reads through the port at 0x98050000 IC203/IC204, and the decoded voices agree that each TG plays the pair behind its own port. That puts the pair the schematic gives the master TG on the port the table above gives the sub TG. Which chip select reaches which TG has not been checked on the schematic yet.

The format (decoded from the dumps, 2026-10-20; byte-exact source since 2026-10-29). Each TG’s two ROMs are the even and odd 16-bit samples of one stream, low byte first. The stream is 16 pages of 1 Mi words, and every page starts with its own directory. A directory entry gives a sample’s start, its format (16-bit, or 8-bit with a per-segment gain code), its loop granule and its pitch exponent; a parameter record per entry lays out its segments and loop. The firmware never sends an address, a loop or a length. It writes a 20-bit select to register plane 0x1C: bits 19:12 name the ROM page, bits 11:0 the directory entry (TgVoiceRouteFieldSet, TgElemNoteOnStd). Pages 0x20 and up are the expansion board’s. The tone generator reads the rest from the ROM. The disassembly now rebuilds all four chips byte for byte from kn7000/src/wave/main.s and sub.s (make -C kn7000 verify-wave, part of make gate-kn7000); the full format, with per-page counts, is on the Wave ROM Format page, which uses the firmware’s MAIN (0x98050000, IC203/IC204) and SUB names. Since 2026-10-30 each of the 3,682 recordings is a WAV file that the build reads back, committed since 2026-10-31 in kn7000/wav/ (Media Files). 1,342 of the KN5000’s 1,413 IC307 waves occur verbatim in IC203 and IC207, the Y chips: IC307 is the Y half of the same kind of pair (Waveform ROM Format).

Wave expansion boards (SY-EW01…04) plug into connectors on the same TG buses (Expansion Bus & Wave-ROM Dump).

Effects DSP (IC306)

IC306 is an Analog Devices ADSP-21065L (“SHARC”, part S21065LKS240), a floating-point DSP running at ~60 MHz with two 16-Mbit SDRAMs (IC307/IC308) for delay memory. It has no boot ROM — the CPU host-boots it over a parallel port (index register 0x98000000, data register 0x9C000000) and streams in the reverb, chorus, multi-effect and equalizer programs. Remarkably, those programs are embedded in the dumped firmware, so the entire effects engine is recoverable without the physical chip. The dedicated Effects DSP page documents the host protocol, the runtime, and every effect algorithm.

DACs, ADCs and the analog path

  • IC311 (C0FBBK000025, “D/A CONVERTER”) — the main stereo DAC, fed serial audio from the master tone generator (its direct sound mixed with the DSP’s effect returns); differential current outputs go to I/V converters and low-pass filters (M5218 op-amps), then to the FAJ analog board.
  • IC310 (PCM69BU) — a second stereo DAC on the SUB-OUT path.
  • IC309 / IC410 (PCM1800E) — stereo ADCs that digitise MIC/LINE inputs (for the DSP’s mic effects) and re-digitise the final mix for the recorder.
  • A CPU-writable latch (IC25, a 74AHC174, at 0x98060000) programs the main DAC’s serial mode port and the headphone / speaker switch line (below).

Sound muting (hardware)

The KN7000 can silence its built-in amplifier from software. The main CPU’s port line P22 (signal PMUT, CPU pin 148; GPIO byte 0x36008004 bit 2) switches the +15 V bias supply of the power-amplifier stages on the ASUB board (+15PM, the MUTE line of connector CN506). The program holds it low from reset until the end of its start-up (BootPanelResetCheck sets it), and pulls it low again when a power failure or system error triggers the NMI.

A second line, SPSW, opens or closes the FET switches between the mixed sound and the headphone and speaker stages on the FAJ board. It comes from the six-bit latch at 0x98060000 (IC25), which also carries the USB-MIDI wait line, the SD board’s mode line (SDMODE), and the serial mode port of the main D/A converter IC311 (ML / MC / MDI). SPSW follows the M3 message id 0x600009 (AudioOutSwitchM3Handler), which the code only ever sends as 1. The program writes the converter’s two mode words once at start-up (DacModeInit: 0x1220, 0x1380, each shifted in by DacModeWordWrite) and never again. The disassembly’s constant for the latch, SD_POWER_CTRL, and the SdPowerCtrl* routines that write it keep the names of an earlier reading, which took bit 2’s SD use for an SD power controller; the bits are named after the service manual’s schematic (MAIN 1/5).

None of the lines that can mute (PMUT, SPSW, the D/A converter’s mode) moves on the SD-card screens: statically no code path does it, and in MAME (programs 941 and 893; observed in emulation, not on hardware) PMUT, SPSW and the D/A mode stay “sound on” from the end of the boot through SD PICTURE LOAD, a key held on it, and EXIT. So the PICTURE LOAD silence the owner’s manual describes is not made by them; what makes it needs a key played on the instrument with a card that holds pictures (disassembly kn7000/notes/audio-mute-probes/README.md, lane kn7000-research2).

The FAJ board carries the jacks (mic, line, aux, sub-out, main-out, headphones), a multi-band “EQUALIZING” op-amp bank, and the power stages driving the built-in speakers (two 12 cm and two 6.5 cm for mid/high, one 14 cm for bass; user’s manual p. 208).

A separate, DSP-bypassing audio path

SD-Audio playback (via the SD sub-system’s decoder IC402) and USB audio (via IC406) are mixed into the analog output by transistor switches and never touch the tone generators or the effects DSP — a completely independent path for playing back recorded audio.

How software drives the sound hardware

The whole sound block lives in the 0x98000000 region of the MN10300 memory map:

Range Function
0x98040000 / 0x98050000 master / sub tone-generator register ports
0x98040004 / 0x98050004 key-bed / voice-event FIFOs
0x98040006/8/A / 0x98050006/8/A wave-ROM readback windows
0x9805000E not a sound register: the SD card’s SPI clock-rate latch, next to the SPI shift register at 0x9805000C
0x98060000 the sound-control latch IC25: USB-MIDI wait, SPSW, SDMODE, and the main D/A converter’s serial mode port (see below)
0x98070000 read-only board strap word: 0xF8F7 on the owner’s unit
0x98000000 + 0x9C000000 effects-DSP host port (index + data)

The firmware’s sound engine allocates voices, writes them to the tone generators, and separately manages the DSP effect units. The user-facing screens that expose all of this — sound select, the Digital Drawbar and organ editors, Reverb & Effect, the Sound DSP editor, the 5-band Equalizer, the mixer — are catalogued in the KN7000 firmware notes; each maps onto the register traffic described above.

From a key press to a voice — the firmware signal path

Tracing an actual note through the disassembly (and confirming each step live in the MAME driver) shows a clear pipeline:

  1. Key scan → FIFO. The sub tone generator scans the key matrix in hardware and posts each event into its voice-event FIFO. The CPU reads it at 0x98050004 as a 16-bit word — low byte = key index (0 = the bottom C2; bit 7 set = key release), high byte = velocity (0xFF on a release), 0xFFFF = empty.
  2. Key-bed service task. A scheduled task (firmware address 0x48448015) drains the FIFO, reading events until it sees 0xFFFF, and gathers the note/velocity pairs.
  3. Note → pitch. Each event is decoded by a helper (0x4844812D) that turns the key index (plus 36, giving the MIDI note) into the tone generator’s internal pitch value using the instrument’s tuning tables and a divide-by-twelve (one octave = 12 semitones), then records it in a per-key voice descriptor.
  4. Voice allocation → tone-generator registers. The sound engine assigns the note to a free tone-generator channel and programs that channel through the register-indirect primitives in the self-loaded library ROM. Voices 0–63 are written to the sub TG (0x98050000), voices 64–127 to the master TG (0x98040000); each register write packs a channel number, a register index and 16 bits of data. Between notes the same primitives emit the cyclic 0xFC0x refresh.

All four steps now run in emulation, and the emulator turns the firmware’s voice writes into sound (see below).

The message path between the FIFO and the tone generator (2026-11-06, disassembly kn7000/notes/work-ram-map.md): the key bed delivers {key, velocity} words through the FIFO at 0x98050004; the tick task (TickJobsTask) turns each into an internal message, the keyboard router maps it through the active zone to a part, and the translator writes a note message into the tone generator’s command stream (TgcBufWrite). Only the factory test modes divert keys from that path. For each zone a key sounds in, KeyZoneNoteResolve (941 0x484516EC) copies the key and velocity and reads the zone’s part and that part’s SOUND: a drum kit (a TABLE tone) has its key mapped through the kit’s key map when the M3 setting 0x2025 is 1 and is otherwise left alone; any other sound gets TRANSPOSE. Program 893’s copy (0x48451649) tests for a kit through SoundTableKeyMapOn, so there a kit with that setting off is transposed too (lane kn7000-research2, 2026-11-06).

Factory diagnostics as documentation

The service diagnostic mode (entered by holding C#3 + D#3 + C#4 at power-on) includes several sound tests that double as precise hardware descriptions:

  • WAVE ROM test — checksums all banks of IC203/204/207/208 through the readback window (30 s for 64 MB); proves the window returns raw sample data.
  • SOUND SYSTEM test — plays a full-amplitude sine per key, with the C keys exercising IC203&204 and the C# keys IC207&208, plus pan / octave / touch check modes. (The sine samples themselves live in the wave ROMs, so this test still needs them.)
  • Other device test — reports DSP: IC306 and DSP RAM: IC307/IC308 OK/NG.

Emulation status

In the project’s own MAME builds, the KN7000 boots to its main play screen and sings, driven by its own firmware voice engine. These are the kn7000_mame overlay and two branches prepared for upstream, technics-kn7000-tonegen (the tone-generator voice engine) and technics-kn7000-dsp (the effects DSP). Both branches are queued and neither has been published or submitted yet. All three flag the machine MACHINE_NOT_WORKING | MACHINE_IMPERFECT_SOUND. Upstream MAME differs: the kn7000 driver merged as mamedev/mame#16250 on 2026-10-07 runs the same firmware, but it is MACHINE_NOT_WORKING | MACHINE_NO_SOUND. It decodes the tone-generator registers without producing sound, and it does not emulate the effects DSP. Playing a note (PC key bed or MIDI in) travels through the firmware exactly as on hardware — key-event FIFO → key-bed task → note-to-pitch → voice allocation — and the firmware programs the tone-generator voice registers, which the emulator renders to audio. Pitch, polyphony and note timing are the firmware’s own; sound is on by default and needs no switch.

Getting there turned on one missing bit. The firmware only programs voices when a tone-generator-present strap (read at 0x98070000, tested at firmware 0x484d7713) says the TGs exist; otherwise a library gate flag stays set and every per-voice register write is suppressed — which is why early builds were silent even though the key press reached the firmware. The emulator now reports both tone generators present (the KN7000 has both), so the gate opens and the voice engine drives the hardware from the moment the home screen appears.

The same word carries a hardware subtype in bits 11:10, which decides where the firmware sends each voice. The overlay’s strap used to read subtype 5. Under subtype 5 the firmware remaps every wave page onto the expansion range and assigns voices to the tone generators from a table, so not one of 488 traced selects named an internal sample. The owner’s unit reads 0xF8F7 (pass 9 of the ROM dumper, 2026-10-20): board class 1, subtype 2, both tone generators present. Under subtype 2 every voice lands on the TG whose pair holds its sample. The overlay now answers that halfword.

With the tone generators driven, the instrument plays on the home screen: key bed, chord finder, rhythm accompaniment and the built-in demo songs all sound. The demo songs and the auto-accompaniment run off a modelled on-chip tempo timer — the 16-bit timer TM5 (mode 0x34001082, reload 0x34001092, count 0x340010A2) whose underflow raises INTC group 7 and fires the firmware’s 96-PPQN sequencer tick ISR (0x48447084). Clocked at IOCLK ÷ 8 (16 MHz ÷ 8 = 2 MHz), its reload works out to 1,250,000 ÷ BPM timer counts per sequencer tick (1/96 beat), so the sequenced parts run at the tempo the panel sets.

How a note’s pitch really works

Two builds differ here. The voice-record read described below is what the kn7000_mame overlay does. The tone-generator branch prepared for upstream MAME (technics-kn7000-tonegen, 2026-09-24, not yet submitted) drops it, because a tone generator cannot read CPU RAM. It decodes pitch from the register alone against one fixed anchor (pitch18 0x1C838 = MIDI 96). That anchor is still unsettled. Since 2026-10-20 the overlay plays the KN7000’s voices from the dumped wave ROMs and takes their rate from the register itself, by the law under Real timbre below.

The obvious reading of the TG pitch register — an absolute pitch value — turned out to be wrong, and the correction is worth recording. The 18-bit pitch field (register class 0x2400, with bit 16 carried in the class’s low bit) is sample-zone-relative: 0x400 per semitone, but anchored to whichever PCM sample zone the voice selected, not to a fixed frequency. The firmware computes it in its sound library (pitch16 = ((note − zoneCenter) << 8) >> keyScaleExp + 0x4280 plus coarse/fine/multisample corrections, then pitch18 = ((pitch16 + 0x1800) << 2); key-scale exponent 7 means “fixed pitch” — drums). Every tone therefore sits at its own offset, and a placeholder synthesizer that reads the register as absolute pitch plays every non-piano part transposed.

The emulator instead recovers the musical pitch from the firmware’s own voice bookkeeping: at note-on the sound library fills a per-voice record (0x500AF940 + slot·0xB4) whose notePitch16 field holds the intended pitch — note, part transpose, master tune and stretch tuning included — in 1/256-semitone units, before the first TG register write of the note. Reading it makes the key bed, the demo songs and the chord finder all play at true pitch (the chord finder’s notes were always computed correctly from its chord tables; only its part’s empty tone descriptors made the register value garbage). Pitch rewrites on a sounding voice are applied as relative bends, so vibrato, portamento and pitch bend behave. A by-product of the same analysis: the key-bed FIFO carries a key index (0 = the 61-key bed’s bottom C2), not a MIDI note — the firmware adds 36.

Note-off and the amplitude envelope

Note-release turned out not to be the 0x0001 = 0xC000 voice mute the register map first suggested — that write is only boot init and voice-steal. On a real key-up the firmware ramps every voice of the note down by rewriting its registers 0, 1, 4, 5, 8, 9 with a decay target and rates: the key-off write is reg0 with bit 7 of its low byte set (0x9180; All Sound Off writes 0xA280, a reset 0xFF80), and its low bits carry the release rate. The emulator releases a voice on exactly that write.

The firmware only does this for voices it still believes are sounding. It keeps asking the tone generators: it writes a status address and reads the data port back (0xFC08 + g gives sixteen “still sounding” bits for a group of voices, 0xFC02 | slot<<4 a voice’s level). Until 2026-10-21 the emulator answered 0 to every such read, so the firmware dropped each new voice from its list within 43-82 ms and had nothing to release at the key-up: one-voice MIDI notes rang on for ever and two-voice notes lost a voice. The earlier reading of this page, that the key-up targets only an “odd companion block” and that the plucked/mallet sounds send no key-up write, was a product of that fault (kn7000_mame G23, notes/tg-release-2026-10-21/README.md). The bits’ meaning is read from the firmware code; the chip’s real level curve has not been measured.

The KN6000 does the same with its single tone generator. Its sweep at 0x4849A499 reads the same two addresses. Its key-off burst writes the same rate bytes (0x8D80 for the GM piano, 0xA280 for All Sound Off) to registers 4, 5, 8, 9, C and D, the KN7000’s six shifted by four. Its index 0 (0x87FF, then 0x8000) is written inside every note-on, as the KN7000’s register 3 is; it is not a key-up gate, as was once thought. The emulator answered 0 there too until 2026-10-22, and KN6000 notes hung in the same way (notes/tg-release-kn6000-2026-10-22/README.md).

Each voice’s held level comes from its programmed amplitude envelope — the sustain level (SUS1) and decay-rate (DCY2) registers the firmware writes at note-on — so a Concert Grand decays while an organ or string patch sustains. The full 7-stage envelope is only partially modelled, and the release-rate curve is still a provisional fit.

Real timbre (2026-10-20)

The overlay’s KN7000 now plays every voice from the dumped wave ROMs, through the select described above. Its rate follows one law:

rate = 2^((pitch18 − 0x1E200) / 0x3000 + E − 9) × 2093.0045 / 44100 source samples per output sample

0x1E200 is note 96 (C7); E is the sample’s pitch exponent from its directory entry. The firmware already folds each zone’s tuning into pitch18, so the tone generator adds only the sample’s octave. Of 556 traced voices, 478 pass a pitch test against the note the firmware meant. The rest are voices whose note is not the key: the drawbar and tab-organ footages, the sax’s breath layer. Played notes come out within a few cents (piano C4 +4.5 cents). Program 893, the owner’s build, plays the same. Still open: the gain law of the 8-bit samples (fitted, not derived), the split lists, and the post-loop data that many samples carry. The KN6000, KN6500 and KN2400 have no dumped wave ROMs and keep a labelled synthetic wave pack built from KN5000 donor samples. The branches prepared for upstream still play a stand-in sine in every voice.

The effects in the emulator

The effects DSP is fully recovered — its programs are in the firmware — and the emulator boots its ADSP-21065L kernel (running as low-level SHARC code, with MAME’s SHARC recompiler enabled) and routes the tone-generator audio through it. Four effect units are driven and audible, each with its own return level — reverb, chorus, the Sound DSP, and the multi-effect — and the reverb’s on/off tail works: a MODE1 ALUSAT saturation fix in the SHARC recompiler stopped the reverb’s feedback path from railing. See the Effects DSP page.

Can it play samples of your own?

No. The questions that come up, answered (2026-10-21):

  • User samples. The KN7000 has no sampling or user-sample facility. Each tone generator plays only from its own pair of wave mask ROMs (and from an expansion board on the same wave bus); it has no path to the CPU’s RAM. The only sound expansion is the optional Wave Expansion Board: the owner’s manual has “EW EXPANSION” select its preset sounds “when it has been installed”. What the firmware does with one, and how a board sits on both the CPU and the wave bus, is on the Expansion Bus page.
  • .MSP files are not audio. They hold the banks of the Performance Pads (MSP 1-6): recorded phrases, that is, sequencer data. The firmware’s own names for the pad screens are Msp* (MspPadNmOk, MspBnkShow, MspPadRecShowHideFunc, AcMspCompileGridBoxProc), and the 120 preset pad phrases in the table ROM are MIDI phrases.
  • SD-Audio is a separate path. SD-Audio playback (the SD sub-system’s decoder IC402) is mixed in the analog domain and never reaches the tone generators or the effects DSP (above).
  • So new sounds have to come from the effects DSP, which runs code the main CPU uploads at every power-up. Programs of our own run there on the owner’s KN7000: DSPTONE plays a tone or a PCM sweep from the DSP’s SDRAM through the REVERB unit, and Another World plays its own samples with an eight-voice mixer (Effects DSP). The game can also play its sounds as MIDI notes on the firmware’s own tone generator (Your Own Code on a Stock KN7000).