[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Global variables and ISRs ???
From: |
Christopher X. Candreva |
Subject: |
Re: [avr-gcc-list] Global variables and ISRs ??? |
Date: |
Tue, 6 Sep 2005 15:42:01 -0400 (EDT) |
On Tue, 6 Sep 2005, Vincent Trouilliez wrote:
> Problem : on my ATmega32, after several experiments (only just started
> using it, learning...), I am suffering a big problem. It seems that when
> I declare a variable as global, then modify it within an interrupt
> routine, the 'main' function can't see that the variable has been
> modified, as if it weren't a global variable... hmmm.
You need to declare it as volatile
Search the mailing list archives, this has come up many times.
==========================================================
Chris Candreva -- address@hidden -- (914) 967-7816
WestNet Internet Services of Westchester
http://www.westnet.com/
- [avr-gcc-list] Global variables and ISRs ???, Vincent Trouilliez, 2005/09/06
- Re: [avr-gcc-list] Global variables and ISRs ???, Lars Noschinski, 2005/09/06
- Re: [avr-gcc-list] Global variables and ISRs ???, Lars Noschinski, 2005/09/14
- Re: [avr-gcc-list] Global variables and ISRs ???, Rich Neswold, 2005/09/14
- Re: [avr-gcc-list] Global variables and ISRs ???, David Brown, 2005/09/15
- Re: [avr-gcc-list] Global variables and ISRs ???, Keith Gudger, 2005/09/15
- Re: [avr-gcc-list] Global variables and ISRs ???, Chip Webb, 2005/09/15
- Re: [avr-gcc-list] Global variables and ISRs ???, Joerg Wunsch, 2005/09/15
Re: [avr-gcc-list] Global variables and ISRs ???,
Christopher X. Candreva <=
Re: [avr-gcc-list] Global variables and ISRs ???, Johnathan Corgan, 2005/09/06
Re: [avr-gcc-list] Global variables and ISRs ???, Parthasaradhi Nayani, 2005/09/06
- Re: [avr-gcc-list] Global variables and ISRs ???, David Brown, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, Vincent Trouilliez, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, Lars Noschinski, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, Vincent Trouilliez, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, David Brown, 2005/09/07
- Re: [avr-gcc-list] DIV instruction (WAS: Global variables and ISRs ???), Vincent Trouilliez, 2005/09/07
- Re: [avr-gcc-list] Global variables and ISRs ???, Alex Wenger, 2005/09/07