
Originally Posted by
aratti
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.
Try to read again, (more carefully) the manual (pages 132-136) very likely you will find it more clear now.
Al.
Short and sweet, very elegant explanation Al, thanks !
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks