EasyManua.ls Logo

Cmsemicon SC8F577 Series - Page 129

Default Icon
181 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.8
SC8F577x
129 / 181
www.mcu.com.cn
If the SCL and SDA pins have been programmed as input pins (set the corresponding TRIS bit to 1),
selecting any I
2
C mode and IICEN bit as 1 will force the SCL and SDA pins to be open drain.
18.2 IIC Related Register
IICSTAT: IIC status register (10FH)
10FH
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
IICSTAT
----
IDLE
D/A
P
S
R/W
----
BF
read/write
----
R
R
R
R
R
----
R
Reset
value
----
1
0
0
0
0
----
0
Bit7
Not used.
Bit6
IDLE
master control mode idle bit
(Only the master control mode is valid, all master control operations
can use this bit to determine whether to terminate)
1=
No master control operation on the bus
0=
The master control operation is in progress on the bus
Bit5
D/A:
data/address bit.
1=
Indicates that the last receive or transmit byte is data.
0=
Indicates that the last receive or transmit byte is address.
Bit4
P:
Stop bit (this bit is cleared when IIC mode is disabled (IICEN is
cleared)).
1=
Indicates that the stop bit was finally detected (the bit is 0 when reset).
0=
Indicates that the stop bit was not detected at the end.
Bit3
S:
Start bit (this bit is cleared when disable IIC mode (IICEN is cleared)).
1=
Indicates that the start bit was finally detected (the bit is 0 when reset).
0=
The start bit was not detected at the end.
Bit2
R/W:
Read/write bit.
This bit is used to save the R/W bit information after the last address
match. This bit is only valid from the address match to the next start bit,
stop bit or non-ACK bit.
In I
2
C slave mode:
1= read.
0= write.
I
2
C master control mode:
1= transmitting.
0= not transmitting.
The result of logic OR operation between this bit and SEN, RSEN,
PEN, RCEN or ACKEN will indicate whether IIC is in idle mode.
Bit1
Not used.
Bit0
BF
buffer full status bit.
receive:
1= receive complete, IICBUF full.
0= receive not complete, IIC BUF empty.
transmit:
1 = data transmitting (not including ACK and stop bit), IICBUF full.
0 = data transmit complete (not including ACK and stop bit), IICBUF
empty.

Related product manuals