By default, the general purpose input/output pins, GPIO[n], are set as input with weak pull-down. GPIO is supplied by the VDDIO pin.
The number of GPIOs varies with product variant and package. See Pin assignments for more information about the number of supported GPIOs.
GPIO has the following configurable features:
- General purpose input
- Control input
- Output
- BUCK control
- LOADSW control
Note: Events may occur when GPIO configuration is changed on the
fly.
Pull-down is prioritized if both pull-up and pull-down are activated on a GPIO pin at the same time.
The following figure shows BUCK control.
Pins LED0, LED1, and LED2 can be used as open-drain outputs, see LEDDRV — LED drivers.