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

I CAN'T READ/WRITE EEPROM PIC16F676 VIA COMMAND WRITE_EEPROM

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







I CAN'T READ/WRITE EEPROM PIC16F676 VIA COMMAND WRITE_EEPROM
PostPosted: Sun Jun 13, 2004 9:26 pm     Reply with quote

I CAN'T READ/WRITE EEPROM PIC16F676 VIA COMMAND WRITE_EEPROM AND READ_EEPROM BUT I CAN DO IT WITH PIC16F876A

PLEASE TELL ME ABOUT THIS SOLUTION
Coder
Guest







PostPosted: Sun Jun 13, 2004 11:04 pm     Reply with quote

while the PICF676 has 128bytes of DATA EEPROM the PIC16F876A has 256 . are you sure your not addressing a memory location thats too big for the 676 ? that would explain why it works for the 876A. (provided its under the 256 byte mark)

why dont you start addressing memory locations from 1 . i.e.
Code:

write_eeprom(1,*data);
{Other code}
data_in=read_eeprom(1);


that way you can be sure its not out of bounds

i hope that works.
i have a current problem with a "A" variant chip. can you give a simple set up of your circuit. i dont need any specific peripharals. just the setup of the PIC and if the set up its any different to a non "A" chip.

thanks

Coder
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