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

Do You Know That the SPI Protocol Has 4-Wire and 7-Wire Versions?

Do You Know That the SPI Protocol Has 4-Wire and 7-Wire Versions?

Hello everyone, today I want to talk about a very common communication protocol in embedded development—the SPI protocol. However, we will not discuss its basic principles today, but rather explore a detail that many people may not have noticed: the 4-wire and 7-wire versions of the SPI protocol. You might wonder, isn’t SPI just that … Read more

Understanding I2C: Principles and Protocols

Understanding I2C: Principles and Protocols

I2C is a widely used bus, generally used to connect various slave devices, such as EEPROM memory, temperature and humidity sensors, gyroscopes, etc.Mastering I2C is considered a fundamental skill, and it is essential for newcomers in the industry to learn it systematically.1. A Brief History of I2C In 1980, Philips began developing a communication bus … Read more

All Sensor Principles Are Here, Be Sure to Bookmark!

All Sensor Principles Are Here, Be Sure to Bookmark!

A sensor (English name: transducer/sensor) is a detection device that can sense the information being measured and convert that information into electrical signals or other required forms of information output according to certain rules, to meet the requirements for information transmission, processing, storage, display, recording, and control. The characteristics of sensors include miniaturization, digitization, intelligence, … Read more

Huawei Comics | What is DSP?

Huawei Comics | What is DSP?

Follow and star our public account, to access exciting content Source | Huawei Kirin Embedded engineers are familiar with what a CPU and MCU are, and there is another member that is often mentioned: DSP. What exactly is a DSP? Let’s explore it through a story!-END- You may also like (click the underline to read) … Read more

Essential Methods for Measuring Program Execution Time in Embedded Programming (Experience-Based)

Essential Methods for Measuring Program Execution Time in Embedded Programming (Experience-Based)

1. Why is it necessary to measure program execution time? Rather than measuring program execution time, it might be more accurate to refer to it as measuring task execution time. The projects we undertake are aimed at achieving specific objectives, thus completing corresponding tasks. Simple projects typically focus on a single task, while more complex … Read more

Embedded Programming Model | MVC Model

Embedded Programming Model | MVC Model

Hello everyone, I am the Mixed Content Master. In embedded / microcontroller project development, we often choose a major software framework based on actual conditions: bare-metal systems, front-end and back-end systems, RTOS, Linux, etc. In actual development, choosing the type of software architecture is just the first step. How do the various modules in the … Read more

Advanced Embedded Programming: Completely Solving Data Loss Caused by Communication Data Overwrite – Ring Buffer

Advanced Embedded Programming: Completely Solving Data Loss Caused by Communication Data Overwrite - Ring Buffer

01Introduction The Ring Buffer (also known as Circular Buffer) is a data structure used to efficiently store and manage data within a fixed-size array. It is particularly suitable for scenarios that require continuous reading and writing of data, such as audio processing, network communication, and real-time data stream processing. Below are the basic concepts, implementation … Read more

Embedded Programming Model | Observer Pattern

Embedded Programming Model | Observer Pattern

Hello everyone, I am the Mixed Content Master. This time we share a commonly used concept/programming model in embedded systems—the Observer Pattern. Overview of the Observer Pattern The Observer Pattern is a behavioral design pattern that focuses on establishing a dynamic subscription-notification mechanism between objects. It defines a one-to-many dependency between objects, so that when … Read more

What is Embedded Programming? How to Get Started and Improve?

What is Embedded Programming? How to Get Started and Improve?

Content Overview What is Embedded? What is Cross-Compilation? Getting Started and Improving in Embedded 1. What is Embedded? Embedded can be said to be one of the most widely covered and popular professions today. So, what is embedded? This question cannot be easily answered in just a few words. Embedded, in English, is “embedded,” meaning … Read more