Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
UNIT-6
PERIPHERALS
I/O Subsystem
Provides an efficient mode of communication between the central system and the
outside environment
3) Data codes and formats in peripherals differ from the word format in the
CPU and Memory
4) The operating modes of peripherals are different from each other
Each peripherals must be controlled so as not to disturb the operation of other
peripherals connected to the CPU
Interface
I/O Bus
Data lines
Address lines
Control lines
Address
Control
Interface
Interface
Interface
Interface
Keyboard
and
display
terminal
Printer
Magnetic
disk
Magnetic
tape
I/O COMMAND
CONTROL
A Control
command is
issued to
activate the
peripheral and
to inform it
what to do.
EX :Magnetic Tape
STATUS
To test various
conditions in the
interface and the
peripheral. Ex.
Computer check
the status of the
peripheral before
a transfer is
initiated
DATA I/P
The interface
receives an
item of data
from the
peripheral and
places it in its
buffer register.
DATA
OUTPUT
The interface
to respond by
transferring
data from the
bus into one
of its registers
Memory Unit
Memory Bus
CPU
P
D
P
D
P
D
IOP
I/O BUS
P
D
Motorola
3) Use one common bus for memory and I/O with common control lines :
Memory Mapped I/O
MOV or LD : I/O and Memory read/write Instruction
* Control Lines
Read/Write
Chip select
Register select
I/O read
Bus
buffers
RS
1
RS
0
RD
I/O write
Timing
and
Control
WR
To CPU
RS
0
Port A register
Port B register
Control register
Status register
I/O data
Port B
register
I/O data
Control
register
Control
Status
register
Status
To I/O device
RS
1
CS
Port A
register
CS
Internal bus
Bidirectional
Register selected
None : data bus in high-impedance
4 I/O port :
Data port A, Data port B, Control, Status
Address Decode :
CS, RS1, RS0
Control signal to
indicate the time at
which data is being
transmitted
HANDSHAKING
The unit receiving the data
item responds with another
control signal to
acknowledge receipt of the
data.
TIMING DIAGRAM
Strobe Control
Strobe pulse is controlled by the clock pulses in the CPU.
CPU -always control of the buses and informs the external units how to transfer data.
Data transfer between an interface and an I/O device is commonly controlled by a set
of handshaking lines
Data bus
Source
unit
Strobe
Data bus
Destination
unit
Source
unit
Data
Valid data
Strobe
Strobe
(a) Block diagram
Data
Valid data
Strobe
(b) Timing diagram
Source-initiated strobe
Destination-initiated strobe
Destination
unit
Data bus
Data valid
Source
unit
Destination
unit
Data valid
Source
unit
Data accepted
Destination
unit
independent units
Data bus
Data
Valid data
Data valid
Data valid
Data accepted
Data bus
Valid data
Destination unit
Source unit
Destination unit
Ready to accept
data.
Enable ready for data
Cycle Diagram
Add Your Text
Text
Text
Text
Cycle name
Text
Text
Table
TEXT
Title A
Title B
Title C
Title D
Title E
Title F
TEXT
TEXT
TEXT
TEXT
TEXT
TEXT
TEXT
TEXT
TEXT
Marketing Diagram
Title
TEXT
TEXT
TEXT
TEXT