# asm(“WDR=0”);

Started by rahmatoolah abedini August 20, 2010
Hello friends
I worked with codevision version 1.38.8c long times. In that software every time
that I want to reset watchdog timer I wrote:
 # asm(“WDR=0”);
Now I start for working with codevision version 2.04.4a in this version that
line produce Error. What can I do? How can I reset watchdog timer?
Best regards.
ALi




________________________________

From: rahmatoolah abedini
To: a...
Sent: Fri, August 20, 2010 1:31:00 AM
Subject: [AVR club] # asm(“WDR=0”);

WDR is Asm Instruction, write only :
#asm("Wdr") 
 
Imad
Hello friends
I worked with codevision version 1.38.8c long times. In that software every time

that I want to reset watchdog timer I wrote:
 # asm(“WDR=0”);
Now I start for working with codevision version 2.04.4a in this version that
line produce Error. What can I do? How can I reset watchdog timer?
Best regards.
ALi



Hi,




Salaam Ali,

I suggest free WINAVR or AVRGCC compiler.
You can define the following in the header file and use WDR(); instead.

#ifdef CODEVISION
#define WDR() #asm("wdr")
#elif defined (AVRGCC)
#define WDR() __asm__ __volatile__ ("wdr")
#endif

best regards
A.R. Khorasani
www.dadehabzar.ir
On Fri, Aug 20, 2010 at 2:01 PM, rahmatoolah abedini
wrote:

> Hello friends
> I worked with codevision version 1.38.8c long times. In that software every
> time
> that I want to reset watchdog timer I wrote:
> # asm(WDR=0);
> Now I start for working with codevision version 2.04.4a in this version
> that
> line produce Error. What can I do? How can I reset watchdog timer?
> Best regards.
> ALi
>
>
>
>
>