This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Watchdog timer in P89V51RD2BN

Hi,

Am Working on Watchdog timer in P89V51RD2.
But Am not getting the result.
My code is

WDTC|=0x18; // Enable OUT and Reset
WDTD=count; // Load Count to Reg
WDTC|=0x01; // Start WDT
On LED1
while(WDTC&0x04); // Wait for Flag
On LED2

but its toggling always.
Actually i have defined the registers in reg52.h file.

Can anyone suggest me how i can solve this problem.

Thanks in Advance.

Regards,
Madev

0