EasyManua.ls Logo

Microchip Technology dsPIC30F - Page 525

Microchip Technology dsPIC30F
738 pages
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...
© 2004 Microchip Technology Inc. DS70068C-page 21-11
Section 21. Inter-Integrated Circuit (I
2
C)
Inter-Integrated
Circuit (I
2
C)
21
Register 21-2: I2CSTAT: I
2
C Status Register
Upper Byte:
R-0
HS, HC
R-0
HS, HC
U-0 U-0 U-0 R/C-0
HS
R-0
HS, HC
R-0
HS, HC
ACKSTAT TRSTAT
BCL GCSTAT ADD10
bit 15 bit 8
Lower Byte:
R/C-0
HS
R/W-0
HS
R-0
HS, HC
R/C-0
HS, HC
R/C-0
HS, HC
R-0
HS, HC
R-0
HS, HC
R-0
HS, HC
IWCOL I2COV D_A P S R_W RBF TBF
bit 7 bit 0
bit 15 ACKSTAT: Acknowledge Status bit
(When operating as I
2
C master. Applicable to master transmit operation.)
1 = NACK received from slave
0 = ACK received from slave
Hardware set or clear at end of slave Acknowledge.
bit 14 TRSTAT: Transmit Status bit
(When operating as I
2
C master. Applicable to master transmit operation.)
1 = Master transmit is in progress (8 bits + ACK)
0 = Master transmit is not in progress
Hardware set at beginning of master transmission.
Hardware clear at end of slave Acknowledge.
bit 13-11 Unimplemented: Read as ‘0’
bit 10 BCL: Master Bus Collision Detect bit
1 = A bus collision has been detected during a master operation
0 = No collision
Hardware set at detection of bus collision.
bit 9 GCSTAT: General Call Status bit
1 = General call address was received
0 = General call address was not received
Hardware set when address matches general call address.
Hardware clear at Stop detection.
bit 8 ADD10: 10-bit Address Status bit
1 = 10-bit address was matched
0 = 10-bit address was not matched
Hardware set at match of 2nd byte of matched 10-bit address.
Hardware clear at Stop detection.
bit 7 IWCOL: Write Collision Detect bit
1 = An attempt to write the I2CTRN register failed because the I
2
C module is busy
0 = No collision
Hardware set at occurrence of write to I2CTRN while busy (cleared by software).
bit 6 I2COV: Receive Overflow Flag bit
1 = A byte was received while the I2CRCV register is still holding the previous byte
0 = No overflow
Hardware set at attempt to transfer I2CRSR to I2CRCV (cleared by software).
bit 5 D_A: Data/Address bit (when operating as I
2
C slave)
1 = Indicates that the last byte received was data
0 = Indicates that the last byte received was device address
Hardware clear at device address match.
Hardware set by write to I2CTRN or by reception of slave byte.

Table of Contents

Other manuals for Microchip Technology dsPIC30F