Preliminary
www.ti.com
Registers
Table 7-8. I2C Status Raw Register (I2C_IRQSTATUS_RAW) Field Descriptions (continued)
Bit
Field
Value
Description
13
RDR
Receive draining IRQ status. I2C Receive mode only.
This read/clear only bit is set to 1 when the module is configured as a receiver, a stop condition was
received on the bus and the RX FIFO level is below the configured threshold (RXTRSH). When this bit
is set to 1 by the core, CPU must read the I2C_BUFSTAT.RXSTAT register in order to check the
amount of data left to be transferred from the FIFO. Then, according to the mode set (DMA or
interrupt), the CPU needs to enable the draining feature of the DMA controller with the number of data
bytes to be transferred (I2C_BUFSTAT.RXSTAT), or generate read data accesses according to this
value (IRQ mode). The interrupt needs to be cleared after the DMA controller was reconfigured (if DMA
mode enabled), or before generating data accesses to the FIFO (if IRQ mode enabled).
If the corresponding interrupt was enabled, an interrupt is signaled to the local host. The CPU can also
poll this bit. For more details about RDR generation, refer to the FIFO Management subsection.
The CPU can only clear this bit by writing a 1 into this register. A write 0 has no effect.
0
Receive draining inactive
1
Receive draining enabled
Value after reset is low.
12
BB
This read-only bit indicates the state of the serial bus.
In slave mode, on reception of a start condition, the device sets BB to 1. BB is cleared to 0 after
reception of a stop condition.
In master mode, the software controls BB. To start a transmission with a start condition, MST, TRX,
and STT must be set to 1 in the I2C_CON register. To end a transmission with a stop condition, STP
must be set to 1 in the I2C_CON register. When BB = 1 and STT = 1, a restart condition is generated.
0
Bus is free
1
Bus is occupied
Value after reset is low.
11
ROVR
Receive overrun status. Writing into this bit has no effect. I2C receive mode only.
This read-only bit indicates whether the receiver has experienced overrun. Overrun occurs when the
shift register is full and the receive FIFO is full. An overrun condition does not result in a data loss; the
peripheral is just holding the bus (low on SCL) and prevents other bytes from being received.
ROVR is set to 1 when the I2C has recognized an overrun. ROVR is clear when reading I2C_DATA
register, or when resetting the I2C (I2C_CON:I2C_EN = 0).
0
Normal operation
1
Receiver overrun
Value after reset is low.
10
XUDF
Transmit underflow status. Writing into this bit has no effect. I2C transmit mode only.
This read-only bit indicates whether the transmitter has experienced underflow. In master transmit
mode, underflow occurs when the shift register is empty, the transmit FIFO is empty, and there are still
some bytes to transmit (DCOUNT
0).
In slave transmit mode, underflow occurs when the shift register is empty, the transmit FIFO is empty,
and there are still some bytes to transmit (read request from external I2C master).
XUDF is set to 1 when the I2C has recognized an underflow. The core holds the line till the underflow
cause has disappeared.
XUDF is clear when writing I2C_DATA register or resetting the I2C (I2C_CON:I2C_EN = 0).
0
Normal operation
1
Transmit underflow
Value after reset is low.
863
SPRUGX9 – 15 April 2011
Inter-Integrated Circuit (I2C) Controller Module
© 2011, Texas Instruments Incorporated
Содержание TMS320C6A816 Series
Страница 2: ...Preliminary 2 SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 92: ...92 Read This First SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1122: ...1122 Multichannel Audio Serial Port McASP SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1562: ...1562 Real Time Clock RTC SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1658: ...1658 Timers SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1750: ...1750 UART IrDA CIR Module SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1984: ...1984 Universal Serial Bus USB SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...