Enable the Watchdog. When you want the reset, just get into a never-ending loop, _with_no_ clrwdt, and all interrupts disabled. This will take some time (miliseconds), depending on the settings of your WDT, but it works. Merry Christmas, Happy New Year, and wonderful Holidays to you all! Ho, ho, ho! 8) Nuno Pedrosa. Keith DERRICK wrote: > > How do I perform a "software reset" on one of these beasts? I've managed to ju mp > through the reset vector at ROM address 0, but I end up with a stack overflow 8( > Obviously, the stack needs to be reset. > > Any help most urgently appreciated - either in ASM or C. I'm working in C, but > will happily put this stuff in as in-line assembler. > > Keith Derrick -- ---- ~~~~~~~ ------- Nuno Filipe Freitas Pedrosa -- ~~~~ ~~ ----- SIEMENS S.A. Portugal TEL: +351 1 4242454 - ~~~~ ~~ ---- mailto:Nuno.Pedrosa@oen.siemens.de - ~~~~ ~~ ---- "A crooked stick will have a crooked shadow." =======================================================================