View previous topic :: View next topic |
Author |
Message |
ccs_sera
Joined: 02 Feb 2012 Posts: 2 Location: UK
|
PIC16F1822 problem in CCS PCW |
Posted: Fri Feb 03, 2012 9:28 am |
|
|
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: 9244 Location: Greensville,Ontario
|
|
Posted: Fri Feb 03, 2012 9:38 am |
|
|
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
|
|
Posted: Fri Feb 03, 2012 10:49 am |
|
|
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
|
|
Posted: Fri Feb 03, 2012 1:06 pm |
|
|
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). |
|
|
|