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 CCS Technical Support

Library for PIC16F1847

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



Joined: 14 Sep 2010
Posts: 14
Location: Portugal, TNV

View user's profile Send private message

Library for PIC16F1847
PostPosted: Sun Nov 06, 2011 11:55 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Nov 06, 2011 12:02 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Nov 06, 2011 12:21 pm     Reply with quote

Thanks for your reply.

It is far more complex than what I've imagined, but yes, it makes perfect sense.


Regards
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