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 A6 undefined

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



Joined: 07 Jan 2004
Posts: 11
Location: Philadelphia, USA

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

pin A6 undefined
PostPosted: Tue Mar 23, 2004 2:31 pm     Reply with quote

I want to use pin A6 for IO,
on the PIC18F258.

Inside PIC18F258.h, there is:

#define PIN_A0 31744
#define PIN_A1 31745
#define PIN_A2 31746
#define PIN_A3 31747
#define PIN_A4 31748
#define PIN_A5 31749

but no:

#define PIN_A6 31750

Is there any reason CCS did not include pin A6? Is there any reason I should not add it?
Ttelmah
Guest







Re: pin A6 undefined
PostPosted: Tue Mar 23, 2004 2:49 pm     Reply with quote

dgi wrote:
I want to use pin A6 for IO,
on the PIC18F258.

Inside PIC18F258.h, there is:

#define PIN_A0 31744
#define PIN_A1 31745
#define PIN_A2 31746
#define PIN_A3 31747
#define PIN_A4 31748
#define PIN_A5 31749

but no:

#define PIN_A6 31750

Is there any reason CCS did not include pin A6? Is there any reason I should not add it?

The only reason, is because it is not available in normal configurations (you have to be using ECIO). I have used it fine.

Best Wishes
Guest








PostPosted: Fri Aug 06, 2004 9:20 am     Reply with quote

How do you setup PIN_A6 once you place your 18Fxxxx in EC_IO?

just add a define like the one mentioned above?

Code:
#define PIN_A6 31750


maybe to whatever file you're working on?

I tried that and it does compile fine this way.. but I haven't tested it yet.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Fri Aug 06, 2004 10:49 am     Reply with quote

Yes
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