Professional Documents
Culture Documents
YH Microprocessors-5 Input Output - 0
YH Microprocessors-5 Input Output - 0
Yashar Hajiyev
Azerbaijan Caucasus University
1
2
3
4
Input/Output (I/O) Instructions
5
6
➤ Network ports — are used to connect a computer to a computer network via a networking
cable—typically a cable using an RJ-45 connector, — similar to telephone connector but is
larger ;
➤ USB ports — to connect USB devices ( keyboards, mice, printers, hard drives, and digital
cameras) to computer via USB connector.
Multiple USB devices can connect to single USB port via a USB hub,
Mini -USB ports or micro-USB ports are often included on mobile devices instead of
full-sized USB port. ;
➤ IrDA (Infrared Data Association) ports and Bluetooth ports are used to receive wireless
transmissions from devices;,
These ports do not use a plug.
IrDA ports are commonly used to “beam” data from a portable computer or mobile device to
a computer.
➤Bluetooth ports are most often used with wireless keyboards, mice, and headsets.
7
➤ Flash memory card slots — ➤ are used to connect flash memory
cards or other hardware using a flash memory card interface. Some hardware for
portable computers is designed to connect using these slots;
➤SATA — ( Serial ATA ) - hardware interface for peripheral devices that supports
both SATA and PCI Express (PCIe). SATA hard disk drives could transfer data at
maximum (not average) rates of up to 157 MB/s.
10
I/O architecture of Computer Systems
12
I/O architecture of Computer Systems
13
BUS Structure
• Processor:
♦ reads in instructions and data, writes out
data after processing;
♦ uses control signals to control the overall
operation of system;
♦ receives interrupt signals;
• I/O to processor: The processor reads data from an I/O device via an I/O
module.
• Processor to I/O: The processor sends data to the I/O device.
15
The most common of I/O chips are either Parallel
Input/Output (PIO), Serial I/O (UART, or Universal Asynchronous
Receiver/Transmitter), CTC (Counter Timer Circuit) and FDC(Floppy Disk
Controller).
17
Input/Output (I/O) modules for MP
I/O → is 3rd key elements of MP system (after MP and set of memory modules)
and it provides Operational System with info to manage associated external
devices.
Interrupt-driven I/O → programs issues I/O commands, and then input/output operation occurs
under continuous control of program requests.
Until signal of end of I/O operation;
Direct memory (DMA) access I/O → specialized I/O microprocessor directly controls of I/O
operations to move large data volume.
18
19
20
22
Input/Output (I/O) architecture of Computer Systems II
23
Input/Output (I/O) architecture of Computer Systems II
24
Keyboard/monitor interaction arrangement
“K” → 1001011
26
IRA Control Characters
27
IRA Control Characters
28
Input/Output (I/O) Modules
I/O module – coordinates – the flow of traffic between internal recourses and
external devices;
– sharing of memory and system bus among number of activities;
Data → are exchanged between I/O module and MP through data bus.
30
Input/Output (I/O) Modules
Principles of I/O Hardware
I/O modules →
Presenting high
level interface to
MP → is called I/O
channel or I/O
processor.
Primitive I/O – is
called I/O controller;
or device controller
With Programmed I/O → MP issues a program that gives full control over I/O module
operations Data transferred to/from I/O module sensing device status, sending a
read/write command, transferring data.
Interrupt driven I/O → MP is interrupted by I/O module.
Direct memory access I/O → MP doesn’t involved in data exchange between I/O and
memory modules.
34
Memory-Mapped I/O (1)
38
Input/Output (I/O) Instructions
40
Input/Output (I/O) Instructions
41
Programmed Input/Output (I/O)
44
Configuration of system of Interrupt-Driven
Input/Output (I/O)
Two design issues for Interrupt driven I/O module 1.How does processor deterermine
which device issued interrupt;
2. If multiple Interruption signals → how decide which to proceed?
Multiple interrupt lines between MP and I/O; in practice each line several
attached I/O modules.
Software poll (time consuming) determine which I/O module causes interrupt
MP raises TESTI/O command and places address code of device on address bus. I/O
contains addressable status register. Positive signal comes to MP from active I/O.
MP reads status signal and branches to device specific service program;
Daisy chain (hardware poll, vectored) When MP senses interrupt signal, it sends
signal through Interrupt acknowledge line is daisy chained through all I/O modules.
Signal propagates through all I/O and gets to requested module.
That module responds by placing word (vector) (address codes) on data bus.
After MP sends address codes of active device → vectored interrupt
45
46
Intel 82C55 Programmable Peripheral Interface
47
Intel 82C55 Programmable Peripheral Interface
Keyboard → 8 bits of input. Two of this bits Shift and Control have special
meaning to the keyboard-handling program executing in the processor.
48
Direct Memory Access
49
Intel 8237 DMA Controller
50
I/O Channel Architecture
51
52
53
54