STMicroelectronics STM32WLEx Reference Manual page 11

Advanced arm-based 32-bit mcus with sub-ghz radio solution
Table of Contents

Advertisement

RM0461
7.4.1
7.4.2
7.4.3
7.4.4
7.4.5
7.4.6
7.4.7
7.4.8
7.4.9
8
General-purpose I/Os (GPIO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
8.1
GPIO introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
8.2
GPIO main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
8.3
GPIO functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
8.3.1
8.3.2
8.3.3
8.3.4
8.3.5
8.3.6
8.3.7
8.3.8
8.3.9
8.3.10
8.3.11
8.3.12
8.3.13
8.3.14
8.3.15
8.4
GPIO registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
8.4.1
8.4.2
8.4.3
8.4.4
8.4.5
8.4.6
8.4.7
HSEM register semaphore x (HSEM_Rx) . . . . . . . . . . . . . . . . . . . . . . 303
HSEM read lock register semaphore x (HSEM_RLRx) . . . . . . . . . . . . 304
HSEM interrupt enable register (HSEM_IER) . . . . . . . . . . . . . . . . . . . 305
HSEM interrupt clear register (HSEM_ICR) . . . . . . . . . . . . . . . . . . . . 305
HSEM interrupt status register (HSEM_ISR) . . . . . . . . . . . . . . . . . . . . 305
HSEM interrupt status register (HSEM_MISR) . . . . . . . . . . . . . . . . . . 306
HSEM clear register (HSEM_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
HSEM interrupt clear register (HSEM_KEYR) . . . . . . . . . . . . . . . . . . . 307
HSEM register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
General purpose I/O (GPIO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
I/O pin alternate function multiplexer and mapping . . . . . . . . . . . . . . . 312
I/O port control registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
I/O port data registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
I/O data bitwise handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
GPIO locking mechanism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
I/O alternate function input/output . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
External interrupt/wakeup lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
Input configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
Output configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
Alternate function configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
Analog configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
Using the LSE oscillator pins as GPIOs . . . . . . . . . . . . . . . . . . . . . . . 317
Using the GPIO pins in the RTC supply domain . . . . . . . . . . . . . . . . . 317
Using PH3 as GPIO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
GPIOx mode register (GPIOx_MODER) (x = A to B) . . . . . . . . . . . . . . 318
GPIOx output type register (GPIOx_OTYPER) (x = A to B) . . . . . . . . . 319
GPIOx output speed register (GPIOx_OSPEEDR) (x = A to B) . . . . . . 319
GPIOx pull-up/pull-down register (GPIOx_PUPDR) (x = A to B) . . . . . 320
GPIOx input data register (GPIOx_IDR) (x = A to B) . . . . . . . . . . . . . . 320
GPIOx output data register (GPIOx_ODR) (x = A to B) . . . . . . . . . . . . 321
GPIOx bit set/reset register (GPIOx_BSRR) (x = A to B) . . . . . . . . . . . 321
RM0461 Rev 5
Contents
11/1306
40

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32WLEx and is the answer not in the manual?

Table of Contents