Datasheet

V850ES/JG3 CHAPTER 17 I
2
C BUS
R01UH0015EJ0300 Rev.3.00 Page 603 of 870
Sep 30, 2010
For reception, receive the required number of data and do not return ACK 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 17-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-15 Using Port Pin as Alternate-Function Pins
to set the I
2
C mode before this function is used.
START
Initial settingsCommunication processing
Remark n = 0 to 2, m = 0, 1