debouncing switches with a timer interrupt?


Results 1 to 28 of 28

Threaded View

  1. #18
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Instead of a pause after any button press try using WHILE WEND to wait for it to be released.

    Code:
    IF BTN_PLUS=0 THEN
        WHILE BTN_PLUS = 0
        WEND
    Also - you have a ton of RETURN statements after GOTOs' so it never lands on these. I haven't followed your code all the way through, but if it needs to land on the returns, that could be another problem.

    See if the attached works without skipping menu options.
    Attached Files Attached Files
    Last edited by Bruce; - 1st August 2010 at 21:55. Reason: attachment
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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