Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[General] Pin state during reset

Status
Not open for further replies.

keyboardcowboy

Member level 2
Joined
Mar 4, 2010
Messages
42
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,612
This is a general question, and can apply to any micro-controller.
If I have a pin configured as output and connected to an led, how can I prevent the led from turning on briefly when the uC is turned on or reset. As the uC turns on (or is reset), all the pins are high, and then it starts to execute code, which makes the pin low and hence turn the led off. This can also apply to motors, they will turn for a very short time when the uC starts
 

Hi,

As the uC turns on (or is reset), all the pins are high
If this really is the case.....then you should consider to switch ON the LED with a LOW at the port.
* connect the LED to VCC, so it is ON when port pin is low
* use an inverter between port an LED (logic, bjt, fet...)

Often port pins during RESET are not true HIGH -- but high Z, or pulled up then you may find other solutions.

If you need more help, please show schematic and say what microcontroller you use.

Klaus
 

As the uC turns on (or is reset), all the pins are high
Guess you are talking about a 8051 processor (or one of its derivates), which has a bit antique GPIO topology. The best way to operate its outputs in a safe manner is to use active low level, so all outputs are off by default.

Recent processors have initially tri-stated outputs. You can operate them active high or active low at your convenience, optionally forcing an inactive level by pull-down respectively pull-up resistors (plus a well-considered initialization order).
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top