GeekInterview.com
Series: Subject: Topic:
Question: 124 of 142

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.
Asked by: Interview Candidate | Asked on: Mar 6th, 2005
Showing Answers 1 - 1 of 1 Answers
rakesh trichy

Answered On : Oct 12th, 2008

View all answers by rakesh trichy

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 */ }}

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.