??? 04/10/07 10:57 Read: times |
#136898 - this is what one would expect Responding to: ???'s previous message |
Unless you explicitly reload the watchdog timer (i.e. copy the value from WDTD SFR to the timer itself by writing one to WDT SFR bit), the timer starts from its default (= 0) and times out after (255-0)*344064/fXTAL which is at X=12MHz around 7.3s - which perfectly matches your observation.
JW PS. just a sidenote: the watchdog is used also for timing the ISP entry, which is then contrary to what the datasheet says, dependent on the value of crystal. The reload value used by bootloader is FBh, so the delay is around 100 ms at 12MHz rather than the declared 400ms... |
Topic | Author | Date |
P89V51RC2 - Watchdog timeout | 01/01/70 00:00 | |
this is what one would expect | 01/01/70 00:00 | |
P89V51RC2 - Watchdog timeout![]() | 01/01/70 00:00 |