DMAMUX configuration example for periodic triggering
Hi all,
I seem not to be able to achieve periodic DMA transfers using DMAMux periodic triggering functionality.
I read on SPC574Kx reference manual that (§7.3.9.2)
- DMAMUX1 receives PIT_0 Trigger 0-4
- DMAMUX2 receives PIT_0 Trigger 5
and that (Table44):
- PIT_0 periodic trigger 1 is mapped to DMA channel 9
Now, suppose I have configured PIT_0 channel 1 to be my periodic source, I should then set my eDMA transfer control descriptor data in DMA_0.TCD[9]
my DMACHMUX config is:
DMACHMUX_1.CHCONFIG[1].B.ENBL = FALSE; //§ 25.3.1
DMACHMUX_1.CHCONFIG[1].B.SOURCE = 0;
DMACHMUX_1.CHCONFIG[1].B.TRIG = TRUE;
DMACHMUX_1.CHCONFIG[1].B.ENBL = TRUE;
Am I correct?
Unfortunately I cannot get the dma channel service to start upon PIT timer expiration.
What am I missing?
Is there a configuration example available somewhere?
Thanks in advance,
M
