This is an old revision of the document!


Analog Input (GPIO)

  • The output buffer is disabled.
  • The Schmitt trigger input is inactive.
  • The pull-up and -down resitors are inactive.
  • Reading IDR gets “0”.


Make sure the peripheral is enabled:

  • Enable GPIOx in RCC→AHBENR[0].

Configure the MODE register, for every pin that should act as analog input:

  • Write 0x10 to the corresponding fields in GPIOx→MODE.


Hardware Abstraction Layer
Register Types
InES GPIO HAL Interface


Mode register




Pin x11Analog input mode
  • stm32/peripherals/gpio_analog.1491817103.txt.gz
  • Last modified: 2017/04/10 09:38
  • by kesr