Академический Документы
Профессиональный Документы
Культура Документы
ELECTRONICS (HTTPS://CIRCUITDIGEST.COM/ELECTRONICS-PROJECTS)
https://circuitdigest.com/article/rs232-serial-communication-protocol-basics-specifications 1/14
7/20/2019 What is RS232 Serial Communication Protocol? RS232 Basics, Working & Specifications
Serial communication
Parallel communication
Example to understand:
Serial communication – you are shooting a target using machine guns, where bullets reach one by one to the target.
Parallel communication- you are shooting a target using a shotgun, where no. of bullets reach at the same time.
https://circuitdigest.com/article/rs232-serial-communication-protocol-basics-specifications 2/14
7/20/2019 What is RS232 Serial Communication Protocol? RS232 Basics, Working & Specifications
https://circuitdigest.com/article/rs232-serial-communication-protocol-basics-specifications 3/14
7/20/2019 What is RS232 Serial Communication Protocol? RS232 Basics, Working & Specifications
Asynchronous Data Transfer – The mode in which the bits of data are not synchronized by a clock pulse. Clock pulse is a signal used for
synchronization of operation in an electronic system.
Synchronous Data Transfer – The mode in which the bits of data are synchronized by a clock pulse.
Baud rate is used to measure the speed of transmission. It is described as the number of bits passing in one second. For example, if the baud
rate is 200 then 200 bits per Sec passed. In telephone lines, the baud rates will be 14400, 28800 and 33600.
Stop Bits are used for a single packet to stop the transmission which is denoted as “T”. Some typical values are 1, 1.5 & 2 bits.
Parity Bit is the simplest form of checking the errors. There are of four kinds, i.e., even odd, marked and spaced. For example, If 011 is a number
the parity bit=0, i.e., even parity and the parity=1, i.e., odd parity.
What is RS232?
RS232C “Recommended Standard 232C” is the recent version of Standard 25 pin whereas, RS232D which is of 22 pins. In new PC’s male D-type which is of 9
pins.
RS232 is a standard protocol used for serial communication, it is used for connecting computer and its peripheral devices to allow serial data exchange
between them. As it obtains the voltage for the path used for the data exchange between the devices. It is used in serial communication up to 50 feet with
the rate of 1.492kbps. As EIA de nes, the RS232 is used for connecting Data Transmission Equipment (DTE) and Data Communication Equipment (DCE).
https://circuitdigest.com/article/rs232-serial-communication-protocol-basics-specifications 4/14
7/20/2019 What is RS232 Serial Communication Protocol? RS232 Basics, Working & Specifications
RS232 protocol
Universal Asynchronous Data Receiver &Transmitter (UART) used in connection with RS232 for transferring data between printer and computer. The
microcontrollers are not able to handle such kind of voltage levels, connectors are connected between RS232 signals. These connectors are known as the
DB-9 Connector as a serial port and they are of two type’s Male connector (DTE) & Female connector (DCE).
Electrical Specifications
Let us discuss the electrical speci cations of RS232 given below:
Voltage Levels: RS232 also used as ground & 5V level. Binary 0 works with voltages up to +5V to +15Vdc. It is called as ‘ON’ or spacing (high
voltage level) whereas Binary 1 works with voltages up to -5V to -15Vdc. It is called as ‘OFF’ or marking (low voltage level).
Received signal voltage level: Binary 0 works on the received signal voltages up to +3V to +13 Vdc & Binary 1 works with voltages up to -3V to
-13 Vdc.
Line Impedances: The impedance of wires is up to 3 ohms to 7 ohms & the maximum cable length are 15 meters, but new maximum length in
terms of capacitance per unit length.
Operation Voltage: The operation voltage will be 250v AC max.
Current Rating: The current rating will be 3 Amps max.
Dielectric withstanding voltage: 1000 VAC min.
Slew Rate: The rate of change of signal levels is termed as Slew Rate. With its slew rate is up to 30 V/microsecond and the maximum bitrate will
be 20 kbps.
The ratings and speci cation changes with the change in equipment model.
How RS232 Works?
RS232 works on the two-way communication that exchanges data to one another. There are two devices connected to each other, (DTE) Data
Transmission Equipment& (DCE) Data Communication Equipment which has the pins like TXD, RXD, and RTS& CTS. Now, from DTE source, the RTS
generates the request to send the data. Then from the other side DCE, the CTS, clears the path for receiving the data. After clearing a path, it will give a
signal to RTS of the DTE source to send the signal. Then the bits are transmitted from DTE to DCE. Now again from DCE source, the request can be
generated by RTS and CTS of DTE sources clears the path for receiving the data and gives a signal to send the data. This is the whole process through
which data transmission takes place.
TXD TRANSMITTER
RXD RECEIVER
GND GROUND
For example: The signals set to logic 1, i.e., -12V. The data transmission starts from next bit and to inform this, DTE sends start bit to DCE. The start bit is
always ‘0’, i.e., +12 V & next 5 to 9 characters is data bits. If we use parity bit, then 8 bits data can be transmitted whereas if parity doesn’t use, then 9 bits
are being transmitted. The stop bits are sent by the transmitter whose values are 1, 1.5 or 2 bits after the data transmission.
https://circuitdigest.com/article/rs232-serial-communication-protocol-basics-specifications 5/14
7/20/2019 What is RS232 Serial Communication Protocol? RS232 Basics, Working & Specifications
Mechanical Specification
For mechanical speci cations, we have to study about two types of connectors that is DB-25 and DB-9. In DB-25, there are 25 pins available which are
used for many of the applications, but some of the applications didn’t use the whole 25 pins. So, the 9 pin connector is made for the convenience of the
devices and equipments.
Now, here we are discussing the DB-9 pin connector which is used for connection between microcontrollers and connector. These are of two types: Male
Connector (DTE) & Female Connector (DCE). There are 5 pins on the top row and 4 pins in the bottom row. It is often called DE-9 or D-type connector.
https://circuitdigest.com/article/rs232-serial-communication-protocol-basics-specifications 6/14
7/20/2019 What is RS232 Serial Communication Protocol? RS232 Basics, Working & Specifications
What is Handshaking?
How can a transmitter, transmits and the receiver receives data successfully. So, the Handshaking de nes, for this reason.
Handshaking is the process which is used to transfer the signal from DTE to DCE to make the connection before the actual transfer of data. The
messaging between transmitter & receiver can be done by handshaking.
No Handshaking:
If there is no handshaking, then DCE reads the already received data while DTE transmits the next data. All the received data stored in a memory location
known as receiver’s buffer. This buffer can only store one bit so receiver must read the memory buffer before the next bit arrives. If the receiver is not able
to read the stored bit in the buffer and next bit arrives then the stored bit will be lost.
As shown in below diagram, a receiver was unable to read the 4th bit till the 5th bit arrival and this result overriding of 4th bit by 5th bit and 4th bit is lost.
https://circuitdigest.com/article/rs232-serial-communication-protocol-basics-specifications 7/14
7/20/2019 What is RS232 Serial Communication Protocol? RS232 Basics, Working & Specifications
NO handshaking example
Hardware Handshaking:
It uses speci c serial ports, i.e., RTS & CTS to control data ow.
In this process, transmitter asks the receiver that it is ready to receive data then receiver checks the buffer that it is empty, if it is empty then it
will give signal to the transmitter that I am ready to receive data.
The receiver gives the signal to transmitter not to send any data while already received data cannot be read.
Its working process is same as above described in handshaking.
Software Handshaking:
In this process, there are two forms, i.e., X-ON & X-OFF. Here, ‘X’ is the transmitter.
X-ON is the part in which it resumes the data transmission.
X-OFF is the part in which it pauses the data transmission.
It is used to control the data ow and prevent loss during transmission.
Applications
RS232 serial communication is used in old generation PCs for connecting the peripheral devices like mouse, printers, modem etc.
Nowadays, RS232 is replaced by advanced USB.
It is also used in PLC machines, CNC machines, and servo controllers because it is far cheaper.
It is still used by some microcontroller boards, receipt printers, point of sale system (PoS), etc.
https://circuitdigest.com/article/rs232-serial-communication-protocol-basics-specifications 8/14
7/20/2019 What is RS232 Serial Communication Protocol? RS232 Basics, Working & Specifications
RELATED CONTENT
(/tutorial/serial-communication-protocols)
Email Address *
Name
Country
United States of America
Subscribe
PREVIOUS POST
Diodes: PN Junction, Types, Construction and Working (https://circuitdigest.com/article/what-is-diode-types-working-pn-junction-
theory)
NEXT POST
PID Controllers: Working, Structure and Tuning Methods (https://circuitdigest.com/article/what-is-pid-controller-working-structure-
applications)
COMMENTS
https://circuitdigest.com/article/rs232-serial-communication-protocol-basics-specifications 9/14
7/20/2019 What is RS232 Serial Communication Protocol? RS232 Basics, Working & Specifications
LOG IN (/USER/LOGIN?DESTINATION=NODE/1519%23COMMENT-FORM) OR REGISTER (/USER/REGISTER?
DESTINATION=NODE/1519%23COMMENT-FORM) TO POST COMMENT
TI TRAINING VIDEOS
(https://ad.doubleclick.net/ddm/clk/444522653;248030201;q?
https://training.ti.com/electrical-fundamentals-and-need-power-systems-protection?HQS=corp-uni-null-powersys-asset-tr-
CircuitDigest-in&DCM=yes &https%3A%2F%2Ftraining.ti.com%2Felectrical-fundamentals-and-need-power-systems-
protection%3FHQS=corp-uni-null-powersys-asset-tr-CircuitDigest-in&DCM=yes_)
Electrical Fundamentals and Need for power systems protection (https://ad.doubleclick.net/ddm/clk/444522653;248030201;q?
https://training.ti.com/electrical-fundamentals-and-need-power-systems-protection?HQS=corp-uni-null-powersys-asset-tr-
CircuitDigest-in&DCM=yes &https%3A%2F%2Ftraining.ti.com%2Felectrical-fundamentals-and-need-power-systems-
protection%3FHQS=corp-uni-null-powersys-asset-tr-CircuitDigest-in&DCM=yes_)
(https://ad.doubleclick.net/ddm/clk/444524564;248030201;t?https://training.ti.com/intro-
mmwave-sensing-fmcw-radars-module-1-range-estimation?cu=1128486&HQS=corp-uni-null-smarterworld_trainingseries-asset-tr-
CircuitDigest-in&DCM=yes &https%3A%2F%2Ftraining.ti.com%2Fintro-mmwave-sensing-fmcw-radars-module-1-range-
estimation%3Fcu=1128486&HQS=corp-uni-null-smarterworld_trainingseries-asset-tr-CircuitDigest-in&DCM=yes_)
Intro to mmWave Sensing : FMCW Radars - Module 1 : Range Estimation
(https://ad.doubleclick.net/ddm/clk/444524564;248030201;t?https://training.ti.com/intro-mmwave-sensing-fmcw-radars-module-1-
range-estimation?cu=1128486&HQS=corp-uni-null-smarterworld_trainingseries-asset-tr-CircuitDigest-in&DCM=yes
&https%3A%2F%2Ftraining.ti.com%2Fintro-mmwave-sensing-fmcw-radars-module-1-range-estimation%3Fcu=1128486&HQS=corp-uni-
null-smarterworld_trainingseries-asset-tr-CircuitDigest-in&DCM=yes_)
(https://ad.doubleclick.net/ddm/clk/444522647;248030201;t?
https://training.ti.com/introduction-smart-grid-iot-overview-and-trends?cu=1128336&HQS=corp-uni-null-gridee-asset-tr-CircuitDigest-
in&DCM=yes &https%3A%2F%2Ftraining.ti.com%2Fintroduction-smart-grid-iot-overview-and-trends%3Fcu=1128336&HQS=corp-uni-
null-gridee-asset-tr-CircuitDigest-in&DCM=yes_)
Introduction: Smart Grid IoT Overview and Trends (https://ad.doubleclick.net/ddm/clk/444522647;248030201;t?
https://training.ti.com/introduction-smart-grid-iot-overview-and-trends?cu=1128336&HQS=corp-uni-null-gridee-asset-tr-CircuitDigest-
in&DCM=yes &https%3A%2F%2Ftraining.ti.com%2Fintroduction-smart-grid-iot-overview-and-trends%3Fcu=1128336&HQS=corp-uni-
null-gridee-asset-tr-CircuitDigest-in&DCM=yes_)
(https://ad.doubleclick.net/ddm/clk/444522644;248030201;q?https://training.ti.com/ti-
precision-labs-op-amps-introduction?cu=14685&HQS=corp-uni-null-tipl_opamps-asset-tr-CircuitDigest-in&DCM=yes
&https%3A%2F%2Ftraining.ti.com%2Fti-precision-labs-op-amps-introduction%3Fcu=14685&HQS=corp-uni-null-tipl_opamps-asset-tr-
CircuitDigest-in&DCM=yes_)
Precision Labs - Op Amps: Introduction (https://ad.doubleclick.net/ddm/clk/444522644;248030201;q?https://training.ti.com/ti-
precision-labs-op-amps-introduction?cu=14685&HQS=corp-uni-null-tipl_opamps-asset-tr-CircuitDigest-in&DCM=yes
&https%3A%2F%2Ftraining.ti.com%2Fti-precision-labs-op-amps-introduction%3Fcu=14685&HQS=corp-uni-null-tipl_opamps-asset-tr-
CircuitDigest-in&DCM=yes_)
https://circuitdigest.com/article/rs232-serial-communication-protocol-basics-specifications 10/14
7/20/2019 What is RS232 Serial Communication Protocol? RS232 Basics, Working & Specifications
(http://bit.ly/dkdcpower
)
BUD NBF Series Enclosures (http://bit.ly/dk-nbfseries )
NBF series gasketed, all-plastic enclosures meet NEMA 1, 2, 4, 4x, and IEC529-IP66 requirements.
(http://bit.ly/dk-
nbfseries )
TE Connectivity SSRDC Series Solid State Relays (http://bit.ly/dk-relays )
Potter and Brum eld SSRDC series utilize DC switching technology with low power dissipation FETs.
(http://bit.ly/dk-
relays )
Silicon Labs SLEXP8027A (http://bit.ly/dk-siliconlabs )
The SLEXP8027A Bluetooth Xpress eval kit delivers Bluetooth 5 connectivity with zero programming.
(http://bit.ly/dk-
siliconlabs )
XP Power EPL150 Series AC-DC Power Supplies (http://bit.ly/dk-epl150 )
EPL150 series AC/DC power supplies feature 100 W output with convection cooling.
(http://bit.ly/dk-
epl150 )
KEMET SS Series Infrared Sensor Modules (http://bit.ly/dk-sssensor )
SS series sensors use the pyroelectric effect of ceramic by absorbing a human body’s infrared rays.
(http://bit.ly/dk-
sssensor )
Qualtek Heat-Shrinkable Products (http://bit.ly/dk-heatshrink )
Qualtek's heat-shrink tubing products are produced by cross-linking extruded polymer compounds.
(http://bit.ly/dk-
heatshrink )
Bourns GMOV (http://bit.ly/dk-gmov )
The GMOV component combines an MOV and a GDT with patented space-saving FLAT® technology.
(http://bit.ly/dk-
gmov )
SPONSORED POSTS
SPONSORED
(https://ad.doubleclick.net/ddm/clk/444522653;248030201;q?
https://training.ti.com/electrical-fundamentals-and-need-power-systems-protection?HQS=corp-uni-null-powersys-asset-tr-CircuitDigest-
in&DCM=yes &https%3A%2F%2Ftraining.ti.com%2Felectrical-fundamentals-and-need-power-systems-protection%3FHQS=corp-uni-null-
powersys-asset-tr-CircuitDigest-in&DCM=yes_)
https://circuitdigest.com/article/rs232-serial-communication-protocol-basics-specifications 11/14
7/20/2019 What is RS232 Serial Communication Protocol? RS232 Basics, Working & Specifications
SPONSORED
(https://ad.doubleclick.net/ddm/clk/444524564;248030201;t?
https://training.ti.com/intro-mmwave-sensing-fmcw-radars-module-1-range-estimation?cu=1128486&HQS=corp-uni-null-
smarterworld_trainingseries-asset-tr-CircuitDigest-in&DCM=yes &https%3A%2F%2Ftraining.ti.com%2Fintro-mmwave-sensing-fmcw-radars-
module-1-range-estimation%3Fcu=1128486&HQS=corp-uni-null-smarterworld_trainingseries-asset-tr-CircuitDigest-in&DCM=yes_)
Intro to mmWave Sensing : FMCW Radars - Module 1 : Range Estimation (https://ad.doubleclick.net/ddm/clk/444524564;248030201;t?
https://training.ti.com/intro-mmwave-sensing-fmcw-radars-module-1-range-estimation?cu=1128486&HQS=corp-uni-null-
smarterworld_trainingseries-asset-tr-CircuitDigest-in&DCM=yes &https%3A%2F%2Ftraining.ti.com%2Fintro-mmwave-sensing-fmcw-radars-
module-1-range-estimation%3Fcu=1128486&HQS=corp-uni-null-smarterworld_trainingseries-asset-tr-CircuitDigest-in&DCM=yes_)
SPONSORED
(/sponsored/our-new-tracker-a-mooc-on-lora-videos-to-start-your-iot-
application)
Our New Tracker, a MOOC on LoRa: 3 Videos to Start Your IoT Application (/sponsored/our-new-tracker-a-mooc-on-lora-videos-to-start-your-iot-
application)
TI’s LMG1210 MOSFET and GaN FET Driver for High-Frequency Applications (/news/ti-lmg1210-mosfet-and-gan-fet-driver-for-high-
frequency-applications)
(/news/ti-
lmg1210-
mosfet-and-
gan-fet-driver-
for-high-
https://circuitdigest.com/article/rs232-serial-communication-protocol-basics-specifications 12/14
7/20/2019 What is RS232 Serial Communication Protocol? RS232 Basics, Working & Specifications
frequency-
applications)
Vox Power Ltd Range of User Con gurable Power Supplies Available Globally from Digi-Key (/news/vox-power-ltd-range-user-
con gurable-power-supplies-available-globally-from-digi-key)
(/news/vox-
power-ltd-
range-user-
con gurable-
power-
supplies-
available-
globally-from-
digi-key)
Powerline Communication Development Toolset from STMicroelectronics Extends Access to Field-Proven G3-PLC Chipset
(/news/powerline-communication-development-toolset-from-stmicroelectronics-extends-access- eld-proven-g3-plc-chipset)
(/news/powerline-
communication-
development-
toolset-from-
stmicroelectronics-
extends-
access- eld-
proven-g3-plc-
chipset)
(/news/tt-
electronics-
introduces-
modular-
current-
sensor-
approach)
(/news/new-
high-end-
modules-for-
embedded-
edge-
computing)
Connect with us on social media and stay updated with latest news, articles and projects!
(https://www.linkedin.com/company/circuit-
(https://www.facebook.com/circuitdigest/)
(https://twitter.com/CircuitDigest)
(https://www.youtube.com/channel/UCy3CUAIYgZdAOG9k3IPdLmw
(https://www.instagram.com/circuit_digest/)
(https://www.pinterest.com/circuitdigest/)
digest/)
CATEGORIES
https://circuitdigest.com/article/rs232-serial-communication-protocol-basics-specifications 13/14
7/20/2019 What is RS232 Serial Communication Protocol? RS232 Basics, Working & Specifications
Analog Electronics (https://circuitdigest.com/analog-electronics)
POPULAR
NEWSLETTER
Subscribe
Privacy Policy (http://circuitdigest.com/privacy-policy) | Cookie Policy (https://circuitdigest.com/cookie-policy) | Terms of Use (https://circuitdigest.com/terms-of-use) | Contact
Us (http://circuitdigest.com/contact) | Advertise (http://circuitdigest.com/advertise)
https://circuitdigest.com/article/rs232-serial-communication-protocol-basics-specifications 14/14