0% found this document useful (0 votes)
11 views14 pages

Interface COA

Uploaded by

Adithyan Cp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views14 pages

Interface COA

Uploaded by

Adithyan Cp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

I/O INTERFACE

S.DEVADHARSHNI
21MTCS04
2ND M TECH COMPUTER SCIENCE AND ENGINEERING
CONTENT

 Introduction
 Ports and its types
 Parallel port
 Input parallel port
 Output parallel port
 Serial port
INTRODUCTION

 An I/O interface is transferring the data between an internal and external


source .
 Peripheral devices cannot communicate directly with CPU
REASON:
• Peripheral devices are mechanical devices whereas CPU is an electronic
device . Communication cannot be made directly from a mechanical device
and an electronic devices.
SOLUTION:
• To resolve the difference between peripheral devices and CPU , an interface
acts as an intermediate.
PORT & ITS TYPES

 PORT:
 It is a point at which an external devices attach to computer
system.
 It always send the data to an external devices and receive data
from an external device.
 TWO TYPES OF PORT:
 Serial port
 Parallel port
PARALLEL PORT

 It allows multiple bits to be transmitted


simultaneously.
 EXAMPLE: Printer
 It is classified in two:
 Input parallel port
 Output parallel port
INPUT PARALLEL PORT
INPUT PARALLEL PORT

 One side of the interface is connected with the BUS signals.


 The other side the interface is connected with the data path from an
external devices( Keyboard).
 Whatever the character is pressed in Keyboard is converted to an ASCII
code by an Encoder and debouncing circuit.
 Valid is signal that set to 0 or 1 when a key is pressed.
 The data is loaded to data interface (DATA IN) in input interface and set
SIN to 1.
 DATA IN: It is a buffer that stores the data.
 SIN: It is a status signal or status flag
INPUT PARALLEL PORT

 When the data is sent to processor then SIN is set to 0.


 Address tells the processor from where the data has come from.
 R/w signals were sent while reading and writing the data from processor to
input interface.
 Communication between processor and an input interface is done using the
handshake signals I . e,
 Master-ready signal: Signal sent from a processor to an input interface. Input
interface receive signal and send data to processor.
 Slave-ready signal: Signal sent from input interface to processor . Processor
receive signal and send data to input interface.
OUTPUT PARALLEL PORT
OUTPUT PARALLEL PORT

 One side of the interface is connected with the BUS signals.


 The other side the interface is connected with the data path from an
external devices( Printer).
 Valid signal is sent to printer to check the data is sent to a valid printer
or not.
 During process , printer send a Idle signal to processor about its status.
 An output interface consists of DATA OUT and SOUT flag.
 SOUT is set to 1 when a printer is ready to accept a data.
 SOUT is set to 0 when a new data is loaded into DATAOUT.
SERIAL
PORT
SERIAL PORT

 A serial port is used to connect the processor to I/O devices that require
transmission of data one bit at a time.
 KEY FEATURE:
 It is capable of communicating in a bit-serial on the device side and bit-
parallel on a bus side.
 A block diagram includes DATAIN and DATAOUT register.
 The input shift register accepts bit serial input (8 bits)from I/O device.
 When all the 8 bits of data have been received , the content of this shift
register are loaded in parallel into the DATAIN register.
 The output data in the DATAOUT register are loaded into output shift
register . The bits are shifted out and sent to the I/O port.
SERIAL PORT

 The status flag SIN and SOUT serve similar function.


 SIN flag is set to 1, when new data are loaded in DATAIN.
 SIN set to 0, when the processor reads the contents of DATAIN.
 SOUT flag indicates whether the output buffer is available.
 SOUT set to 0, when the processor writes new data into the
DATAOUT register.
 SOUT set to 1 , when data are transferred from DATAOUT into
the output shift register.
THANK YOU

You might also like