L-6 Peripheral Interface
L-6 Peripheral Interface
L-6 Peripheral Interface
INTERFACING
RS-232C
Arpita howlader
Dept of Computer & Communication Engineering
Patuakhali Science and Technology University
2
CCE- 321 (Computer Peripheral and Interfacing)
Serial communication example
• Rs-232
– Standard for serial communication transmission of data that abbreviated
from recommend standard number 232 and c is the latest revision of
the standard. Used to connect printer, data storage
– Although serial transmission only one wire is used for data transfer but rs-
232 cable can theoretically accommodate 25 wires but most of these pins
are not needed for normal pc communications
– New PCs are equipped with male d type connectors having only 9 pins.
• Rs-423
– Rs-423 is replacement of the older rs-232 serial communication
– Defines a UNI-directional interface between one transmitter and many
receivers.
– Rs-423 allows for distances up to 4000 feet but it is limited data transfer
rates of 100 kb/sec.
3
CCE- 321 (Computer Peripheral and Interfacing)
Examples of parallel communication
• Conventional PCI
– Conventional PCI (peripheral component interconnect) is a computer
port for attaching different hardware devices in a computer.
– Include a full plug-and-play capability. This means the computer bios
or operating system can determine the resource requirements
– Adding PCI cards upgrade computer because helps to add better video
cards, faster wired or wireless networking
– 32bit, 33MHz PCI standard was capable of sending and receiving data at
a rate of 133Mbps.
– 64bit, 66MHz is an upgraded standard that supports a faster data
transferring rate at a frequency up to 533 MHz.
– PCI data security standard designed to build and maintain secure network
, protect cardholder data, monitor and test networks
4
CCE- 321 (Computer Peripheral and Interfacing)
Examples of parallel communication
• Industry standard architecture (ISA)
– ISA stand for industry standard architecture is a type of bus used in PCs
for adding expansion cards. Used to add extra serial port
– Isa slot is used for video card, a network card, or an extra serial
port. ISA ports were replaced by faster PCI and AGP and PCI-E slots.
• Parallel ATA
– PATA short for parallel (Advanced Technology Attachment) is an
interface standard for the connection of storage devices such as hard
disks, solid-state drives, and CD-ROM drives in computers.
– PATA was only called ATA, renamed when serial ATA (SATA) standard
came which uses only a few wires and cheaper connectors and cables,
and it transfers data much faster than ATA
– Normally PATA cable connected form IDE to pc board which is called
IDE (Integrated Drive Electronics) connecter and other to storage device
for example hard disk.
5
CCE- 321 (Computer Peripheral and Interfacing)
Examples of parallel communication
• IEEE 1284
– The IEEE 1284 parallel interface standard is bi-directional parallel
communications between computers and other devices.
– Standard for connecting a computer to a printer or certain other devices
over a parallel (eight bits of data at a time) physical and electrical
interface .
• AGP:
– The Accelerated Graphics Port (AGP) was designed as a high-speed
point-to-point channel for attaching a video card to a computer system
– primarily to assist in the acceleration of 3D computer graphics.
– Designed as a successor to PCI-type connections for video cards.
6
CCE- 321 (Computer Peripheral and Interfacing)
Standards in Serial I/O
• The serial input output technique is commonly used to interface terminals, printers
and modems.
• These peripherals and computers are designed and manufactured by various
manufacturers.
• Therefore, a common understanding must exist among various manufacturing and
user groups that can ensure the compatibility among different equipment's.
• When this understanding is defined and generally accepted in industry, (and by
users), it is known as standard.
• A standard is normally defined by a professional organization (such as IEEE, ITU,
and ISO etc.).
• A standard may include such items as assignment of pin positions for signals,
voltage levels, speed of data transfer, length of cables and other mechanical
specification.
7
CCE- 321 (Computer Peripheral and Interfacing)
RS-232C
• RS-232 is an asynchronous communication protocol and interface that
computer used to connect and exchange or transfer a single byte of data
over a serial cable to other devices.
• In telecommunications, RS-232 is the traditional name for a series of
standards for serial binary single-ended data and control signals
connecting between DTE (data terminal equipment) and DCE (data
circuit-terminating equipment, originally defined as data communication
equipment).
• It is commonly used in computer serial ports.
• The standard defines the electrical characteristics and timing of signals,
the meaning of signals, and the physical size and pin out of connectors.
• Standard feature of a personal computer, used for connections to modems,
printers, mice, data storage, uninterruptible, and other peripheral
devices.
9
CCE- 321 (Computer Peripheral and Interfacing)
Block Diagram of RS-232C
• In serial I/O, data can be transmitted either as current or voltage. When data are
transmitted as voltage, the commonly used standard is known as RS-232C.
– It is defined in reference to DTE and DCE.
– However, its voltage levels are not compatible with TTL logic levels.
– The rate of data transmission in RS-232C is restricted to a maximum of 20
kilo baud rate and a distance of 50 feet.
– For high speed data transmission, new standards are RS-422A and RS-423A,
however, they are not yet widely used.
– RS-232C has 25-pin connector and its signals. The signals are divided into four
groups. They are
• Data signals
• Control signals
• Timing signals
• Ground
10
CCE- 321 (Computer Peripheral and Interfacing)
Block Diagram of RS-232C
– For data lines, the voltage level from +3V to +15V are defined as logic 0 and
from -3V to -15V is defined as logic 1.
– However, other signals (control and timing) are compatible with TTL levels.
Because of incompatibility of the data lines with the TTL logic, voltage
translators are used called line drivers and line receivers are required to
interface TTL logic with RS-232C signals.
– The line driver MC 1488 converts logic 1 into approximate -9V and logic 0
into +9V.
– Before it is received by DCE, the line receiver MC 1489 converts into TTL
compatible logic.
– The reason behind converting low voltages into higher level is the
development of RS 232C prior to TTL logic and also due to noise margin.
11
CCE- 321 (Computer Peripheral and Interfacing)
RS-232C connection
• In 8251A (USART), we discussed how serial communication takes place. The
TTL signals output by a USART, however, are not suitable for transmission
over long distances, so these signals are converted to some other form to be
transmitted.
• In this section we discuss device used to send serial data signals over long
distances.
– RS232 is the most widely used serial I/O interfacing standard.
– However the I/O voltage levels are not TTL compatible. In the RS232, a
1bit is represented by –3 to –25 V, while 0 bit is +3 to +25 V, making –3 to
+3 undefined.
– For this reason, voltage converter such as MC1488 and MC1489 are used to
convert the TTL logic levels to the RS232 voltage levels and vice versa. See
Figure below.
• These lines are found in the Data Terminal Equipment, DTE and Data
Communications Equipment, DCE as follows:
• This series of handshake controls was devised to allow the DTE to request control
of the communications link from the related modem, and then to let the modem
inform the terminal equipment that the control has been acquired. In this way the
communications will only take place when both ends of the link are ready.
END
INPUT / OUTPUT
26
CCE- 321 (Computer Peripheral and Interfacing)