| ??? 10/03/07 21:14 Read: times |
#145343 - Invalid conclusion Responding to: ???'s previous message |
Mahmood Elnasser said:
My first AT89S8252 design 7 years ago had RC reset circuit as per datasheet.
As an outsider to the 8052 I noticed the following: 1. At first power up, the microcontroller works fine. 2. If I toggle the power supply on and off few times quickly, the microcontroller hangs up. A common situation leading to a common misconception! You have to allow Vcc to reach < Vss + 0.2 Volts before turning the PSU back on. If you don't, you won't get enough "kick" to start the oscillator, and you won't get an effective reset. 3. If I turn the power supply off for over 5 seconds and turn it back on the circuit works fine. That's consistent with what I stated above. 4. If I press the reset switch multiple times, I noticed not all of the presses produce reset to the microcontroller, and some times it hangs up. If you have too long a time constant in your RC it can behave in this way. Presumably you used the values recommended by your MCU manufacturer, right? So I concluded that the RC reset is very unreliable and might work fine in normal power supply conditions (with no interruptions or brownouts) and if no manual reset is needed.
I haven't tried a reset supervisor for lack of such devices in here, I switched to PICs and dsPICs for they have internal reset supervisors and they are more available in local shops in this part of the world. Yes, and they cost less than the popular supervisors, don't they? Mahmood |



