R01UH0092EJ0110 Rev.1.10
Page 556 of 807
Jul 31, 2012
M16C/64C Group
25. Multi-master I
2
C-bus Interface
TRX (Communication mode select bit 0) (b6)
Set the TRX bit to select transmit mode or receive mode.
Conditions to become 0:
•
The TRX bit is set to 0 by a program.
•
Arbitration lost is detected.
•
Stop condition is detected.
•
Start condition overlap protect function is enabled.
•
Start condition is detected when the MST bit in the S10 register is 0 (slave mode).
•
No ACK is detected from a receiver when the MST bit in the S10 register is 0 (slave mode).
•
The ES0 bit in the S1D0 register is set to 0 (I
2
C interface disabled).
•
The IHR bit in the S1D0 register is set to 1 (I
2
C interface reset).
Conditions to become 1:
•
The TRX bit is set to 1 by a program.
•
In slave mode, the ALS bit in the S1D0 register is 0 (addressing format), the AAS bit in the S10
register becomes 1 (address matched) after receiving the slave address, and the received R/W bit
is 1.
MST (Communication mode select bit 1) (b7)
Set the MST bit to select master mode or slave mode.
Conditions to become 0:
•
The MST bit is set to 0 by a program.
•
The 1-byte data that lost arbitration is completed transmitting/receiving when arbitration lost is
detected.
•
Stop condition is detected.
•
Start condition overlap protect function is enabled.
•
The ES0 bit in the S1D0 register is 0 (I
2
C interface disabled).
•
The IHR bit in the S1D0 register is 1 (I
2
C interface reset).
Conditions to become 1:
•
The MST bit is set to 1 by a program.
Summary of Contents for M16C Series
Page 846: ...M16C 64C Group R01UH0092EJ0110...