Вы находитесь на странице: 1из 16

DEPARTMENT OF TECHNICAL EDUCATION

ANDHRA PRADESH
Name : K.Suguna
Designation : Lecturer
Branch : Computer Engineering
Institute : GPT, Anantapur
Year/Semester: III - Semester
Subject : Computer Architecture
Subject Code : CM-303
Topic : I/O Organization
Duration : 50 mints
Sub Topic : Interrupt initiated I/O
Teaching Aids : ppt, Animations
CM303.56 1
RECAP

In the last class, you have learnt about

• Different modus of data transfer

• Programmed I/O method of data transfer

CM303.56 2
Objective

On completion of this class you would be able to


understand

• Interrupt initiated I/O of data transfer

CM303.56 3
Drawbacks of Programmed I/O

• In programmed I/O, the CPU stays in a


program loop until I/O indicates ready
• It is a time-consuming process
• It keeps the processor busy needlessly

This can be avoided by using an Interrupt facility

CM303.56 4
Interrupt Initiated I/O

• Instead of continues monitoring at CPU


interface inform when data ready

• Uses interrupts

CM303.56 5
Interrupt Initiated I/O
Contd..

• CPU deviated from current program and take care


of data transfer

-Save return address from program counter to


stack
-Then control branches to service routine
Non vectored interrupts
Vectored interrupts

CM303.56 6
Interrupt Initiated I/O

• After completing I/O transfer, it returns back to


previous program

CM303.56 7
Non vectored interrupt

In this branch address is assigned to a fixed


location in memory

CM303.56 8
Vectored interrupt

• In this the interrupting source itself


supplies the branch information to CPU

CM303.56 9
Sequence of events in interrupt I/O
• Interrupt request
• Interrupt acknowledge
• Status saving
• Device identification
• Peripheral service
• Restore CPU status
• Resume main task
CM303.56 10
Main program ISR
(Interrupt service routine)

interrupt
i

i+1

CM303.56 11
Summary

At the end of this class the student will be able


to understand

• Interrupt initiated I/O

CM303.56 12
Quiz
1. In non vectored interrupt the branch address is
assigned to
a. any location in memory
b. fixed location in memory
c. none of the above

CM303.56 13
2. ISR means
a. interrupt source routine
b. Interface source route
c. Interrupt service routine

CM303.56 14
3. After completing ISR, control will
a. return to main program
b. not return
c. none of the above

CM303.56 15
Frequently Asked Questions

1. Explain interrupt initiated I/O

CM303.56 16

Вам также может понравиться