CHAPTER 16 I
2
C BUS
User’s Manual U16896EJ2V0UD
522
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 16-18. 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 = 1?
Read IIC0
Clear ready flag
Clear ready flag
Communication direction
flag = 1?
WREL0 = 1
ACKD0 = 1?
Clear communication mode flag
WREL0 = 1
Write IIC0
IICC0
←
XXH
ACKE0 = WTIM0 = 1
SPIE0 = 0, IICE0 = 1
SVA0
←
XXH
Local address setting
IICX0
←
0XH
IICCL0
←
XXH
Set ports
Transfer clock selection
IICF0
←
0XH
Set IICRSV0
Start condition setting
Transmission
start
Reception
start
No
Yes
No
Communication mode
flag = 1?
Yes
No
Ready flag = 1?
Refer to
Table 4-12 Settings When Port Pins Are Used for Alternate Functions
to set the I
2
C mode before this function is used.
START
Initial settings
Communication processing
Remark
For the transmission and reception formats, conform to the specifications of the product in
communication.
<R>
Содержание ?PD703302
Страница 2: ...User s Manual U16896EJ2V0UD 2 MEMO ...