I have new coding problem, using TMR0 I do not understand........put simply
Code:
loop1:
if intcon.2 = 0 then loop1
intcon.2 = 0
clicks=clicks+1
if clicks >=1900 then
clicks=0
high pin11:pause 100:low pin11 'Flash LED for 10th of second
secs=secs+1
endif
if secs>=5 then
high pin10:pause 100:low pin10
gosub nowt
secs=0 'Reset secs
endif
goto loop1
end
nowt:
return
But fails if
gosub nowt
endif
goto loop1
end
nowt:
secs=0 'Reset secs
return
The inclusion of any code in the sub-routine at nowt: causes whole to fail?
Bookmarks