Page 1 of 1
fast pulse counter esp32
Posted: Fri May 28, 2021 9:30 am
by Nikita71
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 ?
Re: fast pulse counter esp32
Posted: Fri May 28, 2021 7:01 pm
by mgsecord62
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.
Re: fast pulse counter esp32
Posted: Sat May 29, 2021 9:00 pm
by Nikita71
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 ?