Ok, so if I make A0 = 0 before mainloop to initilize the count at zero. I change the line:
IF A1 = 600 THEN AddHourTenth
into
IF A1 = 600 THEN Gosub AddHourTenth
I end up with this...
A0 = 0
MainLoop:
IF PORTA.5 = 1 THEN A0 = A0 + 1
A1 = A0
IF A1 > 600 THEN A1 = 0
IF A1 = 600 THEN Gosub AddHourTenth 'adds increment of value to be displayed
Gosub DisplayRefresh 'places new value on the 7 segment displays
Goto MainLoop
Does this take care of the issues?
Or should I be doing it like this?
IF A1 = 600 THEN
Gosub AddHourTenth
ELSE
Goto Mainloop
ENDIF
Bookmarks