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 set the watchdog timer in AT89s52 in Assembly code (using ATProg 1.0)?

Status
Not open for further replies.

Abu_Kartona

Newbie level 1
Joined
Sep 2, 2008
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,287
plz,i don`t know how to set the watchdog timer in AT89s52 in an assembly code (using ATProg 1.0)
 

Re: resetting AT89s52

READ pages 9 & 10 in the 89S51 datasheet!!
 

I have written the following code for Setting the WatchdogTimer in 89s52.

Case:1
START: MOV 8EH,#00H ;Enabling Auxillary Register

WDT: MOV WDTRST,#1EH
MOV WDTRST,#0E1H
RET
Error While compiling nd converting to HEX Code : Undefined Symbol "WDTRST".


Case:2
START: MOV 8EH,#00H ;Enabling Auxillary Register

WDT: MOV 0A6H,#1EH
MOV 0A6H,#0E1H
RET
Error While compiling nd converting to HEX Code : NON-EXISTENT INTERNAL RAM ADDRESS for the address 0A6H.

Wondering if the problem is with my compiler: 8051 Macro Assembler- version 4.05b.

Please Advise........
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top