MPC5643L GPI input on PCR24 getting PDI data

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

MPC5643L GPI input on PCR24 getting PDI data

1,100 次查看
nicholasgray
Contributor I

I am configuring PCR24 as a general purpose input however when applying a logic high to the pin, the PDI register is not recognizing the input. The configuration and data access code is as follows:

SIU.PCR[24].R = 0x0100;

input_var = SIU.GPDI[24].B.PDI;

When debugging the PDI register remains zero irrespective of the input voltage applied to the pad. Are there any other registers that must be set in order to access this pad that is GPI only?

0 项奖励
回复
1 回复

1,058 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

no other setting is needed, it should work normally.

Check if other GPI inputs works too.

BR, Petr 

0 项奖励
回复