View previous topic :: View next topic |
Author |
Message |
MarcosAmbrose
Joined: 25 Sep 2006 Posts: 38 Location: Adelaide, Australia
|
Changing a projects target processor |
Posted: Wed Nov 22, 2006 5:50 pm |
|
|
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
|
|
Posted: Wed Nov 22, 2006 6:25 pm |
|
|
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:
Then press the Compile button. It should work. |
|
|
MarcosAmbrose
Joined: 25 Sep 2006 Posts: 38 Location: Adelaide, Australia
|
|
Posted: Wed Nov 22, 2006 6:31 pm |
|
|
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
|
|
Posted: Wed Nov 22, 2006 6:43 pm |
|
|
Somebody else will have to answer it. I don't have the PCWH IDE. |
|
|
Assen
Joined: 18 Oct 2006 Posts: 8
|
|
Posted: Wed Nov 22, 2006 9:11 pm |
|
|
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
|
|
Posted: Wed Nov 22, 2006 10:12 pm |
|
|
Thanks for the quick replies guys. I just changed the device header and the compiler took care of the rest. -Thanks |
|
|
|