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

Saving floats to EEPROM?

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







Saving floats to EEPROM?
PostPosted: Tue Feb 01, 2005 3:47 pm     Reply with quote

Hello all,

How can I save a floating point variable to internal EEPROM?

Thanks
Lance
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Feb 01, 2005 4:04 pm     Reply with quote

Look in the CCS FAQ, at this question:
http://www.ccsinfo.com/faq/?24

Since you're writing to internal eeprom, just use "write_eeprom()"
and "read_eeprom()" instead of the external eeprom functions.

Also, because the address is only 8-bits for data eeprom, you can
change the parameter declarations from "long int" to "int8".
Toups
Guest







Thanks
PostPosted: Tue Feb 01, 2005 4:11 pm     Reply with quote

I really apreciate the help. I need to look through
the FAQ's a bit closer.
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