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

ds89C420 watchdog

hi all,

i've a system with 2 code memories, the internal flash of the chip and an external 29b040.

I've a "forced watchdog reset" function that works if i call it from external flash, but running from internal flash calling same function (copiled as the same in both codes) the reset don't happen.

void WatchdogReboot(void) {


WDCON &= ~0x04; // reset watchdog reset occourred if present

WDCON |= 0x01; // Enable the Watchdog timer
CKCON &= 0x3F;

TA=0xAA; // Accessing timed access in order to start the watchdog timer
TA=0x55; //

EWDI=1;

WDCON |= 0x02;

for ( ;; );

}

Any help is very appreciated.
angelo

0