English
Language : 

HD6432633 Datasheet, PDF (884/1453 Pages) Renesas Technology Corp – Series of Microcomputers (MCUs: microcomputer units)
830
Start
Initial settings
Read BBSY flag in ICCR
No
BBSY = 0?
Yes
Set MST = 1
and TRS = 1 (ICCR)
Write BBSY = 1
and SCP = 0 (ICCR)
Read IRIC flag in ICCR
No
IRIC = 1?
Yes
Write transmit data to ICDR
Clear IRIC flag in ICCR
[1] Initial settings.
[2] Determine status of SCL and SDA lines.
[3] Set to master transmit mode.
[4] Generate start condition.
[5] Wait for start condition to be met.
[6] Set 1st byte (slave address + R/W) transmit data.
(Perform ICDR write and IRIC flag clear
operations continuously.)
Read IRIC flag in ICCR
No
IRIC = 1?
Yes
Read ACKB bit in ICSR
ACKB = 0?
No
Yes
No
Transmit mode?
Yes
Write transmit data to ICDR
Clear IRIC flag in ICCR
[7] Wait for end of 1 byte transmission.
[8] Judge acknowledge signal from specified.
slave device.
Master receive mode
[9] Set transmit data for 2nd byte onward.
(Perform ICDR write and IRIC flag clear
operations continuously.)
Read IRIC flag in ICCR
No
IRIC = 1?
Yes
Read ACKB bit in ICSR
No Transmit complete?
(ACKB = 1?)
Yes
Clear IRIC flag in ICCR
Write BBSY = 0 and
SCP = 0 (ICCR)
End
[10] Wait for end of 1 byte transmission.
[11] Judge end of transmission.
[12] Generate stop condition.
Figure 18-7 Flowchart for Master Transmit Mode (Example)