Would someone please explain in simple terms on how to use the Timeout with Serin2. The PBP manual says this:
"An optional Timeout and Label may be included to allow the program
to continue if a character is not received within a certain amount of time.
Timeout is specified in 1 millisecond units. If the serial input pin stays in
the idle state during the Timeout time, the program will exit the SERIN2
command and jump to Label."
Right now I am using this:
loop1:
SERIN2 serpin,16780,[wait(254),address1,address2,mydata1,mydata2,chk_su m]
Return
Would I do something like this for timeout to be 10mS and to jump to label godosomething?
loop1:
SERIN2 serpin,16780,10, godosomething,[wait(254),address1,address2,mydata1,mydata2,chk_su m]
Return
Also, is it also a good idea to use the flowpin?
Thanks Everyone
Bookmarks