Oh, I have lots of initilized variables in my Init: routine before it drops into the Main. But thanks.
Yes, it's counting properly now. You 100% correct, I moved my prewritten HSerIn call from the previous main loop and copied it up there. I did not think about the time out but the timeout is only set to 5.
Holy Cow, Also on timeout, I have it going back to the Receive label as well, I think that is the issue.
Better make that the Interrupt Exit...
WAS
'Receive Interrupt
Receive:
'Clear the buffers before anything
GOSUB ClearBuffers
HSerIn Timeout,Receive,[WAIT(MyID)] <---- Opps
For Cnt = 1 to 7
HSerIn Timeout,Receive,[BufRX(Cnt)] <---- Opps
Next Cnt
Gosub ProcessData
ExitRx:
@ INT_RETURN
Changed to
'Receive Interrupt
Receive:
'Clear the buffers before anything
GOSUB ClearBuffers
HSerIn Timeout,ExitRx,[WAIT(MyID)]
For Cnt = 1 to 7
HSerIn Timeout,ExitRx,[BufRX(Cnt)]
Next Cnt
Gosub ProcessData
ExitRx:
@ INT_RETURN




Bookmarks