Hi all,
I have this PIO program which mirrors one input to two outputs and works as expected:
Now I would expect that removing the last line before .wrap (jmp low side 0b11) would result in the same behaviour, as it should wrap back to "low" just like "jmp low".
But this is not the case, what I see is the 2 outputs start continuously looping high/low.
I even tried replacing "jmp low side 0b11" with "nop side 0b11", again expecting the correct outcome, but instead I see the same high/low loop.
What am I doing wrong?
Thank you all!
I have this PIO program which mirrors one input to two outputs and works as expected:
Code:
.program mirror.side_set 2.wrap_targetlow: jmp pin high side 0b00 jmp low side 0b00high: jmp pin high side 0b11 jmp low side 0b11.wrapBut this is not the case, what I see is the 2 outputs start continuously looping high/low.
I even tried replacing "jmp low side 0b11" with "nop side 0b11", again expecting the correct outcome, but instead I see the same high/low loop.
What am I doing wrong?
Thank you all!
Statistics: Posted by giampiero — Fri Dec 19, 2025 4:21 pm