Good morning everyone
I'm trying to use one of the DMA channels to transmit data on UCA0.
I've got an array of data data[][200], so I set the DMASA to &data[0]. DMASA is set to UCA0TXBUF, and trigger is set to UCA0TXIFG. The DMA is set to single transfer.
DMASZ is set to the size of the current transmission ( given in number of bytes ), source and destination is also set to byte ( not word ).
But I cannot seem to make it work... From the datasheet it states that each transfer requires a new trigger, and that the DMASZ is decremented for each transfer, along with the incremententation of DMASA, but it looks to me like once I trigger the first transmission the DMA transfers all bytes ( from DMASZ ), while decrementing the DMASZ for each transfer, but the DMASA stays the same until the DMASZ reaches 0, only then will the DMA increment the source address.
Have I misunderstood anything here, or is there something wrong with the way I'm doing it ? Any help will me much appriciated.