Communication Reservation - NEC V850ES/SA2 UPD703201 Manual

32-bit single-chip microcontrollers
Table of Contents

Advertisement

12.4.12 Communication reservation

To start master device communications when not currently using a 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 (LREL) of the IIC control register (IICC) was set to "1").
If bit 1 (STT) of IICC is set while the bus is not being used, a start condition is automatically generated and the 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 the IIC shift register (IIC) causes
the master's address transfer to start. At this point, bit 4 (SPIE) of IICC should be set.
When the STT bit has been set, the operation mode (as start condition or as communication reservation) is
determined according to the bus status.
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 the STT bit, set the STT bit, wait for the wait period, then
check the MSTS (bit 7 of IIC status register (IICS)).
Wait periods, which should be set via software, are listed in Table 12-10. These wait periods can be set via the
settings for bits 3, 1, and 0 (SMC, CL1, and CL0) in the IIC clock selection register (IICCL).
390
CHAPTER 12 SERIAL INTERFACE FUNCTION
Table 12-10. Wait Periods
SMC
CL1
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
Preliminary User's Manual U15905EJ1V0UD
CL0
Wait Period
0
26 clocks
1
46 clocks
0
92 clocks
1
37 clocks
0
16 clocks
1
0
32 clocks
1
13 clocks

Advertisement

Table of Contents
loading

Table of Contents