English
Language : 

HD64F2638F20J Datasheet, PDF (638/1512 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer H8S Family/H8S/2600 Series
Section 15 I2C Bus Interface [Option]
(Only for the H8S/2638, H8S/2639, and H8S/2630)
H8S/2639, H8S/2638, H8S/2636,
H8S/2630, H8S/2635 Group
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
Read TRS in ICCR
No
General call address processing
* Description omitted
TRS = 0?
Yes
No
Slave transmit mode
Yes
Last receive?
No
Read ICDR
[3]
Clear IRIC in ICCR
Read IRIC in ICCR
No
IRIC = 1?
Yes
Set ACKB = 0 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 receive
[6] Start the last receive
[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-14 Flowchart for Slave Transmit Mode (Example)
Page 588 of 1458
REJ09B0103-0800 Rev. 8.00
May 28, 2010