It is used for the Serial interface. Other devices can be controlled through the terminal for text interface through RS 232.
It was introduced in 1960 and since its introduction, it was known as ๐๐-๐๐๐ but it is now officially called ๐๐๐-๐๐๐.
The TIA-232 describes mostly the ๐๐-๐ฉ๐ข๐งย connector, the ๐-๐ฉ๐ข๐ง connector description is also available. The 25-pin connector was not of much use, so the manufacturers started to use the 9-pin connection.
The original standard i.e the 25 pin connection has a secondary tx/rx. Itโs 2 interfaces in 1.
Although the RS232 ย ย ๐๐จ๐๐ฌ ๐ง๐จ๐ญ ๐ฎ๐ฌ๐ ๐ญ๐ก๐ ๐๐ฅ๐จ๐๐ค ๐ฌ๐ข๐ ๐ง๐๐ฅ, the original 25 pin interface uses some clock signals such as
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย – Transmit clock from DCE
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย – Receive clock
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย – Transmit clock from DTE
๐๐ก๐ ๐-๐ฉ๐ข๐ง ๐๐จ๐ง๐ง๐๐๐ญ๐จ๐ซ ๐ฐ๐๐ฌ ๐ฌ๐ญ๐๐ง๐๐๐ซ๐๐ข๐ณ๐๐ ๐๐ฌ ๐๐๐/๐๐๐-๐๐๐
โRS-232 is an interface between Data Terminal Equipment and Data Circuit Terminating Equipment Employing Serial Binary Data interchange.โ

The RS 232 uses 2 conditions, the ๐๐ฉ๐๐๐ข๐ง๐ ๐๐จ๐ง๐๐ข๐ญ๐ข๐จ๐ง and the ๐๐๐ซ๐ค๐ข๐ง๐ ๐๐จ๐ง๐๐ข๐ญ๐ข๐จ๐ง.
This terminology comes from the era of telegraphs/paper tapes where the marking condition means the mark/hole on the paper and the spacing condition means an empty region on the paper.
A simple working example would be:
When a key is pressed and if you capture a single shot signal on the oscilloscope, a signal will be generated spanning from -๐๐ ๐ญ๐จ >+๐๐.
ย ย ย ย ย ย ย ย ย ย ย ย ย ย For the interchange of signals, it is said to be in marking condition when the signal is greater than -3 Volts w.r.t to Signal common and the Signal is in spacing condition when the signal is more than +3 Volts w.r.t to the circuit. The region between +- 3 Volts is said to be the ๐ญ๐ซ๐๐ง๐ฌ๐ข๐ญ๐ข๐จ๐ง ๐ซ๐๐ ๐ข๐จ๐ง. The signal state is undefined when the signal is in the transition state.
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย The RS 232 does not use a clock signal. So when do the devices know which bit is being delivered when or w๐ฐ๐ก๐ข๐๐ก ๐๐ข๐ญ ๐ญ๐จ ๐ซ๐๐๐ ๐ฐ๐ก๐๐ง?
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย The devices should agree on the data rate or popularly known as ๐๐๐ฎ๐ ๐๐๐ญ๐.
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย Baud= Symbols/Second
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย Commonly used Baud rates are 4800,9600,38400,57600,115200…
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย If we select 9600 as the baud rate, then we get 1/9600 i.e ~0.000104167 i.e 1 bit every 4 microseconds
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย The first bit is the start bit i.e 1. The next 8 bits are data bits.
The least significant bit is the first.
After transitions of the last bit, the signal stays low until the next bit press. It does so as it requires a minimum amount of ideal time for transmission between 2 characters.
Although there are many new protocols, RS-232 is still widely used in many industries.
How was your experience with RS-232? Did you use it?
#embedded #embeddedsystems #cprogramming #protocols #rs232 #learning #reach #Tia232 #embeddedprotocols
Image Soruce: EngineersGarage
Inforamtion: Ben Eaters Youtube and Wiki