Timer Frequency Calculation?

Timer Calculator is a free software development tool used for easier calculation of timer interrupts.
Post Reply
Author
Message
MichaelSmith
Posts: 1
Joined: 05 May 2018 07:57

Timer Frequency Calculation?

#1 Post by MichaelSmith » 08 May 2018 07:25

Hi,

I'm currently using a timer (up/down) to generate a frequency from 10Hz to 2Khz, I want the user to be able to control what freq they want the pins to output. I have the code all working all except for figuring out how to determine the calculation value to put into TA0CCR0 register. Is there a simple calculation to determine this?

Please help.

I didn't find the right solution from the Internet.

References:-
https://bit.ly/2HWTqZS


Thanks

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Timer Frequency Calculation?

#2 Post by filip » 15 Jun 2018 08:20

Hi,

Have you used Timer Calculator application maybe ?
https://www.mikroe.com/timer-calculator

Regards,
Filip.

Post Reply

Return to “Timer Calculator”