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 support@ccsinfo.com

software pwm for 1 motor

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







software pwm for 1 motor
PostPosted: Sun Sep 02, 2007 4:18 am     Reply with quote

I am having trouble with controlling a dc motor with software pwm. Can anybody PLEASE post an example of a software pwm program in C
Hans Wedemeyer



Joined: 15 Sep 2003
Posts: 226

View user's profile Send private message

What size of DC motor?
PostPosted: Sun Sep 02, 2007 11:53 am     Reply with quote

For a small motor this works for me.
http://www.hans-w.com/speed_control.htm
icesynth



Joined: 03 Sep 2007
Posts: 32
Location: Edmonton, Alberta

View user's profile Send private message Visit poster's website

PostPosted: Mon Sep 03, 2007 5:11 pm     Reply with quote

Do you want to use the CCS functions for PWM or implement the PWM using the PIC timers yourself?

For the CCS Examples, look in /examples/EX_PWM.C in the CCS Compiler Directory.

Just Ideas...
--Chris Burchett--
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