Uart Srial
Description
This content is about the serial communication network, which has been tried to be presented in a practical way.
Hardware
Data transfer takes place in three ways:
- Simplex: In this connection, the sender and the receiver are fixed and the direction of information transfer is always one-way.
- Half-Duplex: In this case, each software is either a data receiver or a data transmitter, which sends and receives information from a platform with software and hardware management.
- Full-Duplex: In this case, the path of data transmission and reception is separate from each other, this causes the sending and receiving of the same information.
Three standard platforms have been created for UART communication:
- RS-232: This platform is three wires, the path of sending and receiving information is separate from each other.
- Data signals:All data is transmitted through these signals.
- Pin 2: Received Data(RXD)
- Pin 3: Transmit Data(TXD)
- Pin 5: Ground(GND)
- Communication ready signals:
- Pin 1: Data Carrier Detect(DCD)
- Pin 4: Data Terminal Ready(DTR)
- Pin 6: Data Set Ready(DSR)
- Pin 9: Ring Indicator(RI)
- Handshaking signals to control data flow:
- Pin 7: Requet To Sed(RST)
- Pin 8: Clear To Send(CTS)
- RS-485: This platform is two-way, the path of sending and receiving information is the same.
- RS-422: This platform is four-wire, the path of sending and receiving information is the same.
You may have a question that what is the use of these signals?!
Answer: Hardware management that makes the "sender and receiver" readiness to be checked. Send and receive data to be validated.
Balanced vs Unbalanced:
ُSoftware
Frame Uart
- Baud Rate:
- 110
- 150
- 300
- 1200
- 4800
- 9600
- 19200
- 38400
- 57600
- 115200
- 230400
- 460800
- 921600
- Start Bit:
- 0
- 1
- Data:
- 9 Bit
- 8 Bit
- 7 Bit
- 6 Bit
- 5 Bit
- Stop Bit:
- 1 Bit
- 2 Bit
- Parity:
- None:The balance bit is not formed.
- Odd:If the number of 1's in the data bit is even, the balance bit becomes 1 to make the result odd.
- Even:If the number of 1's in the data bit is odd, the balance bit becomes 1 to make the result even.
- Mark:The balance bit will always be one.
- Space:The balance bit will always be zero.
- Flow Control:
- None
- RTS/CTS
- DTR/CTS
- RS-485-RST