Download Print this page

Renesas M16C/50 Series User Manual page 553

Advertisement

M16C/5L Group, M16C/56 Group
22.2.8
I2C0 Status Register 0 (S10)
I2C0 Status Register 0
b7 b6 b5 b4
b3
b2
b1
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
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.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Symbol
b0
S10
Bit Symbol
Bit Name
LRB
Last receive bit
ADR0
General call detect flag
AAS
Slave address compare flag
AL
Arbitration lost detect flag
2
I
C-bus interface interrupt
PIN
request bit
BB
Bus busy flag
Communication mode select
TRX
bit 0
Communication mode select
MST
bit 1
22. Multi-master I
Address
02B8h
Function
When read,
0: Last bit = 0
1: Last bit = 1
When write, see Table 22.9 "Functions
Enabled by Writing to the S10 Register"
When read,
0: Not detected
1: Detected
When write, see Table 22.9 "Functions
Enabled by Writing to the S10 Register"
When read,
0: Address not matched
1: Address matched
When write, see Table 22.9 "Functions
Enabled by Writing to the S10 Register"
When read,
0: Not detected
1: Detected
When write, see Table 22.9 "Functions
Enabled by Writing to the S10 Register"
When read,
0: Interrupt requested
1: Interrupt not requested
When write, see Table 22.9 "Functions
Enabled by Writing to the S10 Register"
When read,
0: Bus free
1: Bus busy
When write, see Table 22.9 "Functions
Enabled by Writing to the S10 Register"
0: Receive mode
1: Transmit mode
0: Slave mode
1: Master mode
2
2
C-bus Interface
Reset Value
0001 000Xb
RW
RW
RW
RW
RW
RW
RW
RW
RW
C interface. The bit values
Page 516 of 803

Advertisement

loading