This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

map430f5438a: Can I set up again the size of DMAxSZ?

Hello,

i'm using the mspf5438A.

What is the procedure in relation to resize the DMAxSZ?
 
I found no reference to the how to  change DMAXSZ during work.

Is it possible?
For example,if I'm supposed to transmit information
of various lengths and receive various length of information.
Can I set up  the size of DMAXSZ  again?

Asher.

  • What exactly do you mean with "during work"?

    You must not change DMAxSZ while a DMA transfer is running (if the description in the User's Guide is correct, it will be reloaded with the original value once it reaches zero). But when the DMA is no longer active, there is no problem changing it in preparation for the next transfer.

  • Hello,

    i mean in "During work" , when the DMA was set once and transfer data
    and now need to set the DMA again to new size, destination, source address.

    So,
    1) one way is to wait that the DMA will stop ( wait to DMAEN == 0)
    2) second way, in case of repeated burst ( DMAEN is always set)
    , need of force DMAEN = 0.

    and just after that can set the: DMAxSZ.

    i believe that the same priciple is for changing
    DMADA, DMASA. (I have not found anything that contradicts it).

    I will check it in my code.

    Thanks.
    Asher.

**Attention** This is a public forum