I have a situation where I have some boards with a PIC18F2620 and other boards with a PIC18F2525. This was an inadvertant manufacturing error. so now i unfortunately have 2 sets of code. One for each PIC. they are identical except for the #include line specifying the processor. The programmer issues a failure if I try to load the 2620 code into a 2525 processor. But no failure is issued if I load the 2525 code into a 2620 processor. It all seems to be working properly but i am wary of loading the 2525 version into the 2620. Is there something I'm missing? I am assuming that because the 2620 has 64K and the 2525 has 48K of memory that the larger memory(2620) will accept the smaller memory program(2525). But the other way around fails because the verify part of programming is expecting 64K of memeory and it only gets to 48K.
I hope i've expalined this well.
any thoughts would be appreciated
Thanks
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Mon Oct 23, 2006 5:50 pm
Why not just create two HEX files -- one for the 18F2620 and one for the
18F2525. Then program the appropriate file into the each board type.
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
Posted: Mon Oct 23, 2006 7:49 pm
Unless you have something in your code that specifically reads the chip ID to see it is a 2620 then you have no problem. These are the same chips differentiated by the amount of program memory. You can use the 2525 image on the 2620.
This is not uncommon. _________________ Regards, Andrew
thanks asmaralli. this is what i thought. The 2 separate files is a solution also but these units are sealed and there is no easy/efficient way to identify what chip is on the board.
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