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
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?
I don't know the C51, but an ARM allows a post reset analysis in order to determine the reason for a reset. most modern '51 derivatives have that feature (if using internal dog, of course).
Erik