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

PORT Name

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



Joined: 17 Jan 2007
Posts: 3

View user's profile Send private message Send e-mail

PORT Name
PostPosted: Tue Apr 24, 2007 4:18 am     Reply with quote

Hi friends,

why the port pins of PIC is called Ra,Rb,Rc etc......

Thanks
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Tue Apr 24, 2007 7:49 am     Reply with quote

I'm looking at the spec sheet for 16F877A page 7.

They call the port portA prortB BUT then go on to call the pins
RA1 RA2.. so it makes sense that the compilers follows that standard.

ps:following the spec sheet naming convention isn't done consistently
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Tue Apr 24, 2007 8:18 am     Reply with quote

Most likely, somebody at Microchip decided that's how it will be done. I guess since it's their product they can call the components whatever they want. Just as long as I can decipher the spec. sheet and make the parts do what I need.

Ronald
octal



Joined: 15 Jan 2007
Posts: 39

View user's profile Send private message Visit poster's website

PostPosted: Tue Apr 24, 2007 9:51 am     Reply with quote

This notation comes from Microchip. Microchip names are relative to the Registers that controls ports RegisterA ... for PortA ..; so RA0 is lower bit of the Register that maps PortA .... and so on.

Best regards
_________________
http://www.pocketmt.com the GLCD Font Creator home Smile
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