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

PIC16F1825 CCP2 Alternate Pin

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



Joined: 02 Sep 2011
Posts: 1

View user's profile Send private message

PIC16F1825 CCP2 Alternate Pin
PostPosted: Fri Sep 02, 2011 1:22 pm     Reply with quote

Hi,

I'm trying to set the PIC16F1825 to use the alternate pin (RA5) for CCP2 PWM instead of the defualt pin (RC3).

I'm setting the lsb of APFCON1 to 1 to select RA5 for CCP2 PWM output, but it doesn't work. The PWM signal is no longer output on RC3, so something is clearly happening, but not what I expect.

What am I missing?
barryg



Joined: 04 Dec 2006
Posts: 41

View user's profile Send private message

PostPosted: Fri Sep 02, 2011 2:04 pm     Reply with quote

The only catch I can think of is that you have to set RA5 to be an output--enabling PWM doesn't do that automatically.
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