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

write_eeprom limit problem

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



Joined: 07 Feb 2009
Posts: 38

View user's profile Send private message

write_eeprom limit problem
PostPosted: Sat Jul 03, 2010 2:31 am     Reply with quote

Hello, I try to write internal eeprom(18f452) as big than 255, but I can't. It means when I try to write eeprom 1020 adc value; I can not. Everytime pic eeprom is saved 255...what is wrong? (I defined adc values as int32).
jbmiller



Joined: 07 Oct 2006
Posts: 73
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Jul 03, 2010 4:54 am     Reply with quote

Knowledge is power...please read the PIC datasheets !
EEPROM is designed as BYTES, not Bits, Words, or Long words so you must access that memory area as Bytes (8 bits).
It is a simple task to 'split' the Word or LWord data into Byte sized 'chunks' to store.
There have been several examples here in the past to handle this.
Ttelmah



Joined: 11 Mar 2010
Posts: 19561

View user's profile Send private message

PostPosted: Sat Jul 03, 2010 7:20 am     Reply with quote

and, the code for doing this is supplied with the compiler. Look at the file 'internal_eeprom.c'.

Best Wishes
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