At 06:45 PM 11/3/2007 -0700, Cat C wrote: >It does enter the ISR (tested by turning on LED inside ISR), but when I use >it in the main it doesn't change. You mis-understood. When the ISR is running, can it be re-entered (presumably by another interrupt)? When you use what in main what doesn't change? Also how is the behaviour different when you use ch1 as opposed to ch[1]? Right now this sounds more like an issue in main rather than the ISR but it's rather difficult to tell. It could be a heisenbug. Robert http://www.aeolusdevelopment.com/ From the Divided by a Common Language File (Edited to protect the guilty) ME - "I'd like to get Price and delivery for connector Part # XXXXX" Dist./Rep - "$X.XX Lead time 37 days" ME - "Anything we can do about lead time? 37 days seems a bit high." Dist./Rep - "that is the lead time given because our stock is live.... we currently have stock."
Message
Re: [AVR-Chat] Help: volatile variable versus volatile array for ISR access
2007-11-04 by Robert Adsett