Figure 7-9 Acknowledgment On The I C Bus; Figure 7-10 I 2 C Bus Protocol For Host Write Cycle - Freescale Semiconductor DSP56366 User Manual

24-bit digital signal processor
Table of Contents

Advertisement

2
Characteristics Of The I
C Bus
SCL From
Master Device
Data Output
by Transmitter
Data Output
by Receiver
A device generating a signal is called a transmitter, and a device receiving a signal is called a receiver. A
device controlling a signal is called a master and devices controlled by the master are called slaves. A
master receiver must signal an end-of-data to the slave transmitter by not generating an acknowledge on
the last byte clocked out of the slave device. In this case the transmitter must leave the data line high to
enable the master to generate the stop event. Handshaking may also be accomplished by using the clock
synchronizing mechanism. Slave devices can hold the SCL line low, after receiving and acknowledging a
byte, to force the master into a wait state until the slave device is ready for the next byte transfer. The SHI
supports this feature when operating as a master device and waits until the slave device releases the SCL
line before proceeding with the data transfer.
2
7.6.2
I
C Data Transfer Formats
2
I
C bus data transfers follow the following process: after the start event, a slave device address is sent. The
address consists of seven address bits and an eighth bit as a data direction bit (R/W). In the data direction
bit, zero indicates a transmission (write), and one indicates a request for data (read). A data transfer is
always terminated by a stop event generated by the master device. However, if the master device still
wishes to communicate on the bus, it can generate another start event, and address another slave device
without first generating a stop event (the SHI does not support this feature when operating as an I
device). This method is also used to provide indivisible data transfers. Various combinations of read/write
formats are illustrated in
S
Slave Address
Start
Bit
7-18
Start
Event
1
S
Figure 7-9 Acknowledgment on the I
Figure 7-10
and
Figure
ACK from
Slave Device
0
A
First Data Byte
R/W
2
Figure 7-10 I
C Bus Protocol For Host Write Cycle
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
2
2
C Bus
7-11.
ACK from
Slave Device
A
Data Byte
N = 0 to M
Data Bytes
AA0425
Clock Pulse For
Acknowledgment
8
9
AA0424
2
C master
ACK from
Slave Device
A
S, P
Start or
Stop Bit
Freescale Semiconductor

Advertisement

Table of Contents
loading

Table of Contents