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

PWM pins that are not CCP

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







PWM pins that are not CCP
PostPosted: Sun May 07, 2006 3:13 pm     Reply with quote

Hi;
I'm using the pic18f4331 which has 2 ccp pins and 8 pwm pins. I've seen plenty of code for setup_ccpX(ccp_pwm) and I understand the math behind it, but how dow I set up the other PWM pins that are not CCP ? Could someone provide a code snippet? thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun May 07, 2006 3:35 pm     Reply with quote

Look at the EX_POWER_PWM.C file for an example. It's in this folder:
c:\Program Files\PICC\Examples

Look in the CCS manual to see an explanation of the functions used
in that example file.
http://www.ccsinfo.com/downloads.php
Jim
Guest







I don't have that
PostPosted: Sun May 07, 2006 4:04 pm     Reply with quote

I don't have that code example.. I must have an older version but I don't have that in my examples file. Could you just post a snippet?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun May 07, 2006 6:08 pm     Reply with quote

According to the forum rules posted here, we're not supposed to post
CCS example files. See item #10:
http://www.ccsinfo.com/forum/viewtopic.php?t=26245

You might be able to get CCS support to send it to you, if you
email them and ask for it. Give them your compiler registration
number so they know you own the compiler. I don't know for
sure if this method will work.
jim
Guest







any would do
PostPosted: Sun May 07, 2006 6:10 pm     Reply with quote

I don't need the code right from the example
any would do..
Jim
Guest







Got a snippet
PostPosted: Mon May 08, 2006 7:50 am     Reply with quote

I got a snippet from support .. thanks anyway
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