This is an old revision of the document!
Click here to return to the GPIO Conditioning page
The contacts of mechanical switches and encoders can “bounce” when changing positions; meaning the voltage may fluctuate between states several times during the transition period. When the transition is not clean erroneous states can be set in your system. This block debounces (removes the transition ripple) from a signal, by waiting a specified amount of time between sampling periods. This provides a clean transition signal to the output.
Typically, this block is used to debounce a GPIO input signal.
To use this block, drag it into the schematic and connect the input to a GPIO signal.
The debounce time control sets the time constant for the debouncer, in samples; the default is 20. For best results adjust the value by trial and error for whatever hardware is connected to the GPIO input.
Name | ADSP-214xx | ADSP-215xx/ADSP-SC5xx | ADAU145x/1456x |
---|---|---|---|
—————————————- | —————————————— | ————————————————-- | ——————————————- |
Software debounce | Not supported | Not supported | Sample |
Name | Type | Description |
---|---|---|
———————— | —————————— | ———————————————————— |
Input0 | Audio | Audio input to the software debounce |
Name | Type | Description |
---|---|---|
———————- | ————————— | —————————————————————————-- |
Output0 | Audio | Audio output from the software debounce |
GUI Parameter Name | Default Value | Range | Function Description |
---|---|---|---|
—————————————- | ———————- | ————————————- | —————————————- |
CountMax | 20 | [0, 1000] | Sample counter for the Debounce time on the Rotary Encoder |
Parameter Name | Description | ADAU145x/ADAU146x |
---|---|---|
—————————- | ——————————————————————————————————- | ——————————— |
countmax | Time constant for the debouncer | Fixed Point 32.0 |
Not applicable