Hello,
The DMA has several options on which peripheral interrupt triggers a transfer. I'm looking to sample 4 different input channels and have them all trigger a DMA transfer independently after each conversion is completed. Unfortunately, there are only 2 ADCINTs able to be selected for a DMA channel (page 825 Technical Reference Manual).
There are also EPWMSOCA and B for EPWM2 through 7. I could potentially use these to trigger the DMA channels, but I'm concerned that this will trigger the DMA at the start of conversion, before a new sample has actually been placed in the ADC result register. Then, instead of transferring new data at each SOC, I would just be transferring the data that was leftover in the register. Can anybody explain the timing here? If DMA takes enough time to get started, such that by the time it performs the transfer, the new result is in the ADC result register, than this will work perfectly.
Or is there a better way to do this that I am missing entirely?
Thanks,
Matthew