RX610 Group
22. I
2
C Bus Interface (RIIC)
R01UH0032EJ0120 Rev.1.20
Page 697 of 1006
Feb 20, 2013
TRS Bit (Transmit/Receive Mode)
This bit indicates transmit or receive mode.
The RIIC is in receive mode when the TRS bit is set to 0 and is in transmit mode when the bit is set to 1. Combination of
this bit and the MST bit indicates the operating mode of the RIIC.
The value of the TRS bit is automatically changed to the value for transmission mode or reception mode by detection or
issuing of a start condition, setting or clearing of the R/W# bit, etc. Although writing to the TRS bit is possible when the
MTWP bit in ICMR1 is set to 1, writing to this bit is not necessary during normal usage.
[Setting conditions]
•
When a start condition is issued normally according to the start condition issuance request (when a start condition is
detected with the ST bit set to 1)
•
When the R/W# bit added to the slave address is set to 0 in master mode
•
When the address received in slave mode matches the address enabled in ICSER, with the R/W# bit set to 1
•
When 1 is written to the TRS bit with the MTWP bit in ICMR1 set to 1
[Clearing conditions]
•
When a stop condition is detected
•
The AL (arbitration lost) flag in ICSR2 being set to 1
•
In master mode, reception of a slave address to which an R/W# bit with the value 1 is appended
•
In slave mode, a match between the received address and the address enabled in ICSER when the value of the
received R/W# bit is 0 (including cases where the received address is the general call address)
•
In slave mode, a restart condition is detected (a start condition is detected with ICCR2.BBSY = 1 and ICCR2.MST
= 0)
•
When 0 is written to the TRS bit with the MTWP bit in ICMR1 set to 1
•
When 1 is written to the IICRST bit in ICCR1 to apply an RIIC reset or an internal reset
MST Bit (Master/Salve Mode)
This bit indicates master or slave mode.
The RIIC is in slave mode when the MST bit is set to 0 and is in master mode when the bit is set to 1. Combination of
this bit and the TRS bit indicates the operating mode of the RIIC.
The value of the MST bit is automatically changed to the value for master mode or slave mode by detection or issuing of
a start condition, etc. Although writing to the MST bit is possible when the MTWP bit in ICMR1 is set to 1, writing to
this bit is not necessary during normal usage.
[Setting conditions]
•
When a start condition is issued normally according to the start condition issuance request (when a start condition is
detected with the ST bit set to 1)
•
When 1 is written to the MST bit with the MTWP bit in ICMR1 set to 1
[Clearing conditions]
•
When a stop condition is detected
•
When the AL (arbitration lost) flag in ICSR2 is set to 1
•
When 0 is written to the MST bit with the MTWP bit in ICMR1 set to 1
•
When 1 is written to the IICRST bit in ICCR1 to apply an RIIC reset or an internal reset
Summary of Contents for RX600 Series
Page 1006: ...RX610 Group R01UH0032EJ0120 ...