RX610 Group
22. I
2
C Bus Interface (RIIC)
R01UH0032EJ0120 Rev.1.20
Page 730 of 1006
Feb 20, 2013
Yes
ICCR2.BBSY = 0?
ICSR2.STOP = 0
Master transmission
ICCR2.SP = 1
ICSR2.NACKF = 0
End of master transmission
ICCR2.ST = 1
Yes
No
ICSR2.TDRE = 1?
Write data to ICDRT
Initial settings
Yes
Yes
All data transmitted?
ICSR2.TEND = 1?
Yes
ICSR2.STOP = 1?
ICSR2.STOP = 0
No
No
No
No
No
[1] Initial settings
[2] Check I
2
C bus occupation and issue
a start condition.
[6] Check stop condition issuance
[7] Processing for the next transfer
operation
Yes
[5] Check end of last data
transmission and issue a stop
condition.
[3] Transmit slave address and W (first byte).
[4] Check ACK and set transmit data.
ICSR2.NACKF = 0?
TMOCNT = 0000h
TMOCNT = 0000h
TMOCNT = 0000h
*
1
*
1
*
1
Note1: Internal counter for timeout
This is the case when the timeout function
is in use (this processing is not required if
the function is not in use).
Figure 22.6 Example of Master Transmission Flowchart
Summary of Contents for RX600 Series
Page 1006: ...RX610 Group R01UH0032EJ0120 ...