Hi,
I just tried a somewhat modifed version here (to be able to test on my hardware).
Code:
Term_RX:
HSERIN[nTest]
SELECT CASE nTest
CASE "S"
TempWD = 0
HSERIN 1000,RX_Bombed,[DEC3 TempWD]
normtemp[0] = TempWD
gosub send
Goto Term_Rx
RX_Bombed:
TimeoutCount = TimeOutCount + 1
lcdOUT $FE,1,"all we got was", dec TempWD,", ", DEC TimeOutCount
end select
Goto Term_Rx
Send:
HSEROUT [DEC normtemp[0],10]
RETURN
This seems to work just fine when sending from the serial terminal. The only thing is that there will not be a value assigned to TempWd if HSERIN times out, as can be seen it screenshot.
Question is if the problem is with the PIC code or with the PC application....
/Henrik.
/Henrik.
Bookmarks