The Importance of Initializing Local Variables in Microcontroller Programming

The Importance of Initializing Local Variables in Microcontroller Programming

Introduction In microcontroller programming, the use of local variables is fundamental for data manipulation within functions or code blocks. The lifecycle of local variables starts from their declaration and ends when the containing function or code block completes execution. During this process, local variables may be read and written multiple times to store and pass … Read more

Introduction to Lobo Lobo Microcontroller Programming Course for Ages 7+

Introduction to Lobo Lobo Microcontroller Programming Course for Ages 7+

This robot course is suitable for teenagers aged 7 and above. The focus of robot education is to cultivate young people’s interest in robotic science, inspire their motivation to explore science, and systematically set course content according to children’s cognitive development stages.By learning microcontroller robotics and assembling robots using screwdrivers and nuts, students can develop … Read more

Microcontroller Programming Techniques – State Machine Programming

Microcontroller Programming Techniques - State Machine Programming

Follow and star the official account to reach exciting content directly. Source: Play with Embedded Systems Author: Alicedodo Abstract: I wonder if everyone has this feeling, that you can play with microcontrollers and drive various functional modules, but when asked to write a complete set of code, there is no logic or framework, you just … Read more

Practical Microcontroller Programming Experience Summary

Practical Microcontroller Programming Experience Summary

Experience 1: Use “Software Trap + Program ID” to Deal with PC Pointer Fluctuations When the CPU is disturbed by external factors, sometimes the PC pointer may jump to another segment of the program or to a blank segment. In fact, if the PC pointer jumps to a blank segment, it can be handled easily. … Read more

Microcontroller Programming: From Bare Metal to RTOS

Microcontroller Programming: From Bare Metal to RTOS

Introduction For embedded engineers, understanding the principles and application development technologies of RTOS is essential knowledge. However, with a wide variety of real-time operating systems available, selecting a specific RTOS as a basis for learning is a very effective approach. In this regard, Jishu Reading recommends a book co-authored by Arm Technology, published by the … Read more

Comprehensive Guide to 80 MCU Programming Examples (1-30)

Comprehensive Guide to 80 MCU Programming Examples (1-30)

Please click above for free follow… *Example 1: Use P3 port to light up 8 LEDs in sequence #include<reg51.h>//Include the header file for MCU registers / Function: Delay for a period of time void delay(void) { unsigned char i,j; for(i=0;i<250;i++) for(j=0;j<250;j++) ; } / Function: Main function void main(void) { while(1) { P3=0xfe; // First … Read more

100 Microcontroller Programming Tips

100 Microcontroller Programming Tips

From basic knowledge for beginners to practical tips, 100 Q&A essentials suitable for beginners to master microcontrollers. 1. What are the advantages and disadvantages of C language and assembly language in microcontroller development? Answer: Assembly language is a symbolic language that uses mnemonic symbols to represent machine instructions, making it the closest language to machine … Read more

Comprehensive Guide to 80 Microcontroller Programming Examples

Comprehensive Guide to 80 Microcontroller Programming Examples

*Example 1: Use P3 port to light up 8 LEDs in sequence #include<reg51.h> // Include microcontroller register header file / Function: Delay for a certain period of time void delay(void) { unsigned char i,j; for(i=0;i<250;i++) for(j=0;j<250;j++) ; } / Function: Main function void main(void) { while(1) { P3=0xfe; // First light on delay(); // Call … Read more

Some Issues Regarding Stacks in Microcontroller Programming

Some Issues Regarding Stacks in Microcontroller Programming

Wu Jianying Microcontroller Development Board Address Store:【Wu Jianying’s Shop】 Address:【https://item.taobao.com/item.htm?_u=ukgdp5a7629&id=524088004171】 The compiler uses two stacks: one is the hardware stack for subroutine calls and interrupt operations, and the other is the software stack for temporary variables and local variables passed in a stack structure. The hardware stack is allocated starting from the top of the … Read more