CHAPTER 10 SERIAL INTERFACE FUNCTION
User’s Manual U13850EJ6V0UD
343
(4/4)
SPTn
Stop condition trigger
0
Stop condition is not generated.
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:
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.
•
For master transmission: A stop condition cannot be generated normally during the ACKn period. Set during
the wait period.
•
Cannot be set at the same time as STTn.
•
SPTn can be set only when in master mode
Note
•
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)
Condition for setting (SPTn = 1)
•
Cleared by loss in arbitration
•
Automatically cleared after stop condition is detected
•
When LRELn = 1
•
When IICEn = 0
•
Cleared when RESET is input
•
Set by instruction
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
Содержание V850/SB1
Страница 2: ...User s Manual U13850EJ6V0UD 2 MEMO ...