[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] volatile with winavr2010
From: |
Leiu |
Subject: |
Re: [avr-gcc-list] volatile with winavr2010 |
Date: |
Tue, 01 Jun 2010 23:30:27 +0700 |
On Tue, 2010-06-01 at 14:28 +0200, Joerg Wunsch wrote:
> (Better subscribe to the list, you might miss replies otherwise.)
>
> Leiu <address@hidden> wrote:
>
> > Thanks all, But i can't find bug, Here is my full code
>
> > Result : i can show 'A'! why?
>
> Because you're using hyperterm?
>
> I've compiled this for an ATmega16, set it up on an STK500, and
> connected it to my terminal emulator:
>
> ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOP...
>
> I assume this is what you'd like to see, isn't it?
>
> Note that after printing the 'Z', it pauses for one "tick", which
> matches your code (the ISR only resets "first_edge" to 'A' then, but
> doesn't print out anything).
>
Thank Joerg Wunsch! But i have just replaced hypeterm by a free serial
terminal but result no change!
I use winavr2010 with eclipse, ATmega16! I tested with Proteus and real
circuit but result is only 'A'!
Show me my problem!