Skip to content

Latest commit

 

History

History
59 lines (35 loc) · 2.78 KB

File metadata and controls

59 lines (35 loc) · 2.78 KB

GPIO & RTC GPIO

Overview

esp32

The {IDF_TARGET_NAME} chip features 40 physical GPIO pads. Some GPIO pads cannot be used or do not have the corresponding pin on the chip package. For more details, see {IDF_TARGET_NAME} Technical Reference Manual > IO MUX and GPIO Matrix (GPIO, IO_MUX) [PDF]. Each pad can be used as a general purpose I/O or can be connected to an internal peripheral signal.

  • Note that GPIO6-11 are usually used for SPI flash.
  • GPIO34-39 can only be set as input mode and do not have software pullup or pulldown functions.

esp32s2

The {IDF_TARGET_NAME} chip features 43 physical GPIO pads. Some GPIO pads cannot be used or do not have the corresponding pin on the chip package. For more details, see {IDF_TARGET_NAME} Technical Reference Manual > IO MUX and GPIO Matrix (GPIO, IO_MUX) [PDF]. Each pad can be used as a general purpose I/O or can be connected to an internal peripheral signal.

  • Note that GPIO26-32 are usually used for SPI flash.
  • GPIO46 is fixed to pull-down and is input only

esp32c3

The {IDF_TARGET_NAME} chip features 22 physical GPIO pads. Some GPIO pads cannot be used or do not have the corresponding pin on the chip package. For more details, see {IDF_TARGET_NAME} Technical Reference Manual > IO MUX and GPIO Matrix (GPIO, IO_MUX) [PDF]. Each pad can be used as a general purpose I/O or can be connected to an internal peripheral signal.

  • Note that GPIO12-17 are usually used for SPI flash.
  • Note that GPIO 18 and 19 are used by USB-JTAG by default. In order to use them as GPIOs, USB-JTAG will be disabled by the drivers.
  • {IDF_TARGET_NAME} doesn't have separate "RTC GPIO" support. However, GPIO0-5 keep the rtc feature, which can be used for power-management and analog subsystem.

SOC_RTCIO_INPUT_OUTPUT_SUPPORTED

There is also separate "RTC GPIO" support, which functions when GPIOs are routed to the "RTC" low-power and analog subsystem. These pin functions can be used when:

- In deep sleep :SOC_ULP_SUPPORTED: - The Ultra Low Power co-processor <../../api-guides/ulp> is running - Analog functions such as ADC/DAC/etc are in use.

Application Example

GPIO output and input interrupt example: peripherals/gpio/generic_gpio.

API Reference - Normal GPIO

inc/gpio.inc

inc/gpio_types.inc

SOC_RTCIO_INPUT_OUTPUT_SUPPORTED

API Reference - RTC GPIO

inc/rtc_io.inc

inc/rtc_io_types.inc