CHAPTER 10 SERIAL INTERFACE FUNCTION
User’s Manual U13850EJ6V0UD
389
10.4.14 Communication operations
(1) Master operations
The following shows an example of the master communication flowchart when the communication reservation
function is enabled (IICRSVn = 0) and when communication is started after a stop condition is detected
(STCENn = 0).
Figure 10-39. Master Operation Flowchart (1)
IICCLn
←
XXH
Select transfer clock.
IICCn
←
XXH
IICEn = SPIEn = WTIMn = 1
Start IICn
write transfer
Wait
STTn = 1
Start IICn
write transfer
WRELn = 1
Start reception
Generate stop condition
SPTn = 1
START
Data processing
Data processing
ACKEn = 0
No
No
Yes (stop condition detection)
Yes (start condition generation)
No
No
No
No
No
(restart)
No
No
Yes
Yes
Yes
Yes
Yes
Yes
INTIICn = 1?
WTIMn = 0
ACKEn = 1
INTIICn = 1?
Transfer complete?
Transfer complete?
INTIICn = 1?
TRCn = 1?
ACKDn = 1?
MSTSn = 1?
Yes
No
INTIICn = 1?
INTIICn = 1?
ACKDn = 1?
Communication reservation
Stop condition detection,
start condition generation due
to communication reservation
Wait period secured by software
(see
Table 10-13
)
Address transfer
completion
No (receive)
Yes (transmit)
Generate stop condition
(no slave with matching address)
End
End
Remark
n = 0, 1
Содержание V850/SB1
Страница 2: ...User s Manual U13850EJ6V0UD 2 MEMO ...