ADCIN and LOOKUP ...


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648

    Talking ADCIN and LOOKUP ...

    Hi, All

    I was quietly ( LOL ) debugging Malc's Train controller and ... fell upon a little PbP BUG ... Yes,yes I did verify many times !!!

    Which is this ( small ) BUG ???

    I've used LOOKUP tables to correct a pot curve ( Log to Lin ... I must be crazy !!! )

    So, I used a 8 Bits ADCIN ... and a Lookup table !!!

    Calculated and Placed my ... 256 Values ( 0 -255 ...) into my lookup table ( I Know, ... manual whispers 255 !!! ) but no warning or errors when 256 values entered ... only when 257 !!!

    What happens ??? Program just crashes ...

    Solution ... use " ADC_RESULT MIN 254" before LOOKUP !!!

    By the Time, I Also discovered ADCIN does not accept VAR Aliases ... only CON ones. Always had used ADCIN 0,1 or ...

    Hope it will help someone not to lose too much hair...

    Alain

    PS: Malc !!! , Good news !!! Works more than Fine ...
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    In no place, ADCIN state to accept Var aliases anyways? it's the channel number, but will this accept BYTE variable? it has to..

    as for loosing hair... i doubt it could happen to me



    yeah.. it's really me at the nightclub... few years ago... AKA Dj Kiwi
    Last edited by mister_e; - 15th June 2007 at 16:27.
    Steve

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

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Talking

    Seems you put some fingers on mains wires ....

    or were you imitating stevie Wonder for a karaoKe-party ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    mmm... well we don't see what's/who's under my belly-button

    Stevie Wonder...mmm could be... Francis Lalanne? ROFL nah nobody know him here
    Steve

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

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Talking

    Quote Originally Posted by mister_e View Post
    mmm... well we don't see what's/who's under my belly-button
    Hi, Steve

    Do you know why, in Africa, some women have Incisor teeth taken away ???

    More gently, why , in French, spaced incisor teeth ( like Laurent Voulzy ) are called " les dents du bonheur " ???

    ...

    You Just found why !!!

    LOL ...

    Francis Lalanne ... What's that ??? never existed ANY Francis Lalanne ...
    may be a deaf singer, I presume ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default

    Nah, Francis Lalanne is a kitsch and really bad French signer (http://www.francislalanne.com/) ... it really sounds like a joke... worst than Michel Louvain here
    Steve

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

Similar Threads

  1. Need help with lookup table or direct calculation
    By nverma in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 11th October 2006, 18:27

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