Esp32-S2 Datasheet en
Esp32-S2 Datasheet en
Esp32-S2 Datasheet en
Datasheet
Including:
ESP32-S2
ESP32-S2FH2
ESP32-S2FH4
Version 1.1
Espressif System
Copyright © 2020
www.espressif.com
About This Document
This document provides the specifications of ESP32-S2 family.
Document Updates
Please always refer to the latest version on https://www.espressif.com/en/support/download/documents.
Revision History
For any changes to this document over time, please refer to the last page.
Certification
Download certificates for Espressif products from www.espressif.com/en/certificates.
All liability, including liability for infringement of any proprietary rights, relating to use of information in this
document is disclaimed. No licenses express or implied, by estoppel or otherwise, to any intellectual property
rights are granted herein. The Wi-Fi Alliance Member logo is a trademark of the Wi-Fi Alliance. The Bluetooth
logo is a registered trademark of Bluetooth SIG.
All trade names, trademarks and registered trademarks mentioned in this document are property of their
respective owners, and are hereby acknowledged.
Copyright © 2020 Espressif Systems (Shanghai) Co., Ltd. All rights reserved.
ESP32-S2 family is a highly-integrated, low-power, 2.4 ESP32-S2 family is designed for ultra-low-power
GHz Wi-Fi System-on-Chip (SoC) solution. With its applications with its multiple low-power modes. Its
state-of-the-art power and RF performance, this SoC featured fine-grained clock gating, dynamic voltage
is an ideal choice for a wide variety of application and frequency scaling, and adjustable power amplifier
scenarios relating to Internet of Things (IoT), wearable output power, contribute to an optimal trade-off
electronics and smart home. between communication range, data rate and power
integrates a Wi-Fi MAC, Wi-Fi radio and baseband, RF The device provides a rich set of peripheral interfaces
switch, RF balun, power amplifier, low noise amplifier including SPI, I2 S, UART, I2 C, LED_PWM, LCD
(LNA), etc. The chip is fully compliant with the IEEE interface, camera interface, ADC, DAC, touch sensor,
802.11b/g/n protocol and offers a complete Wi-Fi temperature sensor, as well as 43 GPIOs. It also
solution. includes a full-speed USB On-The-Go (OTG) interface
At the core of this chip is an Xtensa® 32-bit LX7 CPU to enable USB communication.
that operates at up to 240 MHz. The chip supports ESP32-S2 family has several dedicated hardware
application development, without the need for a host security features. Cryptographic accelerators are
MCU. integrated for AES, SHA and RSA algorithms.
Additional hardware security features are provided by
The on-chip memory includes 320 KB SRAM and 128
KB ROM. It also supports multiple external the RNG, HMAC and Digital Signature modules as well
SPI/QSPI/OSPI flash and external RAM chips for more as flash encryption and secure boot signature
Block Diagram
Espressif’s ESP32-S2 Wi-Fi SoC
ROM RF receiver
Wi-Fi MAC
Xtensa®
32-bit LX7
Switch
Cache
Balun
Microprocessor Clock
generator
SRAM Wi-Fi
baseband RF
transmitter
Embedded General
flash purpose Timers RTC
I2S / Camera
SPI / LCD
interface / LCD
interface ULP
interface PMU RTC memory
co-processor
GPIO I2C
LED_PWM UART
AES RNG
Touch sensor ADC
Wi-Fi
Security
• 4096-bit OTP, up to 1792 bits for users – Random Number Generator (RNG)
Product Overview 3
Block Diagram 3
Features 4
Applications 5
2 Pin Definitions 11
2.1 Pin Layout 11
2.2 Pin Description 12
2.3 Power Scheme 15
2.4 Strapping Pins 16
3 Functional Description 18
3.1 CPU and Memory 18
3.1.1 CPU 18
3.1.2 Internal Memory 18
3.1.3 External Flash and RAM 18
3.1.4 Address Mapping Structure 19
3.1.5 Cache 19
3.2 System Clocks 20
3.2.1 CPU Clock 20
3.2.2 RTC Clock 20
3.2.3 Audio PLL Clock 20
3.3 Analog Peripherals 20
3.3.1 Analog-to-Digital Converter (ADC) 20
3.3.2 Digital-to-Analog Converter (DAC) 21
3.3.3 Temperature Sensor 21
3.3.4 Touch Sensor 21
3.4 Digital Peripherals 22
3.4.1 General Purpose Input / Output Interface (GPIO) 22
3.4.2 Serial Peripheral Interface (SPI) 22
3.4.3 LCD Interface 23
3.4.4 Universal Asynchronous Receiver Transmitter (UART) 23
3.4.5 I²C Interface 24
3.4.6 I²S Interface 24
3.4.7 Camera Interface 24
3.4.8 Infrared Remote Controller 24
3.4.9 Pulse Counter 24
3.4.10 LED_PWM 24
3.4.11 USB 1.1 OTG 25
4 Electrical Characteristics 33
4.1 Absolute Maximum Ratings 33
4.2 Recommended Operating Conditions 33
4.3 VDD_SPI Output Characteristics 33
4.4 DC Characteristics (3.3 V, 25 °C) 34
4.5 ADC Characteristics 34
4.6 Current Consumption Characteristics 35
4.7 Reliability Qualifications 36
4.8 Wi-Fi Radio 36
4.8.1 Transmitter Characteristics 36
4.8.2 Receiver Characteristics 36
5 Package Information 38
Revision History 45
ESP32-S2 F H x
High-Temparature
Flash
Chip Family
1.2 Comparison
Ordering Code Embedded Flash Operating Temperature (°C) Junction Temperature(°C) Package (mm)
ESP32-S2 No –40 ∼ 85 –40 ∼ 125 QFN56 (7*7)
ESP32-S2FH2 2 MB –40 ∼ 105 –40 ∼ 105 QFN56 (7*7)
ESP32-S2FH4 4 MB –40 ∼ 105 –40 ∼ 105 QFN56 (7*7)
Note:
ESP32-S2FH4 is not mass produced yet.
2. Pin Definitions
45 VDD3P3_CPU
56 CHIP_PU
55 GPIO46
50 GPIO45
52 XTAL_N
53 XTAL_P
49 U0RXD
48 U0TXD
47 MTMS
43 MTCK
44 MTD0
54 VDDA
51 VDDA
46 MTDI
VDDA 1 42 GPIO38
LNA_IN 2 41 GPIO37
VDD3P3 3 40 GPIO36
VDD3P3 4 39 GPIO35
GPIO0 5 38 GPIO34
GPIO1 6 37 GPIO33
GPIO2 7 36 SPID
GPIO3 8 35 SPIQ
GPIO4 9
ESP32-S2 Family 34 SPICLK
GPIO5 10 33 SPICS0
GPIO6 11 32 SPIWP
GPIO7 12 31 SPIHD
GPIO9 14 29 SPICS1
GPIO10 15
GPIO11 16
GPIO12 17
GPIO13 18
GPIO14 19
VDD3P3_RTC 20
XTAL_32K_P 21
XTAL_32K_N 22
DAC_1 23
DAC_2 24
GPIO19 25
GPIO20 26
VDD3P3_RTC_IO 27
GPIO21 28
2. Pin Definitions
2.2 Pin Description
2. Pin Definitions
Name No. Type Power domain Function
GPIO19 25 I/O/T VDD3P3_RTC_IO RTC_GPIO19, GPIO19, U1RTS, ADC2_CH8, CLK_OUT2, USB_D-
GPIO20 26 I/O/T VDD3P3_RTC_IO RTC_GPIO20, GPIO20, U1CTS, ADC2_CH9, CLK_OUT1, USB_D+
VDD3P3_RTC_IO 27 PD VDD3P3_RTC_IO Input power supply for RTC IO
GPIO21 28 I/O/T VDD3P3_RTC_IO RTC_GPIO21, GPIO21
SPICS1 29 I/O/T VDD_SPI SPICS1, GPIO26
VDD_SPI 30 PD — Output power supply: 1.8 V or the same voltage as VDD3P3_RTC_IO
SPIHD 31 I/O/T VDD_SPI SPIHD, GPIO27
SPIWP 32 I/O/T VDD_SPI SPIWP, GPIO28
SPICS0 33 I/O/T VDD_SPI SPICS0, GPIO29
SPICLK 34 I/O/T VDD_SPI SPICLK, GPIO30
Submit Documentation Feedback
2. Pin Definitions
Name No. Type Power domain Function
XTAL_P 53 — — External crystal input
VDDA 54 PA — Analog power supply
GPIO46 55 I VDD3P3_CPU GPIO46
High: on, enables the chip.
CHIP_PU 56 I VDD3P3_RTC_IO Low: off, the chip powers off.
Note: Do not leave the CHIP_PU pin floating.
GND 57 G — Ground
Note:
• CLK = SPICLK
• IO2/WP# = SPIWP
• IO3/HOLD# = SPIHD
These pins are not recommended for other uses.
3. For the data port connection between ESP32-S2 family and external flash please refer to Section 3.4.2.
4. Power supply for GPIO33, GPIO34, GPIO35, GPIO36 and GPIO37 is configurable to be either VDD3P3_CPU (default) or VDD_SPI.
ESP32-S2 Family Datasheet V1.1
5. The pin function in this table refers only to some fixed settings and do not cover all cases for signals that can be input and output through the GPIO matrix. For more information
on the GPIO matrix, please refer to Table 17.
2. Pin Definitions
• VDD3P3_RTC_IO
• VDD3P3_CPU
• VDD_SPI
• VDD3P3_RTC
VDD_SPI can be an input power supply or an output power supply. VDD_SPI connects to the output of an
internal LDO whose input is VDD3P3_RTC_IO. When VDD_SPI is connected to the same PCB net together with
VDD3P3_RTC_IO, the internal LDO should be disabled.
VDD_SPI
3.3 V or 1.8 V
The VDD_SPI voltage can be configured at 1.8 V using an internal LDO, or powered by VDD3P3_RTC_IO via
RSP I (nominal 3.3 V). Since ESP32-S2FH2 and ESP32-S2FH4 are embedded with 3.3 V SPI flash, the VDD_SPI
must be powered by VDD3P3_RTC_IO via RSP I . The VDD_SPI can be powered off via software to minimize the
current leakage of flash in the Deep-sleep mode.
Notes on CHIP_PU:
The illustration below shows the power-up and reset timing of ESP32-S2 family. Details about the parameters are
listed in Table 3.
t0 t1
2.8 V
VDDA,
VDD3P3,
VDD3P3_RTC,
VDD3P3_RTC_IO,
VDD3P3_CPU
VIL_nRST
CHIP_PU
During the chip’s system reset (power-on-reset, RTC watchdog reset, brownout reset, analog super watchdog
reset, and crystal clock glitch detection reset), the latches of the strapping pins sample the voltage level as
strapping bits of ”0” or ”1”, and hold these bits until the chip is powered down or shut down.
GPIO0, GPIO45 and GPIO46 are connected to the chip’s internal pull-up/pull-down during the chip reset.
Consequently, if they are unconnected or the connected external circuit is high-impedance, the internal weak
pull-up/pull-down will determine the default input level of these strapping pins.
To change the strapping bit values, users can apply the external pull-down/pull-up resistances, or use the host
MCU’s GPIOs to control the voltage level of these pins when powering on ESP32-S2 family.
VDD_SPI Voltage 1
Pin Default 3.3 V 1.8 V
GPIO45 Pull-down 0 1
Booting Mode 2
Note:
1. The functionality of strapping pin GPIO45 to select VDD_SPI voltage may be disabled by setting VDD_SPI_FORCE
eFuse to 1. In such a case the voltage is selected with eFuse bit VDD_SPI_TIEH.
2. Since ESP32-S2FH2 and ESP32-S2FH4 are embedded with 3.3 V SPI flash, VDD_SPI must be configured to 3.3
V.
3. The strapping combination of GPIO46 = 1 and GPIO0 = 0 is invalid and will trigger unexpected behavior.
4. ROM code can be printed over U0TXD (by default) or DAC_1, depending on the eFuse bit.
3. Functional Description
This chapter describes the functions of ESP32-S2.
• Up to 10.5 MB of read-write data memory space can be mapped into RAM as individual 64 KB blocks.
8-bit, 16-bit and 32-bit reads and writes are supported. Blocks from this 10.5 MB space can also be
mapped into flash, for read operations only.
Note:
After ESP32-S2 family is initialized, firmware can customize the mapping of external RAM or flash into the CPU address
space.
0x0000_0000
0x3EFF_FFFF
0x3F00_0000
0x3F3F_FFFF
0x3F40_0000
0x3F4F_FFFF
0x3F50_0000
0x3FF7_FFFF
0x3FF8_0000
0x3FF9_DFFF
0x3FF9_E000
Cache 0x3FFF_FFFF
0x4000_0000
0x4007_1FFF
0x4007_2000
0x4007_FFFF Embedded
DMA
memory
0x4008_0000
0x407F_FFFF
0x4080_0000
0x4FFF_FFFF
External memory MMU
0x5000_0000
0x5000_1FFF
0x5000_2000
0x5FFF_FFFF
0x6000_0000
DMA Peripheral
0x600B_FFFF
0x600C_0000
0x617F_FFFF
0x6180_0000
0x6180_3FFF
0x6180_4000
0xFFFF_FFFF
Note:
The memory space with gray background is not available to users.
3.1.5 Cache
ESP32-S2 family has independent instruction Cache and data Cache that have the following features:
• configurable size of 8 KB or 16 KB
• pre-load function
• lock function
• PLL clock
The application can select the clock source from the external crystal clock source, the PLL clock, the audio PLL
clock, or the internal 8 MHz oscillator. The selected clock source drives the CPU clock directly, or after division,
depending on the application.
• internal 31.25 kHz clock (derived from the internal 8 MHz oscillator divided by 256)
The RTC slow clock is used for RTC counter, RTC watchdog and low-power controller; while the RTC fast clock
for RTC peripherals and sensing controllers.
The temperature sensor has a range of –20 °C to 110 °C. It is designed primarily to sense the temperature
changes inside the chip. The temperature value depends on factors like microcontroller clock frequency or I/O
load. Generally, the chip’s internal temperature is higher than the ambient temperature.
All GPIOs can be configured as internal pull-up or pull-down, or set to high impedance, except for GPIO46,
which is fixed to pull-down. When configured as an input, the input value can be read by software through the
register. The input can also be set to edge-trigger or level-trigger to generate CPU interrupts. Except for GPIO46
(input only), all digital IO pins are bi-directional, non-inverting and tristate, including input and output buffers with
tristate control. These pins can be multiplexed with other functions, such as the UART, SPI, etc. For low-power
operations, the GPIOs can be set to hold their states.
In SPI memory mode, SPI0, SPI1 and SPI2 interface with external SPI memory. Data transmission is in
multiples of bytes. Up to 8-line STR/DDR reads and writes are supported. The clock frequency is
configurable to a maximum of 80 MHz in STR mode and a maximum of 40 MHz in DDR mode.
When SPI2 acts as a general-purpose SPI, it can operate in master and slave modes. The master mode
supports 2-line full-duplex communication and 1-/2-/4-/8-line half-duplex communication. The slave mode
supports 2-line full-duplex communication and 1-/2-/4-line half-duplex communication. The host’s clock
frequency is configurable. Data transmission is in multiples of bytes. The clock polarity (CPOL) and phase
(CPHA) are also configurable. The SPI2 interface supports DMA.
– In 2-line full-duplex communication mode, the host’s clock frequency is configurable to 80 MHz at
most, and the slave’s clock frequency to 40 MHz at most. Four modes of SPI transfer format are
supported.
As a general-purpose SPI interface, SPI3 can operate in master and slave modes, in 2-line full-duplex and
1-line half-duplex communication modes. The host’s clock frequency is configurable. Data transmission is
in multiples of bytes. The clock polarity (CPOL) and phase (CPHA) are also configurable. The SPI3 interface
supports DMA.
– In 2-line full-duplex communication mode, the host’s clock frequency is configurable to a maximum of
80 MHz, and the slave’s clock frequency to 40 MHz at most. Four modes of SPI transfer format are
supported.
– In 1-line half-duplex communication mode, the host’s clock frequency is configurable to a maximum of
80 MHz, and the slave’s clock frequency to 40 MHz at most. The four modes of SPI transfer format
are supported.
In most cases, the data port connection between ESP32-S2 family and external flash is as follows:
• GPIO33 = IO4
• GPIO34 = IO5
• GPIO35 = IO6
• GPIO36 = IO7
• GPIO37 = DQS
• SPIQ (SPIQ) = DO
• SPID (SPID) = DI
management of the CTS and RTS signals and software flow control (XON and XOFF). All of the interfaces can be
accessed by the DMA controller or directly by the CPU.
Users can program command registers to control I²C interfaces, so that they have more flexibility.
The I²S interface has a dedicated DMA controller. PCM interface is supported.
3.4.10 LED_PWM
The LED_PWM controller can generate eight independent channels. The LED_PWM controller:
• can generate digital waveforms with configurable periods and duties. The accuracy of duty can be up to 18
bits within a 1 ms period.
• has multiple clock sources, including APB clock and external crystal clock.
• supports gradual increase or decrease of duty cycle, which is useful for the LED RGB color-gradient
generator.
• support for session request protocol (SRP) and host negotiation protocol (HNP)
• Clock generator
Additional calibrations are integrated to cancel any radio imperfections, such as:
• carrier leakage
• baseband nonlinearities
• RF nonlinearities
• antenna matching
These built-in calibration routines reduce the cost, time, and specialized equipment required for product testing,
and certification.
The clock generator has built-in calibration and self-test circuits. Quadrature clock phases and phase noise are
optimized on-chip with patented calibration algorithms which ensure the best performance of the receiver and
the transmitter.
• 802.11b/g/n
• 802.11n MCS32
• antenna diversity;
ESP32-S2 family supports antenna diversity with an external RF switch. One or more GPIOs control the RF
switch and select the best antenna to minimize the effects of channel imperfections.
The ESP32-S2 family Wi-Fi MAC applies low-level protocol functions automatically. They are as follows:
• TXOP
• WMM
• 802.11mc FTM
• Active mode: CPU and chip radio are powered on. The chip can receive, transmit, or listen.
• Modem-sleep mode: The CPU is operational and the clock speed can be reduced. The Wi-Fi baseband
and radio are disabled, but Wi-Fi connection can remain active.
• Light-sleep mode: The CPU is paused. The RTC peripherals, as well as the ULP co-processor are running.
Any wake-up events (MAC, host, RTC timer, or external interrupts) will wake up the chip. Wi-Fi connection
can remain active.
• Deep-sleep mode: Only the RTC memory and RTC peripherals are powered on. Wi-Fi connection data are
stored in the RTC memory. The ULP co-processor is functional.
• Hibernation mode: The internal 8-MHz oscillator and ULP co-processor are disabled. The RTC recovery
memory is powered down. Only one RTC timer on the slow clock and certain RTC GPIOs are active. The
RTC timer or the RTC GPIOs can wake up the chip from the Hibernation mode.
For power consumption in different power modes, please refer to Table 13.
ESP32-S2 family has two ULP co-processors, with one based on RISC-V instruction set architecture
(ULP-RISC-V) and the other on finite state machine (ULP-FSM).
• support for common instructions including arithmetic, jump, and program control instructions
During the flash boot process, RWDT and the first MWDT are enabled automatically in order to detect and
recover from booting errors.
• four stages, each with a programmable timeout value. Each stage can be configured and enabled/disabled
separately
• one of three/four (for MWDTs/ RWDT) possible actions (interrupt, CPU reset, core reset and system reset)
available upon expiry of each stage
• write protection, to prevent RWDT and MWDT configuration from being altered inadvertently
• Secure Boot feature uses a hardware root of trust to ensure only signed firmware (with RSA-PSS signature)
can be booted.
• HMAC module can use a software inaccessible MAC key to generate SHA-HMAC signatures for identity
verification, as well as other uses.
• Digital Signature module can use a software inaccessible secure key to generate MAC signatures for
identity verification.
Note:
• GPIO46 is input-only and can not be used for output function.
4. Electrical Characteristics
Note:
1. Please refer to Power Scheme, section 2.3, for more information.
2. When VDD_SPI is used to drive peripherals, VDD3P3_RTC_IO should comply with the peripherals’ specifications.
For more information, please refer to Table 9.
3. When using a single-power supply, the recommended output current is 500 mA or more.
Note:
In real-life applications, when VDD_SPI works in 3.3 V output mode, VDD3P3_RTC_IO may be affected by RSP I . For
example, when VDD3P3_RTC_IO is used to drive an external 3.3 V flash, it should comply with the following specifications:
VDD3P3_RTC_IO > VDD_flash_min + I_flash_max*RSP I
Among which, VDD_flash_min is the minimum operating voltage of the flash, and I_flash_max the maximum current.
For more information, please refer to Power Scheme, section 2.3.
Note:
Note:
• When reading voltages greater than 2450 mV, ADC accuracy will be worse than that in the table above.
• To get better DNL results, users can sample multiple times and apply a filter, or calculate the average value.
Note:
The current consumption figures for in RX mode are for cases when the peripherals are disabled and the CPU idle.
Note:
• The current consumption figures in Modem-sleep mode are for cases where the CPU is powered on and the cache
idle.
• When Wi-Fi is enabled, the chip switches between Active and Modem-sleep modes. Therefore, current consump-
tion changes accordingly.
• In Modem-sleep mode, the CPU frequency changes automatically. The frequency depends on the CPU load and
the peripherals used.
• During Deep-sleep, when the ULP co-processor is powered on, peripherals such as GPIO and I²C are able to
operate.
• The ”ULP sensor-monitored pattern” refers to the mode where the ULP coprocessor or the sensor works periodi-
cally. When touch sensors work with a duty cycle of 1%, the typical current consumption is 22 µA.
1. JEDEC document JEP157 states that 250 V CDM allows safe manufacturing with a standard ESD control process.
2. JEDEC document JEP155 states that 500 V HBM allows safe manufacturing with a standard ESD control process.
5. Package Information
Pin 1 Pin 1
Pin 2 Pin 2
Pin 3 Pin 3
Note:
The pins of the chip are numbered in an anti-clockwise direction from Pin 1 in the top view.
A.1. IO MUX
IO_MUX
Pin Analog Analog Analog Digital Digital Digital Digital Digital Drive Strength
Power Supply Pin Digital Pin Power Domain RTC_GPIO Type Type Type Type Type At Reset After Reset
No. Pin Function0 Function1 Function0 Function1 Function2 Function3 Function4 (Default)
1 VDDA
2 LNA_IN
3 VDD3P3
4 VDD3P3
5 GPIO0 VDD3P3_RTC_IO RTC_GPIO0 GPIO0 I/O/T GPIO0 I/O/T 2‘d2 oe=0, ie=1, wpu oe=0, ie=1, wpu,
6 GPIO1 VDD3P3_RTC_IO TOUCH1 ADC1_CH0 RTC_GPIO1 GPIO1 I/O/T GPIO1 I/O/T 2‘d2 oe=0, ie=1 oe=0, ie=1
7 GPIO2 VDD3P3_RTC_IO TOUCH2 ADC1_CH1 RTC_GPIO2 GPIO2 I/O/T GPIO2 I/O/T 2‘d2 oe=0, ie=1 oe=0, ie=1
8 GPIO3 VDD3P3_RTC_IO TOUCH3 ADC1_CH2 RTC_GPIO3 GPIO3 I/O/T GPIO3 I/O/T 2‘d2 oe=0, ie=1 oe=0, ie=0
9 GPIO4 VDD3P3_RTC_IO TOUCH4 ADC1_CH3 RTC_GPIO4 GPIO4 I/O/T GPIO4 I/O/T 2‘d2 oe=0, ie=1 oe=0, ie=0
10 GPIO5 VDD3P3_RTC_IO TOUCH5 ADC1_CH4 RTC_GPIO5 GPIO5 I/O/T GPIO5 I/O/T 2‘d2 oe=0, ie=0 oe=0, ie=0
11 GPIO6 VDD3P3_RTC_IO TOUCH6 ADC1_CH5 RTC_GPIO6 GPIO6 I/O/T GPIO6 I/O/T 2‘d2 oe=0, ie=0 oe=0, ie=0
12 GPIO7 VDD3P3_RTC_IO TOUCH7 ADC1_CH6 RTC_GPIO7 GPIO7 I/O/T GPIO7 I/O/T 2‘d2 oe=0, ie=0 oe=0, ie=0
13 GPIO8 VDD3P3_RTC_IO TOUCH8 ADC1_CH7 RTC_GPIO8 GPIO8 I/O/T GPIO8 I/O/T 2‘d2 oe=0, ie=0 oe=0, ie=0
14 GPIO9 VDD3P3_RTC_IO TOUCH9 ADC1_CH8 RTC_GPIO9 FSPIHD I1/O/T GPIO9 I/O/T FSPIHD I1/O/T 2‘d2 oe=0, ie=0 oe=0, ie=1
15 GPIO10 VDD3P3_RTC_IO TOUCH10 ADC1_CH9 RTC_GPIO10 FSPICS0 I1/O/T GPIO10 I/O/T FSPIIO4 I1/O/T FSPICS0 I1/O/T 2‘d2 oe=0, ie=0 oe=0, ie=1
16 GPIO11 VDD3P3_RTC_IO TOUCH11 ADC2_CH0 RTC_GPIO11 FSPID I1/O/T GPIO11 I/O/T FSPIIO5 I1/O/T FSPID I1/O/T 2‘d2 oe=0, ie=0 oe=0, ie=1
17 GPIO12 VDD3P3_RTC_IO TOUCH12 ADC2_CH1 RTC_GPIO12 FSPICLK I1/O/T GPIO12 I/O/T FSPIIO6 I1/O/T FSPICLK I1/O/T 2‘d2 oe=0, ie=0 oe=0, ie=1
18 GPIO13 VDD3P3_RTC_IO TOUCH13 ADC2_CH2 RTC_GPIO13 FSPIQ I1/O/T GPIO13 I/O/T FSPIIO7 I1/O/T FSPIQ I1/O/T 2‘d2 oe=0, ie=0 oe=0, ie=1
19 GPIO14 VDD3P3_RTC_IO TOUCH14 ADC2_CH3 RTC_GPIO14 FSPIWP I1/O/T GPIO14 I/O/T FSPIDQS I1/O/T FSPIWP I1/O/T 2‘d2 oe=0, ie=0 oe=0, ie=1
20 VDD3P3_RTC
21 XTAL_32K_P VDD3P3_RTC_IO XTAL_32K_P ADC2_CH4 RTC_GPIO15 GPIO15 I/O/T GPIO15 I/O/T U0RTS O 2‘d2 oe=0, ie=0 oe=0, ie=0
22 XTAL_32K_N VDD3P3_RTC_IO XTAL_32K_N ADC2_CH5 RTC_GPIO16 GPIO16 I/O/T GPIO16 I/O/T U0CTS I1 2‘d2 oe=0, ie=0 oe=0, ie=0
23 DAC_1 VDD3P3_RTC_IO DAC_1 ADC2_CH6 RTC_GPIO17 GPIO17 I/O/T GPIO17 I/O/T U1TXD O 2‘d2 oe=0, ie=0 oe=0, ie=1
24 DAC_2 VDD3P3_RTC_IO DAC_2 ADC2_CH7 RTC_GPIO18 GPIO18 I/O/T GPIO18 I/O/T U1RXD I1 CLK_OUT3 O 2‘d2 oe=0, ie=0 oe=0, ie=1
25 GPIO19 VDD3P3_RTC_IO USB_D- ADC2_CH8 RTC_GPIO19 GPIO19 I/O/T GPIO19 I/O/T U1RTS O CLK_OUT2 O 2‘d2 oe=0, ie=0 oe=0, ie=0
26 GPIO20 VDD3P3_RTC_IO USB_D+ ADC2_CH9 RTC_GPIO20 GPIO20 I/O/T GPIO20 I/O/T U1CTS I1 CLK_OUT1 O 2‘d2 oe=0, ie=0 oe=0, ie=0
27 VDD3P3_RTC_IO
28 GPIO21 VDD3P3_RTC_IO RTC_GPIO21 GPIO21 I/O/T GPIO21 I/O/T 2‘d2 oe=0, ie=0 oe=0, ie=0
29 SPICS1 VDD_SPI SPICS1 I1/O/T GPIO26 I/O/T 2‘d2 oe=0, ie=1, wpu oe=1, ie=1, wpu
30 VDD_SPI
31 SPIHD VDD_SPI SPIHD I1/O/T GPIO27 I/O/T 2‘d2 oe=0, ie=1, wpu oe=0, ie=1, wpu
32 SPIWP VDD_SPI SPIWP I1/O/T GPIO28 I/O/T 2‘d2 oe=0, ie=1, wpu oe=0, ie=1, wpu
33 SPICS0 VDD_SPI SPICS0 I1/O/T GPIO29 I/O/T 2‘d2 oe=0, ie=1, wpu oe=1, ie=1, wpu
34 SPICLK VDD_SPI SPICLK I1/O/T GPIO30 I/O/T 2‘d2 oe=0, ie=1, wpu oe=1, ie=1, wpu
35 SPIQ VDD_SPI SPIQ I1/O/T GPIO31 I/O/T 2‘d2 oe=0, ie=1, wpu oe=0, ie=1, wpu
36 SPID VDD_SPI SPID I1/O/T GPIO32 I/O/T 2‘d2 oe=0, ie=1, wpu oe=0, ie=1, wpu
VDD3P3_CPU /
37 GPIO33 GPIO33 I/O/T GPIO33 I/O/T FSPIHD I1/O/T SPIIO4 I1/O/T 2‘d2 oe=0, ie=0 oe=0, ie=1
VDD_SPI
VDD3P3_CPU /
38 GPIO34 GPIO34 I/O/T GPIO34 I/O/T FSPICS0 I1/O/T SPIIO5 I1/O/T 2‘d2 oe=0, ie=0 oe=0, ie=1
VDD_SPI
VDD3P3_CPU /
39 GPIO35 GPIO35 I/O/T GPIO35 I/O/T FSPID I1/O/T SPIIO6 I1/O/T 2‘d2 oe=0, ie=0 oe=0, ie=1
VDD_SPI
VDD3P3_CPU /
40 GPIO36 GPIO36 I/O/T GPIO36 I/O/T FSPICLK I1/O/T SPIIO7 I1/O/T 2‘d2 oe=0, ie=0 oe=0, ie=1
VDD_SPI
VDD3P3_CPU /
41 GPIO37 GPIO37 I/O/T GPIO37 I/O/T FSPIQ I1/O/T SPIDQS I1/O/T 2‘d2 oe=0, ie=0 oe=0, ie=1
VDD_SPI
42 GPIO38 VDD3P3_CPU GPIO38 I/O/T GPIO38 I/O/T FSPIWP I1/O/T GPIO38 I/O/T 2‘d2 oe=0, ie=0 oe=0, ie=1
43 MTCK VDD3P3_CPU MTCK I1 GPIO39 I/O/T CLK_OUT3 O 2‘d2 oe=0, ie=0 oe=0, ie=1
44 MTDO VDD3P3_CPU MTDO O/T GPIO40 I/O/T CLK_OUT2 O 2‘d2 oe=0, ie=0 oe=0, ie=1
45 VDD3P3_CPU
46 MTDI VDD3P3_CPU MTDI I1 GPIO41 I/O/T CLK_OUT1 O 2‘d2 oe=0, ie=0 oe=0, ie=1
47 MTMS VDD3P3_CPU MTMS I0 GPIO42 I/O/T 2‘d2 oe=0, ie=0 oe=0, ie=1
48 U0TXD VDD3P3_CPU U0TXD O GPIO43 I/O/T CLK_OUT1 O 2‘d2 oe=0, ie=1, wpu oe=1, ie=1, wpu
49 U0RXD VDD3P3_CPU U0RXD I1 GPIO44 I/O/T CLK_OUT2 O 2‘d2 oe=0, ie=1, wpu oe=0, ie=1, wpu
50 GPIO45 VDD3P3_CPU GPIO45 I/O/T GPIO45 I/O/T 2‘d2 oe=0, ie=1, wpd oe=0, ie=1, wpd
51 VDDA
52 XTAL_N
53 XTAL_P
54 VDDA
55 GPIO46 VDD3P3_CPU GPIO46 I GPIO46 I oe=0, wpd, ie=1 oe=0, wpd, ie=1
56 CHIP_PU VDD3P3_RTC_IO
Total 10 3 43
Notes:
• Power supply for GPIO33, GPIO34, GPIO35, GPIO36 and GPIO37 is configurable to be either VDD3P3_CPU (default) or VDD_SPI.
• SPIHD, SPIWP, SPICS0, SPICLK, SPIQ, SPID pins of ESP32-S2FH2 and ESP32-S2FH4 are connected to embedded flash and not recommended for other uses.
• Each column about digital “Function" is accompanied by a column about “Type". Please see the following explanations for the meanings of “type" with respect to each “function" they are associated
with. For each “Function-N", “type" signifies:
- I: input only. If a function other than “Function-N" is assigned, the input signal of “Function-N" is still from this pin.
- I1: input only. If a function other than “Function-N" is assigned, the input signal of “Function-N" is always “1".
- I0: input only. If a function other than “Function-N" is assigned, the input signal of “Function-N" is always “0".
- O: output only.
- T: high-impedance.
- I/O/T: combinations of input, output, and high-impedance according to the function signal.
- I1/O/T: combinations of input, output, and high-impedance, according to the function signal. If a function is not selected, the input signal of the function is “1”.
Revision History