Hi ,
please tell me how we can calculated theroticall value of timer tick in this controller
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi ,
please tell me how we can calculated theroticall value of timer tick in this controller
Hello Poonam,
The counter decrements once every (TPR[TDDRH:TDDR] + 1) SYSCLK cycles. If there is no divider applied to the timer, 1 timer tick is 1 SYSCLK tick, so whatever the frequency of your device is configured for will be the same for the timer.
Best regards,
Omer Amir
The equation I provided is for if you are applying a divider, the value is from the TDDR and TDDRH in the TPR high/low registers. The equation should be self-explanatory from there.
Best regards,
Omer Amir