CHAPTER 10 SERIAL INTERFACE FUNCTION
User’s Manual U13850EJ4V0UM
261
Figure 10-9. IIC Control Register n (IICCn) (4/4)
After reset: 00H
R/W
Address: FFFFF340H, FFFFF350H
<7>
<6>
<5>
<4>
<3>
<2>
<1>
<0>
IICCn
IICEn
LRELn
WRELn
SPIEn
WTIMn
ACKEn
STTn
SPTn
(n = 0, 1)
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 instruction
•
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, 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.3.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.
Remark
Bit 0 (SPTn) is 0 if it is read immediately after data setting.
Содержание MPD703030A
Страница 2: ...User s Manual U13850EJ4V0UM 2 MEMO ...
Страница 514: ...User s Manual U13850EJ4V0UM 514 MEMO ...