How to use AT89S8252 Watchdog in Keil?

Status
Not open for further replies.

GrandAlf

Advanced Member level 2
Joined
Mar 9, 2002
Messages
520
Helped
47
Reputation
92
Reaction score
6
Trophy points
1,298
Location
UK
Activity points
4,730
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.
 

looking for data sheet of at898252

Whoops, forgot they needed masking. All is OK now !!!!!!!!!!!.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…