I am trying to read (from the DS1307) and display the real time on the AXE033 when in i2c. The module is being used in i2c, i.e with J1 shored. The code is shown below. However, the time is not being displayed correctly, just character and numbers, else, ie text is ok. Any help to what I am doing wrong.
pause 500
i2cslave $c6, i2cslow,i2cbyte
main: writei2c 0, (254,128,255)
pause 10
writei2c 0, ("the time is ", 255)
pause 500
i2cslave %11010000, i2cslow, i2cbyte
readi2c 0,(b0,b1,b2)
pause 30
clock:i2cslave $c6, i2cslow,i2cbyte
writei2c 0, (254,192,255)
pause 30
writei2c 0, (b0,b1,b2,255)
goto init
pause 500
i2cslave $c6, i2cslow,i2cbyte
main: writei2c 0, (254,128,255)
pause 10
writei2c 0, ("the time is ", 255)
pause 500
i2cslave %11010000, i2cslow, i2cbyte
readi2c 0,(b0,b1,b2)
pause 30
clock:i2cslave $c6, i2cslow,i2cbyte
writei2c 0, (254,192,255)
pause 30
writei2c 0, (b0,b1,b2,255)
goto init