fast pulse counter esp32

Nikita71
Posts: 5
Joined: Thu May 27, 2021 7:08 pm

fast pulse counter esp32

Postby Nikita71 » Fri May 28, 2021 9:30 am

Hello everybody.) need count the pulses. The pulse itself lasts about 0.1 - 0.01 uS, and their number can reach 10,000,000,000 in 1 second (usually no more 100) . attachInterrupt not suitable because the entrance to the Interrupt takes 1.6 uS. Сan recommend what can be used for this ?

mgsecord62
Posts: 20
Joined: Thu Nov 02, 2017 12:40 am

Re: fast pulse counter esp32

Postby mgsecord62 » Fri May 28, 2021 7:01 pm

Did you mean the maximum number of pulses/sec is 10,000,000 (10 million) because that would be the max based on the 0.01uS pulse you stated. I have read in this forum that the maximum frequency of the pulse counter function is 40 Mhz. You can than configure the pulse counter to generate an interrupt after so many counts (2^16 max) so then you would have time to service the interrupt if that would work for your application.

Nikita71
Posts: 5
Joined: Thu May 27, 2021 7:08 pm

Re: fast pulse counter esp32

Postby Nikita71 » Sat May 29, 2021 9:00 pm

mgsecord62 wrote:
Fri May 28, 2021 7:01 pm
Did you mean the maximum number of pulses/sec is 10,000,000 (10 million) because that would be the max based on the 0.01uS pulse you stated. I have read in this forum that the maximum frequency of the pulse counter function is 40 Mhz. You can than configure the pulse counter to generate an interrupt after so many counts (2^16 max) so then you would have time to service the interrupt if that would work for your application.
yes, sorry i was wrong ). can you drop the link his topic ?

Who is online

Users browsing this forum: MicroController and 78 guests