Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
Interrupt Structure of 8051

Interrupt Structure of 8051

Ratings: (0)|Views: 7|Likes:
Published by Amar Singh

More info:

Published by: Amar Singh on Dec 07, 2011
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





Embedded Systems I/O
Version 2 EE IIT, Kharagpur1
Version 2 EE IIT, Kharagpur2
Instructional Objectives
After going through this lesson the student would learn
Interrupt Service Subroutines
Priority Resolving
Daisy Chain Interrupts
Interrupt Structure in 8051 Microcontroller
Programmable Interrupt Controller
Digital Electronics, Microprocessors
15 Introduction
Real Time Embedded System design requires that I/O devices receive servicing in anefficient manner so that large amounts of the total system tasks can be assumed by the processorwith little or no effect on throughput. The most common method of servicing such devices is the
approach. This is where the processor must test each device in sequence and in effect“ask” each one if it needs servicing. It is easy to see that a large portion of the main program islooping through this continuous polling cycle and that such a method would have a serious,detrimental effect on system throughput, thus, limiting the tasks that could be assumed by themicrocomputer and reducing the cost effectiveness of using such devices. A more desirablemethod would be one that would allow the microprocessor to be executing its main program andonly stop to service peripheral devices when it is told to do so by the device itself. In effect, themethod would provide an external asynchronous input that would inform the processor that itshould complete whatever instruction that is currently being executed and fetch a new routinethat will service the requesting device. Once this servicing is complete, however, the processorwould resume exactly where it left off. This can be effectively handled by
A signal informing aprogramor a device connected to the processor that aneventhas occurred. When a processor receives an interrupt signal, it takes a specified action depending onthe priority and importance of the entity generating the signal. Interrupt signals can cause aprogram to suspend itself temporarily to service the interrupt by branching into another programcalled Interrupt Service Subroutines (ISS) for the specified device which has caused theinterrupt.
Types of Interrupts
Interrupts can be broadly classified as- Hardware InterruptsThese are interrupts caused by the connected devices.- Software InterruptsThese are interrupts deliberately introduced by software instructions to generate userdefined exceptions- TrapVersion 2 EE IIT, Kharagpur3

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->