BAT32G1x9 user manual | Chapter 20 Serial interface IICA
769 / 1149
Rev.1.02
20.5.14
Communication appointments
(1) Cases where the communication appointment function is allowed (bit0 (IICRSVn) = 0 of the IICA flag
register n (IICFn))
To perform the next master communication without joining the bus, you can send a start condition when the
bus is released through a communication appointment. The non-joining bus at this time includes the following two
states:
•
When the outcome of the arbitration is neither the master nor the slave
•
Bit6 that does not run as a slave after receiving the extension code (does not return a reply but puts the
IICA control register n0 (IICCTLn0).
(LRELn) is placed "1", the bus is released after exiting communication).
If you set the bit1 (STTn) of the IICCTLn0 register to "1" in the state of not joining the bus, the start condition is
automatically generated after the bus is released (the stop condition is detected) and enters the waiting state.
Set the bit4 (SPIEn) of the IICCTLn0 register to "1" after the release of the bus (stop condition detected) is
detected by the generated interrupt request signal (INTIICAn), if given IICA shifts the register n (IICAn) to write the
address and automatically begins to communicate as the master device. The data written to the IICAn register is
invalid until a stop condition is detected.
When stTn is positioned "1", it is decided whether to run as a start condition or as a communication
appointment depending on the bus state.
•
When the bus is in a release state..................... Build start conditions
•When
the bus is not in the release state (standby state)... Correspondence appointments
After placing stTn at position "1" and after a wait time has elapsed, pass the MSTSn bit (IICA status register n
(IICSn). bit7) confirm whether it is running as a communication appointment.
The following calculations of the calculation of the wait time must be ensured by the software:
Remarks: 1. IICWLn:
IICA
low-level width setting register
n
IICWHn:
IICA
high level width setting register
n
t
F
:
The descent time of the
SDAAn
signal and
the
SCLAn
signal
f
MCK
:
IICA
operating clock frequency
2. n=0.1
Wait time from placing stTn
position
"1" until the MSTSn flag is confirmed:
(IICWLn se IICWHn se 4) / f
MCK
+ t
F
×
2