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

PIC16F1779: PWMx vs. PWMxOUT in header?

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



Joined: 07 Dec 2016
Posts: 60
Location: Northeast USA

View user's profile Send private message

PIC16F1779: PWMx vs. PWMxOUT in header?
PostPosted: Wed Oct 17, 2018 11:48 am     Reply with quote

CCS v5.080
PIC16F1779

In the 16F1779.h header file, the #pin_select section contains entries for PWMxOUT as well as PWMx. For example, PWM3 is a PPS function, as well as PWM3OUT, in the header.

What is the difference between using #pin_select with PWMx vs. PWMxOUT? Is there any difference between the two? If I'm supposed to "just know" what the difference in these two is supposed to be, how would I have obtained this knowledge on my own?

The only reference to this in the data sheet is that PWM3 is the source peripheral, and PWM3OUT is the output pin. I can't find any reference to this disparity in the compiler manual either; the header file does not explain the usage scenarios of one vs. the other.
Ttelmah



Joined: 11 Mar 2010
Posts: 19535

View user's profile Send private message

PostPosted: Wed Oct 17, 2018 1:29 pm     Reply with quote

Generally, the names you should use are those in the pin selection table in the data sheet.

PWMxOUT.

However in this particular case CCS opted to provide an alternative name that might seem simpler. So just PWMx. Either is legitimate and does the same.
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