CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Stepper motor control

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

Stepper motor control
PostPosted: Wed Apr 14, 2004 12:11 pm     Reply with quote

Greetings!

I am controlling a servo motor, using a servo driver, and using Step and Direction pulses. I am using Timer0, in 16 bit mode, to pulse the Step output. I am modifying the Timer0 counter values (TMR0H and TMR0L) to vary the frequency of the pulses. I am wondering if anybody here knows of some kind of code to ramp the frequency up and down to start and stop the motor.

I'm using a PIC18F452.

Thank you,
Ronald
dave austin
Guest







Stepper motor control
PostPosted: Tue Mar 22, 2005 5:19 am     Reply with quote

This article shows how to generate stepper motor speed ramps.
There is a listing for PIC18F252:

http://www.embedded.com/shared/printableArticle.jhtml?articleID=56800129
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group