SPRUJ17H March 2022 – October 2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
Although the DMA operation includes four modes (DMA modes 0 through 3), the information in UART Hardware Requests, assumes that mode 1 is used. (Mode 2 and mode 3 are legacy modes that use only one DMA request for each module.)
In mode 2, the remaining DMA request is used for RX. In mode 3, the remaining DMA request is used for TX.
DMA requests in mode 2 and mode 3 use the USARTi_DMA0 signals (where i = 0 to 5.
signals are not used by the module in mode 2 and mode 3:
The DMA mode and signals usage can be selected as follows:
When SCR[0]=1:
For example:
If the FIFOs are disabled (FCR[0]=0), DMA operations occur in single character transfers.
Note that when DMA Mode 0 has been programmed, the signals associated with DMA operation are not active.
Depending on UART_MDR3[2] SET_DMA_TX_THRESHOLD, the threshold can be programmed different ways:
The threshold value will be the value of the UART_TX_DMA_THRESHOLD register. If SET_TX_DMA_THRESHOLD + TX trigger spaces 64, then the default method of threshold is used: threshold value = TX FIFO size.
The threshold value = TX FIFO size TX trigger space. The TX DMA line is asserted if the TX FIFO level is lower then the threshold. It remains asserted until TX trigger spaces number of bytes are written into the FIFO. The DMA line is then deasserted and the FIFO level is compared with the threshold value.