DS4420
I2C Programmable-Gain Amplifier
for Audio Applications
_____________________________________________________________________ 9
Byte Read: A byte read is an 8-bit information transfer
from the slave to the master plus a 1-bit ACK or NACK
from the master to the slave. The 8 bits of information
that are transferred (most significant bit first) from the
slave to the master are read by the master using the bit
read definition above, and the master transmits an ACK
using the bit write definition to receive additional data
bytes. The master must NACK the last byte read to ter-
minate communication so the slave will return control of
SDA to the master.
Slave Address Byte: Each slave on the I2C bus
responds to a slave address byte sent immediately fol-
lowing a start condition. The slave address byte con-
tains the slave address in the most significant 7 bits
and the R/Wbit in the least significant bit.
The DS4420’s slave address is determined by the state
of the A0, A1, and A2 address pins as shown in Figure
2. Address pins connected to GND result in a ‘0’ in the
corresponding bit position in the slave address.
Conversely, address pins connected to VCC result in a
‘1’ in the corresponding bit positions.
When the R/Wbit is 0 (such as in A0h), the master is indi-
cating it will write data to the slave. If R/Wis set to a 1,
(A1h in this case), the master is indicating it wants to read
from the slave.
If an incorrect (nonmatching) slave address is written,
the DS4420 will assume the master is communicating
with another I2C device and ignore the communication
until the next start condition is sent.
Memory Address: During an I2C write operation to the
DS4420, the master must transmit a memory address to
identify the memory location where the slave is to store
the data. The memory address is always the second
byte transmitted during a write operation following the
slave address byte.
I2C Communication
Writing a Single Byte to a Slave: The master must gen-
erate a start condition, write the slave address byte (R/W
= 0), write the memory address, write the byte of data,
and generate a stop condition. The master must read the
slave’s acknowledgement during all byte write operations.
Reading a Single Byte from a Slave: Unlike the write
operation that uses the specified memory address byte
to define where the data is to be written, the read oper-
ation occurs at the present value of the memory
address counter. A dummy write cycle can be used to
force the address pointer to a desired location. To do
this, the master generates a start condition, writes the
slave address byte (R/W=0), writes the memory
address where it desires to read, generates a repeated
start condition, writes the slave address byte (R/W= 1),
reads the data byte with a NACK to indicate the end of
the transfer, and generates a stop condition.
See Figure 4 for I2C communication examples.
Applications Information
Power-Supply Decoupling
The DS4420 has separate supply voltages for its ana-
log and digital circuitry. For best noise and distortion
performance, place a 0.1µF or 0.01µF capacitor from
VCC to GND and from AVCC to AGND. These capaci-
tors should be placed as close as possible to the sup-
ply and ground pins of the device.