Skip to main content
Associate III
July 24, 2023
Question

STM32 C011

  • July 24, 2023
  • 2 replies
  • 1194 views

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?

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
July 24, 2023

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

meenaAuthor
Associate III
July 24, 2023

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

 

waclawek.jan
Super User
July 24, 2023

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

JW