Documente Academic
Documente Profesional
Documente Cultură
•RS-232/RS-422/RS-485 (Recommended
standard) are standard interface approved by
the Electronic Industries Association (EIA) for
connecting serial devices.
•used when large amounts of data must be transferred very quickly from
one location to the other.
•
•Synchronous transmission synchronizes transmission speeds at both
the receiving and sending end of the transmission using clock signals
built into each component.
Chat Rooms,
Telephonic
Examples Email, Forums, Letters
Conversations, Video
Conferencing
RS-232
•(Recommended standard-232) is a standard interface approved by the
Electronic Industries Association (EIA) for connecting serial devices.
• RS-232 is a standard that describes the physical interface and protocol
for relatively low-speed serial data communication between computers
and related devices.
•RS-232 is the interface that your computer uses to talk to and exchange
data with your modem and other serial devices
•The RS-232 standard includes one transmit wire , one receive wire and
single reference ground for transmit ,receive and all hardware control
signal
•It is used for inexpensive relatively slower communication for short
distances
• RS232 / V24 was found in many areas from computers to remote
terminals and many more, although its use is now decreasing as
Ethernet and other standards take its place.
•The interface is intended to operate over distances of up to 15 meters
•The maximum Data rates for RS-232C is 19.2 k baud or bits per second
Lines and their usage
•There are four types of line defined in the RS232 specification. They are
Data, Control, Timing and Ground.
Secondary lines
•There are two types of lines that are specified in the RS-232
specification.
a) Primary channels lines b) Secondary channels lines
• Primary channels lines are normally used, and operate at the normal
or higher data rates.
•there is also provision for a secondary channel for providing control
information.
•secondary channel lines send data at a much slower rate than the
primary channel.
•As the secondary lines are rarely used or even implemented on
equipment, manufacturers often use these connector pins for other
purposes
Grounding
•The ground connections are of two types
a) Protective ground b) Signal ground
• Protective ground ensures that both equipments (DTE & DCE)are at
the same earth potential Useful when there is a possibility that
either equipment is not earthed
•The signal ground is used as the return for the digital signals travelling
along the data link.
•To synchronies the receiver for incoming data logic 0 is sent as start bit
•This is followed by the data itself which is normally seven or eight bits
•Data on RS232 is normally sent using ASCII (American Standard Code
for Information Interchange).other codes including the Murray Code or
EBCDIC (Extended Binary Coded Decimal Interchange Code) can be used
equally well.
•After the data a parity bit is sent. Parity can be even or odd parity. This
is used to check the correctness of the received data and it can indicate
whether the data has an odd or even number of logic ones.
•Finally a stop bit is sent which is normally one bit long and is used to
signify the end of a particular byte.
RS232 Handshaking
•In order that data can be exchanged on an RS232 link, the control
signals must indicate that the equipment at either end of the link is
ready to send the data and ready to receive the data. To achieve RTS ,
CTS, and DTR lines are used.
•These lines are found in the Data Terminal Equipment, DTE and Data
Communications Equipment DCE
•At the end of the transmission, DTR and RTS are pulled to the OFF state
and then the DCE pulls the CTS line to the OFF state
RS-232 Pinouts: pin connections & connectors:
•The correct connection of the various pins used for an RS232 data link
are key to the operation of the system.
•Knowing the RS232 pinouts, or pin connections, and being able to make
the required links enables the handshaking to operate correctly and the
data to flow smoothly.
•the RS232 standard does not define a connector, the 9 way and 25 way
D-type connectors are very popular and provide an excellent format.
RS232 on DB25 (25-pin D-type connector)
•In DB-25 connector most of the pins are not needed for normal PC
communications
• most new PCs are equipped with male D type connectors having only 9
pins.
•Using a 25-pin DB-25 or 9-pin DE-9 connector, computer normal cable
limitation of 50 feet can be extended to several hundred feet with high-
quality cable.
• RS-232 defines the purpose and signal timing for each of the 25 lines;
however, many applications use less than a dozen.
•The standardized pin out for RS-232 on a DB25 connector, as shown
below
RS232 on DB9 (9-pin D-type connector):
• The RS232 smaller 9 pin configuration with a 9 way D-type connector is
used in many applications as it provides size and cost benefit compared
to 25way D-type connector.
• Also the RS232 9pin configuration is quite sufficient in most
circumstances because many of the lines available for RS232 25 pin
configuration signaling are rarely used.
•The standardized pinout for RS-232 on a DE9 connector, as shown
below
RS232 on RJ-45
•RJ-45 (Registered Jack-45) is an eight-wire connector used commonly to
connect computers onto local-area networks (LAN),especially Ethernets.
•RJ-45 is a single-line jack for digital transmission over ordinary phone
wire, either untwisted or twisted.
•The interface has eight pins or positions.
Signal Description
•TxD(Transmit data) - This pin carries data from the computer to the
serial device
•RXD(Receive data): - This pin carries data from the serial device to the
computer
•DSR: - Similarly to DTR, Data set ready (DSR) is an indication from the
Dataset that it is ON.
•DCD: - Data Carrier Detect (DCD) indicates that carrier for the transmit
data is ON.
•RTS(Request to send): - This pin is used to request clearance to send
data to a modem.
The Carrier Detect (CD) and the Ring Indicator (RI) lines are only
available in connections to a modem. Because most modems transmit
status information to a PC when either a carrier signal is detected (i.e.
when a connection is made to another modem) or when the line is
ringing, these two lines are rarely used.
Limitations of RS-232
•Firstly, the interface presupposes a common ground between the DTE
and DCE. Which may not be true with longer lines and connections
between devices that may be on different electrical busses
•A signal on a single line is impossible to screen effectively for noise due
to internally generated noise
•As the baud rate and line length increase, the effect of capacitance
between the cables introduces serious crosstalk until a point is reached
where the data itself is unreadable
•Crosstalk can reduce by using low capacitance cable and by controlling
of slew rate in the signal (i.e., making the signal more rounded rather
than square)
•RS 232 was designed for communication of local devices, and supports
one transmitter and one receiver
•Each signal wire shares a common ground which limits the length of
the cable - about 30 to 60 meters maximum
RS422 and RS485:
•When communicating at high data rates, or over long distances in real
world environments, single-ended methods are often inadequate.
Differential data transmission (balanced differential signal) offers
superior performance in most applications. EIA has released new serial
interface, RS-422 and RS-485. These standards are designed for high
speed communication.
RS422:
Step 5 – Clearing
After data transmission from both the sides, both computers deactivates
their request to send circuits, the modems turn off their carrier signals,
their received line signal detectors and their clear to send circuits
•A null modem provides the DTE-DTE interface without DCEs by cross
connecting the data transmission wires of the two DTEs
•Pin 2 of the first DTE connected to pin 3 of the second DTE and pin 2 of
the second DTE is connected to pin 3 of the first
•Null modem can be a length of a cable or a device
•Null modem has female connectors at both ends to allow it to connect
to the EIA-232 DTE ports which male.