SLAU893B October 2023 – July 2024 MSPM0C1103 , MSPM0C1103-Q1 , MSPM0C1104 , MSPM0C1104-Q1
The DMA controller has six addressing modes. The addressing mode for each DMA channel is independently configurable. For example, channel 0 can transfer between two fixed addresses, while channel 1 transfers between two blocks of addresses. The addressing modes are shown in Figure 4-2.
The addressing modes are:
Addressing modes 1-4 shown above are simply configured with the DMASRCINCR and DMADSTINCR control bits. The DMASRCINCR bits select if the source address is incremented, decremented, or unchanged after each transfer. The DMADSTINCR bits select if the destination address is incremented, decremented, or unchanged after each transfer.
Addressing modes 5 and 6 shown above are also configured with the DMASRCINCR and DMADSTINCR control bits along with the help of additional parameters such as DMAEM for leveraging the extended modes of the DMA. Refer to Section 4.2.4.1 and Section 4.2.4.2 for more details on how to properly configure and use the DMA in Fill Mode and Table Mode.
Transfers can be byte to byte, short word to short word, word to word, long word to long word, or any combination of the four. When transferring (short or long) word to byte, only the lower byte of the source data transfers. When transferring (long) word to short word, only the lower short word of the source data transfers. When transferring byte to (short or long) word, the upper bytes of the destination word is cleared when the transfer occurs. When transferring short word to (long) word, the upper short word is cleared when the transfer occurs. When transferring word to long word, the upper word is cleared. There is no packing or unpacking support by combining several source byte transfers to one single destination (short) word or the reverse.