Hi Team,
As per document (Technical reference manual) for PCNT instruction,
-"When the overflow count (all 1’s in the counter value) is reached, PCNT stops counting until the next reset edge is detected."
Can you please provide us more details or probably an example on how to reset the periodic counter?
We could see that once periodic counter reaches overflow condition, PCNT instruction stops counting further.
A quick response is highly appreciated.
Please find the below use case scenario:
1. We sampling pulse counts using PCNT instruction from pin 0 and pin 1.
2. Pin 0 is connected with signal source and pin 1 is not connected to any signal source.
3. Pulse counts are incremented (in PCNT instruction) for both PCNT instructions (one for pin 0 and one for pin 1).
Note: Not sure why PCNT instruction sampling pulse count for pin 1 also increments in this case?
4. So, for PCNT instruction sampling pulses for pin 1 reaches to all F's, pulse counts for both pins 0 and 1 are giving zero even though valid signal is present in pin 0.
Is it expected behaviour and further way forward for this issue?
Regards,
M.Sreenivasan.