What do you mean by all the interfaces on the Bluetooth module?

"The signals in this world are the same, but there are thousands of buses, which is a headache." Indeed, take the communication interface on the Bluetooth module, many people will hear the UART interface, IIC interface, SPI interface will be dizzy, then today to briefly outline some common interfaces and differences. In fact, the wiring method of data transmission is basically two kinds: one is a parallel interface, and the other is a serial interface. As a manufacturer of BLE Bluetooth module, Yunliwuli Technology, the following is for everyone to explain.

What is a parallel interface?

It is the parallel port we usually say, the interface that transmits data in parallel. The so-called "parallel" means that data is transmitted through parallel lines, so that the data transfer speed is greatly improved, but the length of the line transmitted in parallel is limited, because the length is increased, the interference is increased, and the data is prone to error.

What is the serial interface?

It is the serial port that we often say that the data is transmitted in a sequence of one or more bits on a limited number of IOs. There are many such types, generally including: UART, IIC, SPI, CAN, USB, etc., as long as it is a serial transmission interface, it is a kind of serial port. It is worth mentioning here that since people used to call the UART port serial port in the early days, everyone usually refers to the UART interface when referring to the serial port. For example, the Bluetooth module MS49SF1C in the cloud is the serial port.

What are the advantages and disadvantages of the parallel interface and the serial interface?

1.serial interface

Advantages: Less data lines are used, which can save communication costs in long-distance communication.

Disadvantages: Because only one bit of data can be transferred at a time, the transmission speed is relatively low.


2. parallel interface

Advantages: Because multiple bits of data can be transmitted together, the transfer speed is fast.

Disadvantages: How many bits of memory, how many data lines to use, so a large number of data lines are required, and the cost is high.

The difference between USART, SPI, and IIC


UART interface

UART (Universal Asynchronous Receiver/Transmitter) serial interface is the most commonly used communication technology for single-chip microcomputers. It is usually used for communication between single-chip microcomputer and computer and between single-chip microcomputer and single-chip microcomputer.


SPI interface

SPI (Serial Peripheral Interface) is the serial peripheral interface. SPI is a synchronous serial data transmission standard and a high-speed, full-duplex, synchronous communication bus that is widely used in many devices.


IIC interface

IIC (Inter-Integrated Circuit), also known as I2C, is a two-wire serial bus structure for connecting a microcontroller and its peripherals. The main advantages of the IIC bus are simplicity and effectiveness.


The difference 1.UART is two lines, one sends a receiver, can be full-duplex communication, the number of lines is also relatively small. The data is transmitted asynchronously, and the timing requirements for both parties are strict, and the communication speed is not very fast. Most used in multi-machine communication.


The difference 2. SPI interface and the above UART, there is a synchronous clock line, the shortcoming of the above UART is its advantages, the timing requirements of the two sides of the communication are not strictly different devices can be easily combined, and the communication speed is very fast. Generally used in high-speed data communication between internal components of products, such as large-capacity memory.


Difference 3.IIC interface is also a two-wire interface, it is the transmission of data between the two lines through a complex logical relationship, the communication speed is not high, the program is also more complicated to write. The general single-chip system is mainly used to connect with 24C02 and other small easy memory.

Note: SPI and UART can achieve full duplex, but I2C does not work; I2C is slower than SPI, the protocol is a bit more complicated than SPI, but the connection is less than the standard SPI.

要查看或添加评论,请登录

Anne Ma的更多文章

社区洞察

其他会员也浏览了