Touch sensor read with ULP?

alzeimer
Posts: 1
Joined: Mon Jan 07, 2019 12:00 pm

Touch sensor read with ULP?

Postby alzeimer » Mon Jan 07, 2019 12:06 pm

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.

mezzynine
Posts: 12
Joined: Fri Feb 07, 2020 8:05 am

Re: Touch sensor read with ULP?

Postby mezzynine » Sun Jul 25, 2021 11:54 pm

try https://github.com/boarchuz/HULP/blob/m ... lp_touch.h
the library also has an example.

mezzynine
Posts: 12
Joined: Fri Feb 07, 2020 8:05 am

Re: Touch sensor read with ULP?

Postby mezzynine » Thu Aug 12, 2021 12:50 am

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!

boarchuz
Posts: 604
Joined: Tue Aug 21, 2018 5:28 am

Re: Touch sensor read with ULP?

Postby boarchuz » Thu Aug 12, 2021 1:26 am

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.

Who is online

Users browsing this forum: No registered users and 62 guests