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

Changing a projects target processor

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



Joined: 25 Sep 2006
Posts: 38
Location: Adelaide, Australia

View user's profile Send private message

Changing a projects target processor
PostPosted: Wed Nov 22, 2006 5:50 pm     Reply with quote

Hi All,
I'm currently working on a project that uses a 16F876. I'm planning on changing the processor to an 18F2525 which is pin for pin compatible. What I'd like to know is, other than changing the device header to 18F2525.h are there any other considerations I should change to accomadate the new pic.

When I look inside the .PJT file I see there is an entry titled "Processor=0x876A". I guess this was created by the project wizard, but I can't see anywhere in the IDE where you can change/set the target processor. -Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Nov 22, 2006 6:25 pm     Reply with quote

I assume you're using MPLAB. In that case, you can do this:

1. Change the #include statement to:
Code:
#include <18F2525.h>


2. Go to the Configure menu and pick Select Device. Set it to:
Code:
PIC18F2525


Then press the Compile button. It should work.
MarcosAmbrose



Joined: 25 Sep 2006
Posts: 38
Location: Adelaide, Australia

View user's profile Send private message

PostPosted: Wed Nov 22, 2006 6:31 pm     Reply with quote

PCM programmer wrote:
I assume you're using MPLAB.
Oh! sorry, the compile would be a useful piece of information.... No, I'm using PCWH ver3.249.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Nov 22, 2006 6:43 pm     Reply with quote

Somebody else will have to answer it. I don't have the PCWH IDE.
Assen



Joined: 18 Oct 2006
Posts: 8

View user's profile Send private message

PostPosted: Wed Nov 22, 2006 9:11 pm     Reply with quote

Open the file xxxxx.pjt using any text editor and change the lines

Processor_Text=PIC18F8722
Processor=0x8722

with the info for the new micro as well as changing the include file.
MarcosAmbrose



Joined: 25 Sep 2006
Posts: 38
Location: Adelaide, Australia

View user's profile Send private message

PostPosted: Wed Nov 22, 2006 10:12 pm     Reply with quote

Thanks for the quick replies guys. I just changed the device header and the compiler took care of the rest. -Thanks
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