Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8082

SDK • Re: jmp vs .wrap

$
0
0
'jmp low side 0b11' is unconditional, wrap should do the same thing but faster.
I assume GPIO rate is much slower so I think you'll get 1 for a while though.

But, yes, wrap gets you there when input is 0, but of course it's just a movement of program counter. It's not like a jmp where it's holding state or anything.

EDIT: I guess technically wrap is like rewind the PC more than anything else.

See if this seems right:
Without jmp low, execution can fall through, .wrap keeps rewinding the program counter, and the state machine alternates between low (00) and high (11) on every PIO clock regardless of the input pin.

Statistics: Posted by breaker — Wed Dec 31, 2025 9:51 pm



Viewing all articles
Browse latest Browse all 8082

Trending Articles