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

SDK • Problem with OUT pins PIO command

$
0
0
When I use the below command, I can assert 5 of my set pins high:

Code:

set pins 31
Ideally, I would like to assert more than 5 pins high so I was looking into using OUT instead of SET. However, I can't seem to even get the 5 pins to become high when I use the below code instead of the above code:

Code:

mov osr, !nullout pins, 32
I read in the PIO Instruction Set Reference that "32 is encoded as 00000" but I cannot use 0 as a parameter so I'm assuming the PIO assembler converts 32 into 00000. Even if I use 16 (or 5) with OUT pins, I still cannot get my outputs to go high.

What am I missing?

Statistics: Posted by SparkyNZ — Sun Oct 13, 2024 2:57 am



Viewing all articles
Browse latest Browse all 3556

Trending Articles