Schematic Checklist

[中文]

The integrated circuitry of ESP32-H2 requires only 17 electrical components (resistors, capacitors, and inductors) and a crystal. The high integration of ESP32-H2 allows for simple peripheral circuit design. This chapter details the schematic design of ESP32-H2.

The following figure shows a reference schematic design of ESP32-H2. It can be used as the basis of your schematic design.

ESP32-H2 Reference Schematic

ESP32-H2 Reference Schematic

Any basic ESP32-H2 circuit design may be broken down into the following major building blocks:

The rest of this chapter details the specifics of circuit design for each of these sections.

Power Supply

The general recommendations for power supply design are:

  • When using a single power supply, the recommended power supply voltage is 3.3 V and the output current is no less than 350 mA.

  • It is suggested to add an ESD protection diode at the power entrance.

More information about power supply pins can be found in ESP32-H2 Series Datasheet > Section Power Supply.

Digital Power Supply

ESP32-H2 has pin9 VDDPST1 and pin20 VDDPST2 as the digital power supply pin(s) working in a voltage range of 3.0 V ~ 3.6 V. It is recommended to add an extra 0.1 μF decoupling capacitor close to the pin(s).

The schematic for the digital power supply pins is shown in Figure ESP32-H2 Schematic for Digital Power Supply Pins.

ESP32-H2 Schematic for Digital Power Supply Pins

ESP32-H2 Schematic for Digital Power Supply Pins

Analog Power Supply

ESP32-H2’s VDD3P3, VBAT, and VDDA_PMU pins are the analog power supply pins, working at 3.0 V ~ 3.6 V.

For VDD3P3 at pin1 and pin2, when ESP32-H2 is transmitting signals, there may be a sudden increase in the current draw, causing power rail collapse. Therefore, it is highly recommended to add a 10 μF capacitor to the power rail, which can work in conjunction with the 1 μF and 0.1 μF capacitor(s).

It is suggested to add an extra 10 μF capacitor at the power entrance. If the power entrance is close to VDD3P3 at pin1 and pin2, then two 10 μF capacitors can be merged into one.

Place appropriate decoupling capacitors near the other analog power pins according to Figure ESP32-H2 Schematic for Analog Power Supply Pins.

If VBAT is powered separately by an external power supply, R2 is not required and the operating voltage range is 3.0 V to 3.6 V.

ESP32-H2 Schematic for Analog Power Supply Pins

ESP32-H2 Schematic for Analog Power Supply Pins

Chip Power-up and Reset Timing

ESP32-H2’s CHIP_EN pin can enable the chip when it is high and reset the chip when it is low.

When ESP32-H2 uses a 3.3 V system power supply, the power rails need some time to stabilize before CHIP_EN is pulled up and the chip is enabled. Therefore, CHIP_EN needs to be asserted high after the 3.3 V rails have been brought up.

To reset the chip, keep the reset voltage VIL_nRST in the range of (–0.3 ~ 0.25 × VDD) V. To avoid reboots caused by external interferences, make the CHIP_EN trace as short as possible.

Figure ESP32-H2 Power-up and Reset Timing shows the power-up and reset timing of ESP32-H2.

ESP32-H2 Power-up and Reset Timing

ESP32-H2 Power-up and Reset Timing

Table Description of Timing Parameters for Power-up and Reset provides the specific timing requirements.

Description of Timing Parameters for Power-up and Reset

Parameter

Description

Minimum (µs)

tSTBL

Time reserved for the power rails to stabilize before the CHIP_EN pin is pulled high to activate the chip

50

tRST

Time reserved for CHIP_EN to stay below VIL_nRST to reset the chip

50

Attention

  • CHIP_EN must not be left floating.

  • To ensure the correct power-up and reset timing, it is advised to add an RC delay circuit at the CHIP_EN pin. The recommended setting for the RC delay circuit is usually R = 10 kΩ and C = 1 μF. However, specific parameters should be adjusted based on the characteristics of the actual power supply and the power-up and reset timing of the chip.

  • If the user application has one of the following scenarios:

    • Slow power rise or fall, such as during battery charging.

    • Frequent power on/off operations.

    • Unstable power supply, such as in photovoltaic power generation.

    Then, the RC circuit itself may not meet the timing requirements, resulting in the chip being unable to boot correctly. In this case, additional designs need to be added, such as:

    • Adding an external reset chip or a watchdog chip, typically with a threshold of around 3.0 V.

    • Implementing reset functionality through a button or the main controller.

Flash

ESP32-H2 series of chips have in-package 2 MB or 4 MB flash. The pins for flash are not bonded out.

Clock Source

ESP32-H2 supports two external clock sources:

External Crystal Clock Source (Compulsory)

The ESP32-H2 firmware only supports 32 MHz crystal.

The circuit for the crystal is shown in Figure ESP32-H2 Schematic for External Crystal. Note that the accuracy of the selected crystal should be within ±10 ppm.

ESP32-H2 Schematic for External Crystal

ESP32-H2 Schematic for External Crystal

Please add a series component (resistor or inductor) on the XTAL_P clock trace. Initially, it is suggested to use an inductor of 24 nH to reduce the impact of high-frequency crystal harmonics on RF performance, and the value should be adjusted after an overall test.

The initial values of external capacitors C1 and C4 can be determined according to the formula:

\[C_L = \frac{C1 \times C4} {C1+C4} + C_{stray}\]

where the value of CL (load capacitance) can be found in the crystal’s datasheet, and the value of Cstray refers to the PCB’s stray capacitance. The values of C1 and C4 need to be further adjusted after an overall test as below:

  1. Select TX tone mode using the Certification and Test Tool.

  2. Observe the 2.4 GHz signal with a radio communication analyzer or a spectrum analyzer and demodulate it to obtain the actual frequency offset.

  3. Adjust the frequency offset to be within ±10 ppm (recommended) by adjusting the external load capacitance.

  • When the center frequency offset is positive, it means that the equivalent load capacitance is small, and the external load capacitance needs to be increased.

  • When the center frequency offset is negative, it means the equivalent load capacitance is large, and the external load capacitance needs to be reduced.

  • External load capacitance at the two sides are usually equal, but in special cases, they may have slightly different values.

Note

  • Defects in the manufacturing of crystal (for example, large frequency deviation of more than ±10 ppm, unstable performance within the operating temperature range, etc) may lead to the malfunction of ESP32-H2, resulting in a decrease of the RF performance.

  • It is recommended that the amplitude of the crystal is greater than 500 mV.

  • When Bluetooth connection fails, after ruling out software problems, you may follow the steps mentioned above to ensure that the frequency offset meets the requirements by adjusting capacitors at the two sides of the crystal.

Low-Power Clock Source (Optional)

ESP32-H2 supports an external 32.768 kHz crystal to act as the Low-Power clock. The external Low-Power clock source enhances timing accuracy and consequently decreases average power consumption, without impacting functionality.

Figure ESP32-H2 Schematic for 32.768 kHz Crystal shows the schematic for the external 32.768 kHz crystal.

ESP32-H2 Schematic for 32.768 kHz Crystal

ESP32-H2 Schematic for 32.768 kHz Crystal

Please note the requirements for the 32.768 kHz crystal:

  • Equivalent series resistance (ESR) ≤ 70 kΩ.

  • Load capacitance at both ends should be configured according to the crystal’s specification.

The parallel resistor R is used for biasing the crystal circuit (5 MΩ < R ≤ 10 MΩ). In general, you do not need to populate the resistor.

If the Low-Power clock source is not required, then the pins for the 32.768 kHz crystal can be used as GPIOs.

RF

RF Circuit

ESP32-H2’s RF circuit is mainly composed of three parts, the RF traces on the PCB board, the chip matching circuit, the antenna and the antenna matching circuit. Each part should meet the following requirements:

  • For the RF traces on the PCB board, 50 Ω impedance control is required.

  • For the chip matching circuit, it must be placed close to the chip. A CLCCL structure is preferred.

    • The CLCCL structure forms a bandpass filter, which is mainly used to adjust impedance points, suppress harmonics, and suppress low-frequency noise (especially in applications such as electrical lighting where the effect is significant). If there is no AC-to-DC circuit in the user application, a simpler CLC structure can be considered.

    • The RF matching circuit is shown in Figure ESP32-H2 Schematic for RF Matching.

  • For the antenna and the antenna matching circuit, to ensure radiation performance, the antenna’s characteristic impedance must be around 50 Ω. Adding a CLC matching circuit near the antenna is recommended to adjust the antenna. However, if the available space is limited and the antenna impedance point can be guaranteed to be 50 Ω by simulation, then there is no need to add a matching circuit near the antenna.

ESP32-H2 Schematic for RF Matching

ESP32-H2 Schematic for RF Matching

RF Tuning

The RF matching parameters vary with the board, so the ones used in Espressif modules could not be applied directly. Follow the instructions below to do RF tuning.

Figure ESP32-H2 RF Tuning Diagram shows the general process of RF tuning.

ESP32-H2 RF Tuning Diagram

ESP32-H2 RF Tuning Diagram

In the matching circuit, define the port near the chip as Port 1 and the port near the antenna as Port 2. S11 describes the ratio of the signal power reflected back from Port 1 to the input signal power, the transmission performance is best if the matching impedance is conjugate to the chip impedance. S21 is used to describe the transmission loss of signal from Port 1 to Port 2. If S11 is close to the chip conjugate point (35+j0) and S21 is less than -35 dB at 4.8 GHz and 7.2 GHz, the matching circuit can satisfy transmission requirements.

Connect the two ends of the matching circuit to the network analyzer, and test its signal reflection parameter S11 and transmission parameter S21. Adjust the values of the components in the circuit until S11 and S21 meet the requirements. If your PCB design of the chip strictly follows the PCB design stated in Chapter PCB Layout Design, you can refer to the value ranges in Table Recommended Value Ranges for Components to debug the matching circuit.

If the components are in the 0201 SMD package size, please use a stub in the PCB design of the RF matching circuit near the chip. If the antenna input impedance is not 50 ohm, an additional set of RF matching is recommended for antenna tuning.

If the usage or production environment is sensitive to electrostatic discharge, it is recommended to reserve ESD protection devices near the antenna.

Note

If RF function is not required, then the RF pin can be left floating.

UART

It is recommended to connect a 499 Ω series resistor to the U0TXD line to suppress the 80 MHz harmonics.

Usually, UART0 is used as the serial port for download and log printing. For instructions on download over UART0, please refer to Section Download Guidelines.

Other UART interfaces can be used as serial ports for communication, which could be mapped to any available GPIO by software configurations. For these interfaces, it is also recommended to add a series resistor to the TX line to suppress harmonics.

Strapping Pins

At each startup or reset, a chip requires some initial configuration parameters, such as in which boot mode to load the chip, etc. These parameters are passed over via the strapping pins. After reset, the strapping pins work as normal function pins.

All the information about strapping pins is covered in ESP32-H2 Series Datasheet > Section Strapping Pins. In this document, we will mainly cover the strapping pins related to boot mode.

After chip reset is released, the combination of GPIO8 and GPIO9 controls the boot mode. See Table Boot Mode Control.

Boot Mode Control

Boot Mode

GPIO8

GPIO9

Default Config

– (Floating)

1 (Pull-up)

SPI Boot

Any value

1

Joint Download Boot 1

1

0

1

Joint Download Boot mode supports the following download methods:

  • USB-Serial-JTAG Download Boot

  • UART Download Boot

Signals applied to the strapping pins should have specific setup time and hold time. For more information, see Figure Setup and Hold Times for Strapping Pins and Table Description of Timing Parameters for Strapping Pins.

Setup and Hold Times for Strapping Pins

Setup and Hold Times for Strapping Pins

Description of Timing Parameters for Strapping Pins

Parameter

Description

Minimum (ms)

tSU

Time reserved for the power rails to stabilize before the chip enable pin (CHIP_EN) is pulled high to activate the chip.

0

tH

Time reserved for the chip to read the strapping pin values after CHIP_EN is already high and before these pins start operating as regular IO pins.

3

Attention

Do not add high-value capacitors at GPIO9, otherwise, the chip may not boot successfully.

GPIO

The pins of ESP32-H2 can be configured via IO MUX or GPIO matrix. IO MUX provides the default pin configurations, whereas the GPIO matrix is used to route signals from peripherals to GPIO pins. For more information about IO MUX and GPIO matrix, please refer to ESP32-H2 Technical Reference Manual > Chapter IO MUX and GPIO Matrix.

Some peripheral signals have already been routed to certain GPIO pins, while some can be routed to any available GPIO pins. For details, please refer to ESP32-H2 Series Datasheet > Section Peripheral Pin Configurations.

When using GPIOs, please:

  • Pay attention to the states of strapping pins during power-up.

  • Pay attention to the default configurations of the GPIOs after reset. The default configurations can be found in Table IO MUX Pin Functions. It is recommended to add a pull-up or pull-down resistor to pins in the high-impedance state or enable the pull-up and pull-down during software initialization to avoid extra power consumption.

IO MUX Pin Functions

Name

No.

Function 0

Function 1

Function 2

Reset

Notes

GPIO0

3

GPIO0

GPIO0

FSPIQ

0

GPIO1

4

GPIO1

GPIO1

FSPICS0

0

R

MTMS

5

MTMS

GPIO2

FSPIWP

1

R

MTDO

6

MTDO

GPIO3

FSPIHD

1

R

MTCK

7

MTCK

GPIO4

FSPICLK

1*

R

MTDI

8

MTDI

GPIO5

FSPID

1

R

GPIO8

10

GPIO8

GPIO8

1

GPIO9

11

GPIO9

GPIO9

3

GPIO10

12

GPIO10

GPIO10

0

R

GPIO11

13

GPIO11

GPIO11

0

R

GPIO12

14

GPIO12

GPIO12

0

XTAL_32K_P

15

GPIO13

GPIO13

0

R

XTAL_32K_N

16

GPIO14

GPIO14

0

R

GPIO22

21

GPIO22

GPIO22

0

U0RXD

22

U0RXD

GPIO23

FSPICS1

3

U0TXD

23

U0TXD

GPIO24

FSPICS2

4

GPIO25

24

GPIO25

GPIO25

FSPICS3

1

GPIO26

25

GPIO26

GPIO26

FSPICS4

1

R, USB

GPIO27

26

GPIO27

GPIO27

FSPICS5

3*

R, USB

  • 0 – input disabled, in high impedance state (IE = 0)

  • 1 – input enabled, in high impedance state (IE = 1)

  • 2 – input enabled, pull-down resistor enabled (IE = 1, WPD = 1)

  • 3 – input enabled, pull-up resistor enabled (IE = 1, WPU = 1)

  • 4 – output enabled, pull-up registor enabled (OE = 1, WPU = 1)

  • 1* – When the value of eFuse bit EFUSE_DIS_PAD_JTAG is

    • 0, input enabled, pull-up resistor enabled (IE = 1, WPU = 1)

    • 1, input enabled, in high impedance state (IE = 1)

  • 3* – input enabled, pull-up resistor enabled (IE = 1, WPU = 0, USB_WPU = 1). See details in Notes.

Notes

  • R – These pins have analog functions.

  • USB – USB pull-up resistor is enabled.

    • By default, the USB function is enabled for USB pins (i.e., GPIO26 and GPIO27), and the pin pull-up is decided by the USB pull-up. The USB pull-up is controlled by USB_SERIAL_JTAG_DP/DM_PULLUP and the pull-up resistor value is controlled by USB_SERIAL_JTAG_PULLUP_VALUE. For details, see ESP32-H2 Technical Reference Manual > Chapter USB Serial/JTAG Controller.

    • When the USB function is disabled, USB pins are used as regular GPIOs and the pin’s internal weak pull-up and pull-down resistors are disabled by default (configurable by IO_MUX_GPIOn_FUN_WPU/WPD). For details, see ESP32-H2 Technical Reference Manual > Chapter IO MUX and GPIO Matrix (GPIO, IO MUX).

ADC

Please add a 0.1 μF filter capacitor between ESP pins and ground when using the ADC function to improve accuracy.

The calibrated ADC results after hardware calibration and software calibration are shown in the list below. For higher accuracy, you may implement your own calibration methods.

  • When ATTEN=0 and the effective measurement range is 0 ~ 1000 mV, the total error is ±7 mV.

  • When ATTEN=1 and the effective measurement range is 0 ~ 1300 mV, the total error is ±8 mV.

  • When ATTEN=2 and the effective measurement range is 0 ~ 1900 mV, the total error is ±12 mV.

  • When ATTEN=3 and the effective measurement range is 0 ~ 3300 mV, the total error is ±23 mV.

USB

ESP32-H2 integrates a USB Serial/JTAG controller that supports USB 2.0 full-speed device.

GPIO26 and GPIO27 can be used as D- and D + of USB respectively. It is recommended to populate zero-ohm series resistors between the mentioned pins and the USB connector. Also, reserve a footprint for a capacitor to ground on each trace. Note that both components should be placed close to the chip.

Note that USB_D+ will have level output, so please add a pull-up resistor to determine the initial high-level output voltage.

ESP32-H2 also supports download functions and log message printing via USB. For details please refer to Section Download Guidelines.