ADC continuous mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-03-05 3:02 PM
Hi i have a question about configuring your adc in continous mode!
I dont understand why this mode doesnt work when i set my EOCS to "EOC flag at the end of single channel conversion".
Let's say i m using multiple channels from adc and i dont want to work with DMA and instead i ll be working with interruptions directly .How can i get the value from each each channel if the EOC is raised only when the whole sequence is done?
Thanks in advance!
- Labels:
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-03-05 3:40 PM
> How can i get the value from each each channel if the EOC is raised only when the whole sequence is done?
You can't get them by polling. Use DMA to convert multiple channels in a sequence.
If you don't want DMA, two options:
- Convert channels one at a time, re-configuring the ADC between each.
- Convert a sequence, ensure it's being done slow enough that the interrupt can complete, and read out the value in the ADC sample complete interrupt.
