The communication protocol STM32

The data transfer points:
serial communication (one data line for long-distance transmission)
parallel communication (plurality of data lines, high cost, poor immunity)

 

A data communication sub-synchronous manner:
asynchronous communication (a character in a transmission and reception clock inconsistent)
synchronous communication (bit synchronization, synchronization of the clock)

 

According to the transmission direction of data points:
simplex (one direction can be transmitted only)
half-duplex (data transmission can be in two directions, but requires sharing)
Full duplex (simultaneous two-way transmission)

 

Communication rate is typically expressed in bit rate, the unit is: bits / second (bps), i.e., bits per second binary code. After the encounter the concept of a baud rate, which indicates how many symbols per second. In general, symbols are represented by two states, i.e., the baud rate of the bit rate.


Serial communication: the serial bitwise (bit) transmitted and received bytes. Although, it may receive a serial data line than the other bytes (byte) while slow parallel communication using a transmission data line. It is simple and can achieve long-distance communication. Standard serial communication interfaces are many, RS-232, RS-232C, RS-422A, RS-485 and the like. It is more common RS-232 and RS-485. Serial communication is commonly used device communication protocols instrumentation.

 

I2C communication: an integrated circuit bus is a two wire serial bus, less interfaces, simple control, a high communication rate. Only two bidirectional I2C bus signal line, a data line is the SDA, the other is the clock line SCL. Often used in communication between a plurality of integrated circuits.

 

SPI communication: serial peripheral interface is a high-speed, full-duplex, synchronous communication bus, and takes on only four pins of the chip line, because of its very strong function of the hardware, software and the related quite SPI simple, the MCU have more time to deal with other matters. For use in high speed communication applications, such as m-ADC, LCD, MCU.

 

Communication CAN: Controller Area Network (Controller Area Network) is an international standard ISO serial communication protocol. It has been recognized for high performance and reliability. CAN bus is half-duplex, although no separate clock lines, but the method the bit timing synchronous transmission. Distributed control systems are widely used in automobiles, ships and so on.

 

I2S communication: an integrated circuit embedded audio bus is designed for audio data transfer between devices, widely used in various multimedia systems.

 

Communication USB: Universal Serial Bus (Universal Serial Bus) is a PC architecture in the newer industry standards, having a USB transmission speed, ease of use, hot swappable, flexible connection, independent power supply, etc., may be connected to a keyboard , mouse, mass storage devices and other peripherals, the interface has also been widely used in smart phones. Interactive computers and other smart devices with external data to the main network and USB interfaces based.

 

Guess you like

Origin www.cnblogs.com/kerwincui/p/11897149.html