hi guys, i am trying to get my real time clock to work but i am not getting a good reponse, i just want to mention that i dont have the backup battery installed yet. here is my program
symbol seconds = b1
symbol mins = b2
symbol hour = b3
symbol day = b4
symbol date = b5
symbol month = b6
symbol year = b7
symbol control = b8
i2cslave %11010000, i2cslow, i2cbyte
pause 100
start_clock:
let seconds = $00
let mins = $00
let hour = $01
let day = $02
let date = $21
let month = $07
let year = $03
let control = %00010000
writei2c 0,(seconds,mins,hour,day,date,month,year,control)
debug b1
pause 2000
main:
readi2c 0,(seconds,mins,hour,day,date,month,year)
debug b1
pause 2000
goto main
once this is downloaded i get this response in debug
b4=2
b5=33
b8=16
then after about 1 second it changed to this
b8=16
this just stays like this for a while
if anyone could help it would be great, thanks
symbol seconds = b1
symbol mins = b2
symbol hour = b3
symbol day = b4
symbol date = b5
symbol month = b6
symbol year = b7
symbol control = b8
i2cslave %11010000, i2cslow, i2cbyte
pause 100
start_clock:
let seconds = $00
let mins = $00
let hour = $01
let day = $02
let date = $21
let month = $07
let year = $03
let control = %00010000
writei2c 0,(seconds,mins,hour,day,date,month,year,control)
debug b1
pause 2000
main:
readi2c 0,(seconds,mins,hour,day,date,month,year)
debug b1
pause 2000
goto main
once this is downloaded i get this response in debug
b4=2
b5=33
b8=16
then after about 1 second it changed to this
b8=16
this just stays like this for a while
if anyone could help it would be great, thanks