Five Solutions for Level Conversion Between 5.5V and 3V in UART Communication

Five Solutions for Level Conversion Between 5.5V and 3V in UART Communication

In embedded systems, when communication is required between microcontrollers with different supply voltages, or between a microcontroller and peripheral chips operating at different voltages, level conversion is unavoidable. Otherwise, communication may fail, or the voltage may exceed the microcontroller’s tolerance, causing damage. Below are five mainstream level conversion solutions. 1. Resistor Divider Solution As shown … Read more

Differences and Applications of SPI, UART, and I2C Communication

Differences and Applications of SPI, UART, and I2C Communication

Communication between electronic devices is like communication between humans; both parties need to speak the same language. In electronic products, these languages are called communication protocols. Previously, articles on SPI, UART, and I2C communication were shared separately. This article compares them. Serial vs Parallel Electronic devices communicate by sending data bits to each other. A … Read more

Using STM32 Simulated UART

Using STM32 Simulated UART

Source: https://blog.csdn.net/weixin_48426161 1. Add Header Files First, we need to add the corresponding header files. Since we are going to simulate the serial port, we need to understand the UART communication protocol. The UART communication method consists of 1 start bit, 8 data bits, an optional parity bit, and a stop bit. Therefore, we will … Read more

UART Serial Bus Protocol

UART Serial Bus Protocol

UART The serial port is asynchronous (does not transmit clock-related data). When two devices communicate using the serial port, they must first agree on a data transmission rate, and the clock frequencies of both devices must be close to this rate. A significant difference in clock frequency on either side will lead to data transmission … Read more

Using State Machines to Parse UART Variable-Length Protocol Frames

Using State Machines to Parse UART Variable-Length Protocol Frames

In communication design, considering the flexibility of protocols, they are often designed to be “variable length”. An example is shown in the figure below: the communication protocol frame of the Ruimi LoRa terminal.If a system receives the above “variable length” protocol frames, there will be a challenge — how to efficiently receive and parse them.To … Read more

Understanding Serial Interfaces: COM, UART, USB, and More

Understanding Serial Interfaces: COM, UART, USB, and More

Electronic products, such as computers, mice, chargers, and even cars, have many interfaces around us. This article will introduce you to these interfaces, showing what they look like, where they are used, how to use them, and what their principles are. This article serves as a simple description for beginners. 1. Serial Port 2. UART … Read more

Understanding UART, I2C, and SPI Serial Bus Communication Principles

Understanding UART, I2C, and SPI Serial Bus Communication Principles

Click on the blue text above to follow us I2C, SPI, and UART are the three most commonly used serial communication protocols for embedded IoT terminals. This article briefly introduces the principles of UART, I2C, and SPI serial bus communication. For more detailed explanations, please see the following three articles. Understand I2C Bus Communication in … Read more

Basic Applications of UART Serial Communication

Basic Applications of UART Serial Communication

Three Basic Types of Communication The commonly used communication can be divided into three categories based on transmission direction: simplex communication, half-duplex communication, and full-duplex communication. Simplex communication allows information to be transmitted only in one direction, while the other party cannot send information back. For example, TV remote controls and radio broadcasts are both … Read more

Using Oscilloscope to View UART Waveforms

Using Oscilloscope to View UART Waveforms

If you don’t want to miss my updates, remember to click the top right corner – view public account –set as starred, and send you a little star Source: Breadboard CommunityUART is an asynchronous full-duplex serial communication protocol consisting of two data lines, Tx and Rx. Since there is no reference clock signal, both parties … Read more

Basic UART, I2C, SPI, CAN, and USB Serial Communication Interfaces

Basic UART, I2C, SPI, CAN, and USB Serial Communication Interfaces

Follow+Star Public Account, don’t miss exciting content Author | strongerHuang WeChat Official Account | Embedded Column This article mainly describes the basic knowledge of communication interfaces such as UART, I²C, SPI, CAN, and USB for beginners. 1Overview Why talk about serial communication? Because parallel communication is relatively rare now, it’s basically all serial communication.Today, I … Read more