Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top