Académique Documents
Professionnel Documents
Culture Documents
SCSI
Small Computer System Interface
Set of standards for physically connecting and transferring data
between subsystem of peripheral devices and system bus
Seven devices
SCSI bus controller
o Expansion card: Host adapter
o Embedded on motherboard
SCSI is the most popular interface for connecting high speed disk
drives to higher performance PCs, such as workstations or
network servers.
The SCSI controller (host adapter) functions as the gateway
between the SCSI bus and the PC bus.
The SCSI bus does not talk directly with devices, such as hard
drives; instead, it talks to the controller that is built in to the drive.
Parameter
No.of bits
Differential ended
SCSI cable
16 bits
No.of pins
25 pins
68 pins
Cable Length
6 Meters
25 Meters
Noise Immunity
Medium
Good
Chapter 6:----INTERFACES
Chapter 6:----INTERFACES
SCSI drive
Chapter 6:----INTERFACES
SCSI 2
10 MHz
16 bit
Command queuing
New commands
50 pin cable
High voltage differential transmission for longer bus length
SCSI-3
Chapter 6:----INTERFACES
SCSI Cables
External Cables
Internal cable
Chapter 6:----INTERFACES
SCSI Connectors
External connector types:1.D-Shell (D-Sub , DD) SCSI-1 defined a 50 pin D-Shell connector
D-shaped metal shell that goes around the pins on the half of the connector
2. Centronics
50-pin connector
two rows of flat contacts are used
two latches on both side used to hold connector in plat
Centronics latch-style connectors for external connectors.
also called Alternative 2 external connector
Chapter 6:----INTERFACES
3. High Density(HD)
The SCSI-2 revision added a high-density,50-position, D-shell connector
which are now called Alternative 1.
Space between pins are reduced
Smaller , cheaper and easier to use
68 pin version called Alternative 3
Chapter 6:----INTERFACES
2. High Density:
SCSI-2 defined two new connector types, which are both called high
density because their pin spacing is half that of the older SCSI-1 connectors,
making them much smaller. These are the most common SCSI connectors
used today within the PC box. The narrow, 50-pin version is unshielded
connector "Alternative 1" and the 68-pin version is "Alternative 3".
Chapter 6:----INTERFACES
Chapter 6:----INTERFACES
through terminators also are commonly used in internal installations in
which the device does not have built-in terminating resistors.
Pass-through models are required when a device is at the end of the bus
and only one SCSI connector is available.
Representation of a SCSI bus with several devices attached. In this case, the
host adapter is at one end of the bus and a CD-ROM drive is at the other.
For the bus to work properly, those devices must be terminated, whereas
the others do not have to be.
10
Chapter 6:----INTERFACES
an external terminator module most likely will have to be plugged into the second (outgoing) SCSI port
to provide proper termination at that end of the bus
11
Chapter 6:----INTERFACES
12
Chapter 6:----INTERFACES
13
Chapter 6:----INTERFACES
USB
14
Chapter 6:----INTERFACES
The Universal Serial Bus gives you a single, standardized, easy-to-use way to
connect up to 127 devices to a computer.
USB better than RS232 serial port in several aspects: Easy installation
Fast transfer rate
Simple cabling
Multiple device connection.
15
Chapter 6:----INTERFACES
Connectors
A" connectors head "upstream" toward the computer.
Cables
Maximum length of standard USB cable is 5 meters.
Primary reason for this limit is the maximum allowed Round trip delay of
about 1500ns.
If USB device does not answer to host commands within the allowed
time the host considers command to be lost.
Maximum delay caused by single cable turns out to be 26 ns.
USB 2.0 specification states that delay must be less than 5.2ns per
meter.
16
Chapter 6:----INTERFACES
USB cable
Inside a USB cable: There are two wires for power +5 volts (red) and ground (brown)
and a twisted pair (yellow and blue) of wires to carry the data. The
cable is also shielded.
Name
Cable Color
Description
VCC
RED
+5V
D-
WHITE
DATA-
D+
GREEN
DATA+
GND
BLACK
GROUNG
17
Chapter 6:----INTERFACES
USB Hubs
A hub typically has four new ports ,but may have many more.
You plug the hub into your computer, and then plug your devices (or
other hubs) into the hub.
By chaining hubs together, you can build up dozens of available USB
ports on a single computer.
HUB can be powered or unpowered.
18
Chapter 6:----INTERFACES
USB Process
Enumeration :
When the host powers up, it queries all of the devices connected to the
bus and assigns each one an address. This process is called enumeration.
The host also finds out from each device what type of data transfer it
wishes to perform:
Interrupt - A device like a mouse or a keyboard, which will be sending very
little data, would choose the interrupt mode.
Bulk - A device like a printer, which receives data in one big packet, uses the
bulk transfer mode. A block of data is sent to the printer (in 64-byte chunks)
and verified to make sure it is correct.
Isochronous - A streaming device (such as speakers) uses the isochronous
mode. Data streams between the device and the host in real-time, and there
is no error correction.
USB Features
Host :- The computer acts as the host.
Multiple devices :- Up to 127 devices can connect to the host, either
directly or by way of USB hubs.
USB Cable length :- Individual USB cables can run as long as 5 meters; with
hubs, devices can be up to 30 meters away from the host.
Transfer rate:-With USB 2.0,the bus has a maximum data rate of 480
megabits per second.
Ease of installation :- A USB cable has two wires for power (+5 volts and
ground) and a twisted pair of wires to carry the data.
Power allocation:- USB controller in PC detects the presence or absence of
the USB device and does allocation of electrical power.
o On the power wires, the computer can supply up to 500 milliamps of
power at 5 volts.
19
Chapter 6:----INTERFACES
Low-power devices (such as mice) can draw their power directly from the
bus.
o High-power devices (such as printers) have their own power supplies
and draw minimal power from the bus.
Hubs can have their own power supplies to provide power to devices
connected to the hub.
Hot Swappable :- USB devices are hot-swappable, meaning you can plug
them into the bus and unplug them any time.
Hot Pluggability :- without powering off a PC and
Plug and play feature in the BIOS together with intelligence in the USB
device takes care of detection , device recognition and handling.
Hub architecture
Power saving : -Many USB devices can be put to sleep by the host
computer when the computer enters a power-saving mode.
Supports for wide range of peripherals.
20
Chapter 6:----INTERFACES
Firewire
21
Chapter 6:----INTERFACES
FireWire Specifications
The original FireWire specification, FireWire 400 (1394a), was faster than
USB when it came out. features:
Transfer rates of up to 400 Mbps
Maximum distance between devices of 4.5 meters (cable length)
The release of USB 2.0
in 2002, FireWire 800 (1394b) Transfer rates up to 800 Mbps
Maximum distance between devices of 100 meters (cable length)
The faster 1394b standard is backward-compatible with 1394a.
Feature
USB
FireWire
1.1
2.0
400
800
Data transfer
rate
12 Mbps
480 Mbps
400 Mbps
800 Mbps
Number of
devices
127
127
63
63
Yes
Yes
Yes
Yes
Hot-pluggable
Yes
Yes
Yes
Yes
Isochronous
devices
Yes
Yes
Yes
Yes
Bus power
Yes
Yes
Yes
Yes
Bustermination
required
No
No
No
No
22
Chapter 6:----INTERFACES
RS 232 interface
Developed by Electronics Industries Association (EIA)
--RS recommended Standards
--Serial communication is the most simplistic form of communication
between two devices.
--One important aspect of RS-232 is that it is an asynchronous form of
communication.
--Asynchronous communication is important because it is efficient; if no
data needs to be sent, the connection is idle. No additional CPU overhead
is required for an idle serial line.
23
Chapter 6:----INTERFACES
24
Chapter 6:----INTERFACES
25
Chapter 6:----INTERFACES
Signals
CD
(Carrier detect)
RXD
(Receive data)
TXD
(Transmit data)
DTR( Data
terminal ready)
GND
(Signal ground)
DSR
( Data set
ready)
RTS
(request to
Send)
CTS
(Clear to send)
26
Chapter 6:----INTERFACES
RI
(Ring indicator)
Communication events
Check all h/w at both end computer and serial device , connected properly
, switched on
Configure computer and serial device to use same data,protocol,speed,data
pattern.
Computer :High DTR, device :DSR high
Any telephone call comes, send RI to signal.
Send CD signal to computer.
Computer gives high RTS, serial interface make CTS signal high
Centronic interface
27
Chapter 6:----INTERFACES
28
Chapter 6:----INTERFACES
Signals from PC to printer
-Strobe: the printer should take data when the signal is low.
-INIT: When INT is low , the printer resets its electronics logic and clears
printer buffer.
-SLCTIN : Interface enabled signal, when signal is low Printer responds to
signals from the controller.
-AUTO FEED XT :--after every line the printer will provide one line feed
automatically if this signal is low. Know as hardware line feed.
Signals from printer to computer
-ACK : acknowledge signal for -strobe from printer to pc.
When active , it indicated that printer has received data sent by PC and the
printer is ready to accept next data cycle
Busy: when signal is high , indicates printer can not receive data.
o signal becomes high :
on receiving STROBE.
During printing operation
printer offline state.
printer senses error condition.
PE : high means no paper in printer.
SLCT :logic 1 means device is online . Selected and connected
ERROR:
o mechanical fault.
o printer is offline
o no paper , paper end state.
29
Chapter 6:----INTERFACES
Centronics Handshake
Timing diagram of the Centronics protocol. The signals are transmitted via
specific digital lines provided by the parallel port.
When printer controller send ASCII code to the printer , then after 0.5
micro seconds, it makes STORBE signal low for the period of 0.5 ms.
As soon as STORBE signal becomes low, the printer makes the BUSY signal
high.
When printer is ready to receive the next ASCII data, it makes ACK signal
low.
When ACK signal is made inactive then the printer removes the BUSY signal.
30