LPC845 default state of an output GPIO port

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

LPC845 default state of an output GPIO port

478件の閲覧回数
tyassin1
Contributor II

Hi,

I have tried to find the answer what the state of a standard GPIO is when it is changed to an output?
I can find in the datasheet that per default a GPIO is an inpout with a weak pull-up. But what is the output state when I change this in the DIR[0:1] register and before is set the output?

Thank you

0 件の賞賛
2 返答(返信)

463件の閲覧回数
tyassin1
Contributor II

Hi,

Thank you for the answer.

I was more interested in what state the output will be when it is changed from input to output. As I have some devices with enable pins, where they turn ON withan active high. So I guess I can fix this with a "stong" pull-down and then when the GPIO is changed to an output I would guess that the output is low. But to be sure and also because I cannot find it stated anywhere, I just ask this question in this forum.

0 件の賞賛

467件の閲覧回数
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

Indeed, in the documentation there is no mention of the default state of an output GPIO port, however, the state of a port's output bits can be read from its SET register. Please refer to the 12.6.1 Reading pin state section of the user manual for more detail.

Hope it helps you.

Have a nice day!

0 件の賞賛