I have hooked up a DS1307 clock module to the AXE091U and programmed it to display the time on the screen however for some odd reason the time skips. Watching the seconds on the screen it skips about 15 odd every now and then. Additionally the seconds go up to 90 which is a bit questionable. I'll link my program to be looked over. Any response is appreciated.
Thanks
Time Set:
i2cslave %11010000, i2cslow, i2cbyte
writei2c 0, ($00, $25, $0A, $13, $0B, $0F, $00, $00)
end
Time Display:
i2cslave %11010000, i2cslow, i2cbyte
Hoop:
wait 3
serout b.3,n2400,(254,1)
Command:
readi2c 0, (b0, b1, b2)
pause 50
serout b.3,n2400,(254,128)
pause 50
serout b.3,n2400,(#b2,":",#b1,":",#b0)
pause 50
goto Command
Thanks
Time Set:
i2cslave %11010000, i2cslow, i2cbyte
writei2c 0, ($00, $25, $0A, $13, $0B, $0F, $00, $00)
end
Time Display:
i2cslave %11010000, i2cslow, i2cbyte
Hoop:
wait 3
serout b.3,n2400,(254,1)
Command:
readi2c 0, (b0, b1, b2)
pause 50
serout b.3,n2400,(254,128)
pause 50
serout b.3,n2400,(#b2,":",#b1,":",#b0)
pause 50
goto Command