How to Dance on the Tip of Embedded C Programming? 7 Examples from a 15-Year Veteran

How to Dance on the Tip of Embedded C Programming? 7 Examples from a 15-Year Veteran

Adapted from online information, Author: Xiao Ma Er I can’t remember when I started frequently taking on the task of recruiting for companies, focusing on the recruitment of personnel for industrial embedded product development. Out of a sense of responsibility towards both the company and newcomers, I tend to seek individuals with solid foundational knowledge … Read more

Microbit | Sensor Series 12 – XY Joystick Sensor

Microbit | Sensor Series 12 - XY Joystick Sensor

01 Introduction The XY joystick sensor, also known as a dual-axis button joystick sensor, is made using a PS2 joystick potentiometer. It features 2-axis analog output (X, Y) and 1 digital output for the button. It is used in scenarios such as smart car/robot control. 02 Principle The dual-axis button joystick mainly consists of two … Read more

Week 8: Embedded Programming [FabNotes016]

Week 8: Embedded Programming [FabNotes016]

This week we will learn embedded programming. Let’s continue to experience the classroom notes filled with new terminology! Microprocessors/Microcontrollers Memory: registers, SRAM (Static Random Access Memory), DRAM (Dynamic Random Access Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), FLASH, fuse Peripherals: A/D (Analog to Digital), comparator, D/A, timer/counter/PWM (Pulse Width Modulation), USART (Universal Synchronous/Asynchronous Receiver-Transmitter), USB … Read more

Practical Operations for Nested Structures and Unions in Embedded C Programming

Practical Operations for Nested Structures and Unions in Embedded C Programming

Content Structures and unions are composite types in the C language, and we often use structures. However, some beginners may not use unions frequently and may even feel unfamiliar with them. Let’s take a brief look at unions: The keyword for defining a union in C is union. The general form for defining a union … 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 insights from … Read more

Minimizing Global Variables in Embedded C Programming

Minimizing Global Variables in Embedded C Programming

This article discusses the issue of global variables in embedded C programming. In embedded systems, especially in OS-less microcontroller programs, a common mistake is the excessive use of global variables. This phenomenon is often seen among programmers transitioning from early assembly languages and beginners, who tend to use global variables almost like function parameters. They … Read more

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