|
|
View previous topic :: View next topic |
Author |
Message |
Lagaffe
Joined: 14 Sep 2010 Posts: 14 Location: Portugal, TNV
|
Library for PIC16F1847 |
Posted: Sun Nov 06, 2011 11:55 am |
|
|
Hi,
I'm using the compiler version 4.084, and by default it does not have the header file for the PIC16F1847. Although, and just as a curiosity, I've decided to install the current demo version in another machine, this new version does include this header file.
My question: If I copy the header file from the demo version to the directory "DEVICES" in my installation folder for the v4.084 and use this header file in a new program for the PIC16F1847, will the compiled .hex work correctly?
My problem is that I don't have here any PIC16F1847, to test this out.
As a side note, after copying the file to the "DEVICES" directory, the PIC Wizard didn't assumed this new MCU ... kind as I would imagine it wouldn't.
Anyway, maybe one of you have already faced a similar problem, can give me some advice.
Kind Regards |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Nov 06, 2011 12:02 pm |
|
|
Quote: | If I copy the header file from the demo version to the
directory "DEVICES" in my installation folder for the v4.084 and use this
header file in a new program for the PIC16F1847, will the compiled .hex
work correctly?
|
No, because the CCS built-in functions such as setup_timer_1(), etc.,
and other support code are not in the .h file. They are contained in the
pcm.dll file. Information about the internal structure of the PIC, such as
the amount of Flash and RAM memory, and the peripheral modules is
contained in the various devices.dat files. The .h file really only has the
contants that are used as parameters for the built-in function. It only has
a fraction of what you need to get support for the new PIC.
In addition to that, CCS periodically changes the format of the .dat files
so they are not necessarily compatible between versions. |
|
|
Lagaffe
Joined: 14 Sep 2010 Posts: 14 Location: Portugal, TNV
|
|
Posted: Sun Nov 06, 2011 12:21 pm |
|
|
Thanks for your reply.
It is far more complex than what I've imagined, but yes, it makes perfect sense.
Regards |
|
|
|
|
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
|