View Single Post
  #4   Spotlight this post!  
Unread 13-11-2003, 23:16
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,642
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
interrupts are code that runs out of order

I don't have a ton of time as my wife has just announced she is going to bed (implied: I better join her).... ...but.... the basic idea of interrupts is that it is code that is run out of the normal flow of a program.

So, when a pin changes from 0 to 1 or when a counter that is running in the background flips from hex $FFFF to hex $0000 or when a byte comes in via the serial data line or whatever, some special code can be run.

Usually in C this code is defined via a pragma statement.

Out of time... ...more later.

Joe J.