I have a gear motor.. rpm: 50
What parameter i should put in setup_timer_2()
For example setup_timer_2(T2_DIV_BY_4, 255, 1);
How to make the calculation?
Kindly please help me..
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Fri Mar 25, 2011 1:44 pm
1. What interrupt rate do you want from Timer2 ? 50 rpm is 3000 Hz.
Do you want a 3 KHz interrupt rate ?
2. Or do you even want interrupts ? Do you actually want to run PWM ?
3. Also, what is the oscillator frequency of your PIC ?
To get help on this forum, you need to post information about your
project.
---------------
In case your question is about PWM, here are the links to previous threads:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum