avr-libc-dev
[Top][All Lists]
Advanced

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

[avr-libc-dev] volatie with winavr2010 ?


From: Leiu
Subject: [avr-libc-dev] volatie with winavr2010 ?
Date: Sun, 30 May 2010 18:33:32 +0700

here is my code:
        volatile uint8_t first_edge = 'A';
        .................................
        ISR(TIMER1_OVF_vect)
        {
        if(first_edge <= 'Z')
        {
                avr2pc(first_edge); //avr2pc to transmit character to PC
                ++first_edge;
        }else
        {
                first_edge = 'A';
        }

        }

my result:
        I only show 'A' in hyperterminal :
        => first_edge can't update values;
        Please tell me why?




reply via email to

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