Kc89c72 Datasheet [TESTED]

A: Yes, in most cases. Both have identical pinouts and register sets. However, check the analog output impedance – the KC89C72 may require different external resistor values.

; Assume KC89C72 base address = 0x80 ; Write to address register LD A, 0x00 ; Select R0 (Tone A low byte) OUT (0x80), A ; Write data to selected register LD A, 0x7E ; Low byte value for 440Hz at 1MHz OUT (0x81), A LD A, 0x01 ; Select R1 (Tone A high byte) OUT (0x80), A LD A, 0x02 ; High byte value OUT (0x81), A kc89c72 datasheet

| Register | Function | |----------|-----------------------------------------------| | R0 | Tone A period (fine, bits 0–7) | | R1 | Tone A period (coarse, bits 8–11) | | R2 | Tone B period (fine) | | R3 | Tone B period (coarse) | | R4 | Tone C period (fine) | | R5 | Tone C period (coarse) | | R6 | Noise period (5-bit, bits 0–4) | | R7 | Mixer control (enable/disable tone/noise) | | R8 | Amplitude A (16 levels or envelope) | | R9 | Amplitude B | | R10 | Amplitude C | | R11 | Envelope period (fine) | | R12 | Envelope period (coarse) | | R13 | Envelope shape (attack/decay/cycle) | | R14 | I/O Port A data | | R15 | I/O Port B data | A: Yes, in most cases

A: Tie both directly to GND for normal operation. Leaving them floating may cause erratic behavior. ; Assume KC89C72 base address = 0x80 ;