NEC V850/SB1 User Manual page 343

32-bit single-chip microcontroller
Table of Contents

Advertisement

SPTn
Stop condition is not generated.
0
1
Stop condition is generated (termination of master device's transfer).
After the SDAn line goes to low level, either set the SCLn line to high level or wait until it goes to
high level. Next, after the rated amount of time has elapsed, the SDAn line is changed from low
level to high level and a stop condition is generated.
Cautions concerning setting timing
• For master reception:
• For master transmission: A stop condition cannot be generated normally during the ACKn period. Set during
• Cannot be set at the same time as STTn.
• SPTn can be set only when in master mode
• When WTIMn has been set to 0, if SPTn is set during the wait period that follows output of eight clocks, note
that a stop condition will be generated during the high-level period of the ninth clock.
When a ninth clock must be output, WTIMn should be changed from 0 to 1 during the wait period following
output of eight clocks, and SPTn should be set during the wait period that follows output of the ninth clock.
Condition for clearing (SPTn = 0)
• Cleared by loss in arbitration
• Automatically cleared after stop condition is detected
• When LRELn = 1
• When IICEn = 0
• Cleared when RESET is input
Note Set SPTn only in master mode. However, when the IICRSVn bit of IIC flag register n (IICFn) is 0, SPTn must
be set and a stop condition generated before the first stop condition is detected following the switch to
operation enable status. For details, see 10.4.13 Cautions.
Caution When bit 3 (TRCn) of IIC status register n (IICSn) is set to 1, WRELn is set during the ninth clock
and wait is canceled, after which TRCn is cleared and the SDAn line is set to high impedance.
Remarks
1.
Bit 0 (SPTn) is 0 if it is read immediately after data setting.
2.
n = 0, 1
CHAPTER 10
SERIAL INTERFACE FUNCTION
Stop condition trigger
Cannot be set during transfer.
Can be set only when ACKEn has been set to 0 and during the wait period after
slave has been notified of final reception.
the wait period.
Note
User's Manual U13850EJ6V0UD
Condition for setting (SPTn = 1)
• Set by instruction
(4/4)
343

Advertisement

Table of Contents
loading

This manual is also suitable for:

V850/sb2

Table of Contents