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

Ex_step without rs-232

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



Joined: 10 Jul 2011
Posts: 54

View user's profile Send private message Send e-mail

Ex_step without rs-232
PostPosted: Thu Sep 05, 2013 3:15 am     Reply with quote

Hi
There is an example on stepper name ex_step. But this example may work on rs-232.

Would anybody like tell me how to drive stepper without rs-232 with this example of code.

Would you like to give explanation for the code in this example.
Like
Code:
code// this is for.............

note that I am using PIC16f877A
Thanks
temtronic



Joined: 01 Jul 2010
Posts: 9221
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Sep 05, 2013 9:06 am     Reply with quote

simple to do...

...just 'hardcode' variables speed,dir and steps with the values you want to use

ie:

printf("\n\rSpeed (hex): ");
speed = gethex();

delete the prinf(..) code

change speed.... to say

speed=100;

What values you use will be based upon your stepper motor and desired action yo want it to accomplish.


hth
jay
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