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

How do software reset

I want to reset the software inside the interrupt service routine.

((void (code *) (void)) 0x0000) ();

while am using this code only one time executing the code second time it blocking the interrupt..

pls help me

Parents
  • you don't need to do anything. if your watchdog is serviced by this call:

    service_my_watchdog()
    

    , all you have to do is avoid calling it. I don't know the C51, but an ARM allows a post reset analysis in order to determine the reason for a reset. that could be handy for you, too. is your watchdog even running?

Reply
  • you don't need to do anything. if your watchdog is serviced by this call:

    service_my_watchdog()
    

    , all you have to do is avoid calling it. I don't know the C51, but an ARM allows a post reset analysis in order to determine the reason for a reset. that could be handy for you, too. is your watchdog even running?

Children