2021-12-14 05:33 AM
Would like the ADC on STM32F745 to wake up the micro from Standby if a certain positive or negative threshold is reached. Is this possible?
2021-12-14 05:50 AM
Welcome, @LJain.1, to the community!
Yes, you can set a threshold and rise an interrupt, see Analog Watchdog in RM0385.
Regards
/Peter
2021-12-14 08:15 AM
Thanks for the prompt reply, Peter.
Followup question - Will this interrupt function even when the device is in Standby? There's a table in the spec which indicates that ADC support in Standby is not available (refer to table 14 from the spec you referenced below).
Thanks,
Lakeri
2021-12-14 08:28 AM
Oh sorry, I overlooked that you want to get off standby. No, you can only come out of standby with the specified wake-up sources, so that you would e.g. have to work with an external comparator and use the WKUP pin.
Regards
/Peter
2021-12-15 02:44 AM
ok, thats in line with my understanding of the spec as well.
Another followup question - what about using the ADC interrupt (on STM32F745) to wake up from sleep? Table 14 indicates that the support for ADCx in Sleep mode is O (Optional - Disabled by default. Can be enabled by software). Does this mean that before entering sleep mode (e.g. WFI), a software sequence needs to be followed to keep the ADC on during sleep mode? If yes, then where can I find the details of this sequence?
Much thanks,
Lakeri