Добавил:
ИВТ (советую зайти в "Несортированное") Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
interfeysy_1 / ИДЗ_машинка / даташиты / esp32_technical_reference_manual_en.pdf
Скачиваний:
13
Добавлен:
26.01.2024
Размер:
9.62 Mб
Скачать

4 IO_MUX and GPIO Matrix (GPIO, IO_MUX)

4.6Light­sleep Mode Pin Functions

Pins can have different functions when the ESP32 is in Light-sleep mode. If the SLP_SEL bit in the IO_MUX register for a GPIO pad is set to 1, a different set of registers is used to control the pad when the ESP32 is in Light-sleep mode:

Table 4­1. IO_MUX Light­sleep Pin Function Registers

IO_MUX Function

Normal Execution

Light-sleep Mode

OR SLP_SEL = 0

AND SLP_SEL = 1

 

Output Drive Strength

FUN_DRV

MCU_DRV

 

 

 

Pull-up Resistor

FUN_WPU

MCU_WPU

 

 

 

Pull-down Resistor

FUN_WPD

MCU_WPD

 

 

 

Output Enable

(From GPIO Matrix _OEN field)

MCU_OE

 

 

 

If SLP_SEL is set to 0, the pin functions remain the same in both normal execution and Light-sleep mode.

4.7Pad Hold Feature

Each IO pad (including the RTC pads) has an individual hold function controlled by a RTC register. When the pad is set to hold, the state is latched at that moment and will not change no matter how the internal signals change or how the IO_MUX configuration or GPIO configuration is modified. Users can use the hold function for the pads to retain the pad state through a core reset and system reset triggered by watchdog time-out or Deep-sleep events.

Note:

For digital pads, to maintain the pad’s input/output status in Deep-sleep mode, you can set REG_DG_PAD_FORCE_UNHOLD to 0 before powering down.

For RTC pads, the input and output values are controlled by the corresponding bits of register RTC_CNTL_HOLD_FORCE_REG, and you can set it to 1 to hold the value or set it to 0 to unhold the value.

For digital pads, to disable the hold function after the chip is woken up, you can set REG_DG_PAD_FORCE_UNHOLD to 1. To maintain the hold function of the pad, you can change the corresponding bit in the register by setting RTC_CNTL_HOLD_FORCE_REG to 1.

4.8I/O Pad Power Supplies

Figure 4-4 and 4-5 show the IO pad power supplies.

Espressif Systems

53

ESP32 TRM (Version 5.0)

Submit Documentation Feedback

4 IO_MUX and GPIO Matrix (GPIO, IO_MUX)

 

CAP1

CAP2

VDDA

XTAL P

XTAL N

VDDA

GPIO21

U0TXD

U0RXD

GPIO22

GPIO19

VDD3P3 CPU

 

 

48

47

46

45

44

43

42

41

40

39

38

37

 

VDDA

1

 

 

 

 

 

 

 

 

 

 

36

GPIO23

LNA_IN

2

 

 

 

 

 

 

 

 

 

 

35

GPIO18

VDD3P3

3

 

 

 

 

 

 

 

 

 

 

34

GPIO5

VDD3P3

4

 

 

 

 

 

 

 

 

 

 

33

SD_DATA_1

SENSOR_VP

5

 

 

 

 

 

 

 

 

 

 

32

SD_DATA_0

SENSOR_CAPP

6

 

 

 

 

ESP32

 

 

 

 

31

SD_CLK

 

 

 

 

 

 

 

 

 

 

 

 

SENSOR_CAPN

7

 

 

 

 

49 GND

 

 

 

 

30

SD_CMD

 

 

 

 

 

 

 

 

 

 

SENSOR_VN

8

 

 

 

 

 

 

 

 

 

 

29

SD_DATA_3

CHIP_PU

9

 

 

 

 

 

 

 

 

 

 

28

SD_DATA_2

VDET_1

10

 

 

 

 

 

 

 

 

 

 

27

GPIO17

VDET_2

11

 

 

 

 

 

 

 

 

 

 

26

VDD_SDIO

32K_XP

12

 

 

 

 

 

 

 

 

 

 

25

GPIO16

13

14

15

16

17

18

19

20

21

22

23

24

32K XN

GPIO25

GPIO26

GPIO27

MTMS

MTDI

VDD3P3 RTC

MTCK

MTDO

GPIO2

GPIO0

GPIO4

Analog pads

Pads powered by VDD3P3_CPU

Pads powered by VDD_SDIO

Pads powered by VDD3P3_RTC

Figure 4­4. ESP32 I/O Pad Power Sources (QFN 6*6, Top View)

 

CAP1

CAP2

VDDA

XTAL P

XTAL N

VDDA

GPIO21

U0TXD

U0RXD

GPIO22

 

48

47

46

45

44

43

42

41

40

39

VDDA

1

 

 

 

 

 

 

 

 

 

LNA_IN

2

 

 

 

 

 

 

 

 

 

VDD3P3

3

 

 

 

 

 

 

 

 

 

VDD3P3

4

 

 

 

 

 

 

 

 

 

SENSOR_VP

5

 

 

 

 

 

 

 

 

 

SENSOR_CAPP

6

 

 

 

 

 

 

 

 

 

SENSOR_CAPN

7

 

 

 

ESP32

 

 

 

 

 

 

 

 

 

 

 

 

 

SENSOR_VN

8

 

 

 

49 GND

 

 

 

 

 

 

 

 

 

 

 

 

 

CHIP_PU

9

 

 

 

 

 

 

 

 

 

VDET_1

10

 

 

 

 

 

 

 

 

 

VDET_2

11

 

 

 

 

 

 

 

 

 

32K_XP

12

 

 

 

 

 

 

 

 

 

32K_XN

13

 

 

 

 

 

 

 

 

 

GPIO25

14

 

 

 

 

 

 

 

 

 

 

15

16

17

18

19

20

21

22

23

24

 

GPIO26

GPIO27

MTMS

MTDI

VDD3P3 RTC

MTCK

MTDO

GPIO2

GPIO0

GPIO4

38

GPIO19

37

VDD3P3_CPU

36

GPIO23

35

GPIO18

34

GPIO5

33

SD_DATA_1

32

SD_DATA_0

31

SD_CLK

30

SD_CMD

29

SD_DATA_3

28

SD_DATA_2

27

GPIO17

26

VDD_SDIO

25

GPIO16

Analog pads

Pads powered by VDD3P3_CPU

Pads powered by VDD_SDIO

Pads powered by VDD3P3_RTC

Figure 4­5. ESP32 I/O Pad Power Sources (QFN 5*5, Top View)

• Pads marked blue are RTC pads that have their individual analog function and can also act as normal digital

Espressif Systems 54 ESP32 TRM (Version 5.0)

Submit Documentation Feedback

Соседние файлы в папке даташиты