cancel
Showing results for 
Search instead for 
Did you mean: 

counter(CNT) value in timer

vitthal muddapur
Associate II
Posted on February 12, 2018 at 14:44

hi

how to set counter value to zero without resetting lptimer after read the count value . 

3 REPLIES 3
henry.dick
Senior II
Posted on February 12, 2018 at 14:47

Yes.

T J
Lead
Posted on February 12, 2018 at 16:11

how

this maybe?

    tmp = htim->Instance->CNT;

    htim->Instance->CCR1 = tmp;

some registers can't be cleared.

did you check the reference manual ?

Posted on February 12, 2018 at 16:06

how