Click here to return to the GPIO Conditioning Toolbox page.
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.
The GPIO Conditioning Examples illustrate the use of this block.
The algorithm first reads an index from a stored value in the interface register. This value is then adjusted by two control signals, up/down signals, generated either by buttons conditioned by Push and Hold or by the GPIOs connected to outputs of the Rotary Encoder conditioned by that block. The control signals increment or decrement the index value, which is then sent to the output pin. The algorithm also writes the value back to the interface register to be stored.