I am a bit confused about that since I’m using 16F737, it states on the data sheet:Benj wrote:Hello,
You cannot use timer0 and the watchdog timer in your program without switching one or the other off. You can use the timer 1 instead of timer 0 if you wish, this should work fine.
Does this mean15.17 Watchdog Timer (WDT)
For PIC16F7X7 devices, the WDT has been modified
from previous PIC16 devices. The new WDT is code
and functionally backward compatible with previous
PIC16 WDT modules and allows the user to have a
scaler value for the WDT and TMR0 at the same time.
In addition, the WDT time-out value can be extended to
268 seconds, using the prescaler with the postscaler
when the PSA bit is set to ‘1’.
15.17.1 WDT OSCILLATOR
The WDT derives its time base from the 31.25 kHz
INTRC; therefore, the accuracy of the 31.25 kHz will be
the same accuracy for the WDT time-out period
1) They both can be used at the same time?
And
2) 1/clockspeed/4/prescaler/256 no longer applies?
I would like to be able to use both, and set the WD timeout for a few seconds. I know it states on data sheet "the WDT has been modified
from previous PIC16 devices. So maybe what Ben says just applies all pic16 pre 16F737. So just checking both are possible.
Thank you.