![Freescale Semiconductor ColdFire MCF5211 Reference Manual Download Page 372](http://html1.mh-extra.com/html/freescale-semiconductor/coldfire-mcf5211/coldfire-mcf5211_reference-manual_2330619372.webp)
I
2
C Interface
MCF5213 ColdFire® Integrated Microcontroller Reference Manual, Rev. 3
22-10
Freescale Semiconductor
Figure 22-10. Repeated START
Various combinations of read/write formats are then possible:
•
The first example in
is the case of master-transmitter transmitting to slave-receiver.
The transfer direction is not changed.
•
The second example in
is the master reading the slave immediately after the first byte.
At the moment of the first acknowledge, the master-transmitter becomes a master-receiver and the
slave-receiver becomes slave-transmitter.
•
, START condition and slave address are repeated using the
repeated START signal. This is to communicate with same slave in a different mode without
releasing the bus. The master transmits data to the slave first, and then the master reads data from
slave by reversing the R/W bit.
Figure 22-11. Data Transfer, Combined Format
I2C_SCL
1
2
3
4
5
6
7
8
1
2
5
6
7
8
3
4
AD7 AD6 AD5 AD4 AD3 AD2 AD1 R/W
AD7 AD6 AD5 AD4 AD3 AD2 AD1 R/W
9
9
XX
New Calling Address
R/W No
Stop
ACK
Bit
STOP
Signal
Repeated
START
Signal
ACK
Bit
R/W
Calling Address
START
I2C_SDA
msb
lsb
msb
lsb
Signal
A
ST
A
7bit Slave Address
0
A
Register Address
DATA
A/A
R/W
SP
From Master to Slave
From Slave to Master
ST = Start
SP = Stop
A = Acknowledge (I2C_SDA low)
A = Not Acknowledge (I2C_SDA high)
ST
A
7bit Slave Address
1
A
DATA
DATA
A
R/W
SP
ST
A
1
A
DATA
R/W
Rept
A
7-bit Slave 0
A
DATA
DATA
A/A
R/W
SP
Rept ST = Repeated Start
ST
Address
7-bit Slave
Address
Example 1:
Example 2:
Example 3:
Master Reads from Slave
Master Writes to Slave
Note:
No acknowledge on the last byte