Consider this an unresearched early answer, but do you need to set the clk pin as an output, given that you are already marking it as a sideset pin?
Things to try (separately, to observe the effect):
1. Comment out the set_out_pins for the clk.
2. Swap the order of the two set_out_pins.
My guess, based on my recollection of how PIO works, is that the second set_out_pins will replace the first - you are telling PIO where to put its output, which is different from making pins outputs.
Things to try (separately, to observe the effect):
1. Comment out the set_out_pins for the clk.
2. Swap the order of the two set_out_pins.
My guess, based on my recollection of how PIO works, is that the second set_out_pins will replace the first - you are telling PIO where to put its output, which is different from making pins outputs.
Statistics: Posted by PhilE — Sat Dec 13, 2025 1:05 pm