|
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.
|