2009/9/3 Bob Axtell : > But these ideas have merit, though. > > I, too, use the PIC WDT always, and disable the interrupts > infrequently. The only place that clears the WDT (CLRWDT) is in the > timer interrupt, which occurs in less than 15mS intervals. > > But some HLLs require that the WDT not be used. How will you recover a > locked PIC? An external WDT is the best idea. Of course, there are > SOT23 chips that do this... > > --Bob > Bob, Is it a good idea to refresh the wdt in a timer interrupt? I'm thinking that if the code locks up (program mainline) then the timer interrupt will still be working & the wdt keeps getting refreshed. I've tended to put wdt refreshes in the main code (= some sort of regular loop) to avoid this. RP -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist