2.2 Pin Wiring The YM2151 uses a 24-lead dual in-line package. The terminal signals are indicated in the foliowing diagram. Top View vuGNDi cf} l4p em IRQ Gg? 2D e ita 43 RE Vom + $v) Ao a up so we Os 2B st RD G6 ynzys; 19 SH GS = ied ko oT a ds I7D pe ct: Gg 16 Ds pe =6to ISP Da VawGNDI OI Kb Db) bp gn ib m 2.2.1 Pin Functions e Do~D:: Address/Data Bus (input/output high impedance} A muluplex bus that can be used for both address and data; inputs an 8-bit parallel signal between an external device and the internal register. e AQ: Address/Data Select (Input) When AO=“0Q", the Do~ D: signal is processes as an address signal; when AQ=“1", the De~ D> signal is processed as data. e WR: White (Input) When there is a write signal, the signals in the bus can be entered. e® RD: Read (Input) When there is a read signal, the internal signals can be read out wia the bes e CS: Chip Select (Input) When there is a chip select signal, the AQ, WR, and RD signais become operative and the De~ D> bus data can be entered in the internal register or internal data can be read out on the Do~ D> bus. ¢ IC- Initial clear (Input) Internal registers and circuits are initialized when this terminal reads “0”. ¢ iRQ: Interrupt request (Output: Open drain) If either of the 2 types of timer counters begins a carry out, this signal will read out a “O" level and request an interrupt from the CPU. Then, with the CPU's readout of the data, the unit will determine from which timer the interrupt request has been made and will process the interrupt.