Compilation of Achievements from Wuhan University of Science and Technology (1)

National Awards Compilation of Achievements from Wuhan University of Science and Technology Independent Innovation and Industrialization of Manufacturing Technology for Oriented Silicon Steel by Wuhan Iron and Steel Corporation Oriented silicon steel is a type of steel material with excellent soft magnetic properties, primarily used in the electromechanical and energy industries. It is a major … Read more

Advanced Embedded Programming Techniques: Data-Driven Programming

1. Introduction Today, I would like to recommend a piece of pure instrumental music that has truly touched the author; it might just be one of those few pieces. Alright, today I will introduce the technique of data-driven programming, which can help everyone write high-quality code in their daily work. 2. What is Data-Driven Programming? … Read more

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

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

The Importance of Modular Programming and Driver Separation in Embedded Development

Introduction When a project team undertakes a relatively complex engineering task, it means that you are no longer working alone. Instead, you collaborate with team members, each responsible for a part of the project. For instance, you might only be responsible for the communication or display section. At this point, you should write your part … Read more

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

Embedded Programming (24) – How to Use the #ifndef Directive?

Lifetime Technical Support:186 3636 9649 Author Introduction: Fan Shengmin (186 3636 9649), Member of the Science Writers Association of Yuncheng City, Member of the Science Writers Association of Shanxi Province. Author of maker education. Published “Playing with Electronics” in 2016, “Super Fun Electronic Production” in 2017, “Electrical Experiments in Life” in 2018, “Arduino Programming and … Read more

Reflections on Embedded Programming

A few months ago, I had a pleasant lunch in Baltimore with two young entrepreneurs who had recently graduated from the Computer Science department at Johns Hopkins University and started a rapidly growing consulting company. Their company specializes in writing web-centric database software using a language known as Ruby on Rails (also referred to as … Read more

Applications of Structures and Unions in Embedded Programming

01Union In the previous article “Combining Enumerations and Structures”, it was mentioned that a structure is like a packaging encapsulation, encapsulating some variables with common characteristics inside. A structure is a constructed type or complex type that can contain multiple members of different types. In the C language, there is another syntax very similar to … Read more

Applications of Embedded Programming: The Intricacies of Union

Concept of union In Chinese, union is referred to as a union, joint, or collective. Its definition format is the same as that of a struct, but its meaning is entirely different. Below is the definition format of a union: union union_name { member_list } union_variable_name; Since its definition format is the same as that … Read more