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

PIC16F1822 problem in CCS PCW

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



Joined: 02 Feb 2012
Posts: 2
Location: UK

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

PIC16F1822 problem in CCS PCW
PostPosted: Fri Feb 03, 2012 9:28 am     Reply with quote

Hi I'm new to CCS & PIC, I can't see the header file for the chip PIC16F1822. I'm using ccs pcw. can I use this chip in pcw?
please help me.
_________________
Try&Try one day U can Fly.
temtronic



Joined: 01 Jul 2010
Posts: 9162
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Feb 03, 2012 9:38 am     Reply with quote

You should state which version of PCW you're using but offhand unless the header is there, no.
You _might_ be able to use a close equal to it but may run into 'problems'.
ccs_sera



Joined: 02 Feb 2012
Posts: 2
Location: UK

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

PostPosted: Fri Feb 03, 2012 10:49 am     Reply with quote

temtronic wrote:
You should state which version of PCW you're using but offhand unless the header is there, no.
You _might_ be able to use a close equal to it but may run into 'problems'.


hi thanks a lot. my ccs version is CCS 4.057.
_________________
Try&Try one day U can Fly.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Feb 03, 2012 1:06 pm     Reply with quote

If the header file is not available, then the compiler doesn't have support
for that PIC. Simply getting the header file won't solve the problem.
The header file just has the allowable constants that can be used as
parameters in the built-in compiler functions, such as read_adc(), etc.
The actual functions themselves are contained in DLL files. The data
on the resources (RAM, ROM, peripherals, etc.) in the PIC are contained
in the Devices.dat files.

If you have a PIC that is merely an upgrade (by Microchip) to another
PIC, so that it just has more RAM and ROM, then it might be possible to
use the compiler's Device Editor to "add" the new PIC.

But most of the time, that's not possible, because the new PIC is too
different from previous PICs (in the register map, or peripheral operation,
etc.). In other words to add support, you have to upgrade the compiler.

Even then, if the PIC is very new, it might take CCS a few versions of
compiler releases to finally "get it right". That's because people notice
bugs in the code for the new PIC and they report it to CCS, and they fix
it (usually).
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