stm32l476 a/d questions
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-02-22 11:14 AM
If I am doing software trigger single conversion of 3 a/d channels and I set my end of conversion selection to be 'End of Single conversion' (CubeMX):
- Can I expect my to enter my ISR A/D callback at EACH EOCIF?
- All indications are that if I read the AD register or write a '1' to the EOCIF, the flag will get cleared. Will I have time to read the AD register prior to it taking the next sample in the sequence?
- Will an EOS flag get set on the last channel in the sequence? I know the IE bit will not be set but I want to know if I can read the EOSIF and see it has been set.....
Labels:
- Labels:
-
STM32L4 series
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-02-23 1:39 PM
If you go through the hassle of setting up a DMA channel to deliver your AD data to memory, you can use the DMA transfer complete flag in the DMA ISR when all three channels have finished. I have never tried doing three AD channels on a single software trigger and grab the data one by one.
