Lecture 9
Lecture 9
ORGANIZATION
Dr. Zahraa Salaheldin Ismail
Lecture 9:
1. Input-Output Configuration
2. Interrupt Program
3. Complete Computer Description
4. Control Signals
Input-Output Configuration
INPUT-OUTPUT CONFIGURATION
INPUT-OUTPUT AND INTERRUPT
INPUT-OUTPUT CONFIGURATION
▪FGI = 1 if there is an input character (INPR is full) (CPU can read the input)
(User can’t enter another character in the keyboard))
▪FGO = 1 if the output Register (OUTR) is empty (CPU can out data) (No data to be
printed)
INPUT-OUTPUT INSTRUCTIONS
INPUT-OUTPUT CONFIGURATION
INPUT-OUTPUT CONFIGURATION
PROGRAM CONTROLLED PROCEDURE
PROGRAM CONTROLLED PROCEDURE
PROGRAM CONTROLLED DATA TRANSFER
INTERRUPT PROGRAM
❑Using the programmed controlled procedure, CPU slowed down due to I/O low speed.
o If there is an instruction wait for the input data. Or there is an instruction to wait for the OUTR to be
empty to write output data.
o The computer is wasting time while checking the flag instead of doing some other useful processing
task.
▪ An alternative is Interrupt.
▪ While the computer is running a program, it does not check the flags. However, when a flag is set, the computer is
momentarily interrupted from proceeding with the current program and is informed of the fact that a flag has been set.
The computer deviates momentarily from what it is doing to take care of the input or output transfer. It then returns to
the current program to continue what it was doing before the interrupt.
INTERRUPT PROGRAM