Shop OBEX P1 Docs P2 Docs Learn Events
Button debounce — Parallax Forums

Button debounce

Randy HarrisRandy Harris Posts: 11
edited 2006-01-18 20:20 in General Discussion
Does anyone know of a button debounce routine that is available for use in the SX processor and where I could find it?

Comments

  • David BDavid B Posts: 592
    edited 2006-01-18 20:20
    Can you just feed the button output through a resistor and capacitor to the Sx input pin, then configure the Sx input to Schmidt triggering mode?

    Choose the resistor and capacitor for a time constant that is long relative to switch bounce, but short compared to the actual expected user buttonpress repetition rate.
Sign In or Register to comment.