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

Copy data External EEpprom

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



Joined: 07 Sep 2003
Posts: 56

View user's profile Send private message

Copy data External EEpprom
PostPosted: Mon Oct 23, 2006 1:46 pm     Reply with quote

Hi, I have a 200 var int32 in a 24LC256, i need to copy for the memory RAM in " INT32 BUFFER_COORD[200] ". Which the best way ?

Thanks in advanced

Orcino
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Oct 23, 2006 2:34 pm     Reply with quote

Read four bytes from the eeprom, in sequence. Put each byte in
a temporary variable in your C program. Then use the make32()
function to combine the four temporary variables into one 32-bit
value. Put the result of make()32 into one element of your
Buffer_Coord[] array. Create a for() loop that will execute 200 times
and repeat the above process until you have filled the array.
See the CCS manual for a description of the make32() function.
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