Switch Debounce using a 10F chip


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Posts
    96


    Did you find this post helpful? Yes | No

    Default

    I'm not sure why, but when I try your second method I do not get reliable switch debounce, or my "OnOff" variable is constantly toggling keeping the result from being reliable.

    I tried my overkill code and it works like a champ, so I'm going to go with it now.

    I appreciate the help, and I understand why your code method should work, but I can't get it reliable.

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


    Did you find this post helpful? Yes | No

    Default

    The pin you have your switch on is by default an analog comparator input on
    power up. Do you have CMCON0.3=0 in your program somewhere, and just
    forgot to show it in your example?
    Regards,

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

  3. #3
    Join Date
    Apr 2005
    Posts
    96


    Did you find this post helpful? Yes | No

    Default

    yeah, I've got CMCON0=%00000001 set at the top of the code.

    Thanks

Similar Threads

  1. PIC chip resetting. Very weird
    By The Master in forum Off Topic
    Replies: 0
    Last Post: - 28th October 2007, 17:07
  2. Replies: 14
    Last Post: - 26th September 2007, 05:41
  3. Newbie - 16F628A and switch latching
    By malc-c in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 19th May 2006, 02:35
  4. Switch Sequence
    By Tissy in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 13th February 2005, 20:36
  5. Battery Backup with PIC controlling switch
    By Dwayne in forum Schematics
    Replies: 1
    Last Post: - 27th December 2003, 13:16

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