Hi Gordon,
Glad it helped.
Yes, when PBP is compiling your program it automatically "sprinkles" the code with CLRWDT which is what "kicks the dog" ie. it resets the WDT, keeping it from timing out. If you stop "kicking the dog" (for whatever reason) it will eventually time out and reset the PIC.Just to clarify, if others are using the WDT to wake the PIC, then they must be referring to using "Sleep"? Or some other NON-PBP method.
If the reason you stopped "kicking the dog" was because you went to sleep (program execution stops, thus no CLRWDT instructions) then the PIC will wake up.
Yes, that's my opinion. Or, as we discussed in the other thread, use a power managed mode which doesn't shut down the main oscillator. Saves an external x-tal but costs on current consumption.But anyway if i want my applications to be as accurate as i can, then TMR0,1 with external crystal etc. would be best.
/Henrik.
Bookmarks