Discussing the Issues of Global Variables in Embedded C Programming

Discussing the Issues of Global Variables in Embedded C Programming

Having worked for several years, I have grown from a technical novice to someone who now considers themselves a junior expert. This journey has involved a lot of self-directed learning through various resources. Whether in forums, bookstores, or magazines, I often encounter either shallow posts from beginners or overly abstract conceptual articles. When I finally … Read more

The Concept of Union and Its Application in Embedded Programming

The Concept of Union and Its Application in Embedded Programming

The author has limited capabilities, and if there are any errors in the article, I would greatly appreciate it if friends could point them out. Thank you! Concept of Union In Chinese, a union is also referred to as a union type or a union structure. Its definition format is the same as that of … Read more

Understanding Bit Fields in C and Their Applications in Embedded Programming

Understanding Bit Fields in C and Their Applications in Embedded Programming

The author has limited capabilities, and if there are any errors in the text, I would greatly appreciate it if friends could point them out. Thank you! Concept of Bit Fields A bit field (also known as a bit segment) is a data structure that allows data to be stored compactly in bits and enables … Read more

Memory-Saving Software Design Techniques in Embedded Programming

Memory-Saving Software Design Techniques in Embedded Programming

ID: The Last Bug Author: Unknown Bug First, let’s talk about Everyone knows that there is a significant difference between microcontroller programming and computer programming: the resources of microcontrollers are very limited, and most low-end microcontrollers do not have an operating system. Except for some embedded-level chips that use Linux, most operations are done with … Read more

Key Elements for Embedded Engineers to Master Programming

Key Elements for Embedded Engineers to Master Programming

Follow+Star Public Account Number, don’t miss out on exciting content Source | Internet As an embedded engineer, how can you write efficient and clear C language programs? You need to build the program structure using the C language’s way of thinking. You should have a solid foundation in C language algorithms to implement the program’s … Read more

Can You Believe It? Assembly Language Ranks in the Top 10 Programming Languages for July

Can You Believe It? Assembly Language Ranks in the Top 10 Programming Languages for July

TIOBE has updated the programming language rankings for July 2016, and the biggest highlight this month is that the low-level assembly language has once again entered the top 10. Many people are surprised by the reasons that have led this low-level programming language to re-enter the top 10. They do not understand why a language … Read more

How to Initialize Variables in Embedded Programming?

How to Initialize Variables in Embedded Programming?

Reply with “Embedded Base” to get more learning materials for free When writing code, we assign an initial value to variables to prevent uncertainty in their initial values due to the <span>compiler</span>. For numeric type variables, they are often initialized to 0, but how should other types of variables, such as <span>char</span>, <span>pointer</span>, etc., be … Read more

Finding the Balance in Code Comments for Embedded Programming

Finding the Balance in Code Comments for Embedded Programming

In the vast field of embedded software development, code comments have always been a controversial topic. Some teams adhere to the belief that “code is documentation,” arguing that excellent code should be self-explanatory; while others advocate for detailed code comments, believing that comments can help other developers understand the logic and intent of the code … Read more

Advanced Embedded Programming | Detailed Flowchart of DSPS Protocol Stack Software on DA14531 (Organized with DeepSeek)

Advanced Embedded Programming | Detailed Flowchart of DSPS Protocol Stack Software on DA14531 (Organized with DeepSeek)

01Introduction: The DSPS (Dialog Serial Port Service) protocol stack is based on the BLE GATT protocol to implement serial data transmission. The core process is divided into four stages: initialization, connection management, data transmission, and low power control. Initialization → Broadcasting/Scanning → Establishing Connection → Data Transmission → Sleep/Wake → Disconnect → Loop 02Detailed Flowchart … Read more

Why Embedded Programming is Considered Complex?

Why Embedded Programming is Considered Complex?

Body Understanding embedded issues from a PC programming perspective is the first step; learning to think in embedded programming is the second step; combining PC and embedded thinking in practical projects is the third step. Many friends transition from PC programming to embedded programming. In China, few embedded programmers have graduated from computer science; most … Read more