GPIO Pull UP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GPIO Pull UP

1,931件の閲覧回数
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 返答(返信)

1,694件の閲覧回数
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 件の賞賛
返信

1,694件の閲覧回数
lyk
Contributor I

Thank you!

0 件の賞賛
返信