Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/02/12 14:21
Read: times


 
#185775 - Design the hardware first.
Responding to: ???'s previous message
The traditional 8051 has a relatively long start-up time compared to other microcontroller families. So an LED or motor that turns on with the power and is not turned off until the software is running is an 'embarrassment'. All the same even a 10ms glitch is unwise on any controller, just not so noticeable.

The solution is simple. An external pull-up or pull-down resistor.

You have to ensure your default state when the controller is in RESET.
During RESET, the pins are all inputs on a PIC, 8051, ...

If you designed active-low, you use a pull-up. Active-high needs a pull-down.

Even though a PIC port defaults to 0, it remains an input until you set its DDR. With default active-low, the PIC writes 1 to the port before it sets the DDR for o/p. With default active-high, you write 0 to the port before you make it an o/p. The external 'pull' resistor ensures off until the software is running.

The traditional 8051 does not have a DDR. It is therefore wiser to use active-low. All the same an external pull-down can ensure 'off'. You then need a PNP transistor to provide source current.

If you have made a design mistake, change to a variant with push-pull output. Then you are in the same position as your PIC colleague.

David.

List of 34 messages in thread
TopicAuthorDate
Power-On Port Status Problem            01/01/70 00:00      
   Wrong idea            01/01/70 00:00      
   you will not            01/01/70 00:00      
   you are not the only one            01/01/70 00:00      
   ATMEL be ashamed            01/01/70 00:00      
      No, YOU should be ashamed...            01/01/70 00:00      
      Nonsense!            01/01/70 00:00      
      PIC Does so            01/01/70 00:00      
         Oh really??            01/01/70 00:00      
            "Glitch" in the sense of kind of "setback in a plane"?            01/01/70 00:00      
   Try These Ideas            01/01/70 00:00      
   "Glitch"            01/01/70 00:00      
      what is not “ATMEL true”.            01/01/70 00:00      
      I think you are making excuses            01/01/70 00:00      
      Oh, boohoo!            01/01/70 00:00      
      What a bunch of fatty sausage...            01/01/70 00:00      
      "very easy problem"            01/01/70 00:00      
   Power-On Glitch            01/01/70 00:00      
      Nonsense - again            01/01/70 00:00      
      Please explain what the "power-on glitch" is ...            01/01/70 00:00      
      Into The Frying Pan            01/01/70 00:00      
      Power-on problem...            01/01/70 00:00      
      You are still blaming the tools            01/01/70 00:00      
   Design the hardware first.            01/01/70 00:00      
      do not Design the hardware first.            01/01/70 00:00      
   Power-On Glitch            01/01/70 00:00      
      that you had the worst possible reset circuit            01/01/70 00:00      
      RC-reset...            01/01/70 00:00      
      Sorry, double post, don't know why...            01/01/70 00:00      
         No, you're not the only one            01/01/70 00:00      
      Would I Hire?            01/01/70 00:00      
         incidentially            01/01/70 00:00      
   Power On satus Problem            01/01/70 00:00      
      echo, echo, echo            01/01/70 00:00      

Back to Subject List