This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | resources:tools-software:sigmastudiov2:modules:gpioconditioning:updowncontrollut [10 May 2021 16:31] – Prasad Kamath | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | [[resources/ | ||
+ | ====== Up Down Control LUT ====== | ||
+ | {{: | ||
+ | \\ | ||
+ | ===== Description ===== | ||
+ | \\ | ||
+ | This block takes in two inputs, one up and one down, and uses them to generate an index for a lookup table. The starting index is pre-loaded into an interface register and the up/down inputs increment or decrement the value. | ||
+ | \\ | ||
+ | ===== Usage ===== | ||
+ | \\ | ||
+ | - Drag the block into your schematic. | ||
+ | - Connect the red control inputs to GPIOs that have been conditioned by Push and Hold, or to the outputs of the Rotary Encoder. | ||
+ | - Connect the yellow input pin to an Interface Read block. | ||
+ | - Connect the yellow output to an Interface Write block, with the same register selected for both the interface read and write blocks. | ||
+ | - The output will be the value in the table corresponding to the index. | ||
+ | \\ | ||
+ | ===== Targets Supported ===== | ||
+ | ^Name^ADSP-214xx^ADSP-215xx/ | ||
+ | |----------------------------------------|------------------------------------------|--------------------------------------------------|-------------------------------------------| | ||
+ | |Up Down Control LUT| Not supported | Not supported | Sample| | ||
+ | \\ | ||
+ | ===== Pins ===== | ||
+ | ==== Input==== | ||
+ | ^Name^Type^Description^ | ||
+ | |----------------------------------|-------------------|------------------------------------------------------------| | ||
+ | |Input0|Control|increment input (up)| | ||
+ | |Input1|Control|decrement input (down)| | ||
+ | |Input2|Logic|Connected to a software interface register - reads the last stored value at startup| | ||
+ | |||
+ | ==== Output==== | ||
+ | ^Name^Type^Description^ | ||
+ | |-----------------------------------|-------------------|----------------------------------------------------------------------------------------| | ||
+ | |Output0|Control| Output signal| | ||
+ | |Output1|Logic|Connected to a software interface register - writes the last output value| | ||
+ | |||
+ | \\ | ||
+ | ===== Configurable Parameters ===== | ||
+ | ^GUI Parameter Name^Default Value^Range^Function Description^ | ||
+ | | ---------------------------------------- | ---------------------- | ---------------------- | --------------------------------------------------------------------------------------------------------- | | ||
+ | |ByPassEnable| disable | enable/ | ||
+ | |NoOfTableValues|33 pts|[2, 800]|Sets the table size: the number of points used in the volume table curve.| | ||
+ | |TableValues|1|[-16, | ||
+ | |||
+ | \\ | ||
+ | ===== DSP Parameters ===== | ||
+ | ^Parameter Name^Description^ADAU145x/ | ||
+ | |--------------------------|---------------------------------------------------------------------------------------------------------------------------------- |---------------------------------| | ||
+ | |maxindex|maxnumber of table points|Fixed Point 32.0| | ||
+ | |table_p0|All the points in the table are written to the DSP in their linear gain format|Fixed Point 8.24| | ||
+ | |||
+ | \\ | ||
+ | ===== DSP Parameter Computation ===== | ||
+ | \\ | ||
+ | Not applicable | ||
+ | \\ | ||