Common Functions of Interrupts?

->Interrupt transfers control to the interrupt service routine generally, through the interrupt vector, which contains the         addresses of all the service routines.->Interrupt architecture must save the address of the interrupted instruction.->Incoming interrupts are disabled while another interrupt is being processed to prevent a lost interrupt.->A trap is a software-generated interrupt caused either by an error or a user request.->An operating system is interrupt driven.

Showing Answers 1 - 3 of 3 Answers

8051:InterruptNumber Description Address0 EXTERNAL INT 0 0003h1 TIMER/COUNTER 0 000Bh2 EXTERNAL INT 1 0013h3 TIMER/COUNTER 1 001Bh4 SERIAL PORT 0023heg program..unsigned int interruptcnt;unsigned char second;void timer0 (void) interrupt 1 using 2 { if (++interruptcnt == 4000) { /* count to 4000 */ second++; /* second counter */ interruptcnt = 0; /* clear int counter */ }}

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions