cancel
Showing results for 
Search instead for 
Did you mean: 

How to restart a timer prescalers?

Mario Luzeiro
Senior

How do I restart a timer properly?

I can set the counter value, but what about the prescalers?

2 REPLIES 2
Muhammed Güler
Senior III

You can edit the copy of the timer init function and make the counter and prescaler values variable. Or you can change it to htimx.instance-> PSC = 0x ...

TDK
Guru

Generating an update event will clear the prescaler counter.

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