Datasheet

Table Of Contents
Data Sheet ADuC7060/ADuC7061
Rev. D | Page 89 of 108
I
2
C Master Status, I2CMSTA, Register
Name: I2CMSTA
Address: 0xFFFF0904
Default value: 0x0000
Access: Read only
Function: This 16-bit MMR is the I
2
C status register in master mode.
Table 98. I2CMSTA MMR Bit Designations
Bit
Name
Description
15:11 Reserved. These bits are reserved.
10 I2CBBUSY I
2
C bus busy status bit.
This bit is set to 1 when a start condition is detected on the I
2
C bus.
This bit is cleared when a stop condition is detected on the bus.
9 I2CMRxFO Master receive FIFO overflow.
This bit is set to 1 when a byte is written to the receive FIFO when it is already full.
This bit is cleared in all other conditions.
8 I2CMTC I
2
C transmission complete status bit.
This bit is set to 1 when a transmission is complete between the master and the slave with which it was
communicating. If the I2CMCENI bit in I2CMCON is set, an interrupt is generated when this bit is set.
Clear this interrupt source.
7 I2CMNA I
2
C master no acknowledge data bit
This bit is set to 1 when a no acknowledge condition is received by the master in response to a data write transfer. If
the I2CNACKENI bit in I2CMCON is set, an interrupt is generated when this bit is set.
This bit is cleared in all other conditions.
6
I2CMBUSY
I
2
C master busy status bit.
Set to 1 when the master is busy processing a transaction.
Cleared if the master is ready or if another master device has control of the bus.
5
I2CAL
I
2
C arbitration lost status bit.
This bit is set to 1 when the I
2
C master does not gain control of the I
2
C bus. If the I2CALENI bit in I2CMCON is set, an
interrupt is generated when this bit is set.
This bit is cleared in all other conditions.
4 I2CMNA I
2
C master no acknowledge address bit.
This bit is set to 1 when a no acknowledge condition is received by the master in response to an address. If the
I2CNACKENI bit in I2CMCON is set, an interrupt is generated when this bit is set.
This bit is cleared in all other conditions.
3 I2CMRXQ I
2
C master receive request bit.
This bit is set to 1 when data enters the receive FIFO. If the I2CMRENI in I2CMCON is set, an interrupt is generated.
This bit is cleared in all other conditions.
2 I2CMTXQ I
2
C master transmit request bit.
This bit goes high if the transmit FIFO is empty or contains only one byte and the master has transmitted an address
+ write. If the I2CMTENI bit in I2CMCON is set, an interrupt is generated when this bit is set.
This bit is cleared in all other conditions.
1:0 I2CMTFSTA I
2
C master transmit FIFO status bits.
[00] = I
2
C master transmit FIFO empty.
[01] = 1 byte in master transmit FIFO.
[10] = 1 byte in master transmit FIFO.
[11] = I
2
C master transmit FIFO full.