??? 08/15/05 11:17 Read: times |
#99406 - If you REALLY want to do it Responding to: ???'s previous message |
Personally, I think the technique is brute force, but, hey, you want to do it! interrupt: do whatever.... pop a pop a ;remove return address off the stack clr a push a push a ;push return address of 0x0000 onto the stack reti ;this will return to address 0x0000 If you'd done some reading, this would have been obvious! Remember jumping to address 0x0000 is not the same as doing a reset! As Abhishek mentioned, enable the watchdog. To reboot the micro, just have your code sit in a dead loop and the watchdog will bail you out. |