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?

I am Lao Wen, an embedded engineer who loves learning.Follow me, and let’s become better together! The first step is to look at embedded issues from the perspective of PC programming; the second step is to learn to think in embedded programming; the third step is to combine PC and embedded thinking and apply it … Read more

Five Considerations for Microcontroller Embedded Programming

Five Considerations for Microcontroller Embedded Programming

In the process of microcontroller programming, if a designer can master multiple programming languages simultaneously, then that designer is undoubtedly a very talented individual. However, mastering assembly, C, and C++ at the same time is quite challenging, and many beginners struggle significantly while learning just one of these languages. This article specifically compiles opinions from … Read more

Sharing an Embedded Programming Template

Sharing an Embedded Programming Template

Input Events to State Machine #include "stdio.h" #define EXECUTE_VOID(func) {if((func)!=NULL) (func());} typedef void (*select_machine_t)(void); typedef enum _event_index{ event_index_1 = 0, event_index_2, event_index_3, event_index_end} event_index_e; typedef enum _status_index{ status_index_1 = 0, status_index_2, status_index_end} status_index_e; void machine_1(void);void machine_2(void);void machine_3(void);void machine_4(void); select_machine_t select_machine[event_index_end][status_index_end] = { {machine_1, machine_2}, {NULL, machine_3}, {machine_4, NULL}}; void machine_1(void){ printf("machine_1\r\n");} void machine_2(void){ printf("machine_2\r\n");} void … Read more

How to Achieve Byte High-Low Bit Swapping in Embedded Programming?

How to Achieve Byte High-Low Bit Swapping in Embedded Programming?

Follow+Star Public Account, don’t miss out on exciting content Source | Technology Makes Dreams Greater Recently, I encountered the issue of byte high-low bit conversion in a protocol, so I lazily searched online and found a similar problem, and learned a new term called butterfly swapping. The protocol requires that the low byte is on … Read more