Further Adventures
2007-07-11 by Dave VanHorn
Has anyone (other than me.. :) seen odd behaviour with the WDT in the M128? What I'm seeing now, is a timeout period that's in the low milliseconds, even with the prescaler set to MAX. It's supposed to be about 2 seconds this way.. I'm running on an 8 MHz internal RC. Originally I had a single timed WDR at 200mS intervals, but this isn't working now.. I did a lot of checking for system problems, as my "sanity check" routines cause a reset if they detect problems, by sitting in a Here: jrmp here loop till the WDT smacks them. But with internal code, and external logic analyzer, I can see that I am getting reset within about 25mS(!) of the last WDR. I can put WDR in the main loop, and limp around it, but this is very puzzling. The code that I'm using to handle the WDR is a very old and trusted routine, using timer 0 for 1mS ints which ARE happening, and to make a long story short, I'm sure that the WDR would get executed every 200-201mS