Datasheet

Table Of Contents
2 x I2C (two-wire serial interface) - Section 4.3, “I2C”
8 x two-channel PWM - Section 4.5, “PWM”
2 x external clock inputs - Section 2.15.2.3, “External Clocks”
4 x general purpose clock output - Section 2.15, “Clocks”
4 x input to ADC - Section 4.9, “ADC and Temperature Sensor”
USB VBUS management - Section 4.1.2.8, “VBUS Control”
External interrupt requests, level or edge-sensitive
The QSPI bank supports the following functions:
Software control via SIO (Single-Cycle IO) - Section 2.3.1.2, “GPIO Control”
Flash execute in place (XIP) - Section 2.6.3, “Flash”
The logical structure of an example IO is shown in Figure 36.
Figure 36. Logical
structure of a GPIO.
Each GPIO can be
controlled by one of a
number of peripherals,
or by software control
registers in the SIO.
The function select
(FSEL) selects which
peripheral output is in
control of the GPIO’s
direction and output
level, and/or which
peripheral input can
see this GPIO’s input
level. These three
signals (output level,
output enable, input
level) can also be
inverted, or forced
high or low, using the
GPIO control registers.
2.19.2. Function Select
The function allocated to each GPIO is selected by writing to the FUNCSEL field in the GPIO’s CTRL register. See
GPIO0_CTRL as an example. The functions available on each IO are shown in Table 289 and Table 291.
Table 289. General
Purpose Input/Output
(GPIO) User Bank
Functions
Function
GPIO F1 F2 F3 F4 F5 F6 F7 F8 F9
0 SPI0 RX UART0 TX I2C0 SDA PWM0 A SIO PIO0 PIO1 USB OVCUR DET
1 SPI0 CSn UART0 RX I2C0 SCL PWM0 B SIO PIO0 PIO1 USB VBUS DET
2 SPI0 SCK UART0 CTS I2C1 SDA PWM1 A SIO PIO0 PIO1 USB VBUS EN
3 SPI0 TX UART0 RTS I2C1 SCL PWM1 B SIO PIO0 PIO1 USB OVCUR DET
4 SPI0 RX UART1 TX I2C0 SDA PWM2 A SIO PIO0 PIO1 USB VBUS DET
5 SPI0 CSn UART1 RX I2C0 SCL PWM2 B SIO PIO0 PIO1 USB VBUS EN
6 SPI0 SCK UART1 CTS I2C1 SDA PWM3 A SIO PIO0 PIO1 USB OVCUR DET
7 SPI0 TX UART1 RTS I2C1 SCL PWM3 B SIO PIO0 PIO1 USB VBUS DET
8 SPI1 RX UART1 TX I2C0 SDA PWM4 A SIO PIO0 PIO1 USB VBUS EN
9 SPI1 CSn UART1 RX I2C0 SCL PWM4 B SIO PIO0 PIO1 USB OVCUR DET
RP2040 Datasheet
2.19. GPIO 258