Circuit Board Reference Manual

Initialization Sequence
MCF548x Reference Manual, Rev. 3
Freescale Semiconductor 28-19
Figure 28-14. Flow-Chart of Typical I
2
C Interrupt Routine
Clear IIF
Tx/Rx
?
Second
Last Byte to
be Read
?
Clear IAL
Last Byte
to be Read
?
Switch to
Rx Mode
Dummy Read
from I2DR
Set
TXAK=1
Generate
STOP Signal
Generate
STOP Signal
Read Data from
I2DR and Store
Set
Tx Mode
Write Data
to I2DR
Tx Next
Byte
Read Data from
I2DR and Store
Set
Rx Mode
Switch to
Rx Mode
Dummy Read
from I2DR
Dummy Read
from I2DR
RTE
Arbitration
Lost
?
IAAS=1
?
IAAS=1
?
SRW=1
?
Tx/Rx
?
ACK from
Receiver
?
Ye s
No
Ye s
Tx
Rx
No
Ye s
No
(Write)
(Read)
Ye s
No
Tx Rx
Ye s
No
Ye s
No
No
Ye s
Data
Cycle
Address
Cycle
No
Ye s
No
Ye s
Last Byte
Transmitted
?
RXAK=0
?
End of
Addr Cycle
(Master Rx)
?
Write Next
Byte to I2DR
No
Ye s
Ye s
No
Master
Mode
?