Skip to content
esp-labsESP32-S3 bench guide
All blocks

Analog

Touch sensor

Fourteen pins that feel a finger through capacitance

built, not flashed

Loading the 3D view…

  • TOUCH
  • Charge

Key facts

Gotchas

Touch has not passed the conducted-noise test

Espressif notes that the touch sensor has not passed the Conducted Susceptibility test, so noisy power or long cables can trigger false touches. Fine on a bench, think twice in a product.

In our labs

3 labs use this block, across 1 tracks. Open a track to see them.

  • done by you
  • runs on the board
  • built, not flashed
  • planned

Key registers

RTC_CNTL_TOUCH_CTRL2_REGoffset 0x010C
RTC_CNTL_TOUCH_CTRL2_REG
BitsFieldWhat it does
31RTC_CNTL_TOUCH_CLKGATE_ENTouch clock on.
16RTC_CNTL_TOUCH_START_FORCE1: start scans from software, 0: from the timer.
15RTC_CNTL_TOUCH_START_ENStart a scan (software start).

Technical reference §39.7.1

SENS_SAR_TOUCH_CONF_REGoffset 0x005C
SENS_SAR_TOUCH_CONF_REG
BitsFieldWhat it does
17:16SENS_TOUCH_DATA_SELRead raw, benchmark or smoothed data.
14:0SENS_TOUCH_OUTENWhich touch channels report.

Technical reference §39.7.2

SENS_SAR_TOUCH_THRESn_REGoffset 0x0064 + 4·(n−1)
SENS_SAR_TOUCH_THRESn_REG
BitsFieldWhat it does
21:0SENS_TOUCH_OUT_THnFinger threshold for touch pin n.

Technical reference §39.7.2

SENS_SAR_TOUCH_CHN_ST_REGoffset 0x009C
SENS_SAR_TOUCH_CHN_ST_REG
BitsFieldWhat it does
31SENS_TOUCH_MEAS_DONEMeasurement done.
14:0SENS_TOUCH_PAD_ACTIVEWhich pins are touched, one bit each.

Technical reference §39.7.2

SENS_SAR_TOUCH_STATUSn_REGoffset 0x00A4 + 4·(n−1)
SENS_SAR_TOUCH_STATUSn_REG
BitsFieldWhat it does
21:0SENS_TOUCH_PADn_DATAThe reading of touch pin n.

Technical reference §39.7.2

Read the full sectionTechnical reference §39.2