RX610 Group
22. I
2
C Bus Interface (RIIC)
R01UH0032EJ0120 Rev.1.20
Page 696 of 1006
Feb 20, 2013
RS Bit (Restart Condition Issuance Request)
This bit is used to request that a restart condition be issued in master mode.
When this bit is set to 1 to request to issue a restart condition, a restart condition is issued when the BBSY flag is set to 1
(bus busy) and the MST bit is set to 1 (master mode).
For details on the restart condition issuance, see section 22.10, Start Condition/Restart Condition/Stop Condition Issuing
Function.
[Setting condition]
•
When 1 is written to the RS bit with the BBSY flag in ICCR2 set to 1
[Clearing conditions]
•
When 0 is written to the RS bit
•
When a restart condition has been issued or a start condition is detected
•
When the AL (arbitration lost) flag in ICSR2 is set to 1
•
When 1 is written to the IICRST bit in ICCR1 to apply an RIIC reset or an internal reset
Notes: 1. Do not set the RS bit to 1 while issuing a stop condition.
2. If the RS bit is set to 1 (restart condition issuance request) in mode other than master mode, the restart
condition is not issued in this mode but the restart condition issuance request bit remains set. If the operating
mode changes to master mode with the bit not being cleared, the restart condition may be issued: this may
hinder communications or cause an unexpected action.
SP Bit (Stop Condition Issuance Request)
This bit is used to request that a stop condition be issued in master mode.
When this bit is set to 1 to request to issue a stop condition, a stop condition is issued when the BBSY flag is set to 1 (bus
busy) and the MST bit is set to 1 (master mode).
For details on the stop condition issuance, see section 22.10, Start Condition/Restart Condition/Stop Condition Issuing
Function.
[Setting condition]
•
When 1 is written to the SP bit with both the BBSY flag and the MST bit in ICCR2 set to 1
[Clearing conditions]
•
When 0 is written to the SP bit after reading SP = 1
•
When a stop condition has been issued or a stop condition is detected
•
When the AL (arbitration lost) flag in ICSR2 is set to 1
•
When a start condition and a restart condition are detected
•
When 1 is written to the IICRST bit in ICCR1 to apply an RIIC reset or an internal reset
Notes: 1. Writing to the SP bit is not possible while the setting of the BBSY flag is 0 (bus free).
2. Do not set the SP bit to 1 while a restart condition is being issued.
Summary of Contents for RX600 Series
Page 1006: ...RX610 Group R01UH0032EJ0120 ...