Design and Implementation of Automatic Baud Rate Recognition Program for UART

Design and Implementation of Automatic Baud Rate Recognition Program for UART

Hello everyone, I am Pi Zi Heng, a serious technical person. Today, I will share with you the design and implementation of an automatic baud rate recognition program for UART in embedded systems. The UART (Universal Asynchronous Receiver-Transmitter) is the most basic, commonly used, and simplest communication (data transmission) method in embedded systems. It can … Read more

Digital Power Software Interview: How to Answer UART Communication Questions for Microcontrollers?

Digital Power Software Interview: How to Answer UART Communication Questions for Microcontrollers?

Digital power modules utilize various communication protocols such as I2C, SPI, CAN, and UART, as well as interaction protocols based on these, such as CANopen, SAE 1939, SMbus, PMbus, and Modbus.This article simulates a Q&A regarding knowledge related to UART communication. Question 1: What are the characteristics of UART communication? Answer: Asynchronous communication, low cost, … Read more

5-Minute Tutorial: How to Gain Root Access via UART

5-Minute Tutorial: How to Gain Root Access via UART

Introduction Do you know how IoT devices and other hardware manufacturers debug and test their devices? That’s right, in most cases, they leave a serial interface, allowing them to read real-time debug logs or interact with the hardware through a shell. There are mainly two different types of serial interfaces, but the most common one … Read more

The SPI Protocol is Not as Simple as I Thought

The SPI Protocol is Not as Simple as I Thought

Hello everyone, I am Jide Cheng. Today I will share content related to the SPI protocol. Table of Contents Introduction Table of Contents First, let’s talk about UART SPI Communication Protocol Characteristics of SPI Mode Numbers Multi-Slave Mode Advantages and Disadvantages Programming Implementation First, Let’s Talk About UART I previously wrote an article on UART, … Read more

Understanding SPI, I2C, UART, I2S, GPIO, SDIO, and CAN: Can You Differentiate Them?

Understanding SPI, I2C, UART, I2S, GPIO, SDIO, and CAN: Can You Differentiate Them?

Buses, buses, you always get caught up in them. All signals in this world are the same, but there are thousands of buses, which can be quite a headache. In general, there are three types of buses: internal buses, system buses, and external buses. The internal bus connects various peripheral chips within the microcomputer to … Read more

Why Embedded Programming is Considered Complex?

Why Embedded Programming is Considered Complex?

I am Lao Wen, an embedded engineer who loves learning.Follow me, and let’s become better together! The first step is to look at embedded issues from the perspective of PC programming; the second step is to learn to think in embedded programming; the third step is to combine PC and embedded thinking and apply it … Read more

Renesas RA8 Series Tutorial | Methods to Run RTOS on RA8 Based on e2s

Renesas RA8 Series Tutorial | Methods to Run RTOS on RA8 Based on e2s

Following the previous article titled “Renesas RA8 Series Tutorial | Configuration of RA8 Serial Output Based on e2s“, today we will teach you how to quickly set up a FreeRTOS project.In the past, software tools were not as mature, and setting up a FreeRTOS project required manual porting step by step. Many users complained that … Read more

MQTT + UART = Remote Debugging?

MQTT + UART = Remote Debugging?

In previous articles, we introduced MQTT and UART. So what do we get when we combine them? As engineers, we often encounter the following scenario: on-site, we need to connect a computer to a PLC or control device via a serial port, and the PC reads or writes data to the on-site device using a … Read more

Realistic Animation Demonstrating the Communication Processes of I2C, SPI, and UART

So far, protocols such as I2C, SPI, and UART remain the most commonly used communication protocols in electronic embedded devices. In this article, we will analyze these three protocols to provide a clear and intuitive understanding of their functions, advantages, and limitations, supplemented with GIF animations. I2C Protocol I2C is a serial communication protocol typically … Read more

The Most Suitable Communication Protocol for Microcontrollers: How to Design It?

The Most Suitable Communication Protocol for Microcontrollers: How to Design It?

In communication design, considering the flexibility of the protocol often leads to designing protocols as “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 frame, there will be a challenge—how to efficiently receive and parse it. … Read more