MSPM33C321A: SysConfig Question about SPI-DMA

Part Number: MSPM33C321A

In the DMA settings in the SPI peripheral what are the units of "Transfer Size"?

image.png

Are they bytes or "words", i.e., the number of bytes in the source length setting?

  • The units are given by Source/Destination Length. Usually those are the same (e.g. one Byte in, one Byte out per transfer), but if e.g. Source=Byte and Destination=Long the overall source/destination sizes in memory would be different.

    I suppose a more natural term would be "Transfer Count", but the register is named DMAxSZ.

  • Hello Keith, 

    Just as Bruce said, this refers to the count of DMA transfers.  It is not the number of bytes in your source buffer unless your configured DMA data width happens to be 8 bits.

    Best Regards, 

    Benedict Jojo