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,282件の閲覧回数
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,170件の閲覧回数
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,171件の閲覧回数
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,170件の閲覧回数
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,170件の閲覧回数
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 件の賞賛
返信