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: Sander Pool
Subject: RE: [avr-gcc-list] Anyone using WinAVR with AVRStudio 4?
Date: Wed, 25 Dec 2002 09:32:06 -0800

Volkmar,

darn typo, I indeed use objtool, not objcopy. Sorry!

Thanks for the update on the register settings. I guess I was still stuck in
gcctest land :-)

Best,

        Sander


> -----Original Message-----
> From: address@hidden [mailto:address@hidden
> Behalf Of Volkmar Dierkes
> Sent: Wednesday, December 25, 2002 2:06 AM
> To: address@hidden
> Subject: Re: [avr-gcc-list] Anyone using WinAVR with AVRStudio 4?
>
>
> 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
>
>

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



reply via email to

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