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

General • Re: Internal pullup restistors

$
0
0
Solved it but will leave up incase anyone else has issue because it's sort of strange.

It's not enough to enable the pullups you have to disable the pulldowns .. apparently you can have both on :-)
The other GPIOs pulldowns are obviously removed by start up system because they have other functions.

So the correct code turned out to be

Code:

                IO_BANK0->GPIO3_CTRL_b.FUNCSEL = 3;     // Select GPIO3 function                 PADS_BANK0_CLR->GPIO3_b.PDE = 1;        // Pull down on GPIO3 disable                PADS_BANK0_SET->GPIO3_b.PUE = 1;        // Pullup GPIO3 enable                IO_BANK0->GPIO2_CTRL_b.FUNCSEL = 3;     // Select GPIO2 function 3                PADS_BANK0_CLR->GPIO2_b.PDE = 1;        // Pull down on GPIO2 disable                PADS_BANK0_SET->GPIO2_b.PUE = 1;        // Pullup GPIO2 enable

Statistics: Posted by LdB — Fri Jan 23, 2026 6:50 am



Viewing all articles
Browse latest Browse all 8082

Trending Articles