i want to display the time from rtc to lcd using 18x but nothing is displayed
with this code
i2cslave %11010000,i2cslow,i2cbyte
writei2c 0,($00,$57,$11,$03,$25,$12,$03,$10)
pause 10
main:
i2cslave %11010000,i2cslow,i2cbyte
readi2c 0,(b0,b1,b2)
bcdtoascii b0,b3,b4
bcdtoascii b1,b4,b5
bcdtoascii b2,b6,b7
writei2c 0,(254,128,255)
pause 10
writei2c 0,(b3,b4,":",255)
pause 10
writei2c 0,(b4,b5,":",255)
pause 10
writei2c 0,(b6,b7,":",255)
pause 30
goto main
i think the problem is on my code i dunno how to display the time by using bcdtoascii command
plz help
with this code
i2cslave %11010000,i2cslow,i2cbyte
writei2c 0,($00,$57,$11,$03,$25,$12,$03,$10)
pause 10
main:
i2cslave %11010000,i2cslow,i2cbyte
readi2c 0,(b0,b1,b2)
bcdtoascii b0,b3,b4
bcdtoascii b1,b4,b5
bcdtoascii b2,b6,b7
writei2c 0,(254,128,255)
pause 10
writei2c 0,(b3,b4,":",255)
pause 10
writei2c 0,(b4,b5,":",255)
pause 10
writei2c 0,(b6,b7,":",255)
pause 30
goto main
i think the problem is on my code i dunno how to display the time by using bcdtoascii command
plz help