
That is how you WAIT using SERIN
From the manual:
‘ Wait until the character “A” is received
serially on Pin1 and put next character into B0
SERIN 1,N2400,[“A”],B0
You are waiting on
[QUAL1, QUAL2]
Now to use a time out, again from the manual
SERIN
Pin,Mode,{Timeout,Label,}{[Qual...],}{Item...}
See what we can do here
Code:
SERIN PORTA.4, T1200, [QUAL1, QUAL2], LOWER, HIGHER
change to this to wait on two QUALs and if QUALs are not received in 100ms, then it jumps to "LABELofCHOICE"
Code:
SERIN PORTA.4, T1200,100,LABELofCHOICE, [QUAL1, QUAL2], LOWER, HIGHER
Me thinks you are looking at this to hard, relax a bit .
Bookmarks