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

Processor directive question

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



Joined: 25 Aug 2005
Posts: 65
Location: Huntington Beach, CA

View user's profile Send private message

Processor directive question
PostPosted: Sun Sep 18, 2005 2:48 pm     Reply with quote

In looking at the processor directive, 16F877A.h, the pins are defined by a two digit number. I have looked at the processor data sheet and cannot find the relationship between such statements as:

PIN_A0 40

What does the 40 refer too? When writing the code, I assume that one could use the number 40 in place of the PIN_A0 tykpe of statements. Also what type of number is the 40? Hex, decimal,....?

Thanks,
JimB Question
Ttelmah
Guest







PostPosted: Sun Sep 18, 2005 3:11 pm     Reply with quote

A number is decimal, unless specified otherwise.
The pin numbers used in CCS, are the port address of the pin, times eight, plus the bit number. So '40', implies that pin A0, is bit 0, of register address 5.

Best Wishes
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