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

Using 18F8722 device with older version of the compiler ?

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



Joined: 09 Sep 2003
Posts: 95
Location: UK

View user's profile Send private message Send e-mail Visit poster's website

Using 18F8722 device with older version of the compiler ?
PostPosted: Wed Dec 21, 2005 10:53 am     Reply with quote

I have been developing a large app with the PIC18F8720 device for a while now.

However, now that we're about to make some new PCBs, I thought I'd recompile my code for the newer PIC18F8722 (which supercedes the PIC18F8720).

*BUT* my compiler (version 3.190) doesn't include support for the 18F8722, and the code doesn't compile.

One of the changes in the new chip is the inclusion of the INTRC oscillator function. The 18F8720 part does not have this, and so the compiler complains.

I have used the device editor to create a new 18F8722 device, and the code now seems to compile, but how can I be sure I've made all the correct changes ? What are the differences in the 18F8722.h header file ?

I know I could purchase the up-to-date compiler, but I've been happy with version 3.190 for a couple of years now (and I know all it's problems !!), and I don't much cherish the thought of having to go through my code making sure the newer compiler versions haven't broken anything.

Could some kind soul post the 18F8722.h header file, or is the against the license agreement ?

Thanks
Mark
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Dec 21, 2005 5:16 pm     Reply with quote

CCS doesn't want us to post this stuff. Example:
http://www.ccsinfo.com/forum/viewtopic.php?t=24969


But with regard to your problem, the header file for the 18F8722
has about double the number of fuses settings as the 18F8720.
It does have INTRC and INTRC_IO. You can probably create
those new fuse settings in the Device Editor. I don't have
PCW or PCWH, so I don't have the editor. No one else seems
to comment on the topic. Here is a thread where I theorized
on how to add new fuse settings:
http://www.ccsinfo.com/forum/viewtopic.php?t=23568

With regard to new constants in the 18F8722.H file, I don't think
those will do you a lot of good. That's because the constants
are used as parameters in the built-in functions. In later versions
of the compiler, CCS often changes the way these functions work.
So merely having a list of constants won't necessarily get you
the new functionality, because you still have the older version
of the compiler.
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