5.1.34. Debounce (put_Debounce)

Output a new value of the debounced state only if the transient state has remained constant for a number of cycles.

5.1.34.1. Supported targets

All targets

5.1.34.2. Required license

None (Main library). (See Section 2.3, “Licensed Features”.)

5.1.34.3. Description

This block debounces the transient state over a number of cycles to produce a steady state output. The debounced state output only changes to reflect the transient state input if the input has remained steady for a number of cycles.

Unlike other blocks, the debounce is expressed in block iterations, rather than a time period. This makes the block more appropriate for debouncing state based signals than time based signals.

5.1.34.4. Inports

  • transient_state

    Transient state to debounce.

    Value type:Boolean
    Calibratable:No

5.1.34.5. Outports

  • debounced_state

    The debounced state. On the first iteration, the internal debounced state is set to the input transient_state.

    Value type:Boolean
    Calibratable:No

5.1.34.6. Mask parameters

  • Debounce wait cycles

    The number of block iterations (cycles) for which the input has to be steady before the output follows it.

    Range: [0, 65535] cycles

    Value type:Integer
    Calibratable:Yes, offline and online

5.1.34.7. Notes

None.