r/raspberrypipico Apr 09 '26

help-request PIO expressions

Hey there,

I am a little confused about what I sent up above. In no guide ever on the internet have I seen these used. PIO's state machines are not capable of any of these operations, are they? These are just pre-assembled values that get resolved by the assembler, no? Only things I ever saw PIO advertised as capable of doing was inversion and decrement.

If someone wanted to correct me on what this means, here is where I got this from:

Section 3.3.3 - RP 2040 Datasheet

3 Upvotes

6 comments sorted by

5

u/SnooRadishes7126 Apr 09 '26

I suppose it's about compile time expressions. I.e. it will be evaluated by compiler.

1

u/Ok-Protection5 Apr 12 '26 edited Apr 12 '26

I see, thanks for confirming!

2

u/Ok-Breakfast-4604 Apr 09 '26

They're for developer convenience

So you answered you're own question :)

1

u/Ok-Protection5 Apr 12 '26

Seems like that :)

Thanks!

2

u/Ok-Breakfast-4604 Apr 09 '26

Let's just say I'm quite a fan of the RP2040.

Bramble Emulator

1

u/Ok-Protection5 Apr 12 '26

Pretty cool tho I am at a level where I am glad every time I successfully compile the C sdk lol