SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
This UART provide an interface to connect to the µDMA controller. Figure 19-4 shows the interface between the µDMA and UART.
Each µDMA request signal remains asserted until the relevant µDMA clear signal is asserted. After the µDMA clear signal is deasserted, a request signal can become active again, if conditions are setup correctly. The µDMA clear signal must be connected to the µDMA active signal from the µDMA module. This signal is asserted when µDMA is granted access and is active. The µDMA active signal is deasserted when the µDMA transfer completes. Connecting the µDMA active signal from µDMA to the µDMA request clear input of the UART module ensures that no requests are generated by the UART module while the µDMA is active.
The burst transfer and single transfer request signals are not mutually exclusive, and both can be asserted at the same time. For example, when there is more data than the watermark level in the receive FIFO, the burst transfer request and the single transfer request are asserted.
When the UART is in the FIFO enabled mode, data transfers can be made by either single or burst transfers depending on the programmed watermark level and the amount of data in the FIFO. Table 19-1 lists the trigger points for the transmit and receive FIFOs. In addition, if the UART.DMACTL[2] DMAONERR bit is set, the µDMA receive request outputs (for single and burst requests) are disabled when the UART error interrupt is asserted (more specifically if any of the error interrupts in the RIS register, PERIS, BERIS, FERIS or OERIS are asserted). The µDMA receive request outputs remain inactive until the error bit is cleared. The µDMA transmit request outputs are unaffected.
Watermark Level | Transmit Burst Length (number of empty locations) | Receive Burst Length (number of filled locations) |
---|---|---|
1/8 | 28 | 4 |
1/4 | 24 | 8 |
1/2 | 16 | 16 |
3/4 | 8 | 24 |
7/8 | 4 | 28 |
Enable the UART by setting the UART.CTL[0] UARTEN bit.