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

saving real time to an external eeprom

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







saving real time to an external eeprom
PostPosted: Sun Apr 20, 2003 3:57 am     Reply with quote

Hello,

i want to write the current real time to an 24LC256 serial EEPROM what will be the code i need to??


Thanks.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13829
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

Re: saving real time to an external eeprom
PostPosted: Mon Apr 21, 2003 8:22 am     Reply with quote

:=Hello,
:=
:= i want to write the current real time to an 24LC256 serial EEPROM what will be the code i need to??
:=
:=
:=Thanks.

Look in the forum for RTC to see a discussion of real time clocks. I assume your trying to figure out how to segment the time into bytes?
___________________________
This message was ported from CCS's old forum
Original Post ID: 13864
Moataz
Guest







Re: saving real time to an external eeprom
PostPosted: Tue Apr 22, 2003 10:48 am     Reply with quote

:=:=Hello,
:=:=
:=:= i want to write the current real time to an 24LC256 serial EEPROM what will be the code i need to??
:=:=
:=:=
:=:=Thanks.
:=
:=Look in the forum for RTC to see a discussion of real time clocks. I assume your trying to figure out how to segment the time into bytes?



Like this in binary:
write_ext_eeprom(0, hours);
write_ext_eeprom(1, minutes);
write_ext_eeprom(2, seconds);

Or in ASCII:

for(i=0;i<=strlen(time);i++)
write_ext_eeprom(i, time[i]);
___________________________
This message was ported from CCS's old forum
Original Post ID: 13924
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