CHAPTER 15 SERIAL INTERFACE IICA
Page 458 of 920
(4) Wait cancellation method
The four wait cancellation methods are as follows.
• Writing data to the IICA shift register n (IICAn)
• Setting bit 5 (WRELn) of IICA control register n0 (IICCTLn0) (canceling wait)
• Setting bit 1 (STTn) of IICCTLn0 register (generating start condition)
• Setting bit 0 (SPTn) of IICCTLn0 register (generating stop condition)
Note
Master only.
When an 8-clock wait has been selected (WTIMn = 0), the presence/absence of ACK generation must be
determined prior to wait cancellation.
(5) Stop condition detection
INTIICAn is generated when a stop condition is detected (only when SPIEn = 1).
15.5.9
Address match detection method
In I
2
C bus mode, the master device can select a particular slave device by transmitting the corresponding slave
address.
Address match can be detected automatically by hardware. An interrupt request (INTIICAn) occurs when the
address set to the slave address register n (SVAn) matches the slave address sent by the master device, or
when an extension code has been received.
15.5.10 Error detection
In I
2
C bus mode, the status of the serial data bus (SDAAn) during data transmission is captured by the IICA shift
register n (IICAn) of the transmitting device, so the IICA data prior to transmission can be compared with the
transmitted IICA data to enable detection of transmission errors. A transmission error is judged as having
occurred when the compared data values do not match.
Remark
n = 0, 1
Содержание RL78/G1H
Страница 941: ...R01UH0575EJ0120 RL78 G1H...