View Single Post
  #6   Spotlight this post!  
Unread 18-02-2005, 22:34
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Global Struct Arrays and Interrupts

The tick variable is an integer, with multiple bytes. It's conceivable that an interrupt could occur after one byte was read but before the other one, so you'd get a corrupted value. Any time you want to use a variable like that, it's a good idea to disable interrupts while you access it.