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

AT89S52

Dear Sir, I am having a problem with at89s52 on power up. I am doing a project which demands serial communication via serial port. I have gone through one of the threads here, where you had advised one Mr.Bhagirath to use 3-pin rest(MX810). So, I get it that the problem MAY BE in reset button. But, I would also like to share with you the fact that earlier I did not have any arrangement for reset, then it never misbehaved. So, what are the other areas from where this anomaly is rising?

Parents Reply Children
  • Do you have a timer running other than the serial setup? The fact that something times out in 5 to 7 minutes sounds like a timer not being initialized correctly and after timer overflow the system appears to run.

    since the OP is not a believer in a proper "reset arrangement" I hold it far more likely that the uC is running garbage as 'code' and, somehow, after a lot of time, something manages to get it going properly.

    Erik

  • No, Sir, I do not have any timer code in my program.I have tried a code that lights up a LED after 30secs and dims it after another 30secs(blinky), but even this UC does not start functioning properly on power up. It starts functioning after 1to 2 mins even thought there is no timer code associated.Could you tell me what is going wrong?

  • Mr.Malund, I shall not argue that I never believed in proper reset arrangement but thank you, Sir, that you have made me a bliever in it. Sir, the only thing I am asking is that in case after providing the proper reset arrangement, the problem still persists, what should be my next step ?

  • the only thing I am asking is that in case after providing the proper reset arrangement, the problem still persists, what should be my next step ?
    with a proper reset supervisor chip, there will be no next step.

    Erik

  • Can you post the code you are running? It might help demonstrate the issue. For instance, if you have an extended delay that you assumed was in ms but is actually in seconds, it's possible we could randomly guess this but it would save a lot of time to see the code you are working with. Please remember to use the "pre" tags when posting code (should be described above the text box when posting a reply).