hit counter script

Master Operation 2 - NEC V850ES/SG2 mPD703260 Preliminary User's Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

17.16.2 Master operation 2

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

Advertisement

Table of Contents
loading

Table of Contents