Hi,
i'm a bit confused about how to use a GPIO-input with the Index Selectable Slewing Mux. The GPIO-Input outputs the values 0 and 1 in 23.5 Number format but the Mux awaits the values in 28.0 format.
To convert from 23.5 to 28.0 format I'd theoretically have to divide the GPIO-signal by 2^23 but this also doesn't work and leads to unexpected behavior of my whole program.
As a workaround I found out I could use the Min-block:
this outputs the minimum of both input values so constrains the result of the GPIO-block (which is a very big number from 28.0 format perspective) to 1, which works. But this seems like an odd solution for me. I'd rather do it the right way and also understand why the upper example isn't working as expected.
-
[edited by: the-powl at 10:01 AM (GMT -5) on 12 Nov 2022]