GrandAlf
Advanced Member level 2
watchdog at89s8252
I am try to use the Watchdog in K*e*il, As far as I can tell from the data sheet, I should be doing the following.
#include <AT898252>
PS0 = 0x01; // Setup WatchDog for 2048 Ms
PS1 = 0x01;
PS2 = 0x01;
WDTEN_= 0x01; // Start WatchDog
WDTRST_= 0x01; // Reset WatchDog, used throughout program
This does not appear to work, would be most grateful for any advice.
I am try to use the Watchdog in K*e*il, As far as I can tell from the data sheet, I should be doing the following.
#include <AT898252>
PS0 = 0x01; // Setup WatchDog for 2048 Ms
PS1 = 0x01;
PS2 = 0x01;
WDTEN_= 0x01; // Start WatchDog
WDTRST_= 0x01; // Reset WatchDog, used throughout program
This does not appear to work, would be most grateful for any advice.