Page 1 of 1

Is there any way to set the current count of the PCNT?

Posted: Sun Mar 18, 2018 12:53 am
by clarkster
The count value is read only. ARGGG! Anyone know of any tricks to modify it besides counting pulses?

Re: Is there any way to set the current count of the PCNT?

Posted: Sun Mar 25, 2018 3:29 am
by clarkster
If it isn't possible, is it possible to fix this in the future?

Re: Is there any way to set the current count of the PCNT?

Posted: Sun Mar 25, 2018 6:59 am
by WiFive
Just subtract an offset from the threshold instead?

Re: Is there any way to set the current count of the PCNT?

Posted: Sun Aug 12, 2018 4:25 am
by kolban
There is an API called pcnt_counter_clear() that will reset the counter to zero.