system programming interrupt service routines, Slides of System Programming

interrupts using dos commands and handy notes for isr

Typology: Slides

2016/2017

Uploaded on 04/13/2017

muhammad-farhan
muhammad-farhan 🇵🇰

1 document

1 / 46

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
System Programming
CS-421
Lecture 1
FAHEEM NAWAZ KHAN
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e

Partial preview of the text

Download system programming interrupt service routines and more Slides System Programming in PDF only on Docsity!

System Programming

CS-

Lecture 1

FAHEEM NAWAZ KHAN

Educational Background

  • (^) Education
    • (^) BS(IT) Information Technology(2009)

SEECS-NUST H-12 Islbd

  • (^) MSCS in Information Retrieval (2015)

Muhammad Ali Jinnah University(MAJU),

Islbd

2

Course Information

  • (^) Course Code: CS 421
  • (^) Course Name System Programming
  • (^) Course Objective: This course will give students a closer look at various functions of a computer system and system programming; To gain insight into the implementation of an operating system from a programmer's perspective using C/C++ programming construct; To develop the ability to use a variety of components of the system libraries in design of system application considering concurrency, communication, portability, optimization and security concerns; To develop an understanding of the various components of the Operating Systems; Ability to build different system utilities for UNIX/LINUX environment; To develop ability of self-learning. 4

Reference Material

  • (^) Mansoor Sarwar, Robert Koretsky, and Aqeel

Sarwar, “UNIX: The Text Book”, 2nd Ed.,

Pearson Education, 2007. ISBN 81-317-1606-

  • (^) Neil Methew, Richard Stones “Beginning

Linux Programming”, 3rd Ed., Wiley

Publishing, Inc., 2004. ISBN 0-7645-4497-

  • (^) W. Richard Stevens, “Advance Programming

in the UNIX Environment”, 2nd Ed., Pearson,

2005. ISBN 978-81-317-0005-1.

  • (^) Operating Systems Internals and Design

Principles , 6th^ Edition, by William Stallings

Course Outline

  • (^) Introduction to System Programming
  • (^) Interrupt Mechanism
  • (^) Interrupts Description
  • (^) Use of ISR’s for Library Function
  • (^) Interrupt Interception
  • (^) Timer & Keyboard Interrupt Program
  • (^) EOI Code for Slave IRQ
  • (^) Microprocessor Signals
  • (^) Registers
  • (^) Parallel Ports (PPI)
  • (^) Direct Parallel Port Programming
  • (^) DMA Modes
  • (^) Types Of Serial Communication
  • (^) Static and Dynamic Libraries:
  • (^) Process Environment
  • (^) Memory management 7

What is System Programming? Application Programming System Programming Input Process Output

Means of Input Output Programmed input output Interrupt driven Direct Memory Access

Other

Processing

Computation

for I./O

I/O

Programmed I/O

Time

DMA Controller

I/O device

I/O controller

CPU

I/O control signals Buffering Error Correction and Detection

DMA Driven I/O

I/O

DMA

CPU

Register

Main Memory

  1. Input/Output Interrupts
    • from I/O controller, (Normal IO operation, IO Error)
  2. Hardware failure Interrupt
    • e.g. memory parity error (error in data) Interrupts

Interrupt Controller

  • (^) Handles the Priorities among hardware interrupt

Program Timing (Short I/O Wait)

Program Timing (Long I/O Wait)