??? 04/09/07 20:08 Read: times |
#136874 - P89V51RC2 - Watchdog timeout |
Hello,
I recently migrated to P89V51RC2 from P89C51RC2. The TN06007 migration document says you need to also change watchdog code as shown below Init: { WDTD= reload value ( I used 254) ; // Reload value counter for specific // period .See data sheet WDTC= 0x31 (Typo ? should be 0x19); // 00011001 = output enabled, // watchdog timer reset enabled, // Start timer. } Main: { While 1; { WDTC |= 0x02; // reset Watchdog counter // user program } I did this and noticed that when I commented the WDTC |= 0x02 line, the Watchdog timeout stays constant at about 7-8 seconds no matter what value I put in the rload counter. I use a 12Mhz xtal. Has anyone seen this ? thanks, Nathan |
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 |