2021-07-24 02:08 AM
Hi, I wonder which one is better for Timer setup:
Solved! Go to Solution.
2021-07-24 03:35 AM
What is"better"?
Whichever setting suits your application is OK. Higher prescaler might theoretically lead to lower power consumption, but the difference will be probably entirely negligible.
JW
2021-07-24 03:35 AM
What is"better"?
Whichever setting suits your application is OK. Higher prescaler might theoretically lead to lower power consumption, but the difference will be probably entirely negligible.
JW
2021-07-24 12:11 PM
I usually prefer lower PSC in order to have better resolution, but sometimes resolution doesn't matter. Note that ARR needs to be nonzero.
2021-07-24 12:47 PM
Lower power consumption is better, so I will try to choose larger PSC and lower ARR if possible.
Like at 72Mhz cpu:
1ms timer PSC = 7199 ARR = 9
100ms timer PSC = 59999 ARR = 119