Skip to content

ESP32-Reference/esp32-freqcount

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esp32-freqcount

ESP32 Application to accurately count frequency of pulses on a GPIO using Pulse Counter, RMT and Interrupt.

The RMT generates a pulse of precise length, which is mapped to a GPIO.

The Pulse Counter (PCNT) control input is wired to this same GPIO.

PCNT is configured to inhibit counting when the control input is low, and count when it is high.

The RMT TX Complete interrupt is used to fetch the counter value at the end of each control frame.

See also ref_clock.

About

ESP32 Frequency Counter using Pulse Counter and Remote Control modules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.7%
  • Makefile 3.3%