output pin state at power up

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

output pin state at power up

1,316件の閲覧回数
irob
Contributor V
Hey gang,

Does anyone know how to set the level of output pins during power up? For instance, I have a few outputs which crucially must remain low during power up until I set them as outputs, and start to use them.

If memory serves, back in the 68HC11 days one had to set the pins in question to the desired state before setting their direction registers.

I've done this (setting pins low before their DDRs) and somewhat arbitrarily one of my outputs wants to float high while another floats low.

Any ideas?
ラベル(1)
0 件の賞賛
返信
1 返信

524件の閲覧回数
rocco
Senior Contributor II
Hi, irob:

From the time reset asserts (or power is applied) until you write the DDR, the pins are inputs, and might float wherever they please.

The only way that I know to make them behave during reset is to use either a pull-up or pull-down resistor. 10k is my favorite value, but it depends on what is being driven by the pin.

My experience is that it is usually the not-yet-driven input that determines in which direction the net floats, due to leakage current.
0 件の賞賛
返信