Referring to 23.4.4 of the P1022 TRM. Why do the output only GPOs always return zero while the GPIOs configured as outputs return actual data? This seems silly. Is there a workaround?
Looking to Figure 23-1 in the same section, I see the loopback circuit allowing reading the actual state of the external pin is the only difference between GPIO pin and output-only pin. So I do not see anything incorrect it the fact that output-only pin can not act as input, it simply does not have this input circuit.
Thank you for the referral to the figure. This explains why the exception occurs. Is there a suggested work around beyond a memory register used to shadow the output pin state?
Retrieving data ...