Rev. 1.00, 05/04, page 310 of 544
Start
Initialize IIC
Set MST = 1 and
TRS = 1 in ICCR
Set BBSY =1 and
SCP = 0 in ICCR
Write transmit data in ICDR
Clear IRIC flag in ICCR
No
No
Yes
Yes
Yes
Yes
No
No
[1] Initialization
[3] Select master transmit mode.
[4] Start condition issuance
[6] Set transmit data for the first byte
(slave a R/
W
).
(After writing to ICDR, clear IRIC flag
continuously.)
[9] Set transmit data for the second and
subsequent
bytes.
(After writing to ICDR, clear IRIC flag
continuously.)
[2] Test the status of the SCL and SDA lines.
[7] Wait for 1 byte to be transmitted.
[10] Wait for 1 byte to be transmitted.
[11] Determine end of tranfer
[12] Stop condition issuance
[8] Test the acknowledge bit
transferred from the slave device.
[5] Wait for a start condition generation
Read IRIC flag in ICCR
Read ACKB bit in ICSR
IRIC = 1?
ACKB = 0?
Transmit mode?
Write transmit data in ICDR
Clear IRIC flag in ICCR
Read IRIC flag in ICCR
Read ACKB bit in ICSR
Clear IRIC flag in ICCR
End of transmission?
or ACKB = 1?
Set BBSY = 0 and
SCP = 0 in ICCR
End
Read BBSY flag in ICCR
BBSY = 0?
Yes
No
Read IRIC flag in ICCR
IRIC = 1?
Yes
No
Yes
No
IRIC = 1?
Master receive mode
Figure 13.7 Sample Flowchart for Operations in Master Transmit Mode
Summary of Contents for H8S/2111B
Page 2: ...Rev 1 00 05 04 page ii of xxxiv...
Page 8: ...Rev 1 00 05 04 page viii of xxxiv...
Page 22: ...Rev 1 00 05 04 page xxii of xxxiv...
Page 30: ...Rev 1 00 05 04 page xxx of xxxiv...
Page 84: ...Rev 1 00 05 04 page 50 of 544...
Page 100: ...Rev 1 00 05 04 page 66 of 544...
Page 126: ...Rev 1 00 05 04 page 92 of 544...
Page 180: ...Rev 1 00 05 04 page 146 of 544...
Page 216: ...Rev 1 00 05 04 page 182 of 544...
Page 254: ...Rev 1 00 05 04 page 220 of 544...
Page 268: ...Rev 1 00 05 04 page 234 of 544...
Page 382: ...Rev 1 00 05 04 page 348 of 544...
Page 462: ...Rev 1 00 05 04 page 428 of 544...
Page 464: ...Rev 1 00 05 04 page 430 of 544...
Page 488: ...Rev 1 00 05 04 page 454 of 544...
Page 496: ...Rev 1 00 05 04 page 462 of 544...
Page 574: ...Rev 1 00 05 04 page 540 of 544...
Page 581: ......
Page 582: ...H8S 2111B Hardware Manual...