I'm using an ADuCM320.
For our analog channels we measure about 20 channels with the ADC sequence.
We need a strict timed sample frequency, so I've configured the ADC that the sequence performs only once until I restart it manually again.
I've made a hardware timer interrupt which starts a new DMA transfer and restarts the ADC sequence.
I've also enabled the sequence complete interrupt for verifying the strange behaviour I noticed.
Ik set 2 IO pins in the timer interrupt which starts the sequence and the DMA transfer. (about every 400uS)
1 pin is cleared in the DMA ready interrupt and the other one in the sequence complete interrupt.
I would expect that the dma transfer complete interrupt always occurs slightly after the sequence completes, but it seems that this is not the case always.
Depending on the moment I start the timer the DMA interrupt can sometimes occur way before the sequence complete interrupt occur.
Does anyone know what's the trigger to fire the dma complete interrupt? It seems that it does not wait for if the ADC sequence is completed.
What I was trying to achieve is that the DMA complete intterrupt was always occuring a fixed delay after the timer interrupt which triggers a new ADC sequence and dma transfer, but it isn't unfortunately.
The DMA is running in auto request mode.,, the adc sequence in single shot mode.