Using Interrupts in Embedded Systems