Skip to content
Discussion options

You must be logged in to vote

What you were planning is pretty much exactly the way this can be used. Since the instructions you are exec-ing don't create any race conditions (they don't depend on where the program is executing), except for the exact snapshot time you capture 'x' in the ISR, it should do just what you want. All the 'exec' command does to the SM is (after compiling the instruction, if needed), writes the word to the appropriate register in the PIO register block. The hardwired SM logic handles how it gets put into the instruction stream.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@D-Paesani
Comment options

@mendenm
Comment options

Answer selected by D-Paesani
@D-Paesani
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants