Good evening
It is a program to test how backups are the data in the eeprom.
And as can see the data is written partly in Hexa and others in Decimal
I need your help
Thank you
Good evening
It is a program to test how backups are the data in the eeprom.
And as can see the data is written partly in Hexa and others in Decimal
I need your help
Thank you
Last edited by jonas2; - 28th October 2009 at 15:45.
Whatever format you will use data in eeprom will be saved in binary format!The data are stored in external EEPROM.
But when I reread the eeprom hour, minute and second
Are written in hexadecimal, while others are in decimal.
Should he make the conversion before saving?
17 = $11 will be saved as %00010001
26 = $1A will be saved as %00011010
9 = $9 will be saved as %00001001
0 = $0 will be saved as %00000000
number from 0 to 9 are the same in both format decimal and hex.
Al.
Last edited by aratti; - 28th October 2009 at 18:08.
All progress began with an idea
Hello
I agree with you, but if I use a terminal to receive
Data stored in the eeprom.
I wanted to do it this way:
29 October 09, ten hours unit time, unit ten months .
d_heure = hour / 16
u_heure = hour - (d_heure * 16)
d_heure = d_heure + 48
u_heure = u_heure + 48
d_minute = minute / 16
u_minute = minute - (d_minute * 16)
d_minute = d_minute + 48
u_minute = u_minute + 48
thank you for your help
Bookmarks