You certainly can pio_sm_exec() while the SM is running. I'm not totally sure about the interaction with a WAIT instruction: if you exec() a JMP instruction then the program will continue from wherever you sent it; if you just exec()ed something like a SET while the program was blocked in a WAIT, then I think the program will go back into the WAIT (rather than proceeding to the next instruction in the program), but I haven't tested it.Note that this is done when the state machine is not active. I'm not sure if the exec() is available while it is running already. For example, if state machine is blocking in wait(), could it be made to execute instructions while doing so?
Statistics: Posted by arg001 — Wed Oct 16, 2024 11:26 am