This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

After RESET

In one of my projects where I use 89v51rd2 microcontroller, I connect one O/P pin to Electric AC bell through relay. My problem is when reset during switch ON, my O/P pin goes high and come down thus generating a pulse which the bell rings unwantedly. I want to avoid this unwanted ringing till my program gets control.
Can anyone please suggest a solution?

Parents
  • Rule #1 when designing hw around a microcontroller: Remember the reset state of all GPIO pins and design the external hardware based on this.

    If you drive the relays so it is drawn then the processor pin is low, your problem goes away.

    Another solution is to delay power to the relay, so the external electronics will not care about the GPIO pin state for the first 50-100ms after reset. But this is a solution that may get you into trouble in case this delay logic doesn't get properly reset when the processor gets reset - remember that the processor may get reset without loss of VCC...

Reply
  • Rule #1 when designing hw around a microcontroller: Remember the reset state of all GPIO pins and design the external hardware based on this.

    If you drive the relays so it is drawn then the processor pin is low, your problem goes away.

    Another solution is to delay power to the relay, so the external electronics will not care about the GPIO pin state for the first 50-100ms after reset. But this is a solution that may get you into trouble in case this delay logic doesn't get properly reset when the processor gets reset - remember that the processor may get reset without loss of VCC...

Children