Schwebe-Animation

What is the serial communication protocol? What are the common ones?

What is serial communication? The academic explanation is a method of continuously sending one bit of data through the bus at a point in time. Just like an archer shooting his bow and arrow frequently, whoosh, whoosh, whoosh…

What is the serial communication protocol? To put it bluntly, it is the protocol transmission method used in serial communication.

How many types of serial communication protocols are there? Serial communication protocols include inter-system protocols and internal system protocols.

Intersystem Protocol: An intersystem protocol used to communicate between two different devices. Just like the communication between the computer and the microcontroller kit. Communication takes place via the internal bus system. Common ones include UART protocol, USART protocol, and USB protocol.

Internal System Protocol: The internal system protocol is used to communicate between two devices on the circuit board. While using these in-system protocols we will extend the peripherals of the microcontroller without using the in-system protocols. Using in-system protocols increases circuit complexity and power consumption. Using in-system protocols, circuit complexity and power consumption are reduced, costs are reduced, and access to data is very secure. Common ones include I2C protocol, SPI protocol, and CAN protocol.

UART-Protokoll

UART stands for Universal Asynchronous Transmitter and Receiver. The UART protocol is a serial communication with two wired protocols. Data cable signal lines are labeled Rx and Tx. Serial communication is commonly used to send and receive signals. It is transmitted and communicated with the serial port to receive data without pulse-like. The UART receives the data bytes and sends the individual bits sequentially.

USAT protocol is usually used as a peripheral of MCU in embedded systems; generally speaking, the TTL level is directly derived from the chip pin; and the RS232 level may be connected to the conversion chip in the middle.For details, please see: Standards for Serial Communication

UART ist ein Halbduplex-Protokoll. Halbduplex bedeutet, dass die Möglichkeit besteht, Daten zu senden und zu empfangen, jedoch nicht gleichzeitig. Die meisten Steuerungen haben einen Hardware-UART auf der Platine. Er verwendet eine Datenleitung zum Senden und Empfangen von Daten. Sie hat ein Startbit, 8-Bit-Daten und ein Stoppbit, das anzeigt, dass die 8-Bit-Daten von oben nach unten übertragen werden. Zum Beispiel: E-Mail, Textnachrichten, Walkie-Talkies, industrielle IoT-Übertragungsgeräte, serielle Server.

USART-Protokoll

USART steht für Universal Synchronous and Asynchronous Transmitter and Receiver. Es handelt sich um eine serielle Kommunikation mit einem Zweidrahtprotokoll. Die Signalleitungen des Datenkabels sind mit Rx und TX bezeichnet. Dieses Protokoll wird verwendet, um Daten byteweise zusammen mit Taktimpulsen zu senden und zu empfangen. Es handelt sich um ein Vollduplex-Protokoll, d. h. die Daten werden gleichzeitig mit unterschiedlichen Kartengeschwindigkeiten gesendet und empfangen. Verschiedene Geräte kommunizieren über dieses Protokoll mit dem Mikrocontroller. Zum Beispiel die Telekommunikation.

USB-Protokoll

USB stands for Universal Serial Bus. Again, it is a two-wire protocol for serial communication. Data cable signal wires are marked D and D-. This protocol is used to communicate with system peripherals. The USB protocol is used to send and receive data serially to the host and peripheral devices. USB communication requires driver software based on system capabilities. USB devices can transmit data on the host without any requested bus. Now, most devices today use this technology to communicate with the USB protocol. Use USB to communicate with the ARM controller like a computer. USB transfers data in different modes. The first is a slow mode from 10 kbps to 100 kbps; the second is a full speed mode from 500kbps to 10mbps and a high speed mode from 25mbps to 400Mbps. The maximum USB cable length is 4 meters.

For example: mouse, keyboard, hub, switch, pen drive.

I2C-Protokoll

I2C stands for Inter Integrated Circuit. I2C requires only two wires to connect all peripherals to the microcontroller. I2C requires only two wires, SDA (serial data line) and SCL (serial clock line), to transfer information between devices. It is the master of the slave communication protocol. Each slave has a unique address. The master device sends the address and read/write flags of the target slave device. This address matches any slave device that is turned on, the remaining slave devices are in disabled mode. Once the addresses match, communication takes place between the master and that slave, and data is sent and received. The transmitter sends 8 bits of data and the receiver replies with 1 bit of confirmation. After the communication is completed, the master station issues a stop condition.

The I2C bus was developed by Philips Semiconductors. Its original purpose was to provide an easy way to connect the CPU to peripheral chips. Peripherals in embedded systems are often connected to the microcontroller as memory mapped devices. I2C requires only two wires to connect all peripherals to the microcontroller. These active lines, called SDA and SCL, are bidirectional. The SDA line is the serial data line, while the SCA line is the serial clock line.

I2C pull-up resistor:

Why use pull-up resistors in I2C SCL and SDA lines.

The SDA and SCL lines are both open-drain drivers.

It can drive the output low and drive it high.

In order for the line to go high, you must provide a pull-up resistor

SPI-Protokoll

SPI stands for Serial Peripheral Interface. It is one of the serial communication protocols developed by Motorola. Sometimes the SPI protocol is also called a 4-wire protocol. It requires four wires MOSI, MISO, SS and SCLK.SPI protocol is used to communicate master and slave devices. The host first configures the clock with frequency. The host then selects a specific slave device to communicate with via a pull-tab button. Select that specific device and start communication between the master and that specific slave. The master selects only one slave at a time. It is a full-duplex communication protocol. In the case of bit transfers, it is not limited to 8-bit words.

CAN-Protokoll

CAN steht für Controller Area Network. Es ist ein serielles Kommunikationsprotokoll. Es benötigt zwei Leitungen CAN high (H) und CAN low (H-). Es wurde 1985 von der Robert Bosh Corporation für den Einsatz in Kfz-Netzwerken entwickelt. Es basiert auf einem nachrichtenorientierten Transportprotokoll.

The 1970s was the era when car manufacturers started introducing new features such as anti-lock braking, air conditioning, gear control, centrally operated door locks, etc. These features ensure additional wiring and complex designs, increasing costs and risks. To overcome these problems, Robert Bosch introduced the CAN protocol in the 1980s. This serial communication protocol was further standardized as ISO11898 in 1993. It is the CAN protocol that has completely transformed communication between advanced sensors.

The CAN protocol is commonly used in electronic networks in automobiles, aircraft and medical systems. Common products include Can to Ethernet equipment USR-CANET200

Keywords: 4gdtu

Neueste Artikel

Kontakt