Hi this is the update routine of a clock.To adjust the time also I'm taking this code.I'm placing this code in the main routine.
Can I call this update routine inside ISR? Because for every second it must update inside the ISR.
Can I call this update routine inside ISR? Because for every second it must update inside the ISR.
Code:
Update incf M1,F
movf M1,W
xorlw .10
btfss STATUS,Z
return
clrf M1
incf M10,F
movf M10,W
xorlw .6
btfss STATUS,Z
return
clrf M10
incf H1,F
----
----
----
return