AnsweredAssumed Answered

Reading the ADC result at an ADC High Limit Interrupt service routine

Question asked by Md Rishad Ahmed on Nov 2, 2018
Latest reply on Nov 6, 2018 by Peter Becher

In an ISR , ADC High Limit Interrupt, I am trying to read the ADC value at a specific point (please see the attached figure- I am trying to read the minimum value). I am using the attached simple code to read the ADC result when the interrupt happens (Sample 0 > 0.85 V). However, I am reading multiple values (gradually increasing between 0.85 to 1.6 V) instead of just one when the interrupt happens. Also the values are changing all the time. I am using a structure named adc0_array to save 100 values. Will anyone please let me know where is the problem?

Thanks. Rishad