Texas Instruments TMS320C642X Stereo System User Manual


 
www.ti.com
Registers
3.3 I2C Interrupt Status Register (ICSTR)
The I2C interrupt status register (ICSTR) is used to determine which interrupt has occurred and to read
status information.
The I2C interrupt status register (ICSTR) is shown in Figure 15 and described in Table 7.
Figure 15. I2C Interrupt Status Register (ICSTR)
31 16
Reserved
R-0
15 14 13 12 11 10 9 8
Reserved SDIR NACKSNT BB RSFULL XSMT AAS AD0
R-0 R/W1C-0 R/W1C-0 R/W1C-0 R-0 R-1 R-0 R-0
7 6 5 4 3 2 1 0
Reserved SCD ICXRDY ICRRDY ARDY NACK AL
R-0 R/W1C-0 R/W1C-1 R/W1C-0 R/W1C-0 R/W1C-0 R/W1C-0
LEGEND: R/W = Read/Write; R = Read only; W1C = Write 1 to clear (writing 0 has no effect); -n = value after reset
Table 7. I2C Interrupt Status Register (ICSTR) Field Descriptions
Bit Field Value Description
31-15 Reserved 0 These reserved bit locations are always read as zeros. A value written to this field has no effect.
14 SDIR Slave direction bit. In digital-loopback mode (DLB), the SDIR bit is cleared to 0.
0 I2C is acting as a master-transmitter/receiver or a slave-receiver. SDIR is cleared by one of the
following events:
A STOP or a START condition.
SDIR is manually cleared. To clear this bit, write a 1 to it.
1 I2C is acting as a slave-transmitter.
13 NACKSNT No-acknowledgment sent bit. NACKSNT bit is used when the I2C is in the receiver mode. One instance
in which NACKSNT is affected is when the NACK mode is used (see the description for NACKMOD in
Section 3.9).
0 NACK is not sent. NACKSNT is cleared by one of the following events:
It is manually cleared. To clear this bit, write a 1 to it.
The I2C is reset (either when 0 is written to the IRS bit of ICMDR or when the processor is reset).
1 NACK is sent. A no-acknowledge bit was sent during the acknowledge cycle on the I2C-bus.
12 BB Bus busy bit. BB bit indicates whether the I2C-bus is busy or is free for another data transfer. In the
master mode, BB is controlled by the software.
0 Bus is free. BB is cleared by one of the following events:
The I2C receives or transmits a STOP bit (bus free).
BB is manually cleared. To clear this bit, write a 1 to it.
The I2C is reset (either when 0 is written to the IRS bit of ICMDR or when the processor is reset).
1 Bus is busy. When the STT bit in ICMDR is set to 1, a restart condition is generated. BB is set by one of
the following events:
The I2C has received or transmitted a START bit on the bus.
SCL is in a low state and the IRS bit in ICMDR is 0.
11 RSFULL Receive shift register full bit. RSFULL indicates an overrun condition during reception. Overrun occurs
when the receive shift register (ICRSR) is full with new data but the previous data has not been read
from the data receive register (ICDRR). The new data will not be copied to ICDRR until the previous
data is read. As new bits arrive from the SDA pin, they overwrite the bits in ICRSR.
0 No overrun is detected. RSFULL is cleared by one of the following events:
ICDRR is read.
The I2C is reset (either when 0 is written to the IRS bit of ICMDR or when the processor is reset).
1 Overrun is detected.
25
SPRUEN0D–March 2011 Inter-Integrated Circuit (I2C) Peripheral
Submit Documentation Feedback
© 2011, Texas Instruments Incorporated