Datasheet

V850ES/JG3-H, V850ES/JH3-H CHAPTER 19 I
2
C BUS
R01UH0042EJ0500 Rev.5.00 Page 883 of 1513
Aug 12, 2011
For reception, the required number of data is received and ACK is not returned for the next data immediately after
transfer is complete. After that, the master device generates the stop condition or restart condition. This causes exit from
communications.
Figure 19-21. Slave Operation Flowchart (1)
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No
No
Communication mode
flag = 1?
Communication mode
flag = 1?
Communication direction
flag = 1?
Ready flag = 1?
Communication direction
flag = 0?
Read IICn
Clear ready flag
Clear ready flag
Communication direction
flag = 1?
WRELn = 1
ACKDn = 1?
Clear communication mode flag
WRELn = 1
Write IICn
IICCn XXH
ACKEn = WTIMn = 1
SPIEn = 0, IICEn = 1
SVAn XXH
Local address setting
IICXn 0XH
IICCLn XXH
OCKSm XXH
Set ports
Transfer clock selection
IICFn 0XH
Set IICRSVn
Start condition setting
Transmission
start
Reception
start
No
Yes
No
Communication mode
flag = 1?
Yes
No
Ready flag = 1?
Refer to Table 4-20 Settings When Port Pins Are Used for
Alternate Functions to set the I
2
C mode before this function is used.
START
Initial settingsCommunication processing
Remark n = 0 to 2, m = 0, 1