P1022 GPDAT: What is the best way to account for output only pins returning zero exception?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

P1022 GPDAT: What is the best way to account for output only pins returning zero exception?

Jump to solution
1,952 Views
adamgarrison
Contributor III

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?

P1022 TRM  23.4.4.PNG.png

Thank you,

Adam

Labels (1)
Tags (3)
0 Kudos
1 Solution
1,840 Views
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!

View solution in original post

0 Kudos
3 Replies
1,841 Views
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!
0 Kudos
1,840 Views
alexander_yakov
NXP Employee
NXP Employee

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.

1,840 Views
adamgarrison
Contributor III

Alexander,

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?

Thanks,

Adam

0 Kudos