Hi,Peter,could you help check the following code ?
…
ETIMER_0.CHANNEL[0].INTDMA.B.CMPLD2DE = 1; //enable DMA write requests to the CMPLD2(channel 0 ,Etimer0)
ETIMER_0.DREQ0.B. DREQ0 =00011; // select channel 0 CMPLD2 DMA write requests
ETIMER_0.DREQ0.B. DREQ0_EN =1; // DMA request enable
ETIMER_0.ENBL.B.ENBL =000001; // enable channel 0
DMAMUX.CHCONFIG[0].B.TRIG = 0;
DMAMUX.CHCONFIG[0].B.SOURCE = 14; // DMA write requests
DMAMUX.CHCONFIG[0].B.ENBL = 1;
EDMA.CHANNEL[0].TCDWORD0_.B.SADDR = &VAL_CMPLD2; // Source Address
EDMA.CHANNEL[0].TCDWORD16_.B.DADDR =&CMPLD2; // Destination address
(then configure smod,ssize and so on. )
I just want to emphasize destination address and principle,
My question : is destionation address in above codes right ?
Another question, could destionation address be the value which has no relation with CPMLD2 ?
Thanks very much!
Yanna