Professional Documents
Culture Documents
8.U-I. Input Output and Interrupt and RISC, CISC Characteristics
8.U-I. Input Output and Interrupt and RISC, CISC Characteristics
8.U-I. Input Output and Interrupt and RISC, CISC Characteristics
Topic: 8
FGO
Receiver OUTR
Printer
Interface
AC
Transmitter
Keyboard INPR
Interface
FGI
FGI is set to 1 when a new information is available in the input device and
is cleared to 0 when the information is accepted by the computer.
Output Register
FGO: 1-bit output flag used as a control flip-flop to control the output
operation
If FGO is set to 1, then this means that the computer can send out the
information from AC. If it is 0, then the output device is busy and the
computer has to wait!
− The computer checks the flag bit; if it is 1, the information from INPR
is transferred in parallel into AC and FGI is cleared to 0.
− Once the flag is cleared, new information can be shifted into INPR by
the input device (striking another key)
Input and output instructions are executed with the clock transition
associated with timing signal T3.
The computer keeps checking the flag bit, and when it finds it set, it initiates
an information transfer (this is sometimes called Polling).
The interrupt facility can be enabled or disabled via a flip-flop called IEN
The interrupt enable flip-flop IEN can be set and cleared with two
instructions (IOF, ION):
=1
=1 IEN0
FGI
R0
=0
=1
FGO
R1 =0
0 0 256
1 0 BUN 1120 PC=1 0 BUN 1120
1120 1120
I/O I/O
Program Program
Figure
1 BUN 0 Demonstration 1 BUN 0
of the interrupt
a) Before Interrupt cycle. b) After Interrupt Cycle
Topic: 9