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

Pin select for PWM

 
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

Pin select for PWM
PostPosted: Mon Jun 15, 2015 4:31 am     Reply with quote

In 16f877A , by default C2 is PWM1 and C1 is PWM2



If I want to use PWM_1 and PWM_2 at any other pin ( as example PWM_1 at pin_A0 and PWM_2 at pin_E1),
Does it possible ?
Any software/coding solution?
Any example ? please

I want to do it because , I used all pin of port "C" as input and used Port "A" and "E" as output.
Pin_A0 will be used for stepper pulse generator and Pin_E1 will be used for another stepper pulse generator

I am using compiler version 4.124
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Mon Jun 15, 2015 10:41 am     Reply with quote

My reading of the data sheet says NO.
Reassign the pins.

Mike
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