MSC8144E Reference Manual, Rev. 3
24-14
Freescale
Semiconductor
I
2
C
Figure 24-3. Example I
2
C Interrupt Service Routine Flowchart
Clear I2CSR[MIF]
I2CCR[MSTA]
== 0
== 1
I2CSR[MAL]
I2CCR[MTX]
== 1
== 1
== 0
Clear I2CSR[MAL]
EOI
I2CSR[MAAS]
I2CSR[SRW]
Set I2CCR[MTX]
== 0
Clear I2CCR[MTX]
Write I2CDR
dummy read
EOI
== 1
Target Addr. Phase
Target Data Cycle
I2CCR[MTX]
== 1
== 0
Target Xmit
I2CSR[RXAK]
== 1
== 0
Write next byte
to I2CDR
EOI
Target Received
Read I2CDR
and store
All done
Y
N
Set I2CCR[TXAK]
Read I2CDR
(dummy read)
Y
N
Last byte
Next-to-last
Generate
Read I2CDR
and store
EOI
Y
N
Set
Initiator Rcv
STOP
I2CCR[TXAK]
byte
Last byte
Y
N
I2CSR[RXAK]
== 1
Write next byte
to I2CDR
== 0
EOI
Generate
Initiator Xmit
STOP
B
== 0
== 1
A
== 0
A
B
I2CSR[MAAS]
B
== 0
== 1
Clear I2CCR[MTX]
End of address phase for
initiator receive mode?
N
Only one byte
to receive?
Y
Y
Set
I2CCR[TXAK]
Read I2CDR
(dummy read)
Clear I2CCR[MTX]
N
Содержание MSC8144E
Страница 1: ...MSC8144E Reference Manual Quad Core Media Signal Processor MSC8144ERM Rev 3 July 2009 ...
Страница 40: ...MSC8144E Reference Manual Rev 3 xl Freescale Semiconductor Contents 26 5 12 8 RNG Output FIFO 26 186 ...
Страница 48: ...MSC8144E Reference Manual Rev 3 xlviii Freescale Semiconductor ...
Страница 86: ...MSC8144E Reference Manual Rev 3 1 38 Freescale Semiconductor Overview ...
Страница 167: ...OCE Event and JTAG Test Access Port Signals MSC8144E Reference Manual Rev 3 Freescale Semiconductor 3 59 ...
Страница 168: ...MSC8144E Reference Manual Rev 3 3 60 Freescale Semiconductor External Signals ...
Страница 242: ...MSC8144E Reference Manual Rev 3 5 26 Freescale Semiconductor Reset ...
Страница 314: ...MSC8144E Reference Manual Rev 3 8 24 Freescale Semiconductor General Configuration Registers ...
Страница 414: ...MSC8144E Reference Manual Rev 3 10 14 Freescale Semiconductor MSC8144E SC3400 DSP Subsystem ...
Страница 452: ...MSC8144E Reference Manual Rev 3 11 38 Freescale Semiconductor Internal Memory Subsystem ...
Страница 520: ...MSC8144E Reference Manual Rev 3 12 68 Freescale Semiconductor DDR SDRAM Memory Controller ...
Страница 884: ...MSC8144E Reference Manual Rev 3 17 44 Freescale Semiconductor RapidIO Interface Dedicated DMA Controller ...
Страница 1070: ...MSC8144E Reference Manual Rev 3 21 28 Freescale Semiconductor Timers ...