![NEC V850/SC1 Скачать руководство пользователя страница 420](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178420.webp)
CHAPTER 11 SERIAL INTERFACE FUNCTION
418
User’s Manual U15109EJ3V0UD
11.5.12 Communication reservation
(1) When communication reservation function is enabled (IICRSVn of IICFn = 0)
To start master device communications when not currently using the bus, a communication reservation can be
made to enable transmission of a start condition when the bus is released. There are two modes under which
the bus is not used.
•
When arbitration results in neither master nor slave operation
•
When an extension code is received and slave operation is disabled (ACK is not returned and the bus was
released when bit 6 (LRELn) of IIC control register n (IICCn) was set to “1”) (n = 0, 1).
If bit 1 (STTn) of IICCn is set while the bus is not used, a start condition is automatically generated and wait
status is set after the bus is released (after a stop condition is detected).
When the bus release is detected (when a stop condition is detected), writing to IIC shift register n (IICn) causes
the master’s address transfer to start. At this point, IICCn’s bit 4 (SPIEn) should be set (n = 0, 1).
When STTn has been set, the operation mode (as start condition or as communication reservation) is determined
according to the bus status (n = 0, 1).
If the bus has been released .............................................. A start condition is generated
If the bus has not been released (standby mode) .............. Communication reservation
To detect which operation mode has been determined for STTn, set STTn, wait for the wait period, then check
MSTSn (bit 7 of the IIC status register n (IICSn)) (n = 0, 1).
The wait periods, which should be set via software, are listed in Table 11-10. These wait periods can be set by
bits 3, 1, and 0 (SMCn, CLn1, and CLn0) of IIC clock select register n (IICCLn) (n = 0, 1).
Table 11-10. Wait Periods
SMCn
CLn1
CLn0
Wait Period
0
0
0
26 clocks
0
0
1
46 clocks
0
1
0
92 clocks
0
1
1
37 clocks
1
0
0
1
0
1
16 clocks
1
1
0
32 clocks
1
1
1
13 clocks
Remark
n = 0, 1