Merge branch 'fix/pcnt_miss_accum_value_when_overflow' into 'master'

fix(pcnt): fix the accum_value missing when overflow

See merge request espressif/esp-idf!39967
This commit is contained in:
Chen Ji Chang
2025-07-02 19:07:53 +08:00
4 changed files with 93 additions and 18 deletions
@@ -329,6 +329,10 @@ The internal hardware counter will be cleared to zero automatically when it reac
:cpp:func:`pcnt_unit_clear_count` resets the accumulated count value as well.
.. note::
When enabling the count overflow compensation, it is recommended to use as large a high/low count limit as possible, as it can avoid frequent interrupt triggering, improve system performance, and avoid compensation failure due to multiple overflows.
.. _pcnt-power-management:
Power Management