cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 C011

meena
Associate III

Hi,I am going to be a part of a firmware development using STM32C0 series. Can I able to use ADC input which is input power supply as EXT Interrupt  to wake up from sleep mode?How can be it assigned in ?Please Can anyone give an idea?

3 REPLIES 3

Before going to sleep, switch the given pin to Input in GPIO_MODER and switch on the EXTI interrupt in EXTI.

After wakeup from sleep, switch the pin back to Analog in GPIO_MODER and switch on the EXTI interrupt.

This is probably not something you can simply click in CubeMX, you may want to use normal register-based programming.

JW

thank you,can we make any other external pin connected to ADC and to be used asEXTI

 

You can, if the input signal impedance is low enough so that the digital input pin's leakage won't influence it.

JW