R01UH0092EJ0110 Rev.1.10
Page 552 of 807
Jul 31, 2012
M16C/64C Group
25. Multi-master I
2
C-bus Interface
25.2.9
Do not use the bit managing instruction (read-modify-write instruction) to access the S10 register. Use
the MOV instruction to write to the S10 register.
Bit 5 to bit 0 in the S10 register (6 lower bits) monitor the state of the I
2
C interface. The bit values
cannot be changed by a program. However, writing to the S10 register, including the 6 lower bits,
generates a start/stop condition.
Bits MST and TRX are read and write bits. To change bits MST or TRX without generating a start/stop
condition, set 1111b to the 4 lower bits in the S10 register.
b7 b6 b5 b4
b1
b2
b3
I2C0 Status Register 0
Symbol
S10
Address
02B8h
Bit Symbol
Bit Name
RW
Reset Value
0001 000Xb
b0
Function
LRB
Last receive bit
When read,
0: Last bit = 0
1: Last bit = 1
RW
ADR0
General call detect flag
When read,
0: Not detected
1: Detected
RW
AAS
Slave address compare flag
When read,
0: Address not matched
1: Address matched
RW
AL
Arbitration lost detect flag
When read,
0: Not detected
1: Detected
RW
PIN
I
2
C-bus interface interrupt
request bit
When read,
0: Interrupt requested
1: Interrupt not requested
RW
BB
Bus busy flag
When read,
0: Bus free
1: Bus busy
RW
RW
RW
TRX
MST
Communication mode select
bit 0
0: Slave mode
1: Master mode
Communication mode select
bit 1
0: Receive mode
1: Transmit mode
When write, see Table 25.10 “Functions
Enabled by Writing to the S10 Register”
When write, see Table 25.10 “Functions
Enabled by Writing to the S10 Register”
When write, see Table 25.10 “Functions
Enabled by Writing to the S10 Register”
When write, see Table 25.10 “Functions
Enabled by Writing to the S10 Register”
When write, see Table 25.10 “Functions
Enabled by Writing to the S10 Register”
When write, see Table 25.10 “Functions
Enabled by Writing to the S10 Register”
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...