2025-01-09 05:55 AM
IN AN4899, figure 18, it states:
"To reduce power consumption, set
the pin as a push-pull output and
drive it in the same direction as the
internal pull-up / pull-down resistor.
Alternately, set pin as analog input."
I'm a little confused here. If there is already an internal pull-up, for example, then why would you drive it high again in push-pull mode? Why not use open drain with a pull-up/pull-down or simply output low in push-pull configuration?
STM32 microcontroller GPIO hardware settings and low-power consumption - Application note
I am using STM32H743