-
Chip is only active when A9
is low, A8 is high, and address bits DA7-DA4 are low.
- Address bits DA3-DA0 select one of the 16 control registers.
- For YM2149, connecting pin 26 to ground divides CLOCK by 2.
- BDIR=0, BC2=0, BC1=0: inactive, DA7-DA0 high impedance
- BDIR=0, BC2=0, BC1=1: latch address, DA7-DA0 are inputs
- BDIR=0, BC2=1, BC1=0: inactive, DA7-DA0 high impedance
- BDIR=0, BC2=1, BC1=1: read, DA7-DA0 are outputs
- BDIR=1, BC2=0, BC1=0: latch address, DA7-DA0 are inputs
- BDIR=1, BC2=0, BC1=1: inactive, DA7-DA0 high impedance
- BDIR=1, BC2=1, BC1=0: write, DA7-DA0 are inputs
- BDIR=1, BC2=1, BC1=1: latch address, DA7-DA0 are inputs
-
Control registers:
| $00 |
tone generator A frequency, low 8 bits |
| $01 |
tone generator A frequency, high 4 bits |
| $02 |
tone generator B frequency, low 8 bits |
| $03 |
tone generator B frequency, high 4 bits |
| $04 |
tone generator C frequency, low 8 bits |
| $05 |
tone generator C frequency, high 4 bits |
| $06 |
noise generator frequency, low 5 bits |
| $07 |
I/O port and mixer control |
| $08 |
channel A amplitude/envelope enable |
| $09 |
channel B amplitude/envelope enable |
| $0A |
channel C amplitude/envelope enable |
| $0B |
envelope frequency, low 8 bits |
| $0C |
envelope frequency, high 8 bits |
| $0D |
envelope shape |
| $0E |
I/O port A data |
| $0F |
I/O port B data |
|