Hi Tomas,

On Tue, Aug 27, 2024 at 2:52 PM Tomas Paukrt <[email protected]> wrote:
>
> The PSR register works correctly for GPIO pins in input mode,
> but always returns 0 for GPIO pins in output mode.
> The DR register works correctly in both modes.

The current code is correct as is.

You should set the SION bit to read the value of the output pin.

Reply via email to