Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: [AVR-Chat] Question regarding interrupt routine in AT90CAN128

2005-08-09 by wbounce

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 Links

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.