Array -- something wrong?


Results 1 to 24 of 24

Threaded View

  1. #18
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    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

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts