LOOKUP2 please help


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Posts
    29


    Did you find this post helpful? Yes | No

    Default thank you

    in my table only 142 figures.
    I have to use one of pic18cXX controllers

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    You don't need an 18?.

    The LOOKUP statement .. NOT the LOOKUP2, will do exactly what you want, even if it's a 12F.
    <br>
    DT

  3. #3
    Join Date
    Apr 2009
    Posts
    29


    Did you find this post helpful? Yes | No

    Default I will try

    but at the moment I use 16f84

  4. #4
    Join Date
    Apr 2009
    Posts
    29


    Did you find this post helpful? Yes | No

    Default lookup

    Is there any way to save count. I mean when you unpress button the count stops and when you press again the count starts from the moment it stoped before?

  5. #5
    Join Date
    Apr 2009
    Posts
    29


    Did you find this post helpful? Yes | No

    Default Lookup did not work

    it gives warning [202] argument out of range Least significant bits used

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    from the manual
    Code:
    The LOOKUP statement can be used to retrieve values from a table of 8-bit constants.
    8 bits = byte, max value = 255
    so you need to use 2 LOOKUP2 table

    split your lookup table in two, duplicate your code and your ready to go.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Apr 2009
    Posts
    29


    Did you find this post helpful? Yes | No

    Default split your lookup table in two

    Quote Originally Posted by mister_e View Post
    from the manual
    Code:
    The LOOKUP statement can be used to retrieve values from a table of 8-bit constants.
    8 bits = byte, max value = 255
    so you need to use 2 LOOKUP2 table

    split your lookup table in two, duplicate your code and your ready to go.
    can you show me the sample please?

  8. #8
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Yup, your right!

    LOOKUP only works with byte sized values. Woops.

    Time for a vacation. cyaz
    <br>
    DT

  9. #9
    Join Date
    Apr 2009
    Posts
    29


    Did you find this post helpful? Yes | No

    Default simple counting

    how make simple count from 902 to 232 with step -10 and back if button is pressed?

Similar Threads

  1. need help! to beginner
    By emilhs in forum mel PIC BASIC Pro
    Replies: 27
    Last Post: - 6th May 2009, 19:44
  2. Kind of "customisable" LOOKUP(2), possible?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 5th May 2009, 20:45
  3. lookup2?
    By jonas2 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th February 2009, 13:26
  4. Lookup2 & Lookdown2
    By saladlee in forum Serial
    Replies: 1
    Last Post: - 4th February 2008, 21:41
  5. PIC 16F84A and 7segment LED dispay
    By select in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 21st November 2007, 22:01

Members who have read this thread : 0

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