From Schematic PCB to Porting RTOS: A Detailed Discussion on STM32 GPIO

From Schematic PCB to Porting RTOS: A Detailed Discussion on STM32 GPIO

Introduction Why Should We Understand Both Hardware and Software? In 2010, while I was at Huawei, I temporarily took a break from my regular duties to participate in recruitment efforts. To recruit more people for my department and compete for HC numbers (the number of positions available), I worked hard to ensure that every candidate … Read more

The Five Core Companies in the MCU Chip Industry!

The Five Core Companies in the MCU Chip Industry!

The scale of China’s MCU chip industry is expanding, driven by the electrification and intelligence of automobiles, leading to a high increase in demand for automotive MCUs.A microcontroller unit (MCU) is a chip that integrates a CPU, memory, input/output interfaces, etc., with 8-bit and 32-bit being the main types on the market. China’s MCU chip … Read more

Collection of Microcontroller Design Examples

Collection of Microcontroller Design Examples

Alcohol Concentration Monitor Based on 51 Microcontroller Electronic Perpetual Calendar Design Based on 51 Microcontroller Smart Clothes Drying Rack Design Based on 51 Microcontroller Tetris Game Design Based on 51 Microcontroller DC Motor Speed Control Design Based on 51 Microcontroller Traffic Light Design Based on 51 Microcontroller Basketball Scoring System Design Based on 51 Microcontroller … Read more

Microcontroller Program Optimization Process!

Microcontroller Program Optimization Process!

01 Program Structure Optimization 1. Program Writing Structure Although the writing format does not affect the quality of the generated code, certain writing rules should still be followed during actual programming. A clearly written program is beneficial for future maintenance. When writing programs, especially for statements like While, for, do…while, if…else, switch…case, and their nested … Read more

Why Use C Language for Microcontrollers?

Why Use C Language for Microcontrollers?

Porting C to the MCU (commonly known as microcontroller) 8051 began in the late 1980s. Objectively speaking, there are many challenges in porting C to the 8051 MCU. For example: · The 8051’s non-Von Neumann architecture (separate program and data memory spaces), along with additional bit-addressable memory space on the chip;  · The on-chip data and … Read more

10 Challenges in Microcontroller Circuit Design

10 Challenges in Microcontroller Circuit Design

The microcontroller is the core component of embedded systems, and circuits using microcontrollers are much more complex. However, when modifying and adding new features, circuits with microcontrollers are easier to implement, which is why electronic devices use microcontrollers. So, what are the challenges to pay attention to in the design of microcontroller circuits? 1. Selection … Read more

What Are the Main Development Languages for Microcontrollers?

What Are the Main Development Languages for Microcontrollers?

Microcontrollers have many names, such as MCU (Microcontroller Unit), and also referred to as microcontrollers. With the popularity of the Internet of Things, the demand for microcontrollers has been increasing. At the same time, as the performance and resources of microcontrollers have improved, the number of programming languages for developing microcontrollers has also increased. So, … Read more

17 Common Microcontroller Circuit Design Modules

17 Common Microcontroller Circuit Design Modules

1. Dual Channel 232 Communication Circuit Three-wire connection method, corresponding to a female connector, operating voltage 5V, can use MAX202 or MAX232. 2. Transistor Serial Communication This circuit is built with transistors, simple and low-cost, but it works very well at low baud rates. 3. Single Channel 232 Communication Circuit Three-wire method, completely equivalent to … Read more

Common Module Examples for 51 Microcontrollers (Part 1)

Common Module Examples for 51 Microcontrollers (Part 1)

Since the late 1970s, when microcontrollers were first introduced, there has been a long history of development in microcontroller technology. Microcontrollers are particularly suitable for embedded systems and are subject to strict size management, which is why almost every electronic device you see today integrates a microcontroller. The widespread application means that learners of microcontrollers … Read more

Display and Input Modules in Microcontroller Systems

Display and Input Modules in Microcontroller Systems

In microcontroller systems, the display module and input module are core components for achieving human-machine interaction (HMI). Below are their classifications, principles, and typical applications: 1. Display Module is used to visualize the data or status processed by the microcontroller. 1.1 Common Display Types LED (Light Emitting Diode) Monochrome LED: Indicates status (e.g., power, alarm). … Read more