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

PIC18452 writing to program memory

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







PIC18452 writing to program memory
PostPosted: Thu Feb 27, 2003 6:19 pm     Reply with quote

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

View user's profile Send private message Send e-mail

Re: PIC18452 writing to program memory
PostPosted: Thu Feb 27, 2003 6:27 pm     Reply with quote

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

View user's profile Send private message

I too have the same problem.
PostPosted: Sat Jan 10, 2004 4:59 am     Reply with quote

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
Guest








PostPosted: Sat Jan 10, 2004 6:29 pm     Reply with quote

http://www.thebytefactory.com

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.

Good luck
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