cancel
Showing results for 
Search instead for 
Did you mean: 

HRTimer "Roll Over" synchronization

Jbin0101
Associate II

Jbin0101_0-1756398558523.png

The way the ref manual states this makes it sound like, if, before you start a counter, you "manually" set the counter to a value higher than the period value, it will NOT start counting / reset back to zero once the timer is actually enabled. 

However, when I try to do this, as soon as I enable the timer it doesn't function this way.

The Timer has no reset bits set in the RST register; It's in continuous mode, and the period value is set to 1000. The counter value is manually set to 19999 before it's enabled. 

Once enabled, the timer begins counting right away, without an external reset event to trigger it. It's like setting the counter above the period value did nothing. 

Am I misunderstanding what I'm reading, or is there something else I'm missing here? Is this "feature" only applicable to single shot modes or something? (unsure what the purpose would be there)

 

Thank you.

1 REPLY 1
AScha.3
Super User

Did you check the time (= any time ?) from starting counter to reset/loop to zero and count on ?

Because - as i understand it - if value at start is higher than the set period, it counts from start value to max, then loops to zero and counts up to set period, then loop...

There is not stated, it would wait for anything - it just has a different first period.

If you feel a post has answered your question, please click "Accept as Solution".