Dave, we must agree with Michael, the PBP manual is not realy a masterpiece.
So I think we should give him some help:
START:
SerIn2 PORTA.0,17197,500, START,[WAIT(QUAL1,QUAL2),STR DATAIN\13]
The above is the line code you must use with serin2 command.
17197 comes from 813 for 1200 bauds, plus 16384 (bit 14 set because inverted)
500 are the milliseconds serin2 will wait for data before to timeout to START
WAIT() will wait for the qualifier sequence before acquiring data
Str array_name \ 13 is the command to collect 13 bytes in your 13 byte array
Try it should work.
Tray to read again,(more carefully) the manual (pag 132-136) very likely you will find it more clear now.
Al.
Last edited by aratti; - 26th March 2010 at 17:13.
All progress began with an idea
Bookmarks