nestedInterruptDemo

This demonstration (nestedInterruptDemo directory) illustrates how to escalate from an interrupt routine and to execute higher priority routine. The program returns to the lower priority routine after the higher priority routine finished executing. This demo instantiates two user timers; timer 0 has higher priority than timer 1. Timer 0 interrupts the CPU multiple times. The CPU then executes the timer 0 interrupt routine in the middle of executing the timer 1 interrupt routine.

The demo outputs the following messages to a terminal:

T1S
T0S-HP
T0E-HP
T0S-HP
T0E-HP
T0S-HP
T0E-HP
T0S-HP
T0E-HP
T0S-HP
T0E-HP
T0S-HP
T0E-HP
T0S-HP
T0E-HP
T0S-HP
T0E-HP
T0S-HP
T0E-HP
T0S-HP
T0E-HP
T1E