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

SDK • Re: HiZ Tristate Outputs

$
0
0
I thought the PIO block has output enable registers that are routed to the PAD(s) when Function Select (i.e. Pin Mux) is set to PIO. From what I gather, output enable registers in the PIO block are set/cleared by PINDIRS.

Someone correct me if I am wrong, this is the way I understood it.

SDK Manual:

Code:

3. If we are using the pin for output only, we need to make sure that PIO is driving the output enable line high. PIO candrive this line up and down programmatically using e.g. an out pindirs instruction, but here we are setting it upbefore starting the program.
There is also a picture of what I'm talking about in Figure 36 of the RP2040 datasheet. I'd post a picture of it but I can't paste screenshots into this forum for some odd reason...

Statistics: Posted by LemonPi — Thu Dec 21, 2023 6:10 am



Viewing all articles
Browse latest Browse all 5359

Trending Articles