Professional Documents
Culture Documents
Interupt
Interupt
if any device require service it will introduce the up now its ISR will be
executed, in that entry is made for the device in function Q the main program just
read the pointers from the Q and call f() that perform task code for the devices in
the Q in FIFO manners hence, task codes are executed on order of occurrence here
also ISR have higher priority than task codes,
Algo
void handlerA(void)
perform necessary action for device A;//res^ISR
put device A in f() Q;
void handlerB(void)
…
…
void functionA(void)
perform task code for device A
void functionB(void)
…
Syllabus