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
On the rp2350b I'm synchronizing two state machines on different PIO instances so that they can address different pin ranges. 0-31 with one state machine and 32-47 on the other. I'm able to successfully set an interrupt and have it triggered on the second machine across the PIO boundary. But I'm not able to clear it with irq clear. The compiler won't allow me to reference the previous pio block with:
that results in a syntax error 15-18: syntax error, unexpected prev, expecting ( or identifier or integer. I get the same syntax error if I try the documented irq clear 0 prev. Since the word prev seems to work for the other statements when it precedes the interrupt number I assumed that syntax should be valid here.
I can get the pio assembly to compile if I use irq prev clear 0 however that doesn't clear the interrupt.
If instead I clear the interrupt immediately with wait 1 irq prev 0 that works as expected. I was hoping to have a few pio commands executed before clearing the interrupt as I'm trying to get a bus to the right state before continuing the other state machine.
The text was updated successfully, but these errors were encountered:
I also had trouble with IRQs between state machines in different blocks (even when synchronizing with CTRL.NEXTPREV_CLKDIV_RESTART).
I eventually used wait JMPPIN + n (to wait for a signal) and jmp PIN (to branch on a signal) to synchronize and communicate between state machines. I wish I could get things working with an internal solution rather than using external pins, though.
On the rp2350b I'm synchronizing two state machines on different PIO instances so that they can address different pin ranges. 0-31 with one state machine and 32-47 on the other. I'm able to successfully set an interrupt and have it triggered on the second machine across the PIO boundary. But I'm not able to clear it with
irq clear
. The compiler won't allow me to reference the previous pio block with:that results in a syntax error
15-18: syntax error, unexpected prev, expecting ( or identifier or integer.
I get the same syntax error if I try the documentedirq clear 0 prev
. Since the word prev seems to work for the other statements when it precedes the interrupt number I assumed that syntax should be valid here.I can get the pio assembly to compile if I use
irq prev clear 0
however that doesn't clear the interrupt.If instead I clear the interrupt immediately with
wait 1 irq prev 0
that works as expected. I was hoping to have a few pio commands executed before clearing the interrupt as I'm trying to get a bus to the right state before continuing the other state machine.The text was updated successfully, but these errors were encountered: