mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
30edcca1fb
This is to resolve issue reported in https://github.com/espressif/esp-idf/issues/130.
19 lines
760 B
ReStructuredText
19 lines
760 B
ReStructuredText
Pulse Counter
|
|
=============
|
|
|
|
Overview
|
|
--------
|
|
|
|
The PCNT (Pulse Counter) module is designed to count the number of rising and/or falling edges of an input signal. Each pulse counter unit has a 16-bit signed counter register and two channels that can be configured to either increment or decrement the counter. Each channel has a signal input that accepts signal edges to be detected, as well as a control input that can be used to enable or disable the signal input. The inputs have optional filters that can be used to discard unwanted glitches in the signal.
|
|
|
|
Application Example
|
|
-------------------
|
|
|
|
Pulse counter with control signal and event interrupt example: :example:`peripherals/pcnt`.
|
|
|
|
API Reference
|
|
-------------
|
|
|
|
.. include:: /_build/inc/pcnt.inc
|
|
|