I am trying to write sequentially via code to the program memory to store user data. I have not been able to get write_program_eeprom to work. Any help would be appreciated.
___________________________
This message was ported from CCS's old forum
Original Post ID: 12190
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Re: PIC18452 writing to program memory
Posted: Thu Feb 27, 2003 6:27 pm
Are you using an 18F452? Post an example of your code
:=I am trying to write sequentially via code to the program memory to store user data. I have not been able to get write_program_eeprom to work. Any help would be appreciated.
___________________________
This message was ported from CCS's old forum
Original Post ID: 12191
vinothkumar
Joined: 10 Jan 2004 Posts: 1 Location: Chennai, India
I too have the same problem.
Posted: Sat Jan 10, 2004 4:59 am
I have checked a small program with WRITE_PROGRAM_EEPROM() and READ_PROGRAM_EEPROM() function in 16F877 board. The same program with header file declaration changes and data type changed to 16 bit is not working in PIC18F452. Even the PCB board is same. Just I have interchanged my IC. Any solution from Seniors?????
- Vinoth Kumar _________________ - Nothing special
This fellow has 2 bootloaders, one for the 16F877 and one for the 18F452. They are largely the same except for the differences in usage of write_program_eeprom. Download them and look at those differences and you will see how to successfully modify program memory. Basically, the techniques have to be different because the 452 memory has to be erased in blocks and not one at a time when you write it like in the 877. It's actually explained in the CCS manual but is just complicated enough that a good understanding will come from usage.
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