View previous topic :: View next topic |
Author |
Message |
wawrzyniak
Joined: 10 Nov 2003 Posts: 3
|
Looking for PIC <18F6527.h> Header-File |
Posted: Tue Aug 23, 2005 4:02 am |
|
|
Hi Folks,
I am using an older version of the CCS-Compiler. (Baseline 3.91 of PCWH)
Now I want to start a new project using the 18F6527 - PIC but my CCS version does not contain the necessary header.
Could anyone send me the header file (just copy from the DEVICES folder)
Thanks a lot ! ! !
Greetings from Germany
Thomas |
|
|
Ttelmah Guest
|
|
Posted: Tue Aug 23, 2005 4:26 am |
|
|
Repeat after me:
Adding the header file, wll not make the compiler support the chip.
You need to buy an upgraded version with the chip in it's database.
Best Wishes |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Tue Aug 23, 2005 5:20 am |
|
|
Quote: | (Baseline 3.91 of PCWH) | Do you mean v3.191?
Ttelmah is right. Some people might point you to the chipedit.exe tool that comes with PCWH, but this is only an option when your chip has minimal differences from supported processor models (otherwise you will spend a lot of time and still fail to get it working).
Considering the cheap price for another year support and upgrades you are better of with the upgrade. |
|
|
valar2006
Joined: 22 Jul 2005 Posts: 1
|
|
|
wawrzyniak
Joined: 10 Nov 2003 Posts: 3
|
Why should it not work? |
Posted: Tue Aug 23, 2005 6:26 am |
|
|
Hi
1) The uC core is the same like the 18F458 etc.
2) PIC 18 assembler is PIC 18 assembler.
The only difference is the on chip periphery (Timer etc.) which I can set via SFR.
There are two possibilities:
A) to set the SFR directly or
B) set the SFR using the Header
Why should it not work?
Please send me the Header. I'm gonna try it at my own risk.
If it does not work, I will buy an update.
You are right! The baseline is the 3.191 :-)
Ciao Thomas |
|
|
MikeValencia
Joined: 04 Aug 2004 Posts: 238 Location: Chicago
|
|
Posted: Tue Aug 23, 2005 6:58 am |
|
|
One of the rules in posting code is
Quote: |
7.) Realize that CCS examples and drivers that are included with the compiler are only available to licensed CCS users. Please do NOT copy this code into the forums. You MAY #include such files in any libraries or examples.
|
You should try asking CCS for the .h file. Subscribers on the forum though are asked not to post copyrighted code. At most, you can only #include the .h file in your example code. Sorry.
If cost is the issue, you should consider buying PCH. Perhaps, since you are past PCWH subscriber, CCS may give it to you for the price of an upgrade. Doesn't hurt to ask. |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
Re: Why should it not work? |
Posted: Tue Aug 23, 2005 7:19 am |
|
|
wawrzyniak wrote: | Hi
1) The uC core is the same like the 18F458 etc.
2) PIC 18 assembler is PIC 18 assembler.
The only difference is the on chip periphery (Timer etc.) which I can set via SFR.
There are two possibilities:
A) to set the SFR directly or
B) set the SFR using the Header
Why should it not work?
Please send me the Header. I'm gonna try it at my own risk.
If it does not work, I will buy an update.
You are right! The baseline is the 3.191 :-)
Ciao Thomas |
Well heck if its the same then just use the 18F458.h. Afterall, if you specify a device that does not exist whacha think the compiler is gonna tell ya! |
|
|
Ttelmah Guest
|
|
Posted: Tue Aug 23, 2005 7:19 am |
|
|
The header file, _will do nothing for you_. Have a look at one. It does not do any of the setting of the SFR stuff. It is purely a text file containing numeric defines, and a list of the options. The options themselves (which these numbers control), are controlled by the 'devices.dat' file, not the 'header'. Potentially, if you have PCWH, then you can use the device editor to turn on/off the options for a device, and map the various parts to the right addresses, and with this done, then the header file would possibly work, but without these other changes, the compiler will not know where all the peripheral components sit, and the header file will not fix this...
Best Wishes |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
I think the policy needs one more rule :) |
Posted: Tue Aug 23, 2005 7:23 am |
|
|
Rule 11 - Quit asking for header files that do not exist with your version of compiler. If you do not have them, there is a reason. They will do you no good. |
|
|
wawrzyniak
Joined: 10 Nov 2003 Posts: 3
|
|
Posted: Wed Aug 24, 2005 2:19 am |
|
|
You can use the Device.dat from the demo Version.
Thank's for your "help" mates.
I'm gonna start to write my own Header file now.
Ciao Thomas |
|
|
|