Datasheet

AD9508 Data Sheet
Rev. B | Page 30 of 40
Figure 55. Start and Stop Conditions
Figure 56. Acknowledge Bit
Data Transfer Process
The master initiates a data transfer by asserting a start condition,
which indicates that a data stream follows. All I²C slave devices
connected to the serial bus respond to the start condition.
The master then sends an 8-bit address byte over the SDA line,
consisting of a 7-bit slave address (MSB first) plus an R/
AA
W
EE
AA
bit.
This bit determines the direction of the data transfer, that is,
whether data is written to or read from the slave device (0 =
write, 1 = read).
The peripheral whose address corresponds to the transmitted
address responds by sending an acknowledge bit. All other
devices on the bus remain idle while the selected device waits
for data to be read from or written to it. If the R/
AA
W
EE
AA
bit is 0, the
master (transmitter) writes to the slave device (receiver). If the
R/
AA
W
EE
AA
bit is 1, the master (receiver) reads from the slave device
(transmitter). The format for these commands is described in
the
Data Transfer Format section.
Data is then sent over the serial bus in the format of nine clock
pulses: one data byte (eight bits) from either master (write mode)
or slave (read mode) followed by an acknowledge bit from the
receiving device. The number of bytes that can be transmitted
per transfer is unrestricted. In write mode, the first two data
bytes immediately after the slave address byte serve as the inter-
nal memory (control registers) address bytes, with the high
address byte first. This addressing scheme gives a memory
address of up to 2
16
− 1 = 65,535. The data bytes after these
two memory address bytes are register data that are written
to or read from the control registers. In read mode, the data
bytes after the slave address byte are register data that are
written to or read from the control registers.
When all data bytes are read or written, stop conditions are
established. In write mode, the master (transmitter) asserts a
stop condition to end data transfer during the 10
th
clock pulse
following the acknowledge bit for the last data byte from the
slave device (receiver). In read mode, the master device (receiver)
receives the last data byte from the slave device (transmitter)
but does not pull SDA low during the ninth clock pulse. This
condition is known as a no acknowledge bit. By receiving the no
acknowledge bit, the slave device knows that the data transfer is
finished and enters idle mode. The master then takes the data
line low during the low period before the 10
th
clock pulse and
high during the 10
th
clock pulse to assert a stop condition.
A start condition can be used in place of a stop condition.
Furthermore, a start or stop condition can occur at any time,
and partially transferred bytes are discarded.
Figure 57. Data Transfer Process (Master Write Mode, Two-Byte Transfer)
SDA
START CONDITION STOP CONDITION
SCL
S
P
11161-035
1
2
8 9
1 2
3 T
O 73 TO 7 8 9 10
SDA
SCL
S
MSB
ACK FROM
SLAVE RECEIVER
ACK FROM
SLAVE RECEIVER
P
11161-036
1 2
8 9
1 2
3 TO 73 TO 7 8 9 10
ACK FROM
SLAVE RECEIVER
ACK FROM
SLAVE RECEIVER
SDA
SCL
S
MSB
P
11161-037