How to Use Complex Pointers in Embedded Programming

How to Use Complex Pointers in Embedded Programming

1. Introduction In C programming, pointers are one of the most error-prone areas, especially when multiple pointers are involved, which can be quite confusing. This article analyzes the commonly used complex pointers in embedded systems to clarify the common pitfalls in using pointers in C language. 2. Function Pointers and Pointer Functions In C language, … Read more

What Can QEMU Do in Embedded Programming?

What Can QEMU Do in Embedded Programming?

What Can QEMU Do in Embedded Programming? 1. Introduction 2. Bare-metal or RTOS Programming in Embedded Systems 3. Research on Network Programming Using QEMU 4. Embedded Graphics Development 5. Development of Embedded Linux 6. Conclusion 1. Introduction In the process of embedded development, a lot of time is spent interacting with hardware devices, controlling their … Read more

Embedded Programming (25) – Differences in C Language Data Types Between STM32 and C51

Embedded Programming (25) - Differences in C Language Data Types Between STM32 and C51

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 Electronics Production” in 2017、”Electrical Experiments in Life” in 2018,“Arduino Programming and Hardware Implementation” in … Read more

Modular Programming for Embedded Systems: Creating a Key Handling Module!

Modular Programming for Embedded Systems: Creating a Key Handling Module!

I am Lao Wen, an embedded engineer who loves learning.Follow me to become even better together! 1. Introduction to key_board The key_board is designed for compact and multifunctional key support in microcontrollers. The software adopts a layered approach and is platform-independent. Users only need to provide basic information about the keys and functions to read/write … Read more

Embedded Programming in ALGOL: Hardware Interfaces and Real-Time Systems

Embedded Programming in ALGOL: Hardware Interfaces and Real-Time Systems

Embedded Programming in ALGOL: Hardware Interfaces and Real-Time Systems Introduction ALGOL (Algorithmic Language) is a historic programming language that, although less popular today compared to languages like C and Python, played a significant role in the development of computer science. This article will introduce how to use ALGOL for embedded programming, particularly in the application … Read more

C++ LED Blinking Program Based on Keil and STM32

C++ LED Blinking Program Based on Keil and STM32

Author | strongerHuang WeChat Official Account | Embedded Column Generally speaking, programming on microcontrollers is done in either assembly or C language, and it is rare to use C++ for development. So, can we really use C++ for microcontroller development? The answer is definitely yes! Below, I will discuss some content about writing a LED … Read more

Summary of C++ Interview Knowledge Points

Summary of C++ Interview Knowledge Points

Basic Concepts of Program Design 1、int i=1; void main(){ inti=i; //i is an undefined value } 2、Type Conversion C++ defines a set of standard conversions between built-in type objects: If one operand’s type is long double, the other operand will be converted to long double If neither is long double, if one is double, the … Read more

Using Timer Interrupts to Implement Breathing Light Effect with CC2530

Using Timer Interrupts to Implement Breathing Light Effect with CC2530

Introduction Today, we will not cover the Zigbee protocol, but rather some operations of the timer in the CC2530 microcontroller. This article uses 8-bit Timer 3 for experimentation, and other timers can be similarly applied. Through this article: You will learn some basic knowledge about timers. You will see configuration instructions for some timer registers. … Read more

IIC Communication Interface Protocol – Layered Architecture Design Simulation

IIC Communication Interface Protocol - Layered Architecture Design Simulation

Regarding the idea of layered design, a detailed design process was explained in a previous article titled “Embedded Hardware Communication Interface Protocol-SPI (Part 2) Layered Architecture Design Simulation Interface” when discussing SPI interface design, so I won’t elaborate further here. Now, using the BSP layer design approach of SPI as a reference, we will use … Read more

Implementing a DAC0832 to Output a Sawtooth Wave

Implementing a DAC0832 to Output a Sawtooth Wave

Implementing a DAC0832 to Output a Sawtooth Wave – Understanding Digital to Analog Conversion from Scratch Today we will implement an interesting case: using the DAC0832 to output a sawtooth wave. Through this case, not only will we learn the basic principles of DACs, but we will also master the methods for waveform generation. Introduction … Read more