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.

MSPM0L1306: Could DMA achieve the following functions?

Part Number: MSPM0L1306
Other Parts Discussed in Thread: SYSCONFIG, MSPM0G3507

the PMW is Edge-aligned Down Counting mode, once the counter reaches Zero, the CC register is updated one time.

we need update 500 data to CC register, whether we could use DMA mode to achieve this function?

If Yes, how to set the DMA?

500 data are stored in the Flash.

Many thanks

BR

Kelly

  • Hi, 

    You can have a try!

    1. Add DMA in sysconfig manually, Set DMA trigger:

    2. PWM trigger publisher:

    ------

    For other DMA configuration, please refer to other code example that using DMA.

    A DMA transfer data to DAC is recommended: dac12_dma_sampletimegen_LP_MSPM0G3507_nortos_ticlang

        /* Configure DMA source, destination and size */
        DL_DMA_setSrcAddr(
            DMA, DMA_CH0_CHAN_ID, (uint32_t) &gOutputSignalSine64[0]);
        DL_DMA_setDestAddr(DMA, DMA_CH0_CHAN_ID, (uint32_t) & (DAC0->DATA0));
        DL_DMA_setTransferSize(
            DMA, DMA_CH0_CHAN_ID, sizeof(gOutputSignalSine64) / sizeof(uint16_t));
    
        DL_DMA_enableChannel(DMA, DMA_CH0_CHAN_ID);

    ------

    Looking forward to your success.

    Regards,

    Helic

  • Hi ,

    Thanks.very much for your reply.

    let me try it and will keep you updated.

    many thanks.

    BR

    Kelly

  • Hi, 

    That's great!

    Regards,

    Helic