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

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

Re: [avr-gcc-list] volatile with winavr2010


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] volatile with winavr2010
Date: Tue, 1 Jun 2010 14:28:29 +0200 (MET DST)

(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).

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



reply via email to

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