
Contents
RM0351
DocID024597 Rev 5
CRS low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
CRS control register (CRS_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
CRS configuration register (CRS_CFGR) . . . . . . . . . . . . . . . . . . . . . . 285
CRS interrupt and status register (CRS_ISR) . . . . . . . . . . . . . . . . . . . 286
CRS interrupt flag clear register (CRS_ICR) . . . . . . . . . . . . . . . . . . . . 288
CRS register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
General-purpose I/Os (GPIO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
GPIO functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
General-purpose I/O (GPIO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
I/O pin alternate function multiplexer and mapping . . . . . . . . . . . . . . . 293
I/O port control registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
I/O data bitwise handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
GPIO locking mechanism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
I/O alternate function input/output . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
External interrupt/wakeup lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
Output configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
Alternate function configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
Analog configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
Using the HSE or LSE oscillator pins as GPIOs . . . . . . . . . . . . . . . . . 299
Using the GPIO pins in the RTC supply domain . . . . . . . . . . . . . . . . . 299
Using PH3 as GPIO (only for STM32L496xx/4A6xx devices) . . . . . . . 299
GPIO port mode register (GPIOx_MODER) (x =A..I) . . . . . . . . . . . . . 300
GPIO port output type register (GPIOx_OTYPER) (x = A..I) . . . . . . . . 300
GPIO port input data register (GPIOx_IDR) (x = A..I) . . . . . . . . . . . . . 302
GPIO port output data register (GPIOx_ODR) (x = A..I) . . . . . . . . . . . 302