SPRUJ55D September 2023 – July 2025 AM263P2 , AM263P2-Q1 , AM263P4 , AM263P4-Q1
There are four modes of DMA operation, DMA mode 0/1/2/3. 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).
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.