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

PCD: How to properly set this in pic24

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







PCD: How to properly set this in pic24
PostPosted: Wed Sep 30, 2009 2:55 pm     Reply with quote

Because if I make:

Code:
main void()
{
..
 TRISB = 0;   
AD1PCFG = 0xFFFF;
...
}

I get undefined identifier error.
bkamen



Joined: 07 Jan 2004
Posts: 1611
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Wed Sep 30, 2009 3:23 pm     Reply with quote

Where's the rest of the code?

Is that all you have?

Please post full source code so we can compile along with you.

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Sep 30, 2009 4:15 pm     Reply with quote

Quote:
I get undefined identifier error

Read ckielstra's post on how to make a register include file by using
the Chipedit.exe utility. I don't know if this works for PCD, but
maybe it does:
http://www.ccsinfo.com/forum/viewtopic.php?t=36803
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