I am trying out the ds1307 real time clock chip but after several hours I am having no luck. Could someone look over the attachments and tell me if you can spot the problem? I would greatly appreciate it.
Note: The program is downloading successfully to the 18X picaxe chip (LED flashes during operation).
Debugging- all vars read 0
main:
'First program the date
' initialize
i2cslave %11010000, i2cslow, i2cbyte
' sec min hr day date mon yr control
writei2c 0, ($00,$59,$11,$03,$25,$12,$03,$10)
pause 50
doit:
i2cslave %11010000, i2cslow, i2cbyte
readi2c 0, (b0,b1,b2)
high 5
wait 1 ' flash led
low 5
debug
goto doit
Note: The program is downloading successfully to the 18X picaxe chip (LED flashes during operation).
Debugging- all vars read 0
main:
'First program the date
' initialize
i2cslave %11010000, i2cslow, i2cbyte
' sec min hr day date mon yr control
writei2c 0, ($00,$59,$11,$03,$25,$12,$03,$10)
pause 50
doit:
i2cslave %11010000, i2cslow, i2cbyte
readi2c 0, (b0,b1,b2)
high 5
wait 1 ' flash led
low 5
debug
goto doit
Attachments
-
154.6 KB Views: 53