28-Rs232 Interfacing-12-04-2024
28-Rs232 Interfacing-12-04-2024
Dr Arunachalam,
Associate Professor, SENSE
Recommended Standard (RS)-232
• A serial port complying with the RS-232 standard was once a standard feature of many types of
computers.
• RS232 connector is a port used for data exchange between equipment.
• It was designed for data exchange between Data Terminal Equipment (DTE) and Data
Communication Equipment (DCE); for example, PC & MODEM.
• The need for RS232 came from limitations raised by parallel data exchange.
• RS232 uses a serial communication protocol where data exchange is done bit by bit.
• RS232 used to have 25 pins, now it is shrunk to just 9 pins.
• Although RS232 is later replaced by a faster USB (Universal Serial Bus); it is still popular in
some areas.
Suitable Usage
• Simple asynchronous communication interface between two units.
• A two-pin full duplex communication can be established easily on the RS232 port.
• RS232 is used in systems where clock sharing is difficult.
• RS232 is ASYNCHRONOUS so there will be no clock sharing between systems.
• But need to set data bit rate (baud rate) for each unit.
• Once the baud rate is set the units will sample the data accordingly.
• RS232 is also used to control a single unit specifically without delay or errors.
• RS232 interface also delivers data with more accuracy which is a requirement in some cases.
• 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 a rate of 1.492kbps.
Characteristics
• Asynchronous communication
• Baud rate is used to measure the speed of transmission.
• Baud rate and bits per second (BPS) are the same when we connect directly two terminals.
• 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. Here BPS could be different.
• 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.