Julian date is 7 char long
exm 2453623 i can't have that in a word this come from eeprom as ascii char in 7 diff byte
2453623 JD is CE 2005 September 09
7 char off JD read from 24c08 byte 3f hex to 45 hex
as the same time it have a another date 0605 also in ascii code
0605 is month 6 year 5
this 4 char read from the same 24c08 location 80 hex to 83
What i want is the change the month and year the the PICAXE need to calculate new JD number
this 4 + 7 digit shut be change back to ascii and stored the new JD and MMYY the same location
follow code line is to read data extranal eeprom an store it in the internal
I want to change MMYY that shut be stored back to externat to be 0911 ( 9 month 11 year )
now it shut make a new JD from MMYY + some day, as in the top (2453623 JD is CE 2005 September 09 = relation to 0605 (MMYY)
exm 2453623 i can't have that in a word this come from eeprom as ascii char in 7 diff byte
2453623 JD is CE 2005 September 09
7 char off JD read from 24c08 byte 3f hex to 45 hex
as the same time it have a another date 0605 also in ascii code
0605 is month 6 year 5
this 4 char read from the same 24c08 location 80 hex to 83
What i want is the change the month and year the the PICAXE need to calculate new JD number
this 4 + 7 digit shut be change back to ascii and stored the new JD and MMYY the same location
follow code line is to read data extranal eeprom an store it in the internal
I want to change MMYY that shut be stored back to externat to be 0911 ( 9 month 11 year )
now it shut make a new JD from MMYY + some day, as in the top (2453623 JD is CE 2005 September 09 = relation to 0605 (MMYY)
Code:
i2cslave %10100000, i2cfast, i2cbyte
main:
'Read 7 byte from eeprom and store it in interne eeprom add 0 to 6
for b12 = #3F to #45
readi2c b12, ( b11)
b10 = b12 - #3E
write b10, b11
next b12
'Read 4 byte from eeprom and store it in interne eeprom add #10 to #13
for b12 = #80 to #83
readi2c b12, ( b11)
b10 = b12 - #70
write b10, b11
next b12
end