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 Start and Stop Pulse Profile[SOLVED]
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ttelmah



Joined: 11 Mar 2010
Posts: 20064

View user's profile Send private message

PostPosted: Fri Jul 18, 2014 6:28 am     Reply with quote

Still the call to the interrupt needs to be much faster.

The problem is that this has to be at a significant 'multiple' of the actual stepper speed required.
Otherwise the gaps between steps gets enormous.

Visualise that the step rate required 'is' the interrupt interval.
Then the interrupt can only develop pulses at this frequency, or half this frequency, 1/3rd this frequency etc.. Result very non linear, and big jumps in speed.
If instead the interval is 20* the maximum rate required, then the timer can generate this frequency, using /20, or /21, /22, etc., and there are small changes between the rates, and acceleration/deceleration is in small steps. This is why I talk about such a fast interrupt.
This approach _relies_ on having the master interrupt at a fast rate.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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