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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
3,115 次查看
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

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
3,003 次查看
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 项奖励
回复
3 回复数
3,004 次查看
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 项奖励
回复
3,003 次查看
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.

3,003 次查看
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 项奖励
回复