"WAIT" modifier with multiple choices - how to?


Results 1 to 12 of 12

Threaded View

  1. #12
    Join Date
    May 2013
    Location
    australia
    Posts
    2,666


    Did you find this post helpful? Yes | No

    Default Re: "WAIT" modifier with multiple choices - how to?

    also, might need a real chip though. 64 bytes for serial work is a challenge
    16f1825 or 16f18326 vs 16f630 price difference trivial performance and resources difference enormous , just saying.

    an asm routine can do a string compare much more efficiently if you have a chip with two fsr's but the old clunkers
    don't have that either. its a difficult path with meagre resources.
    all good fun though.

    Code:
    InString VAR BYTE[4]
    InString[3]=1
    ARRAYREAD InString, 4, ncb, [WAIT ("AAA"),Blinks]
    goto ncx
    ncb:
    InString[3]=2
    ARRAYREAD InString, 4, ncc, [WAIT ("BBB"),Blinks]
    goto ncx
    ncc:
    InString[3]=3
    ARRAYREAD InString, 4, ncd, [WAIT ("CCC"),Blinks]
    goto ncx
    ncd:
    Blinks=0
    ncx:
    other option is a if elseif chain , not sure anymore which used least ram,flash
    Last edited by richard; - 3rd January 2022 at 10:15.
    Warning I'm not a teacher

Similar Threads

  1. How to do the "SerIN" and "SerOut " for the usb ?
    By vicce67 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 13th March 2015, 02:01
  2. Replies: 0
    Last Post: - 14th November 2013, 03:32
  3. Replies: 3
    Last Post: - 15th October 2012, 08:06
  4. Multiple "AND"'s in select case?
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st January 2010, 19:10
  5. Replies: 1
    Last Post: - 16th February 2005, 20:05

Members who have read this thread : 2

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