avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Anyone using WinAVR with AVRStudio 4?


From: Volkmar Dierkes
Subject: Re: [avr-gcc-list] Anyone using WinAVR with AVRStudio 4?
Date: Wed, 25 Dec 2002 11:05:42 +0100
User-agent: 40tude_Dialog/2.0.3.1 Hamster/2.0.0.0

Sander,

On Tue, 24 Dec 2002 23:47:58 -0800, Sander Pool wrote:

[objcopy for simulation in AVRstudio4]

I am not sure, but I think it is (right now) not possible to use 
objcopy to generating cof files for AVRstudio4. Why don't you use 
objtool which is also included in the distribution?

> #ifdef __AVR_ATmega128__
>       outp(angle, OCR3AH);
> #else
>       outp(angle, OCR1AL);
> #endif
>
>       outp(0,   TCNT0);                /* reset TCNT0 */

And another hint: It is recommended to use direct access for the 
registers like OCR3AH and the others. Better this way:

#ifdef __AVR_ATmega128__
        OCR3AH = angle;
#else
        OCR1AL = angle;
#endif

        TCNT0 = 0;               /* reset TCNT0 */

HTH

Volkmar
avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]