Master Receiver Mode, Rm = 1, Polling; Receive Data Fixed) - Texas Instruments OMAP5910 Technical Reference Manual

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

Advertisement

Inter-Integrated Circuit Controller
Figure 7–33. Master Receiver Mode, RM = 1, Polling 1 (Software Counter, Number of the

Receive Data Fixed)

No
n = 0 (data byte counter):
m = Number of data bytes
cleared to 0 by hardware.
7-90
Start
Read I 2 C_STAT.
Is
bus free
(BB=0)
?
Yes
Write I 2 C_CON
1
with 8405h.
2
to be transferred
Read I 2 C_STAT.
Is
Yes
ACK returned
(NACK=0)
?
No
STT and STP are
Reprogram
the registers.
STT = 1
No
STP = 1
(new start)
?
Yes
Is
send data
No
being requested
(XUDF=1)
?
Yes
Are
m bytes
Yes
transferred
(n. = m)
?
No
n = n + 2
Read I 2 C_DATA.
Reprogram
the registers.
Read I 2 C_DATA.
No
?
Yes
End
3
1
Set appropriate values to every
bit of I 2 C_CON. I 2 C_EN bit must be set
to 1 to take I 2 C out of reset condition. Setting
I 2 C_EN and setting other mode bits can be done
simultaneously.
Because RM=1. hardware counter does not run.
2
Thus, software counter counts the number of the
required transfer.
The I 2 C goes into slave receiver mode.
3
Set STP = 1
4
[EXPECTED COMMAND]
At the beginning,
(STT,STP) = (1.0)
in the middle,
(STT, STP) = (0.0)
At the end,
(STT, STP) = (0.1)
[EXPECTED I 2 C_IE]
I 2 C_IE = 00000b
4

Advertisement

Table of Contents
loading

Table of Contents