At 11:56 AM 7/14/2003 +0300, you wrote: >I thought that I could use the WDT to prevent the chip going to >neverland. When it is not cleared the chip restarts, and if I don't loose >the varaibles values, then I can go back to where the last wdt_clear was >and then continue. > >I would need this feature for units for industrial purposes where the >units may be subject to all kinds of external distrurbance. I think that >this could be done with assembler, but with C I don't know. At the start >of the program I will have to check if it is wdt timer restart, then check >couple of variables to verify indeed the variables have not been changed, >then it should jump to the start of the last wdt_clear loop. How would I >do that in C? Look at the source of your startup code to see exactly what's going on. Best regards, Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body