2017-07-27 03:14 AM
Perhaps the title is wrong, but my code behaves like this: I have configured 4 channels to be converted in the ADC;
I have put a variable which increments inside ADC irq EOC (
EOC_Counter
) and another which increments inside ADC irq EOSQ.EOC_Counter
Solved! Go to Solution.
2017-08-01 01:16 PM
ADC_Wait(ADC1,ENABLE) fixed the problem
2017-07-27 08:53 AM
Yeah, I'd generally avoid doing that, the DMA TC/HT should be used as an EOC for multiple channels. ie all 4 complete, or multiple thereof.
DMA is likely to end-run any EOC interrupt from the ADC.
Your description lacks a lot of clarity. Rather than try and explain, post a clear and concise code example demonstrating the issue.
2017-08-01 01:16 PM
ADC_Wait(ADC1,ENABLE) fixed the problem