Interrupts Signal that causes the CPU to alter its normal flow on instruction execution ◦ frees CPU from waiting for events ◦ provides control for external.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

Lecture 12 Z80 Interrupt 동국대학교 홍유표 1. Y. Hong & E. Lee Polling vs. Interrupt Polling : Periodically check if an event occurs Interrupt : Event sends a.
Interrupts Chapter 8 – pp Chapter 10 – pp Appendix A – pp 537 &
I/O Unit.
CSCI 4717/5717 Computer Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Chapter 9: Input/Output The Architecture of Computer Hardware and Systems Software: An Information Technology Approach 3rd Edition, Irv Englander John.
COMP3221: Microprocessors and Embedded Systems Lecture 15: Interrupts I Lecturer: Hui Wu Session 1, 2005.
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
6-1 I/O Methods I/O – Transfer of data between memory of the system and the I/O device Most devices operate asynchronously from the CPU Most methods involve.
1 Computer System Overview OS-1 Course AA
1 CSIT431 Introduction to Operating Systems Welcome to CSIT431 Introduction to Operating Systems In this course we learn about the design and structure.
Basic Input/Output Operations
1 Interrupts INPUT/OUTPUT ORGANIZATION: Interrupts CS 147 JOKO SUTOMO.
CHAPTER 9: Input / Output
INPUT/OUTPUT ORGANIZATION INTERRUPTS CS147 Summer 2001 Professor: Sin-Min Lee Presented by: Jing Chen.
Chapter 11 Interrupt Interface of the 8088 and 8086 Microcomputer
INTERRUPTS PROGRAMMING
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
Computer System Overview Chapter 1. Operating System Exploits the hardware resources of one or more processors Provides a set of services to system users.
CHAPTER 9: Input / Output
MICROPROCESSOR INPUT/OUTPUT
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
Chapter 4 Processes. Process: what is it? A program in execution A program in execution usually usually Can also have suspended or waiting processes Can.
The Functions of Operating Systems Interrupts. Learning Objectives Explain how interrupts are used to obtain processor time. Explain how processing of.
I/O Interfacing A lot of handshaking is required between the CPU and most I/O devices. All I/O devices operate asynchronously with respect to the CPU.
SG6 : FIT1001 Computer Systems S Important Notice for Lecturers This file is provided as an example only Lecturers are expected to modify / enhance.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
Fall 2000M.B. Ibáñez Lecture 25 I/O Systems. Fall 2000M.B. Ibáñez Categories of I/O Devices Human readable –used to communicate with the user –video display.
Operating Systems 1 K. Salah Module 1.2: Fundamental Concepts Interrupts System Calls.
Chapter 6: Computer Components Dr Mohamed Menacer Taibah University
Lecture 1: Review of Computer Organization
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
Input Output Techniques Programmed Interrupt driven Direct Memory Access (DMA)
I/O Organization Competency – C6. Important facts to remember when I/O devices are to be connected to CPU There is a vast variety of I/O devices. Some.
بسم الله الرحمن الرحيم MEMORY AND I/O.
9/20/6Lecture 3 - Instruction Set - Al1 Exception Handling.
Embedded Computer - Definition When a microcomputer is part of a larger product, it is said to be an embedded computer. The embedded computer retrieves.
Interrupts and Exception Handling. Execution We are quite aware of the Fetch, Execute process of the control unit of the CPU –Fetch and instruction as.
1 Input / Output. Today: I/O Systems How does I/O hardware influence the OS? What I/O services does the OS provide? How does the OS implement those services?
Embedded Real-Time Systems Processing interrupts Lecturer Department University.
Input / Output Chapter 9.
CHAPTER 9: Input / Output
Operating Systems CMPSC 473
Microprocessor Systems Design I
CHAPTER 9: Input / Output
Computer Architecture
Chapter 3 – Process Concepts
Interrupts In 8085 and 8086.
Day 08 Processes.
Day 09 Processes.
Computer System Overview
I/O system.
GEOMATIKA UNIVERSITY COLLEGE CHAPTER 2 OPERATING SYSTEM PRINCIPLES
Computer System Overview
Processor Fundamentals
Process & its States Lecture 5.
11.1 Interrupt Mechanism, Type, and Priority
Interrupt handling Explain how interrupts are used to obtain processor time and how processing of interrupted jobs may later be resumed, (typical.
Computer System Overview
Computer System Overview
COMP3221: Microprocessors and Embedded Systems
Chapter 13: I/O Systems “The two main jobs of a computer are I/O and [CPU] processing. In many cases, the main job is I/O, and the [CPU] processing is.
Presentation transcript:

Interrupts Signal that causes the CPU to alter its normal flow on instruction execution ◦ frees CPU from waiting for events ◦ provides control for external input Examples ◦ unexpected input ◦ abnormal situation ◦ illegal instructions ◦ multitasking, multiprocessing Slide 1

Interrupt Terminology In understanding the concept of interrupts, there are a few commonly used terms:- ◦ Interrupt lines (hardware) ◦ Interrupt request ◦ Interrupt handlers  Program that services the interrupt  Also known as an interrupt routine ◦ Process Control Block (PCB)  Located in a part of memory known as the stack area  All registers of a program are saved here before control is transferred to the interrupt handler Slid e 2

Servicing an Interrupt When an interrupt occurs, it must be serviced. Servicing the interrupt involves:- ◦ suspending the program in progress. ◦ save pertinent information including last instruction executed and data values in registers in the PCB (process control block). ◦ branch to the interrupt handler. Slid e 3

Servicing an Interrupt Slid e 4

Use of Interrupts Interrupts are such powerful mechanisms that they are used widely, such as:- ◦ Notifying that an external event has occurred  real-time or time-sensitive ◦ Signalling completion  printer ready or buffer full ◦ Allocating CPU time  time sharing ◦ Indicating abnormal event (CPU originates for notification and recovery)  illegal operation, hardware error ◦ Software interrupts Slid e 5

Multiple Interrupts Identifying devices ◦ Polling (checking for input in rotation) ◦ Vectored interrupts (include address of interrupting device) Interrupt priorities ◦ Loss of data vs. task completion Maskable (disabled) interrupts Slid e 6

Vectored Interrupts Slid e 7

Polled Interrupts Slid e 8

Multiple Interrupts Example Slid e 9