espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.79k stars 7.31k forks source link

ESP32S3 Touch sensor Delay (IDFGH-9083) #10487

Open 5ami opened 1 year ago

5ami commented 1 year ago

Answers checklist.

General issue report

I have an issue with the ESP32S3 Touch sensor Delay after finishing the required number of cycles (FSM started by Hardware timer)

We know that The touch sensor will measure time of a fixed number of charge/discharge cycles (specified as the second parameter).

Even when meas_time in touch_pad_set_meas_time(sleep_cycle, meas_times) the next measurement start after approximately 140 us have passed after finishing the required number of cycles. please check a picture where I set the number of cycles to a 100. Why is this behavior's ? I checked the esp-idf guide and esp32s3 TRM and couldn't find an answer.

SmartSelect_20230104_132026_Samsung Notes image

leeebo commented 1 year ago

@5ami Because the touch sensor channels use a polling measurement, if you enable multiple channels, this time will first sleep for a while (sleep_cycle) and then switch to the next channel