Loops, and sub-routines Interrupts Can be very useful in control applications particularly when the microprocessor must perform two tasks apparently.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

Categories of I/O Devices
Chapter 3 Basic Input/Output
1 Exceptions, Interrupts & Traps Operating System Hebrew University Spring 2007.
Programmable Interval Timer
Mehmet Can Vuran, Instructor University of Nebraska-Lincoln Acknowledgement: Overheads adapted from those provided by the authors of the textbook.
CSCI 4717/5717 Computer Architecture
1/1/ / faculty of Electrical Engineering eindhoven university of technology Introduction Part 3: Input/output and co-processors dr.ir. A.C. Verschueren.
8086 Interrupts. Interrupt Normal prog execution is interrupted by – Some external signal, or – A special instruction in the prog.
Set 20 Interrupts. INTERRUPTS The Pentium has a mechanism whereby external devices can interrupt it. Devices such as the keyboard, the monitor, hard disks.
Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Introduction to Microprossor Topic : Pin function.
Outline  Examine some of the H/W supplied with a typical PC and consider the software required to control it.  Introduce Commkit, a software tool that.
Architectural Support for OS March 29, 2000 Instructor: Gary Kimura Slides courtesy of Hank Levy.
LOGO Chapter 1 Interrupt handling. hardware interrupt Under x86, hardware interrupts are called IRQ's. When the CPU receives an interrupt, it stops whatever.
Figure 2.8 Compiler phases Compiling. Figure 2.9 Object module Linking.
Basic Input/Output Operations
1 Interrupts INPUT/OUTPUT ORGANIZATION: Interrupts CS 147 JOKO SUTOMO.
Mehmet Can Vuran, Instructor University of Nebraska-Lincoln Acknowledgement: Overheads adapted from those provided by the authors of the textbook.
MicroC/OS-II Embedded Systems Design and Implementation.
Exceptions, Interrupts & Traps
INPUT/OUTPUT ORGANIZATION INTERRUPTS CS147 Summer 2001 Professor: Sin-Min Lee Presented by: Jing Chen.
Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz.
Interrupts. 2 Definition: An electrical signal sent to the CPU (at any time) to alert it to the occurrence of some event that needs its attention Purpose:
COMP201 Computer Systems Exceptions and Interrupts.
DAT2343 Accessing Services Through Interrupts © Alan T. Pinck / Algonquin College; 2003.
MICROPROCESSOR INPUT/OUTPUT
Implementing Processes and Process Management Brian Bershad.
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment.
Khaled A. Al-Utaibi  Interrupt-Driven I/O  Hardware Interrupts  Responding to Hardware Interrupts  INTR and NMI  Computing the.
I/O Example: Disk Drives To access data: — seek: position head over the proper track (8 to 20 ms. avg.) — rotational latency: wait for desired sector (.5.
1 CS/COE0447 Computer Organization & Assembly Language Chapter 5 part 4 Exceptions.
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.
The Stack This is a special data structure: –The first item to be placed into the stack will be the last item taken out. Two basic operations: –Push: Places.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
13-Nov-15 (1) CSC Computer Organization Lecture 7: Input/Output Organization.
CSNB374: Microprocessor Systems Chapter 5: Procedures and Interrupts.
Operating System Structure A key concept of operating systems is multiprogramming. –Goal of multiprogramming is to efficiently utilize all of the computing.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Lecture Topics: 10/29 Architectural support for operating systems –timers –kernel mode –system calls –protected instructions.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Microprocessor and Interfacing Example: Writing a Game Need to Check Keyboard Input.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Chapter 6: Computer Components Dr Mohamed Menacer Taibah University
Copyright © 2007 by Curt Hill Interrupts How the system responds.
بسم الله الرحمن الرحيم 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.
Networked Embedded Systems Pengyu Zhang & Sachin Katti EE107 Spring 2016 Lecture 4 Timers and Interrupts.
68HC11 Interrupts & Resets.
Lesson Objectives Aims Key Words Interrupt, Buffer, Priority, Stack
UNIT – Microcontroller.
Operating Systems (CS 340 D)
Computer Architecture
CS 3305 System Calls Lecture 7.
Introduction of microprocessor
GEOMATIKA UNIVERSITY COLLEGE CHAPTER 2 OPERATING SYSTEM PRINCIPLES
COMPUTER PERIPHERALS AND INTERFACES
Accessing Services Through Interrupts
Architectural Support for OS
Processes Hank Levy 1.
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
Architectural Support for OS
Processes Hank Levy 1.
Register sets The register section/array consists completely of circuitry used to temporarily store data or program codes until they are sent to the.
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:

Loops, and sub-routines

Interrupts Can be very useful in control applications particularly when the microprocessor must perform two tasks apparently at the same time, or when critical timing of program execution is required. Ordinary subroutines are called using a CALL (procedure) instruction. Interrupts are very much like hardware generated CALL's. E.g. Keyboard, mouse or in a systems approach a digital sensor When an interrupt occurs, the microprocessor saves the current state of its program and jumps to a section of the program which is just like a subroutine, written for the purposes of responding to the interrupt. When this interrupt routine is complete it executes a Return From Interrupt instruction which restores the saved microprocessor registers to their original state and the interrupted program carries on from where it left off.

When do you use interrupts? A microprocessor is to be used to maintain a user interface while at the same time wait for data to arrive from some serially connected device. Using interrupts, the programmer writes code to handle the user interface without worrying about the arrival of data over the serial link. Hardware permitting, the arrival of a byte of data can be used to generate an interrupt. The processor will briefly stop what it is doing, grab the newly arrived byte (perhaps process it) and then return to the user interface. This is a common multitasking computer requirement

Analogue to Digital Conversion