cancel
Showing results for 
Search instead for 
Did you mean: 

Why would analog watchdog fire interrupt even when the value is within the guarded range?

RDien
Associate III

I am trying to catch levels out of threshold using ADC and analog watchdog on NUCLEO-L552ZE-Q. Unfortunately analog watchdog fires interrupt even when value is within the guarded range.

I came across this example: https://community.st.com/s/article/how-to-configure-and-use-the-stm32-adc-analog-watchdog-feature

and it works like a charm! But it doesn't imply catching a single event like I do.

Spend several days trying to figure out the cause and no luck. Please help!

2 REPLIES 2
TDK
Guru

It could be that the value which triggered it was already overwritten by the time you looked at it. You have a lot going on in there. Perhaps try a simpler example to convince yourself it's working correctly, or to show that it is not.

If you feel a post has answered your question, please click "Accept as Solution".
RDien
Associate III

Yes, this thought also crossed my mind. I tried to change the threshold values blindly and seems like it works. Seems like you are right. Thanks!