www.ti.com
Functional Description
213
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Inter-Integrated Circuit (I
2
C) Interface
generated as required to keep the FIFO full, until the number of bytes specified in the I2CMBLEN register
is transferred to the FIFO (and the I2CMBCOUNT register reaches 0x0). At this point, no further requests
are generated until the next BURST command is issued. If the µDMA is disabled, FIFOs are serviced
based on the interrupts active in the master interrupt status registers, the FIFO trigger values shown in the
I2CFIFOSTATUS register, and completion of a BURST transfer.
When the master module is receiving FIFO data, the RX FIFO is initially empty and no requests are
asserted. If data are read from the slave and placed into the RX FIFO, the dma_sreq signal to the µDMA
is asserted to indicate there are data to be transferred. If the RX FIFO contains at least 4 bytes, the
dma_req signal is also asserted. The µDMA continues to transfer data out of the RX FIFO until it has
reached the amount of bytes programmed in the I2CMBLEN register.
NOTE: The TXFEIM interrupt mask bit in the I2CMIMR register should be clear (masking the TXFE
interrupt) when the master is performing an RX BURST from the RX FIFO, and unmasked
before starting a TX FIFO transfer.
7.2.5.1.2 Slave Module
The slave module also has the capability to use the µDMA in RX and TX FIFO data transfers. If the TX
FIFO is assigned to the slave module and the TXFIFO bit is set in the I2CSCSR register, the slave module
generates a single µDMA request, dma_sreq, if the master module requests the next byte transfer. If the
FIFO fill level is less than the trigger level, a µDMA multiple transfer request, dma_req, is asserted to
continue data transfers from the µDMA.
If the RX FIFO is assigned to the slave module and the RXFIFO bit is set in the I2CSCSR register, then
the slave module generates a signal µDMA request, dma_sreq, if there is any data to be transferred. The
dma_req signal is asserted when the RX FIFO has more data than the trigger level programmed by the
RXTRIG bit in the I2CFIFOCTL register.
NOTE: TI recommends that an application should not switch between the I2CSDR register and TX
FIFO or vice versa for successive transactions.
7.2.6 Command Sequence Flow Charts
This section details the steps required to perform the various I
2
C transfer types in both master and slave
mode.
7.2.6.1 I
2
C Master Command Sequences
Figure 7-7, Figure 7-8, Figure 7-9, Figure 7-10, Figure 7-11, and Figure 7-12 show the flow charts of
command sequences available for the I
2
C master.