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.
Comments
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.