Hi
From another thread it becomes clear that you are using a KE and not K. The KE code is:
WDOG_UNLOCK = 0x20c5;
WDOG_UNLOCK = 0x28d9;
WDOG_CS2 = (WDOG_CS2_CLK_1kHz | WDOG_CS2_FLG);
WDOG_TOVAL = BIG_SHORT_WORD(2000); // 2000ms
WDOG_WIN = 0;
WDOG_CS1 = (WDOG_CS1_EN); // enable watchdog - set WDOG_CS1_UPDATE to allow future updates
Note that the timeout value is big-endian:
#define BIG_SHORT_WORD(x) (unsigned short)((x << 8) | (x >> 8))
Regards
Mark
P.S. If you test with 100ms timeout with the TOVAL endian incorrectly you will get a timeout of about 25s instead of 100ms!
As you can see, the KE implementation is big-endian whereas the K implemetation is little-endian (although the watchdog is different it is otherwies very similar) so some confusion can result.
If you decide to use a KL it has a completely different watchdog again...