Detailed Analysis of GPIO Initialization Functions in STM32 HAL Library

Detailed Analysis of GPIO Initialization Functions in STM32 HAL Library

Reminder: This article provides a detailed analysis of the functions related to GPIO configuration in the HAL library, including MX_GPIO_Init(), HAL_GPIO_WritePin(), and HAL_GPIO_Init(). At the end of the article, a description of the f1 series GPIO port registers is attached. MX_GPIO_Init() First, let’s look at the source code: void MX_GPIO_Init(void){ GPIO_InitTypeDef GPIO_InitStruct = {0}; /* … Read more

How STM32 Combines Software and Hardware for Execution

How STM32 Combines Software and Hardware for Execution

Have you ever wondered why software can control hardware? This article analyzes how the STM32 microcontroller combines software and hardware and how the microcontroller program is compiled and executed. Software and Hardware Integration Beginners often have a question: why can software control hardware? Just like the 51 microcontroller, why can we output high and low … Read more

The Path to Embedded Learning: Start Your Journey in Smart Hardware

The Path to Embedded Learning: Start Your Journey in Smart Hardware

For those who are still learning about embedded systems, you may feel confused about what to study and how to start learning. Today, I have compiled a set of learning plans for embedded systems, and this article will cover everything you need to know. 01 Basic Knowledge Learning 1. Master Programming Languages: 1) First, delve … Read more

Comprehensive Learning Path for Embedded AI Engineers

Comprehensive Learning Path for Embedded AI Engineers

Follow the Embedded Learning Station to get more fresh hot topics. Before discussing the learning path, let’s first understand what embedded development is. Simply put, an embedded system consists of two parts: software and hardware. It is application-centered and can achieve software and hardware tailoring. Software includes: specific business applications and operating systems (simple applications … Read more

Common Fault Tolerance Designs in Embedded Code

Common Fault Tolerance Designs in Embedded Code

If a large embedded project does not implement fault tolerance design, can you imagine what the consequences would be? Experienced friends can certainly think of countless bugs in such projects, and some bugs are very difficult to trace. Today, let’s discuss some common fault tolerance design methods in embedded code. Using Assertions (Assert) What is … Read more

Why Design Patterns Are Rarely Used in Embedded Development?

Why Design Patterns Are Rarely Used in Embedded Development?

After working for a few years, I often see some friends asking whether design patterns need to be learned. It seems that those who work in embedded systems have never encountered the need to use design patterns, so they have never systematically studied them. However, I know that design patterns are important, yet over time, … Read more

Embedded Systems Architecture Design for Intelligent Instruments

Embedded Systems Architecture Design for Intelligent Instruments

This article mainly introduces an embedded system architecture design method based on event-driven and modular layered design principles, which can effectively improve the stability of instruments and simplify subsequent maintenance work. Event-Driven Embedded Systems Architecture Design for Intelligent Instruments Jin Miao, Guo Yueming, Wei Qian, Tang Jie (Beijing Zhongyou Ruifei Information Technology Co., Ltd., Changping, … Read more

How Proficient Should You Be in C Language for Embedded Systems?

How Proficient Should You Be in C Language for Embedded Systems?

Word Count: 1700 Content Quality Index: ⭐⭐⭐⭐⭐ 1 Point of View 1 Just like learning English, the C language is also a language. C is quite simple, with only 34 keywords (ANSI standard, but C99 introduces several new keywords and features to define new data types, variable-length arrays, etc.), over 40 operators, and an understanding … Read more

Master Craftsman Builds a CPU by Hand

Master Craftsman Builds a CPU by Hand

To gain a deeper understanding of the CPU, the master craftsman spent a full six months to “solder point by point” and made a CPU by himself, as shown in the masterpiece below. Related articles:How does the CPU recognize the code we write? According to the master craftsman, he mainly used the following three raw … Read more

Comprehensive Embedded System Vocabulary Reference

Comprehensive Embedded System Vocabulary Reference

A ASIC (Application-Specific Integrated Circuit) – A piece of custom-designed hardware in a chip. address bus – A set of electrical lines connected to the processor and all of the peripherals with which it communicates. The address bus is used by the processor to select a specific memory location or register within a particular peripheral. … Read more