Setup Procedure; Flowcharts - Texas Instruments OMAP5910 Technical Reference Manual

Dual-core
Hide thumbs Also See for OMAP5910:
Table of Contents

Advertisement

Inter-Integrated Circuit Controller
7.8.4

Flowcharts

Figure 7–31. Setup Procedure
7-88
-
Poll receive data: Poll the receive data ready interrupt flag bit (RRDY) in
2
the I
C status register (I2C_STAT), use the RRDY interrupt, or use the
DMA to read the receive data in the data receive register (I2C_DATA).
-
Poll transmit data: Poll the transmit data ready interrupt flag bit (XRDY) in
2
the I
C status register (I2C_STAT), use the XRDY interrupt, or use the
DMA to write data into the data transmit register (I2C_DATA).
Interrupt subroutines:
1) Test for arbitration lost and resolve accordingly.
2) Test for no-acknowledge and resolve accordingly.
3) Test for register access ready and resolve accordingly.
4) Test for receive data and resolve accordingly.
5) Test for transmit data and resolve accordingly.
Figure 7–31 through Figure 7–42 show the master/slave I
Write I
Write I
Start
2
Write I
C_OA.
2
Write I
C_IE.
2
C_SCLL.
2
C_SCLH.
Use
No
repeat mode
(RM=1)
?
Write I
Yes
2
Write I
C_SA.
End
2
C flowcharts.
2
C_CNT.

Advertisement

Table of Contents
loading

Table of Contents