View previous topic :: View next topic |
Author |
Message |
moataz Guest
|
saving real time to an external eeprom |
Posted: Sun Apr 20, 2003 3:57 am |
|
|
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
|
Re: saving real time to an external eeprom |
Posted: Mon Apr 21, 2003 8:22 am |
|
|
:=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 |
Posted: Tue Apr 22, 2003 10:48 am |
|
|
:=:=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 |
|
|
|