You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The instruction wait(state, pin, n) causes the SM to pause until pin(n) is in the requested state. The integer n is the offset relative to base_pin. The jmp_pin determines the single pin which is tested by the jmp(pin, label) instruction; it has no connection with the wait instruction.
In other words the behaviour you describe is expected behaviour and not a bug.
Port, board and/or hardware
RP2040
MicroPython version
for RP2040:
Normally
wait(0, pin, 0)
should refer to cs but i have to writewait(0, pin, 1)
to refer to cs.So it seems jmp_pin is ignored
Reproduction
Normally
wait(0, pin, 0)
should refer to cs but i have to writewait(0, pin, 1)
to refer to cs.Expected behaviour
Normally
wait(0, pin, 0)
should refer to cs but i have to writewait(0, pin, 1)
to refer to cs.Observed behaviour
it is the same writing
sm = StateMachine(0, spi_slave_read_byte, in_base=mosi, freq=2_000_000)
(withount jmp_pin).Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
The text was updated successfully, but these errors were encountered: