![Freescale Semiconductor MPC8250 Скачать руководство пользователя страница 1267](http://html1.mh-extra.com/html/freescale-semiconductor/mpc8250/mpc8250_family-reference-manual_23305491267.webp)
I
2
C Controller
MPC8260 PowerQUICC II Family Reference Manual, Rev. 2
Freescale Semiconductor
39-3
because the R/W request follows the slave port address in the I
2
C bus specification, the R/W request bit
must be placed in the lsb (bit 7) unless operating in reverse data mode; see
Section 39.4.1, “I
2
C Mode
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
2
C transfer timing diagram
is shown in
Figure 39-3
.
Figure 39-3. I
2
C Transfer Timing
Select master or slave mode for the controller using the I
2
C command register (I2COM[M/S]). Set the
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
2
C Master Write (Slave Read)
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.
Figure 39-4. I
2
C Master Write Timing
SCL
SDA
Data Byte
Start Condition
Stop Condition
A
C
K
7
8
9
4
5
6
1
2
3
SDA
Device Address
W
Data Byte
S
T
A
R
T
S
T
O
P
A
C
K
A
C
K
Note: Data and ACK are repeated n times.
Содержание MPC8250
Страница 90: ...MPC8260 PowerQUICC II Family Reference Manual Rev 2 lxxxviii Freescale Semiconductor...
Страница 94: ...MPC8260 PowerQUICC II Family Reference Manual Rev 2 I 4 Freescale Semiconductor...
Страница 118: ...Overview MPC8260 PowerQUICC II Family Reference Manual Rev 2 1 24 Freescale Semiconductor...
Страница 236: ...Reset MPC8260 PowerQUICC II Family Reference Manual Rev 2 5 14 Freescale Semiconductor...
Страница 274: ...60x Signals MPC8260 PowerQUICC II Family Reference Manual Rev 2 7 18 Freescale Semiconductor...
Страница 540: ...IEEE 1149 1 Test Access Port MPC8260 PowerQUICC II Family Reference Manual Rev 2 13 8 Freescale Semiconductor...
Страница 548: ...MPC8260 PowerQUICC II Family Reference Manual Rev 2 IV 8 Freescale Semiconductor...
Страница 704: ...Serial Communications Controllers SCCs MPC8260 PowerQUICC II Family Reference Manual Rev 2 20 26 Freescale Semiconductor...
Страница 770: ...SCC BISYNC Mode MPC8260 PowerQUICC II Family Reference Manual Rev 2 23 20 Freescale Semiconductor...
Страница 808: ...SCC Ethernet Mode MPC8260 PowerQUICC II Family Reference Manual Rev 2 25 24 Freescale Semiconductor...
Страница 848: ...Serial Management Controllers SMCs MPC8260 PowerQUICC II Family Reference Manual Rev 2 27 36 Freescale Semiconductor...
Страница 972: ...ATM Controller and AAL0 AAL1 and AAL5 MPC8260 PowerQUICC II Family Reference Manual Rev 2 30 52 Freescale Semiconductor...
Страница 1062: ...ATM AAL1 Circuit Emulation Service MPC8260 PowerQUICC II Family Reference Manual Rev 2 31 46 Freescale Semiconductor...
Страница 1072: ...ATM AAL2 MPC8260 PowerQUICC II Family Reference Manual Rev 2 32 10 Freescale Semiconductor...
Страница 1122: ...Inverse Multiplexing for ATM IMA MPC8260 PowerQUICC II Family Reference Manual Rev 2 33 20 Freescale Semiconductor...
Страница 1178: ...Inverse Multiplexing for ATM IMA MPC8260 PowerQUICC II Family Reference Manual Rev 2 33 76 Freescale Semiconductor...
Страница 1224: ...Fast Ethernet Controller MPC8260 PowerQUICC II Family Reference Manual Rev 2 35 28 Freescale Semiconductor...
Страница 1242: ...FCC HDLC Controller MPC8260 PowerQUICC II Family Reference Manual Rev 2 36 18 Freescale Semiconductor...
Страница 1302: ...Register Quick Reference Guide MPC8260 PowerQUICC II Family Reference Manual Rev 2 A 4 Freescale Semiconductor...
Страница 1318: ...Reference Manual Rev 1 Errata MPC8260 PowerQUICC II Family Reference Manual Rev 2 B 16 Freescale Semiconductor...
Страница 1356: ...MPC8260 PowerQUICC II Family Reference Manual Rev 2 Index 28 Freescale Semiconductor U U Index...