mhalbern
Member
In the documentation for the AXE033:
"To set the correct time after the circuit is first powered up, the current time must be
written to the DS1307 registers. The following example PICAXE program will setup
the time to 11:59:00 on Thursday 25/12/03.This is carried out by loading the
registers in order from address 00 upwards i.e. seconds then minutes then hours etc.
hi2csetup i2cmaster, %11010000, i2cslow, i2cbyte
i2cout 0, ($00, $59, $11, $03, $25, $12, $03, $10)
end
"
As best as I can figure, the DAY of the WEEK value ($03) is wrong. For Thursday, the value should be $05.
Is this correct?
"To set the correct time after the circuit is first powered up, the current time must be
written to the DS1307 registers. The following example PICAXE program will setup
the time to 11:59:00 on Thursday 25/12/03.This is carried out by loading the
registers in order from address 00 upwards i.e. seconds then minutes then hours etc.
hi2csetup i2cmaster, %11010000, i2cslow, i2cbyte
i2cout 0, ($00, $59, $11, $03, $25, $12, $03, $10)
end
"
As best as I can figure, the DAY of the WEEK value ($03) is wrong. For Thursday, the value should be $05.
Is this correct?