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

16f877a internal eeprom problem???

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



Joined: 17 Mar 2009
Posts: 6

View user's profile Send private message

16f877a internal eeprom problem???
PostPosted: Tue Mar 17, 2009 10:00 am     Reply with quote

hi,
I am trying to use internal eeprom on 16f877a. There is no problem on proteus, but my circuit is not working true.
Data that I wrote on eeprom is being erased when power off.
How can this be?
Guest








PostPosted: Tue Mar 17, 2009 10:17 am     Reply with quote

Hi,

How do you know it's not working correctly? Is the rest of your hardware working?

Post some complete sample code, and your compiler version.

Jeff
slsslssls



Joined: 17 Mar 2009
Posts: 6

View user's profile Send private message

PostPosted: Tue Mar 17, 2009 10:30 am     Reply with quote

For example,
When I compile this code:
Code:
write_eeprom(1,'2');
lcd_putc(read_eeprom(1));

I can see 2 on LCD.

Then I erase -- write_eeprom(1,'2') -- and I can't see 2 on display.

I had written to eeprom '2'. How can it be erased?? I can't understand this. I couldn't solve the problem. :(
Ttelmah
Guest







PostPosted: Tue Mar 17, 2009 10:54 am     Reply with quote

If you erased "write_eeprom(1,'2')", then presumably you _erased_, and reprogrammed the chip. EEPROM will be erased as well, unless you tell your programmer not to do this...

Best Wishes
slsslssls



Joined: 17 Mar 2009
Posts: 6

View user's profile Send private message

PostPosted: Tue Mar 17, 2009 10:59 am     Reply with quote

How can I tell the programmer not to do this??
slsslssls



Joined: 17 Mar 2009
Posts: 6

View user's profile Send private message

PostPosted: Tue Mar 17, 2009 12:52 pm     Reply with quote

Now, there is no problem! SmileSmile
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