When the program returns from the interrupt
|
|
---|
|
Chapter 15 I |
---|
|
The slow rate at which the LED toggles enables the program to demonstrate two important
characteristics of interrupts. If you press a key shortly after the LED changes state, you’ll notice that it again changes state the instant the key is released. From this program behavior, you can deduce both of the characteristics I have in mind. First, the interrupt condition (C1 output change) is checked for continuously during the wait statement (this is also true for pause statements). Second, when the program returns from the interrupt, it does not complete the wait (or pause) statement; itProject 15
A Simple MPD Operating System
I | Approximately 80 percent of 20X2 memory |
---|
I All user-developed programs have access to the
interrupt-driven keypad input.