Appendix On Communication Standards
Appendix On Communication Standards
Appendix On Communication Standards
Group 11:
Tran Le Duc Anh 20202782
Bui Ngoc Tien 20202773
Nguyen Tuan 20202794
Minh
Hanoi, 11/2023
Contents
I. SPI (Serial Peripheral Interface).................................3
II. I2C (Inter-Integrated Circuit):....................................4
III. UART (Universal Asynchoronus Receiver –
Transmitter)..................................................................5
IV.RS (Reccommended Standard: RS 232/422/485).......6
a. RS232:....................................................................6
b. RS422:....................................................................7
c. RS485.....................................................................8
Summary......................................................................9
Contacting our Project..................................................9
I. SPI (Serial Peripheral Interface)
Structure:
SS/CS (Slave Select/Chip Select): Selects which slave will perform data transmission.
Advantages:
Separate MISO and MOSI lines allow for simultaneous data transmission and reception.
Disadvantages:
Advantages:
Disadvantages:
Data Register: This is a buffer that holds the data to be transmitted. The
transmitter writes data into this register.
Control Logic: It controls the data flow and synchronization of the transmission
process.
Baud Rate Generator: This component generates the clock signal required for
timing the transmission. It sets the speed of data transmission by determining
the baud rate.
o Receiver
Data Register: Like the transmitter, the receiver has a data register that stores
the received data.
Control Logic: It manages the reception process, including synchronization and
error detection.
Shift Register: The shift register is used for serializing and deserializing the data.
It takes the parallel data from the transmitter or receiver and converts it into a
serial bit stream for transmission or vice versa.
Baud Rate Generator: The receiver also has a baud rate generator to generate
the clock signal for timing the reception process.
o Start and Stop Bits: UART uses start and stop bits to frame each data byte. The start bit
indicates the beginning of a data byte, while the stop bit indicates the end. These bits
provide synchronization between the transmitter and receiver.
o Control Signals:
RTS (Request to Send): It is an output signal used for flow control. The
transmitting device asserts this signal to request permission to send data.
CTS (Clear to Send): It is an input signal used for flow control. The receiving
device asserts this signal to grant permission for data transmission.
Other control signals like DTR (Data Terminal Ready) and DSR (Data Set Ready)
may also be present in some UART implementations.
b. RS422:
Structures:
Differential Signaling: RS-422 utilizes
differential signaling, where data is
transmitted as a voltage difference
between two lines.
Data Transmission:
o Transmit Data Lines: RS-422
employs two transmit data lines,
commonly referred to as A+ and
B-. The transmitting device sends
data by driving the A+ line with a
positive voltage and the B- line with an equal negative voltage.
o Receive Data Lines: RS-422 also uses two receive data lines, denoted as A- and B+.
The receiving device detects the voltage difference between these lines to interpret
the transmitted data.
Multiple Receivers
Voltage Levels: RS-422 specifies a voltage range for the differential signals. The voltage levels
typically range from +2V to +6V for a logical "0" and -2V to -6V for a logical "1".
Termination: RS-422 often requires termination resistors at the ends of the communication
line to minimize signal reflections and enhance signal quality. The termination resistors
typically match the characteristic impedance of the transmission line.
Connectors: RS-422 connections commonly use DB-9 or DB-25 connectors, like RS-232.
However, the pin assignments for RS-422 connectors differ from those of RS-232 connectors.
Advantages
o Long Range Communication
o Improved Noise Immunity
o Multiple Receivers
o Easy Implementation
Disadvantages
o Require additional interfaces or adapters to connect RS-422 devices to many
equipments.
o Consume more power than RS-232
o Limited Number of Connections
c. RS485
Structures:
o Differential Signaling: Same as
RS422
o Transmit Data Lines: employs
two transmit data lines, usually
labeled A and B. The transmitting
device drives these lines with
complementary voltages to
represent the data being sent.
Receive Data Lines: RS-
485 also uses two receive data lines, denoted as A and B. The receiving
device detects the voltage difference between these lines to interpret the
transmitted data.
o Multi-Drop Network: RS-485 supports multi-drop network topologies, where
multiple devices can be connected to a single bus. Each device on the bus has a
unique address, and communication occurs through a master-slave arrangement.
o Voltage Levels: RS-485 defines a voltage range for the differential signals. A logical
"0" is represented by a positive voltage on the A line and a negative voltage on the B
line, while a logical "1" is represented by a positive voltage on the B line and a
negative voltage on the A line.
o Termination: RS-485 often requires termination resistors at the ends of the
communication line to minimize signal reflections and enhance signal quality.
o Connectors: RS-485 connections can use various types of connectors depending on
the application.
Advantages
o Long-Distance Communication
o Higher Data Rates
o Multi-Drop Capability
o Balanced Transmission
o Cost-Effective Solution
o Low Power Consumption
Disadvantages
o Lack of Plug-and-Play Support
o Limited Power Delivery
o Latency and Delay
Summary
SPI: Suitable for applications requiring high data transmission speed, unconcerned about the
number of connecting wires, and not requiring data acknowledgment.
I2C: A good choice for applications needing a reduction in the number of wires, supporting
multiple masters and slaves, and providing a data acknowledgment mechanism. Particularly
useful in embedded systems and microcontroller applications.
UART: Although has multiple supported standards, without the shared clock signal Suitable
for devices using battery or low power applications but cannot control the dataflow and limited
transmission line’s length.
RS232: Simple, straight-forward transmission lines with high longevity. But cannot control
devices and high-power consumption.
RS422: RS-422's range capability, noise immunity, higher data rates, and compatibility make it a
preferred choice in applications where reliable, high-speed, and noise-resistant serial
communication is required.
RS485: RS-485's long-distance capability, multi-drop support, best noise immunity, higher data
rates, and cost-effectiveness make it a preferred choice in various industrial and commercial
applications that require reliable and robust serial communication.