Freescale Semiconductor MPC8260 PowerQUICC II Family Reference Manual page 1267

Table of Contents

Advertisement

because the R/W request follows the slave port address in the I
must be placed in the lsb (bit 7) unless operating in reverse data mode; see
Register (I2MOD)."
To write to a slave, the master sends a write request (R/W = 0) along with either the target slave's address
or a general call (broadcast) address of all zeros, followed by the data to be written. To read from a slave,
the master sends a read request (R/W = 1) and the target slave's address. When the target slave
acknowledges the read request, the transfer direction is reversed, and the master receives the slave's
transmit buffer(s). If the receiver (master or slave) does not acknowledge each byte transfer in the ninth
bit frame, the transmitter signals a transmission error event (I2ER[TXE]). An I
is shown in
Figure
39-3.
Select master or slave mode for the controller using the I
master's start bit, I2COM[STR], to begin a transfer; setting a slave's I2COM[STR] activates the slave to
wait for a transfer request from a master.
If a master or slave transmitter's current TxBD[L] is set, transmission stops once the buffer is sent; that is,
I2COM[STR] must be set again to reactivate transfers. If TxBD[L] is zero, once the current buffer is sent,
the controller begins processing the next TxBD without waiting for I2COM[STR] to be set again.
The following sections further detail the transfer process.
39.3.1
I
C Master Write (Slave Read)
2
If the PowerQUICC II is the master, prepare the transmit buffers and BDs before initiating a write.
Initialize the first transmit data byte with the slave address and write request (R/W = 0).
If the PowerQUICC II is the slave target of the write, prepare receive buffers and BDs to await the master's
request.
Figure 39-4
shows the timing for a master write.
SDA
Note: Data and ACK are repeated n times.
Freescale Semiconductor
Start Condition
SCL
1 2 3
SDA
Figure 39-3. I
S
T
A
R
T
Device Address
Figure 39-4. I
MPC8260 PowerQUICC II Family Reference Manual, Rev. 2
2
C bus specification, the R/W request bit
Stop Condition
4 5 6
7 8 9
A
C
K
Data Byte
2
C Transfer Timing
2
C command register (I2COM[M/S]). Set the
A
C
W
K
Data Byte
2
C Master Write Timing
2
Section 39.4.1, "I
C Mode
2
C transfer timing diagram
S
T
O
A
P
C
K
2
I
C Controller
39-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpc8250Mpc8255Mpc8264Mpc8265Mpc8266

Table of Contents