14.4.2 I2C FIFO Interrupts
In addition to the seven basic I2C interrupts, the transmit and receive FIFOs each contain the ability to generate
an interrupt (I2CINT2A). The transmit FIFO can be configured to generate an interrupt after transmitting a
defined number of bytes, up to 4. The receive FIFO can be configured to generate an interrupt after receiving a
defined number of bytes, up to 4. These two interrupt sources are ORed together into a single maskable CPU
interrupt.
shows the structure of I2C FIFO interrupt. The interrupt service routine can then read
the FIFO interrupt status flags to determine from which source the interrupt came. See the I2C transmit FIFO
register (I2CFFTX) and the I2C receive FIFO register (I2CFFRX) descriptions.
Figure 14-18. I2C FIFO Interrupt
14.5 Resetting or Disabling the I2C Module
You can reset or disable the I2C module in two ways:
• Write 0 to the I2C reset bit (IRS) in the I2C mode register (I2CMDR). All status bits (in I2CSTR) are forced to
their default values, and the I2C module remains disabled until IRS is changed to 1. The SDA and SCL pins
are in the high-impedance state.
• Initiate a device reset by driving the XRS pin low. The entire device is reset and is held in the reset state
until you drive the pin high. When the XRS pin is released, all I2C module registers are reset to their default
values. The IRS bit is forced to 0, which resets the I2C module. The I2C module stays in the reset state until
you write 1 to IRS.
The IRS must be 0 while you configure or reconfigure the I2C module. Forcing IRS to 0 can be used to save
power and to clear error conditions.
14.6 I2C Registers
This section describes the C28x I2C Module Registers.
14.6.1 I2C Base Address Table
Table 14-7. I2C Base Address Table
Bit Field Name
Base Address
Instance
Structure
I2caRegs
I2C_REGS
0x0000_7900
Inter-Integrated Circuit Module (I2C)
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
853
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......