Stepper motor help!!!

LINIX Brushless, VEXTA Brushless, RC Servo, DC Geared, Linear, Stepper, Tamiya.....

Re: Stepper motor help!!!

Postby sich » Thu Apr 28, 2011 11:56 am

You can use PR2 register to change the pwm period because T = Period, f = 1 / T. So when period changes, the frequency also different. However, the lowest frequency you can achieve is still very high, may be few thousand pulse per second. The best way should be setup a timer interrupt, fix the period for the timer to overflow and count a variable in the interrupt routine. So yo will change this variable matching value to determine when to toggle the pulse pin.
~> How to ask QUESTIONS the SMART way in FORUM? <~
User avatar
sich
Moderator
 
Posts: 603
Joined: Tue Apr 21, 2009 2:15 pm

Previous

Return to DC Motor

Who is online

Users browsing this forum: No registered users and 1 guest