Pongo
Senior Member
I thought this might be a common question but I couldn't find a thread (except the one about speed and hex conversion) so apologies in advance if I'm just a lousy searcher.
I would like some hints how to implement the equivalent of the BS2's SERIN Qualifier and Timeout functions with HSERIN on a 20X2. For example my BS2 program has:
SERIN SI,84,6000,WHOOPS,[WAIT("XZY"),{dataspec}]
which means ignore any data on the serial input until it sees the qualifier "XZY" and then grab the data specified by {dataspec} and move on to the next program line, if it doesn't see "XZY" in 6 seconds then timeout and jump to the WHOOPS subroutine. I don't have any problem with pin, baud, or dataspec, but the qualifier and timeout escape me.
I would like some hints how to implement the equivalent of the BS2's SERIN Qualifier and Timeout functions with HSERIN on a 20X2. For example my BS2 program has:
SERIN SI,84,6000,WHOOPS,[WAIT("XZY"),{dataspec}]
which means ignore any data on the serial input until it sees the qualifier "XZY" and then grab the data specified by {dataspec} and move on to the next program line, if it doesn't see "XZY" in 6 seconds then timeout and jump to the WHOOPS subroutine. I don't have any problem with pin, baud, or dataspec, but the qualifier and timeout escape me.