This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | resources:tools-software:sigmastudiov2:modules:gpioconditioning:softwaredebounce [10 May 2021 16:16] – Prasad Kamath | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | [[resources/ | ||
+ | ====== Software debounce ====== | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | ===== Description ===== | ||
+ | \\ | ||
+ | The contacts of mechanical switches and encoders can " | ||
+ | \\ | ||
+ | ===== Usage ===== | ||
+ | \\ | ||
+ | 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. | ||
+ | ===== Targets Supported ===== | ||
+ | ^Name^ADSP-214xx^ADSP-215xx/ | ||
+ | |----------------------------------------|------------------------------------------|--------------------------------------------------|-------------------------------------------| | ||
+ | |Software debounce| Not supported | Not supported | Sample| | ||
+ | \\ | ||
+ | ===== Pins ===== | ||
+ | ==== Input==== | ||
+ | ^Name^Type^Description^ | ||
+ | |------------------------|------------------------------|------------------------------------------------------------| | ||
+ | |Input0|Audio|Audio input to the software debounce| | ||
+ | |||
+ | ==== Output==== | ||
+ | ^Name^Type^Description^ | ||
+ | |----------------------|---------------------------|-----------------------------------------------------------------------------| | ||
+ | |Output0|Audio|Audio output from the software debounce| | ||
+ | \\ | ||
+ | ===== Configurable Parameters ===== | ||
+ | ^GUI Parameter Name^Default Value^Range^Function Description^ | ||
+ | | ---------------------------------------- | ---------------------- | ------------------------------------- | ---------------------------------------- | | ||
+ | |CountMax|20|[0, | ||
+ | \\ | ||
+ | ===== DSP Parameters ===== | ||
+ | ^Parameter Name^Description^ADAU145x/ | ||
+ | |----------------------------|------------------------------------------------------------------------------------------------------- |---------------------------------| | ||
+ | |countmax|Time constant for the debouncer | Fixed Point 32.0| | ||
+ | |||
+ | \\ | ||
+ | ===== DSP Parameter Computation ===== | ||
+ | \\ | ||
+ | Not applicable | ||
+ | \\ |