fix(pcnt): fix the accum_value missing when overflow

This commit is contained in:
Chen Jichang
2025-06-19 11:31:22 +08:00
parent e2c9605f72
commit ba0a08a1d0
4 changed files with 86 additions and 15 deletions

View File

@@ -286,6 +286,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