Analog Input (GPIO)


Programming Instructions

Enable Peripheral

Make sure the peripheral is enabled:

Setup analog input mode

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


Configuration Registers

GPIOx_MODER - Mode register




Pin x11Analog input mode