can we use pulse counting module(PCNT) with deep sleep?

dovov97815
Posts: 22
Joined: Mon Aug 17, 2020 10:24 am

can we use pulse counting module(PCNT) with deep sleep?

Postby dovov97815 » Tue Aug 18, 2020 1:57 pm

can we use pulse counting module(PCNT) with deep sleep?

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: can we use pulse counting module(PCNT) with deep sleep?

Postby ESP_igrr » Tue Aug 18, 2020 6:52 pm

Hi dovov97815,
PCNT like all other APB peripherals are powered down in deep sleep. If the frequency of the input signal is low enough, you may be able to do pulse counting using the ULP coprocessor. There is an example of this approach here: https://github.com/espressif/esp-idf/tr ... system/ulp

Who is online

Users browsing this forum: VivekBorse and 85 guests