cancel
Showing results for 
Search instead for 
Did you mean: 

stm32l476 a/d questions

SWenn.1
Senior III

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):

  1. Can I expect my to enter my ISR A/D callback at EACH EOCIF?
  2. 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?
  3. 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.....
1 REPLY 1

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.