Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
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
interrupt,structure,8051,micro,controller
interrupt,structure,8051,micro,controller

More info:

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

Availability:

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

08/17/2013

pdf

text

original

 
 Module3
Embedded Systems I/O
Version 2 EE IIT, Kharagpur1
 
 Lesson15
Interrupts
Version 2 EE IIT, Kharagpur2
 
Instructional Objectives
After going through this lesson the student would learn
 
Interrupts
 
Interrupt Service Subroutines
 
Polling
 
 
Priority Resolving
 
 
Daisy Chain Interrupts
 
 
Interrupt Structure in 8051 Microcontroller
 
 
Programmable Interrupt Controller
 
Pre-Requisite
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
polled
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
interrupts.
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

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