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 support@ccsinfo.com

Problem using the PIC18F6620 EEPROM

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







Problem using the PIC18F6620 EEPROM
PostPosted: Fri Jul 09, 2004 2:01 pm     Reply with quote

I've a problem using the PIC18F6620 EEPROM.
Up to now I used the PIC16 family with only 256 byte of EEPROM memory without problems. But the PIC18 family has up to 1Kbyte of EEPROM, and I don't understand how to drive this portion of memory.
The write_eeprom() and the read_eeprom() functions are able to drive only 256 byte. But, even if I use them, I'm not able to read or write a single byte.

Thanks
Guest








PostPosted: Sat Jul 10, 2004 3:32 am     Reply with quote

The updated doc says that the address is 16 bit wide for these PICs so you are able to make something like this:
Write_eeprom(0x0145,0x12);
c = Read_eeprom(0x0145);

If you aren't able to write EEPROM then check your fuse settings.
Steve
Guest







1K EEPROM
PostPosted: Mon Jul 30, 2007 3:44 am     Reply with quote

I'm confused.

The doc with my compiler (version 3.206) only mentions an 8 bit address for read_eeprom and write_eeprom, but the compiler does support the 18F6680 which has 1K of EEPROM.

So my question is, does my compiler support 16 bit address for read_eeprom and write_eeprom?
Ttelmah
Guest







PostPosted: Mon Jul 30, 2007 4:22 am     Reply with quote

The current versions say:

"address is an (8 bit or 16 bit depending on the part) int"

These correctly handle addresses beyond 255.
I'm afraid 3.206, is very old, and though chip support was added, I don't think the allowed range was implemented in these parts.
The only ways to find out, would be:
1) Ask CCS.
2) Write something to byte 512, using a long integer address, and see where the code puts it.

Best Wishes
SteveL



Joined: 30 Jul 2007
Posts: 1

View user's profile Send private message

PostPosted: Mon Jul 30, 2007 4:36 am     Reply with quote

Sounds like I need an upgrade ... I was starting to think that anyway.

Thanks.
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