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

29 On-Chip Sensors and Analog Signal Processing

29.6Registers

29.6.1 Sensors

The addresses in parenthesis besides register names are the register addresses relative to (the RTC base address + 0x0800). The RTC base address is provided in Table 1-6 Peripheral Address Mapping in Chapter 1 System and Memory. The absolute register addresses are listed in Section 29.5.1 Sensors.

Register 29.1. SENS_SAR_READ_CTRL_REG (0x0000)

 

 

 

 

 

 

 

 

 

 

FORCE

 

 

 

 

 

 

 

 

BIT

 

 

CYCLE

_

 

 

 

 

 

 

 

 

 

INV

 

 

 

 

 

 

 

_

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SAMPLE

SAMPLE

DIV

 

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DATADIG

 

 

 

 

 

 

 

 

 

CLK

 

 

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_

 

_

 

 

 

 

 

 

 

 

 

_

_

 

 

_

 

 

(reserved)

 

SAR1SAR1

 

 

(reserved)

 

 

 

 

 

 

SAR1

SAR1

 

 

SAR1

 

 

SENSSENS

 

 

 

 

 

 

 

 

SENS

SENS

 

 

SENS

 

 

 

 

 

 

_

_

 

 

 

 

 

 

 

 

 

 

 

_

_

 

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

31

 

29

 

28

27

26

 

 

 

 

 

 

 

 

18

17

16

 

15

8

 

7

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

 

0

0

0

0

 

0

0

0

0

0

0

0

 

3

 

 

9

 

 

2

SENS_SAR1_DATA_INV Invert SAR ADC1 data. (R/W)

SENS_SAR1_DIG_FORCE 1: SAR ADC1 controlled by DIG ADC1 CTR, 0: SAR ADC1 controlled by RTC ADC1 CTRL. (R/W)

SENS_SAR1_SAMPLE_BIT Bit width of SAR ADC1, 00: for 9-bit, 01: for 10-bit, 10: for 11-bit, 11: for 12-bit. (R/W)

SENS_SAR1_SAMPLE_CYCLE Sample cycles for SAR ADC1. (R/W)

SENS_SAR1_CLK_DIV Clock divider. (R/W)

Register 29.2. SENS_ULP_CP_SLEEP_CYC0_REG (0x0018)

31

0

 

 

 

Reset

 

 

200

 

SENS_ULP_CP_SLEEP_CYC0_REG Sleep cycles for ULP coprocessor timer. (R/W)

Espressif Systems

642

ESP32 TRM (Version 5.0)

Submit Documentation Feedback

29 On-Chip Sensors and Analog Signal Processing

Register 29.3. SENS_SAR_START_FORCE_REG (0x002c)

 

 

STOPSTOP

 

INIT

 

 

_

_

 

 

SAR1SAR2

 

PC

(reserved)

SENSSENS

 

SENS

_

 

_

_

 

_

 

 

 

 

 

 

 

 

 

 

TOP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

START

 

 

 

 

 

 

 

 

 

 

 

 

 

TOP _

 

 

CCT

 

 

WIDTH

WIDTH

 

 

 

 

 

_

 

 

 

 

TEST

 

 

 

 

STARTFORCE

 

 

_

 

 

 

 

 

 

 

 

 

_

 

_

 

_

 

 

_

_

 

 

PWDET

 

EN

BIT

 

BIT

ULP

CP

 

CP

 

_

 

 

_

 

_

 

 

_

 

ULP

 

SAR2

 

SAR2

 

SAR2

 

SAR1

 

 

_

_

 

SENS

SENS

 

SENS

 

 

 

(reserved)SENSSENS

 

SENS

 

 

 

 

 

_

_

 

_

 

 

_

 

 

_

 

_

 

 

31

 

 

 

 

 

 

24

23

22

21

 

 

 

 

 

 

 

 

 

11

10

9

8

7

 

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1

1

1

1

SENS_SAR1_STOP Stop SAR ADC1 conversion. (R/W)

SENS_SAR2_STOP Stop SAR ADC2 conversion. (R/W)

SENS_PC_INIT Initialized PC for ULP coprocessor. (R/W)

SENS_ULP_CP_START_TOP Write 1 to start ULP coprocessor; it is active only when reg_ulp_cp_force_start_top = 1. (R/W)

SENS_ULP_CP_FORCE_START_TOP 1: ULP coprocessor is started by SW, 0: ULP coprocessor is started by timer. (R/W)

SENS_SAR2_PWDET_CCT SAR2_PWDET_CCT, PA power detector capacitance tuning. (R/W)

SENS_SAR2_EN_TEST SAR2_EN_TEST is active only when reg_sar2_dig_force = 0. (R/W)

SENS_SAR2_BIT_WIDTH Bit width of SAR ADC2, 00: 9 bits, 01: 10 bits, 10: 11 bits, 11: 12 bits. (R/W)

SENS_SAR1_BIT_WIDTH Bit width of SAR ADC1, 00: 9 bits, 01: 10 bits, 10: 11 bits, 11: 12 bits. (R/W)

Register 29.4. SENS_SAR_ATTEN1_REG (0x0034)

31

0

 

 

 

Reset

 

 

0x0FFFFFFFF

 

SENS_SAR_ATTEN1_REG 2-bit attenuation for each pad, 11: 1 dB, 10: 6 dB, 01: 3 dB, 00: 0 dB, [1:0] is used for ADC1_CH0, [3:2] is used for ADC1_CH1, etc. (R/W)

Register 29.5. SENS_SAR_ATTEN2_REG (0x0038)

31

0

 

 

 

Reset

 

 

0x0FFFFFFFF

 

SENS_SAR_ATTEN2_REG 2-bit attenuation for each pad, 11: 1 dB, 10: 6 dB, 01: 3 dB, 00: 0 dB, [1:0] is used for ADC2_CH0, [3:2] is used for ADC2_CH1, etc (R/W)

Espressif Systems

643

ESP32 TRM (Version 5.0)

Submit Documentation Feedback

29 On-Chip Sensors and Analog Signal Processing

Register 29.6. SENS_SAR_MEAS_START1_REG (0x0054)

 

 

 

 

 

FORCE

 

 

 

 

 

 

 

 

 

 

 

 

 

FORCESAR SAR

 

 

 

 

 

 

 

 

SAR

 

 

 

 

 

 

 

 

 

_

 

 

 

 

 

_

 

 

 

 

 

 

 

_

_

_

 

 

 

 

 

 

DATA

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

STARTSTARTDONE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PAD

 

 

 

 

 

 

PAD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

 

EN

 

 

 

 

 

EN

 

 

 

 

_

 

_

_

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

SAR1

 

 

 

 

 

SAR1

 

 

 

 

 

MEAS1MEAS1MEAS1

 

 

 

 

 

 

MEAS1

 

 

 

 

 

 

 

 

 

_

 

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

_

 

 

 

 

 

 

_

_

 

_

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

SENS

 

 

 

 

 

 

SENS

 

 

 

 

 

SENSSENSSENS

 

 

 

 

 

 

 

SENS

 

 

 

 

 

 

 

31

30

 

 

 

 

 

 

 

 

 

 

 

 

19

18

17

16

 

15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

 

0

0

0

0

0

0

 

0

0

0

0

0

0

0

 

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

SENS_SAR1_EN_PAD_FORCE 1: SAR ADC1 pad enable bitmap is controlled by SW, 0: SAR ADC1 pad enable bitmap is controlled by ULP coprocessor. (R/W)

SENS_SAR1_EN_PAD SAR ADC1 pad enable bitmap; active only when reg_sar1_en_pad_force = 1. (R/W)

SENS_MEAS1_START_FORCE 1: SAR ADC1 controller (in RTC) is started by SW, 0: SAR ADC1 controller is started by ULP coprocessor. (R/W)

SENS_MEAS1_START_SAR SAR ADC1 controller (in RTC) starts conversion; active only when reg_meas1_start_force = 1. (R/W)

SENS_MEAS1_DONE_SAR SAR ADC1 conversion-done indication. (RO)

SENS_MEAS1_DATA_SAR SAR ADC1 data. (RO)

Register 29.7. SENS_SAR_TOUCH_CTRL1_REG (0x0058)

 

 

 

 

 

 

 

 

 

1EN

SEL

WAIT

DELAY

 

 

 

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

OUT OUT

 

XPD

 

MEAS

 

 

 

 

 

 

 

 

 

 

 

_

_

 

_

 

 

 

 

 

 

 

 

 

 

 

 

_

_

 

 

_

 

_

 

 

 

 

(reserved)

 

 

 

TOUCHTOUCH

 

 

TOUCH

 

TOUCH

 

 

 

 

(reserved)(reserved)SENSSENS

 

 

SENS

 

SENS

 

 

 

 

 

 

 

 

 

_

_

 

 

 

_

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

31

 

 

28

27

26

25

24

23

 

 

 

16

15

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

0

0

1

0

 

 

 

0x004

 

 

0x01000

 

SENS_TOUCH_OUT_1EN 1: wakeup interrupt is generated if SET1 is touched, 0: wakeup interrupt is generated only if both SET1 & SET2 are touched. (R/W)

SENS_TOUCH_OUT_SEL 1: the touch pad is considered touched when the value of the counter is greater than the threshold, 0: the touch pad is considered touched when the value of the counter is less than the threshold. (R/W)

SENS_TOUCH_XPD_WAIT The waiting time (in 8 MHz cycles) between TOUCH_START and TOUCH_XPD. (R/W)

SENS_TOUCH_MEAS_DELAY The measurement’s duration (in 8 MHz cycles). (R/W)

Espressif Systems

644

ESP32 TRM (Version 5.0)

Submit Documentation Feedback

29 On-Chip Sensors and Analog Signal Processing

Register 29.8. SENS_SAR_TOUCH_THRES1_REG (0x005c)

 

TH0

 

TH1

 

 

 

_

 

_

 

 

 

OUT

 

OUT

 

 

 

_

 

_

 

 

 

TOUCH

 

TOUCH

 

 

 

_

 

_

 

 

 

SENS

 

SENS

 

 

31

16

15

 

0

 

 

 

 

 

 

Reset

 

 

 

 

 

 

0x00000

 

0x00000

 

SENS_TOUCH_OUT_TH0 The threshold for touch pad 0. (R/W)

SENS_TOUCH_OUT_TH1 The threshold for touch pad 1. (R/W)

Register 29.9. SENS_SAR_TOUCH_THRES2_REG (0x0060)

 

TH2

 

TH3

 

 

 

_

 

_

 

 

 

OUT

 

OUT

 

 

 

_

 

_

 

 

 

TOUCH

 

TOUCH

 

 

 

_

 

_

 

 

 

SENS

 

SENS

 

 

31

16

15

 

0

 

 

 

 

 

 

Reset

 

 

 

 

 

 

0x00000

 

0x00000

 

SENS_TOUCH_OUT_TH2 The threshold for touch pad 2. (R/W)

SENS_TOUCH_OUT_TH3 The threshold for touch pad 3. (R/W)

Register 29.10. SENS_SAR_TOUCH_THRES3_REG (0x0064)

 

TH4

 

TH5

 

 

 

_

 

_

 

 

 

OUT

 

OUT

 

 

 

_

 

_

 

 

 

TOUCH

 

TOUCH

 

 

 

_

 

_

 

 

 

SENS

 

SENS

 

 

31

16

15

 

0

 

 

 

 

 

 

Reset

 

 

 

 

 

 

0x00000

 

0x00000

 

SENS_TOUCH_OUT_TH4 The threshold for touch pad 4. (R/W)

SENS_TOUCH_OUT_TH5 The threshold for touch pad 5. (R/W)

Espressif Systems

645

ESP32 TRM (Version 5.0)

Submit Documentation Feedback

29 On-Chip Sensors and Analog Signal Processing

Register 29.11. SENS_SAR_TOUCH_THRES4_REG (0x0068)

 

TH6

 

TH7

 

 

 

_

 

_

 

 

 

OUT

 

OUT

 

 

 

_

 

_

 

 

 

TOUCH

 

TOUCH

 

 

 

_

 

_

 

 

 

SENS

 

SENS

 

 

31

16

15

 

0

 

 

 

 

 

 

Reset

 

 

 

 

 

 

0x00000

 

0x00000

 

SENS_TOUCH_OUT_TH6 The threshold for touch pad 6. (R/W)

SENS_TOUCH_OUT_TH7 The threshold for touch pad 7. (R/W)

Register 29.12. SENS_SAR_TOUCH_THRES5_REG (0x006c)

 

TH8

 

TH9

 

 

 

_

 

_

 

 

 

OUT

 

OUT

 

 

 

_

 

_

 

 

 

TOUCH

 

TOUCH

 

 

 

_

 

_

 

 

 

SENS

 

SENS

 

 

31

16

15

 

0

 

 

 

 

 

 

Reset

 

 

 

 

 

 

0x00000

 

0x00000

 

SENS_TOUCH_OUT_TH8 The threshold for touch pad 8. (R/W)

SENS_TOUCH_OUT_TH9 The threshold for touch pad 9. (R/W)

Register 29.13. SENS_SAR_TOUCH_OUT1_REG (0x0070)

 

OUT0

 

OUT1

 

 

 

_

 

_

 

 

 

MEAS

 

MEAS

 

 

 

_

 

_

 

 

 

TOUCH

 

TOUCH

 

 

 

_

 

_

 

 

 

SENS

 

SENS

 

 

31

16

15

 

0

 

 

 

 

 

 

Reset

 

 

 

 

 

 

0x00000

 

0x00000

 

SENS_TOUCH_MEAS_OUT0 The counter for touch pad 0. (RO)

SENS_TOUCH_MEAS_OUT1 The counter for touch pad 1. (RO)

Espressif Systems

646

ESP32 TRM (Version 5.0)

Submit Documentation Feedback

29 On-Chip Sensors and Analog Signal Processing

Register 29.14. SENS_SAR_TOUCH_OUT2_REG (0x0074)

 

OUT2

 

OUT3

 

 

 

_

 

_

 

 

 

MEAS

 

MEAS

 

 

 

_

 

_

 

 

 

TOUCH

 

TOUCH

 

 

 

_

 

_

 

 

 

SENS

 

SENS

 

 

31

16

15

 

0

 

 

 

 

 

 

Reset

 

 

 

 

 

 

0x00000

 

0x00000

 

SENS_TOUCH_MEAS_OUT2 The counter for touch pad 2. (RO)

SENS_TOUCH_MEAS_OUT3 The counter for touch pad 3. (RO)

Register 29.15. SENS_SAR_TOUCH_OUT3_REG (0x0078)

 

OUT4

 

OUT5

 

 

 

_

 

_

 

 

 

MEAS

 

MEAS

 

 

 

_

 

_

 

 

 

TOUCH

 

TOUCH

 

 

 

_

 

_

 

 

 

SENS

 

SENS

 

 

31

16

15

 

0

 

 

 

 

 

 

Reset

 

 

 

 

 

 

0x00000

 

0x00000

 

SENS_TOUCH_MEAS_OUT4 The counter for touch pad 4. (RO)

SENS_TOUCH_MEAS_OUT5 The counter for touch pad 5. (RO)

Register 29.16. SENS_SAR_TOUCH_OUT4_REG (0x007c)

 

OUT6

 

OUT7

 

 

 

_

 

_

 

 

 

MEAS

 

MEAS

 

 

 

_

 

_

 

 

 

TOUCH

 

TOUCH

 

 

 

_

 

_

 

 

 

SENS

 

SENS

 

 

31

16

15

 

0

 

 

 

 

 

 

Reset

 

 

 

 

 

 

0x00000

 

0x00000

 

SENS_TOUCH_MEAS_OUT6 The counter for touch pad 6. (RO)

SENS_TOUCH_MEAS_OUT7 The counter for touch pad 7. (RO)

Espressif Systems

647

ESP32 TRM (Version 5.0)

Submit Documentation Feedback

29 On-Chip Sensors and Analog Signal Processing

Register 29.17. SENS_SAR_TOUCH_OUT5_REG (0x0080)

 

OUT8

 

OUT9

 

 

 

_

 

_

 

 

 

MEAS

 

MEAS

 

 

 

_

 

_

 

 

 

TOUCH

 

TOUCH

 

 

 

_

 

_

 

 

 

SENS

 

SENS

 

 

31

16

15

 

0

 

 

 

 

 

 

Reset

 

 

 

 

 

 

0x00000

 

0x00000

 

SENS_TOUCH_MEAS_OUT8 The counter for touch pad 8. (RO)

SENS_TOUCH_MEAS_OUT9 The counter for touch pad 9. (RO)

Register 29.18. SENS_SAR_TOUCH_CTRL2_REG (0x0084)

 

 

 

 

CLR

CYCLES

 

 

 

 

 

 

 

FORCEEN

FSM

 

EN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EN

_

 

 

 

 

 

 

_

 

_

_

 

_

 

 

EN

 

 

 

 

 

 

 

 

 

 

 

 

 

DONE

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_

 

SLEEP

 

 

 

 

 

 

 

 

 

 

 

_

 

 

_

 

 

 

MEAS

 

 

 

 

 

 

STARTSTARTSTARTMEAS

 

 

 

 

MEAS

 

 

 

 

_

 

 

_

 

 

 

_

 

_

_

_

 

 

 

 

 

 

_

 

 

 

 

TOUCH

 

 

TOUCH

 

 

TOUCHTOUCHTOUCHTOUCH

 

 

 

 

 

 

TOUCH

 

 

(reserved)SENS

 

 

SENS

 

SENSSENSSENSSENS

 

 

 

 

 

 

 

SENS

 

 

 

 

_

 

 

_

 

 

_

_

 

_

_

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

31

30

29

 

 

 

14

13

12

11

 

10

 

9

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

 

 

 

0x00100

 

0

0

1

 

0

 

 

 

 

 

 

 

 

 

0x000

 

 

SENS_TOUCH_MEAS_EN_CLR Set to clear reg_touch_meas_en. (WO)

SENS_TOUCH_SLEEP_CYCLES Sleep cycles for timer. (R/W)

SENS_TOUCH_START_FORCE 1: starts the Touch FSM via software; 0: starts the Touch FSM via timer. (R/W)

SENS_TOUCH_START_EN 1: starts the Touch FSM; this is valid when reg_touch_start_force is set. (R/W)

SENS_TOUCH_START_FSM_EN 1: TOUCH_START & TOUCH_XPD are controlled by the Touch FSM; 0: TOUCH_START & TOUCH_XPD are controlled by registers. (R/W)

SENS_TOUCH_MEAS_DONE Set to 1 by FSM, indicating that touch measurement is done. (RO)

SENS_TOUCH_MEAS_EN 10-bit register indicating which pads are touched. (RO)

Espressif Systems

648

ESP32 TRM (Version 5.0)

Submit Documentation Feedback

29 On-Chip Sensors and Analog Signal Processing

Register 29.19. SENS_SAR_TOUCH_ENABLE_REG (0x008c)

 

 

 

OUTEN1

OUTEN2

 

WORKEN

 

 

 

_

 

_

 

 

_

 

 

 

 

PAD

 

PAD

 

 

PAD

 

 

 

_

 

_

 

 

_

 

 

(reserved)

TOUCH

 

TOUCH

 

 

TOUCH

 

SENS

 

SENS

 

SENS

 

 

 

_

 

_

 

 

_

 

 

 

 

 

 

 

 

 

 

 

31

30

29

20

19

10

9

 

0

 

 

 

 

 

 

 

 

 

 

Reset

 

 

 

 

 

 

 

 

 

0

0

 

0x3FF

 

0x3FF

 

0x3FF

 

SENS_TOUCH_PAD_OUTEN1 Bitmap defining SET1 for generating a wakeup interrupt; SET1 is considered touched if at least one of the touch pads in SET1 is touched. (R/W)

SENS_TOUCH_PAD_OUTEN2 Bitmap defining SET2 for generating a wakeup interrupt; SET2 is considered touched if at least one of the touch pads in SET2 is touched. (R/W)

SENS_TOUCH_PAD_WORKEN Bitmap defining the working set during measurement. (R/W)

Register 29.20. SENS_SAR_READ_CTRL2_REG (0x0090)

 

 

 

 

 

 

 

 

FORCE

 

 

 

 

 

 

 

 

 

BIT

 

 

CYCLE

_

 

 

 

 

 

 

 

INV

 

 

 

 

 

 

 

 

_

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SAMPLE

SAMPLE

DIV

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DATADIG

 

 

 

 

 

 

 

 

 

 

CLK

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_

 

_

 

 

 

 

 

 

 

 

 

 

_

_

 

 

_

 

 

 

 

SAR2SAR2

 

 

 

(reserved)

 

 

 

 

 

 

SAR2

SAR2

 

 

SAR2

 

 

(reserved)SENSSENS

 

 

 

 

 

 

 

 

 

SENS

SENS

 

 

SENS

 

 

 

 

_

_

 

 

 

 

 

 

 

 

 

 

 

 

_

_

 

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

31

30

29

28

27

 

 

 

 

 

 

 

 

 

18

17

16

 

15

8

 

7

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

0

0

 

0

0

0

0

0

0

0

0

 

3

 

 

9

 

 

2

SENS_SAR2_DATA_INV Invert SAR ADC2 data. (R/W)

SENS_SAR2_DIG_FORCE 1: SAR ADC2 controlled by DIG ADC2 CTRL or PWDET CTRL, 0: SAR ADC2 controlled by RTC ADC2 CTRL (R/W)

SENS_SAR2_SAMPLE_BIT Bit width of SAR ADC2, 00: for 9-bit, 01: for 10-bit, 10: for 11-bit, 11: for 12-bit. (R/W)

SENS_SAR2_SAMPLE_CYCLE Sample cycles of SAR ADC2. (R/W)

SENS_SAR2_CLK_DIV Clock divider. (R/W)

Espressif Systems

649

ESP32 TRM (Version 5.0)

Submit Documentation Feedback

29 On-Chip Sensors and Analog Signal Processing

Register 29.21. SENS_SAR_MEAS_START2_REG (0x0094)

 

 

 

 

 

FORCE

 

 

 

 

 

 

 

 

 

 

 

 

 

FORCESAR SAR

 

 

 

 

 

 

 

 

SAR

 

 

 

 

 

 

 

 

 

_

 

 

 

 

 

_

 

 

 

 

 

 

 

_

_

_

 

 

 

 

 

 

DATA

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

STARTSTARTDONE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PAD

 

 

 

 

 

 

PAD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

 

EN

 

 

 

 

 

EN

 

 

 

 

_

 

_

_

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

SAR2

 

 

 

 

 

SAR2

 

 

 

 

 

MEAS2MEAS2MEAS2

 

 

 

 

 

 

MEAS2

 

 

 

 

 

 

 

 

 

_

 

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

_

 

 

 

 

 

 

_

_

 

_

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

SENS

 

 

 

 

 

 

SENS

 

 

 

 

 

SENSSENSSENS

 

 

 

 

 

 

 

SENS

 

 

 

 

 

 

 

31

30

 

 

 

 

 

 

 

 

 

 

 

 

19

18

17

16

 

15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

 

0

0

0

0

0

0

 

0

0

0

0

0

0

0

 

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

SENS_SAR2_EN_PAD_FORCE 1: SAR ADC2 pad enable bitmap is controlled by SW, 0: SAR ADC2 pad enable bitmap is controlled by ULP coprocessor. (R/W)

SENS_SAR2_EN_PAD SAR ADC2 pad enable bitmap; active only when reg_sar2_en_pad_force = 1. (R/W)

SENS_MEAS2_START_FORCE 1: SAR ADC2 controller (in RTC) is started by SW, 0: SAR ADC2 controller is started by ULP coprocessor. (R/W)

SENS_MEAS2_START_SAR SAR ADC2 controller (in RTC) starts conversion; active only when reg_meas2_start_force = 1. (R/W)

SENS_MEAS2_DONE_SAR SAR ADC2-conversion-done indication. (RO)

SENS_MEAS2_DATA_SAR SAR ADC2 data. (RO)

Register 29.22. SENS_SAR_DAC_CTRL1_REG (0x0098)

 

 

 

 

 

 

 

 

 

 

 

HIGHLOW

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INV FORCEFORCE

 

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_

_

_

FORCE

 

 

 

 

 

EN

 

 

 

 

 

 

 

FSTEP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_

_

_

_

_

 

 

 

 

TONE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CLK CLK CLK DIG

 

 

 

 

_

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

DAC DAC DAC DAC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(reserved)

 

 

(reserved)

 

SENS

SW

 

 

 

 

 

 

 

 

SW

 

 

 

 

 

 

 

 

 

 

 

SENSSENSSENSSENS

 

 

 

 

 

 

 

 

 

 

SENS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

_

_

_

_

 

 

 

 

 

_

 

 

 

 

 

 

 

 

_

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

31

 

 

 

 

26

25

24

23

22

21

 

 

 

17

16

15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

 

0

0

0

0

0

0

0

0

0

0

0

0

0

SENS_DAC_CLK_INV 1: inverts PDAC_CLK, 0: no inversion. (R/W)

SENS_DAC_CLK_FORCE_HIGH forces PDAC_CLK to be 1. (R/W)

SENS_DAC_CLK_FORCE_LOW forces PDAC_CLK to be 0. (R/W)

SENS_DAC_DIG_FORCE 1: DAC1 & DAC2 use DMA, 0: DAC1 & DAC2 do not use DMA. (R/W)

SENS_SW_TONE_EN 1: enable CW generator, 0: disable CW generator. (R/W)

SENS_SW_FSTEP Frequency step for CW generator; can be used to adjust the frequency. (R/W)

Espressif Systems

650

ESP32 TRM (Version 5.0)

Submit Documentation Feedback

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