GPIO Pull UP

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

GPIO Pull UP

2,248 次查看
lyk
Contributor I

Hello

     I have a question about MPC5744P, I set PA[0] as GPIO like this:

     Output and input enable, Pull enable  and pull up,

     but in fact PA[0] is in low leavel state, why?

0 项奖励
回复
2 回复数

2,011 次查看
martin_kovar
NXP Employee
NXP Employee

Hello,

this behavior is correct. If you enable output buffer, level of the pin is controller by GPDO register which is 0 by default. And because the pull up resistor is weak, pin stays in low state.  

If you enable input buffer only and enable pull up, pin will be switched to high state.

Hope it helps.

Regards,

Martin

0 项奖励
回复

2,011 次查看
lyk
Contributor I

Thank you!

0 项奖励
回复