R01UH0092EJ0110 Rev.1.10
Page 553 of 807
Jul 31, 2012
M16C/64C Group
25. Multi-master I
2
C-bus Interface
Table 25.10 lists Functions Enabled by Writing to the S10 Register. Only set the values listed in Table
25.10. If the values listed in Table 25.10 are written to the S10 register, the 6 lower bits in the S10
register will not be changed.
Refer to 25.3.2 “Generating a Start Condition”
and 25.3.3 “Generating a Stop Condition” for start/stop
conditions.
LRB (Last receive bit) (b0)
When read, the LRB bit functions as described below. See Table 25.10 “Functions Enabled by Writing
to the S10 Register”
for the bit function in write access.
The LRB bit stores the value of the last bit of the received data. It is used to check if ACK is received.
The bit becomes 0 after writing to the S00 register.
ADR0 (General call detect flag) (b1)
The ADR0 bit function in read access is described below. See Table 25.10 “Functions Enabled by
Writing to the S10 Register”
for the bit function in write access.
Conditions to become 0:
•
Stop condition is detected.
•
Start condition is detected.
•
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).
Condition to become 1:
•
The ALS bit in the S1D0 register is set to 0 (addressing format) and the received slave address is
0000000b (general call) in slave mode.
Table 25.10
Functions Enabled by Writing to the S10 Register
Bit Setting of the S10 Register
Function
MST
TRX
BB
PIN
AL
AAS
ADR0
LRB
1
1
1
0
0
0
0
0
Sets the I
2
C interface to start condition standby state
in master transmit/receive mode
1
1
0
0
0
0
0
0
Sets the I
2
C interface to stop condition standby state
in master transmit/receive mode
0
0
–
0
1
1
1
1
Slave receive mode
0
1
–
0
1
1
1
1
Slave transmit mode
1
0
–
0
1
1
1
1
Master receive mode
1
1
–
0
1
1
1
1
Master transmit mode
–
: 0 or 1
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...