nomagic

no, it is not magic !

User Tools

Site Tools


datasheet:rp2040

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
datasheet:rp2040 [2023/11/20 00:09] larsdatasheet:rp2040 [2024/10/12 03:41] (current) – [QSPI] lars
Line 21: Line 21:
 | 0x18 00 00 00 | | XIP SSI | | | 0x18 00 00 00 | | XIP SSI | |
 | 0x20 00 00 00 | | **SRAM** | | | 0x20 00 00 00 | | **SRAM** | |
-| 0x20 00 00 00 | 0x20 04 00 00 | SRAM stripped | SRAM 0 -3 |+| 0x20 00 00 00 | 0x20 04 00 00 | SRAM striped | SRAM 0 -3 |
 | 0x20 04 00 00 | | SRAM 4 | | | 0x20 04 00 00 | | SRAM 4 | |
 | 0x20 04 10 00 | 0x20 04 20 00 | SRAM5 | | | 0x20 04 10 00 | 0x20 04 20 00 | SRAM5 | |
Line 41: Line 41:
 | 0x40 02 80 00 | | PLL_SYS | | | 0x40 02 80 00 | | PLL_SYS | |
 | 0x40 02 c0 00 | | PLL USB | | | 0x40 02 c0 00 | | PLL USB | |
 +| 0x40 03 00 00 | | BUSCTRL | |
 +| 0x40 03 40 00 | | UART 0 | |
 +| 0x40 03 80 00 | | UART 1 | |
 +| 0x40 03 c0 00 | | SPI 0 | |
 +| 0x40 04 00 00 | | SPI 1 | |
 +| 0x40 04 40 00 | | I2C 0 | |
 +| 0x40 04 80 00 | | I2C 1 | |
 +| 0x40 04 c0 00 | | ADC | |
 +| 0x40 05 00 00 | | PWM | |
 +| 0x40 05 40 00 | | TIMER | |
 +| 0x40 05 80 00 | | WATCHDOG | |
 +| 0x40 05 c0 00 | | RTC | |
 +| 0x40 06 00 00 | | ROSC | |
 +| 0x40 06 40 00 | | Vreg and Chip Reset | |
 +| 0x40 06 80 00 | | | |
 +| 0x40 06 c0 00 | | TBMAN | | 
 | 0x50 00 00 00 | | **AHB-Lite Peripherals** | | | 0x50 00 00 00 | | **AHB-Lite Peripherals** | |
 +| 0x50 00 00 00 | | DMA | |
 +| 0x50 10 00 00 | | USB CTRL | |
 +| 0x50 10 00 00 | | USB CTRL DPRAM | |
 +| 0x50 11 00 00 | | USB CTRL REGS | |
 +| 0x50 20 00 00 | | PIO 0 | |
 +| 0x50 30 00 00 | | PIO 1 | |
 +| 0x50 40 00 00 | | XIP AUX | |
 | 0xd0 00 00 00 | | **IOPORT Registers** | | | 0xd0 00 00 00 | | **IOPORT Registers** | |
 +| 0xd0 00 00 00 | | SIO | |
 | 0xe0 00 00 00 | | **Cortex-M0+** | | | 0xe0 00 00 00 | | **Cortex-M0+** | |
 +| 0xe0 00 00 00 | | PPB | |
  
  
Line 92: Line 117:
  
 SIO: [[https://nomagic.de/datasheet/raspberrypi/rp2040/rp2040-datasheet.html#pf2b| Register]]  SIO: [[https://nomagic.de/datasheet/raspberrypi/rp2040/rp2040-datasheet.html#pf2b| Register]] 
 +
 +
 +=== Function select ===
 +^ \ ^ F0 ^ F1 ^ F2  ^ F3 ^ F4 ^ F5 ^ F6 ^ F7  ^ F8 ^ F9 ^ F10-31 ^
 +| GPIO  0 |  | SPI0 RX  | UART0 TX  | I2C0 SDA | PWM0 A | SIO | PIO0 | PIO1 |              | USB OVCUR DET |  |
 +| GPIO  1 |  | SPI0 CSn | UART0 RX  | I2C0 SCL | PWM0 B | SIO | PIO0 | PIO1 |              | USB VBUS DET  |  |
 +| GPIO  2 |  | SPI0 SCK | UART0 CTS | I2C1 SDA | PWM1 A | SIO | PIO0 | PIO1 |              | USB VBUS EN    |
 +| GPIO  3 |  | SPI0 TX  | UART0 RTS | I2C1 SCL | PWM1 B | SIO | PIO0 | PIO1 |              | USB OVCUR DET |  |
 +| GPIO  4 |  | SPI0 RX  | UART1 TX  | I2C0 SDA | PWM2 A | SIO | PIO0 | PIO1 |              | USB VBUS DET  |  |
 +| GPIO  5 |  | SPI0 CSn | UART1 RX  | I2C0 SCL | PWM2 B | SIO | PIO0 | PIO1 |              | USB VBUS EN    |
 +| GPIO  6 |  | SPI0 SCK | UART1 CTS | I2C1 SDA | PWM3 A | SIO | PIO0 | PIO1 |              | USB OVCUR DET |  |
 +| GPIO  7 |  | SPI0 TX  | UART1 RTS | I2C1 SCL | PWM3 B | SIO | PIO0 | PIO1 |              | USB VBUS DET  |  |
 +| GPIO  8 |  | SPI1 RX  | UART1 TX  | I2C0 SDA | PWM4 A | SIO | PIO0 | PIO1 |              | USB VBUS EN    |
 +| GPIO  9 |  | SPI1 CSn | UART1 RX  | I2C0 SCL | PWM4 B | SIO | PIO0 | PIO1 |              | USB OVCUR DET |  |
 +| GPIO 10 |  | SPI1 SCK | UART1 CTS | I2C1 SDA | PWM5 A | SIO | PIO0 | PIO1 |              | USB VBUS DET  |  |
 +| GPIO 11 |  | SPI1 TX  | UART1 RTS | I2C1 SCL | PWM5 B | SIO | PIO0 | PIO1 |              | USB VBUS EN    |
 +| GPIO 12 |  | SPI1 RX  | UART0 TX  | I2C0 SDA | PWM6 A | SIO | PIO0 | PIO1 |              | USB OVCUR DET |  |
 +| GPIO 13 |  | SPI1 CSn | UART0 RX  | I2C0 SCL | PWM6 B | SIO | PIO0 | PIO1 |              | USB VBUS DET  |  |
 +| GPIO 14 |  | SPI1 SCK | UART0 CTS | I2C1 SDA | PWM7 A | SIO | PIO0 | PIO1 |              | USB VBUS EN    |
 +| GPIO 15 |  | SPI1 TX  | UART0 RTS | I2C1 SCL | PWM7 B | SIO | PIO0 | PIO1 |              | USB OVCUR DET |  |
 +| GPIO 16 |  | SPI0 RX  | UART0 TX  | I2C0 SDA | PWM0 A | SIO | PIO0 | PIO1 |              | USB VBUS DET  |  |
 +| GPIO 17 |  | SPI0 CSn | UART0 RX  | I2C0 SCL | PWM0 B | SIO | PIO0 | PIO1 |              | USB VBUS EN    |
 +| GPIO 18 |  | SPI0 SCK | UART0 CTS | I2C1 SDA | PWM1 A | SIO | PIO0 | PIO1 |              | USB OVCUR DET |  |
 +| GPIO 19 |  | SPI0 TX  | UART0 RTS | I2C1 SCL | PWM1 B | SIO | PIO0 | PIO1 |              | USB VBUS DET  |  |
 +| GPIO 20 |  | SPI0 RX  | UART1 TX  | I2C0 SDA | PWM2 A | SIO | PIO0 | PIO1 | CLOCK GPIN0  | USB VBUS EN    |
 +| GPIO 21 |  | SPI0 CSn | UART1 RX  | I2C0 SCL | PWM2 B | SIO | PIO0 | PIO1 | CLOCK GPOUT0 | USB OVCUR DET |  |
 +| GPIO 22 |  | SPI0 SCK | UART1 CTS | I2C1 SDA | PWM3 A | SIO | PIO0 | PIO1 | CLOCK GPIN1  | USB VBUS DET  |  |
 +| GPIO 23 |  | SPI0 TX  | UART1 RTS | I2C1 SCL | PWM3 B | SIO | PIO0 | PIO1 | CLOCK GPOUT1 | USB VBUS EN    |
 +| GPIO 24 |  | SPI1 RX  | UART1 TX  | I2C0 SDA | PWM4 A | SIO | PIO0 | PIO1 | CLOCK GPOUT2 | USB OVCUR DET |  |
 +| GPIO 25 |  | SPI1 CSn | UART1 RX  | I2C0 SCL | PWM4 B | SIO | PIO0 | PIO1 | CLOCK GPOUT3 | USB VBUS DET  |  |
 +| GPIO 26 |  | SPI1 SCK | UART1 CTS | I2C1 SDA | PWM5 A | SIO | PIO0 | PIO1 |              | USB VBUS EN    |
 +| GPIO 27 |  | SPI1 TX  | UART1 RTS | I2C1 SCL | PWM5 B | SIO | PIO0 | PIO1 |              | USB OVCUR DET |  |
 +| GPIO 28 |  | SPI1 RX  | UART0 TX  | I2C0 SDA | PWM6 A | SIO | PIO0 | PIO1 |              | USB VBUS DET  |  |
 +| GPIO 29 |  | SPI1 CSn | UART0 RX  | I2C0 SCL | PWM6 B | SIO | PIO0 | PIO1 |              | USB VBUS EN    |
 +| QSPI_SCK | XIP SCK |  |  |  |  | SIO |  |  |  |  |  |
 +| QSPI_CSn | XIP CSn |  |  |  |  | SIO |  |  |  |  |  |
 +| QSPI_SD0 | XIP SD0 |  |  |  |  | SIO |  |  |  |  |  |
 +| QSPI_SD1 | XIP SD1 |  |  |  |  | SIO |  |  |  |  |  |
 +| QSPI_SD2 | XIP SD2 |  |  |  |  | SIO |  |  |  |  |  |
 +| QSPI_SD3 | XIP SD3 |  |  |  |  | SIO |  |  |  |  |  |
  
 ==== QSPI ==== ==== QSPI ====
Line 101: Line 166:
  
 XIP_CTRL: [[https://nomagic.de/datasheet/raspberrypi/rp2040/rp2040-datasheet.html#pf80| Register]]  XIP_CTRL: [[https://nomagic.de/datasheet/raspberrypi/rp2040/rp2040-datasheet.html#pf80| Register]] 
 +
 +^ FRF ^ description ^
 +| 00b | Motorola Serial Peripheral Protocol (SPI) |
 +| 01b | Texas Instruments Serial Protocol (SSP) |
 +| 10b | Nationa Semiconductor Microwire |
 +| 11b | reserved |
 +
  
 === clock === === clock ===
datasheet/rp2040.1700435356.txt.gz · Last modified: 2023/11/20 00:09 by lars