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

migrating from 16f877

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



Joined: 26 Sep 2003
Posts: 218
Location: Northern Indiana

View user's profile Send private message

migrating from 16f877
PostPosted: Wed Mar 10, 2004 7:30 am     Reply with quote

Question
I've reached the limit of progam memory in a couple of 16F877 projects.
The code is all written in C using the CCS compiler.
I'm considering using the 18F252 as a drop-in replacement and buying the PCH compiler to recompile the C code.

Is this chip a good choice for the migration?

Where can I find info re: tricks & traps to look out for when migrating from 16F to 18F chips and PCM to PCH.

Am I just being too paranoid and probably won't encounter any major headaches?

Thanks,

Patrick
Chas
Guest







PostPosted: Wed Mar 10, 2004 8:56 am     Reply with quote

I just did the same thing on a recent project and had the same paranoia that you do. I was completely wrong. The transistion was fairly straight forward. The changes that I needed to be aware of follow:

LVP pin is changed to RB5 on the 18F parts.
Change any direct register address assignments.
Change any direct pin assignments
Change #fuse parameters
Be aware that memory addressing is in 8 bit bytes with instructions on the even word boundaries

Beyond the above I had fairly smooth sailing.

Let us know how it works out.
Ttelmah
Guest







PostPosted: Wed Mar 10, 2004 10:49 am     Reply with quote

Chas wrote:
I just did the same thing on a recent project and had the same paranoia that you do. I was completely wrong. The transistion was fairly straight forward. The changes that I needed to be aware of follow:

LVP pin is changed to RB5 on the 18F parts.
Change any direct register address assignments.
Change any direct pin assignments
Change #fuse parameters
Be aware that memory addressing is in 8 bit bytes with instructions on the even word boundaries

Beyond the above I had fairly smooth sailing.

Let us know how it works out.

Add that you have to modify your thinking if you are using the EEPROM. On the 18 parts, the data you have to store for this is mapped as if this is 16bits wide.

Generally it is usually fairly easy.

Best Wishes
Rene
Guest







PostPosted: Thu Mar 11, 2004 6:46 am     Reply with quote

I did a migration from 16f877 to 18f452.

Never had a moment of regret about it.
pmuldoon



Joined: 26 Sep 2003
Posts: 218
Location: Northern Indiana

View user's profile Send private message

PostPosted: Mon Mar 15, 2004 7:59 am     Reply with quote

I was hoping you'd say that!

Thanks for the comments, guys.
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