CHAPTER 11 SERIAL INTERFACE FUNCTION
User’s Manual U15109EJ3V0UD
425
(2) Master operations (2)
The following shows the flowchart for master communication when the communication reservation function is
disabled (IICRSVn = 1) and the master operation is started without detecting a stop condition (STCENn = 1).
Figure 11-38. Master Operation Flowchart (2)
No (receive)
IICCLn
←
××
H
IICFn
←
××
H
IICCn
←
××
H
IICEn = SPIEn = WTIMn = 1
STTn = 1
START
No
Yes
IICBSYn = 0?
No
Yes
WTIMn = 0
ACKEn = 1
WRELn = 1
Start reception
ACKEn = 0
SPTn = 1
Generate stop condition
No
Yes
Yes (transmit)
INTIICn = 1?
No
Yes
Yes
INTIICn = 1?
No
Yes
INTIICn = 1?
No
Yes
ACKDn = 1?
No
Yes
No
ACKDn = 1?
TRCn = 1?
STCFn = 0?
End
Transfer clock selection
IICFn register setting
IICCn register initial setting
Wait time is secured by software
(see
Table 11-11
)
Insert wait
Start IICn write transfer
Stop master communication
Master communication is
stopped because bus is occupied
Yes (address transfer completion)
Start IICn write transfer
Generate stop condition
(no slave with matching address)
End
Data processing
Data processing
Reception completed?
Transfer completed?
(restart)
Remark
n = 0, 1