I have a system with a K22 where I use ADC0 with two channels using the A and B triggers.
The A & B channels are triggered by the PDB which also triggers a DAC and at the end of the PDB cycle, it triggers 2 DMA channels to transfer the ADC0 A & B results, with each DMA cycle collecting 256 samples in a ping-pong buffer fashion.
After 10 or so of such cycles, I now need to switch the ADC channels to two different ones.
I tried calling ADC_DRV_ConfigConvChn to change the channels while the PDB and DMA keep going, but it seems that the ADC output 'locks up'.
What are the required steps to change the channel on the ADC while it is being triggered by the PDB?
Is disabling the ADC trigger in the PDB enough?