Debounce

Signature

Debounce(expression, risingDelay, fallingDelay)

Description

Removes bounces from a boolean signal by delaying edges until the signal is stable.

Result

The debounced version of expression.

Arguments

 

expression

The signal from which the bounces shall be removed.

risingDelay

'result' goes true when expression stays stable after a rising edge for risingDelay seconds.

fallingDelay

'result' goes false when expression stays stable after a falling edge for fallingDelay seconds.