View Single Post
  #3   Spotlight this post!  
Unread 05-02-2004, 21:36
Random Dude Random Dude is offline
Oregon State Head FTA
AKA: Chris
no team (Oregon Robotics Tournament & Outreach Program)
 
Join Date: Aug 2002
Rookie Year: 1998
Location: Oregon
Posts: 142
Random Dude will become famous soon enoughRandom Dude will become famous soon enough
Re: Interrupt timer, executing code asap?

Quote:
Originally Posted by SeanCassidy
Was I meandering in my meaning? I apologize, sometimes I do that.

My question is purely that if a function is executed, does everything else stop while that is exected?

Yes, only one thing can be happening at a time. When an interrupt occurs, whatever is currently happening stops, and the data being used gets set aside (onto the stack actually) Then the interrupt handler runs, and handles the interrupt (obviously). Then whatever code was running before resumes where it left off, without any real knowledge of the interruption.

Let me know if this doesn't answer you question.