Page 1 of 1

Touch sensor read with ULP?

Posted: Mon Jan 07, 2019 12:06 pm
by alzeimer
Hi,

I know that the ESP32 can read ADC using ULP without using the main processor and it looks, I understand this from datasheet, that the TOUCH sensor could be read in the same way but I can't find any example to do it. The usual way is to wake-up the main processor with an touch-interrupt, then read the sensor and then go back to sleep.

Any one couild confirm me if the touc sensor could be read in ULP mode?

Thanks in advance.

Re: Touch sensor read with ULP?

Posted: Sun Jul 25, 2021 11:54 pm
by mezzynine
try https://github.com/boarchuz/HULP/blob/m ... lp_touch.h
the library also has an example.

Re: Touch sensor read with ULP?

Posted: Thu Aug 12, 2021 12:50 am
by mezzynine
hi, is there a sample using a .S file? the HULP example uses the C-macro library, which is hard to make work on Windows. Besides, I have other .s code already implemented. thanks!

Re: Touch sensor read with ULP?

Posted: Thu Aug 12, 2021 1:26 am
by boarchuz
You could convert the instructions (after untangling the macros) to normal ULP assembly. There's not much to the touch stuff.
hulp_dump_program might be useful as an intermediate.