Sounds like you need the volatile modifier in front of you variable
declaration
Ie
volatile uint8_t msCount;
This tells the compiler that is the variable is modified outside of the
interrupt routine.
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On
Behalf Of Venkat Nagappan
Sent: Monday, August 08, 2005 11:08 AM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Question regarding interrupt routine in AT90CAN128
Hi
I have a question regarding interrupt routine in AT90CAN128 .
When I try to increment the value of a register inside the interrupt
routine , the register gives some random value .
What should i do for this. Pls. help me.
bye
c.b.vijay
Yahoo! Groups LinksMessage
RE: [AVR-Chat] Question regarding interrupt routine in AT90CAN128
2005-08-09 by wbounce