BUTTON question


Closed Thread
Results 1 to 4 of 4

Thread: BUTTON question

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

    Default BUTTON question

    Hi, The team

    I played a bit with BUTTON command ...

    BUT ... could someone explain to me HOW the BVar variable ( as named in the Holy Manual ) really acts ???

    That is simply to use different BUTTON Commands with different debouncing durations ... ( and there's only ONE DEFINE in the Header ... )

    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 " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default Re: BUTTON question

    ... This timeout really is a shame ... Lester !!!

    May be I could overwrite the value located @ asm line 20 ( if my chip allows program rewrite @ runtime ... ) , but I feel it ... " not so good " ...

    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 " !!!
    *****************************************

  3. #3
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Wink Re: BUTTON question

    As I read the "holy manual"... especially the explaination on the second page at the bottom, I would interpret it that the BVar just lets you choose what name to call the varialble that will be used for the Button command.

    So you must declare that variable as a Byte and initialize it to = 0 and not use it else where in your program.

    But then I could be wrong... as I often am.
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

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


    Did you find this post helpful? Yes | No

    Default Re: BUTTON question

    Hi, Heckler

    I also read That in my Holy Manual ...
    But the interesting point is "How to modify the debouncing time" to adapt it to the place where the BUTTON Command is located...

    as the same button can be used for different actions all along a program ...

    the amazing game is to initialize BVar to 1, 2 .... 255 ... instead of 0

    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 " !!!
    *****************************************

Similar Threads

  1. Button command question
    By aherrera in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 31st August 2009, 08:44
  2. button help
    By Kalind in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 14th October 2008, 13:12
  3. Button
    By savnik in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th May 2007, 16:52
  4. Button
    By savnik in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 4th July 2006, 23:32
  5. Interrupt Button Wiring Question
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th June 2005, 12:25

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