English
Language : 

HD64F3664BPV Datasheet, PDF (294/446 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer
Section 15 I2C Bus Interface (IIC)
Start
Initialize
Set MST = 0
and TRS = 0 in ICCR
[1]
Set ACKB = 0 in ICSR
Read IRIC in ICCR
[2]
No
IRIC = 1?
Yes
Read AAS and ADZ in ICSR
AAS = 1
and ADZ = 0?
Yes
No
General call address processing
* Description omitted
Read TRS in ICCR
TRS = 0?
Yes
No
Slave transmit mode
Last receive?
Yes
No
Read ICDR
[3]
Clear IRIC in ICCR
Read IRIC in ICCR
No
IRIC = 1?
Yes
Set ACKB = 1 in ICSR
[1] Select slave receive mode.
[2] Wait for the first byte to be received (slave
address).
[3] Start receiving. The first read is a dummy read.
[4]
[4] Wait for the transfer to end.
[5] Set acknowledge data for the last reception.
[6] Start the last reception.
[7] Wait for the transfer to end.
[8] Read the last receive data.
[5]
Read ICDR
[6]
Clear IRIC in ICCR
Read IRIC in ICCR
[7]
No
IRIC = 1?
Yes
Read ICDR
[8]
Clear IRIC in ICCR
End
Figure 15.15 Sample Flowchart for Slave Receive Mode
Rev. 6.00 Mar. 24, 2006 Page 264 of 412
REJ09B0142-0600