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
Registry Types
InES GPIO HAL Interface


Mode register




Pin x10Analog input mode

There are no data registers available in alternate function mode.

  • stm32/peripherals/gpio_analog.1478592367.txt.gz
  • Last modified: 2016/11/08 08:06
  • by feur