Improving C Language Programming Efficiency: Tips and Methods

Improving C Language Programming Efficiency: Tips and Methods

Everyone engaged in embedded development writes code in C language. Many people are accustomed to using if and switch, and when defining data structures, they only use character types, integer types, arrays, and bits; rarely utilizing structs, unions, or enums. Today, I will summarize my own set of C programming methods. 1. Clever Use of … Read more

How to Catch Errors in Embedded Development at Compile Time?

How to Catch Errors in Embedded Development at Compile Time?

Have you ever thought about how some simple syntax rules in C can lead to clever methods? For example, the length of an array in C cannot be negative; of course, it makes no sense for an array length to be negative. For instance, int arr[1]; is correct, while int arr[-1]; is incorrect. This rule … Read more

What You Need to Learn for Embedded Development

What You Need to Learn for Embedded Development

Today I will share some knowledge that you need to learn for embedded development, to help you with self-study. What you need to learn for embedded development mainly includes the following aspects: 1. Circuit Knowledge (Because hardware design involves component selection, schematic and PCB design, and circuit debugging, you need to master knowledge related to … Read more

How to Set the RTOS Tick in Embedded Development?

How to Set the RTOS Tick in Embedded Development?

Recently, a reader asked this question: Why is the default configuration of the RTOS system tick (Tick) 1000? Can I set it to 100, 10000, or 2000? Many beginners have this question, including myself when I first learned about RTOS. I was confused about the different values for tick configuration and their impacts. Today, let’s … Read more

Essential Wiring Connections for Embedded Development

Essential Wiring Connections for Embedded Development

转自:网络 1. Wiring Diagram for Air Conditioner 2. Wiring for Electromagnetic Valve 3. Homemade Infrared Induction Circuit Wiring 4. Wiring Diagram for Three-Phase Asynchronous Motor Forward and Reverse Rotation 5. Wiring Diagram for Two Double-Control Lights 6. Float Switch Control for Single-Phase Water Pump Supply 7. Limit Switch for Liquid Level Control 8. Difference Between … Read more

Understanding the Differences Between FLASH and EEPROM in Embedded Development

Understanding the Differences Between FLASH and EEPROM in Embedded Development

I'm Lao Wen, an embedded engineer who loves learning. Follow me to become even better together! Memory is divided into two main categories: RAM and ROM, and this article primarily discusses ROM. Initially, ROM could not be programmed; it retained whatever content it was manufactured with, making it inflexible. Later, PROM was introduced, which could … Read more

Embedded Development: State Machine + Event-Driven Framework

Embedded Development: State Machine + Event-Driven Framework

Concept of Event-Driven There are many examples of event-driven in life, like sneaking a nap during self-study while the teacher is not watching. We all went through high school, which was tough. High school students feel that sleeping is the most luxurious thing in the world; sometimes, you can even fall asleep while standing! The … Read more

Embedded Development: Understanding MCU Power Up and Down

Embedded Development: Understanding MCU Power Up and Down

In engineering, there are many issues related to sleep and wake-up. In the vehicle’s network topology, many nodes have similar problems. For example: Reusing SPI leads to communication loss, nodes cannot sleep, node startup time exceeds the required time, nodes occasionally cannot wake up, and so on. These engineering issues are sometimes viewed as network … Read more

A Comprehensive Embedded Development Debugging Tool

A Comprehensive Embedded Development Debugging Tool

In the workplace, what is the most direct and efficient way to report work to leaders? Of course, it’s through a graphical interface! A graphical interface can better express the logical thinking of a program design, making it clear at a glance. Today, I would like to share a professional and comprehensive embedded debugging toolset: … Read more