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

multiple PWMs from a single 18 series pic

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



Joined: 23 Mar 2006
Posts: 9

View user's profile Send private message

multiple PWMs from a single 18 series pic
PostPosted: Wed Apr 04, 2007 1:17 pm     Reply with quote

Hey guys, I'm trying to figure out if I can get 2 autonomous PWM signals from my 18 series pic. Currently, I'm using all the timers except timer 0. Also, I can't do it in the main code because I'm using the main code to monitor button presses and need those clock cycles. We're using the 18F458 pic. It only has one CCP module, but it does have an ECCP module. I just don't know what that is. I've read up on it a little, but I'm having trouble understanding it. Can I use it to create a second PWM without needing an additional timer? Is there another way that I'm not thinking of?

I didn't include my code here for simplicity sake, but I can post it at request. Thanks in advance. I've gotten a lot of help from this forum so far for this project and I appreciate it.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Apr 04, 2007 1:28 pm     Reply with quote

See this post for sample code that shows how to use the ECCP
module in normal PWM mode:
http://www.ccsinfo.com/forum/viewtopic.php?t=30409
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