AY-3-8910 programmable sound generator (40-pin) pinout

DIP-40. Three tone voices, noise and envelope, plus two 8-bit I/O ports (the MSX joystick ports and the cassette input)

On the MSX it sits at I/O $A0 (address latch), $A1 (data write) and $A2 (data read), clocked at 1.7897725 MHz (half the CPU clock). Port A is input: bits 0-5 read the selected joystick port (directions and triggers), bit 6 the keyboard layout jumper (Japanese machines), bit 7 the cassette input. Port B is output: trigger and pin 8 outputs, bit 6 selects joystick port 1 or 2, bit 7 the Kana LED. So a dead PSG means no sound, no joysticks and no tape loading. The YM2149 is a drop-in: pin 26 is SEL there (pull-up; open = same as the AY), and its DAC is louder. The 28-pin AY-3-8912 (timex.js) is the same chip without port B.

Open the interactive AY-3-8910 pinout

Pins

PinNameTypeSignal
1VSSgroundGround.
2NCncNot connected.
3ANALOG BaudioChannel B D/A output, up to 1 V p-p.
4ANALOG AaudioChannel A D/A output, up to 1 V p-p.
5NCncNot connected.
6IOB7ioPort B bit 7. MSX: Kana LED (Japanese machines; LOW = on).
7IOB6ioPort B bit 6. MSX: selects joystick port 1 (LOW) or port 2 (HIGH) onto port A.
8IOB5ioPort B bit 5. MSX: joystick port 2 pin 8 output.
9IOB4ioPort B bit 4. MSX: joystick port 1 pin 8 output.
10IOB3ioPort B bit 3. MSX: port 2 pin 7 through an open-collector buffer (keep HIGH to read the trigger).
11IOB2ioPort B bit 2. MSX: port 2 pin 6 through an open-collector buffer.
12IOB1ioPort B bit 1. MSX: port 1 pin 7 through an open-collector buffer.
13IOB0ioPort B bit 0. MSX: port 1 pin 6 through an open-collector buffer.
14IOA7ioPort A bit 7. MSX: cassette read (CSAR) input.
15IOA6ioPort A bit 6. MSX: keyboard layout select (JIS HIGH, syllable LOW; Japanese machines).
16IOA5ioPort A bit 5. MSX: trigger B (pin 7) of the selected joystick port.
17IOA4ioPort A bit 4. MSX: trigger A (pin 6) of the selected joystick port.
18IOA3ioPort A bit 3. MSX: RIGHT of the selected port.
19IOA2ioPort A bit 2. MSX: LEFT.
20IOA1ioPort A bit 1. MSX: BACK (down).
21IOA0ioPort A bit 0. MSX: FWD (up).
22CLOCKclockTiming reference for tone, noise and envelope (TTL).
23/RESETctrlLOW clears every register. On-chip pull-up.
24/A9addrExtra chip-select address bit (active LOW), on-chip pull-down; usually left open or grounded.
25A8addrExtra chip-select address bit, on-chip pull-up; usually tied HIGH.
26TEST 2ncGI test pin; leave open. On a YM2149 this is SEL (pull-up): LOW divides the input clock by 2. UNVERIFIED
27BDIRctrlBus direction. With BC1 (BC2 HIGH): 0 0 inactive, 0 1 read, 1 0 write, 1 1 latch address.
28BC2ctrlBus control 2; may be tied HIGH so only BDIR and BC1 are driven.
29BC1ctrlBus control 1.
30DA7dataData/address bit 7.
31DA6dataData/address bit 6.
32DA5dataData/address bit 5.
33DA4dataData/address bit 4.
34DA3dataData/address bit 3.
35DA2dataData/address bit 2.
36DA1dataData/address bit 1.
37DA0dataData/address bit 0.
38ANALOG CaudioChannel C D/A output, up to 1 V p-p.
39TEST 1ncGI test pin. Leave open.
40VCCpower+5 V supply.

Fitted in

Sources