We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Is this possible if we use hard reset (Logic 1 Pulse with some delay) by using ISR and one Port Pin Connected to RESET Pin? so that Controller can RESET itself by Applying RESET signal by ISR. I mean Software *** Hardware RESET!
AT89S52 can be reset with logic high for 2 machine cycles to RESET PIN. I used Proteus VSM 7.1 and it shows RESET... Reset itself by ISR and Port Pin
delay(); RESET_Port_Pin=1; //Soft Reset to uC by Port Pin delay(); RESET_Port_Pin=0; delay();
But in Actual Circuit this Doesn't works. Without any chip it could be done or not? I think momentry latching of some type will help? Please help!
Thanx to all Dan,Andy,Erik. WDT worked very well in ISR as provided by DAN HENRY (Special Thanks) >Ninja Z misguiding us.<
I had some problem in Circuit and now it's fully working. Actually i wanted a reset without Port High as RESET button pressed for long time does. This ISR causes RESET of uC without Ports High.
Again thanx to DAN HENRY for so much help.
This ISR causes RESET of uC without Ports High. There is no such thing, check the datasheet
what you have is "RESET of uC without Ports High for a long time
Erik
^^^ Really it is. With WDT, ISR Ports will be high for some micro seconds whether ISR button is pressed for long time or not ( ISR is written to clear Ports and then WDT Reset ( it will take 16 to 20 ms approx,during this period Ports are low)), and that is not a problem for us. But if RESET button is pressed for long time, Ports will be high as long as RESET is pressed, and that will cause problems to our machinery connected to uC (If someone like a kid will play around that RESET Button). Thanks to DAN HENRY! for this successful work.
^^^ Really it is. With WDT ISR, Ports will be high for some micro seconds whether ISR button is pressed for long time or not ( ISR is written to clear Ports and then WDT Reset ( it will take 16 to 20 ms approx for 11 or 12Mhz Clock, during this period Ports are low)), and that is not a problem for us. But if RESET button is pressed for long time, Ports will be high as long as RESET is pressed, and that will cause problems to our machinery connected to uC (If someone like a kid will play around that RESET Button). Thanks to DAN HENRY! for this successful work.