Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Interrupt arch = intr & f() Q

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 main (void)


while(1)
while(!Q.isEmpty())
call i f() from Q
i ++

void functionA(void)
perform task code for device A

void functionB(void)

Syllabus

->Process of ES Dev - Ch4


->Survey of SW arch - Ch5
->Programs - serial comms - ADC - LCD -P467

You might also like