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

Common Microcontroller Programming Frameworks

Common Microcontroller Programming Frameworks

What is a framework? A program framework is similar to a file outline or template. Writing a program is like writing an article; without an outline or template, it can be quite cumbersome. Why Have a Framework? To save time and reduce errors. For a specific type of program, the logical structure of the code … 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

Microcontroller Programming Examples Collection (1-30)

Microcontroller Programming Examples Collection (1-30)

*Example 1: Use P3 port to light up 8 LEDs in sequence #include<reg51.h> // Include the header file for microcontroller 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 LED on delay(); // … Read more

Playing Simple Scores with a Buzzer Using C Language

Playing Simple Scores with a Buzzer Using C Language

In embedded system development and some fun electronic projects, using C language to control a buzzer to play simple scores is a very interesting practice. It allows hardware to “sound”, adding lively audio effects to our creations. Today, let’s delve into how to achieve this fun functionality. 1. Working Principle of the Buzzer Buzzers are … Read more

Why C Language Will Never Become Obsolete

Why C Language Will Never Become Obsolete

Introduction: The author of this article is Teacher Zhao Yan, personal website: http://zhaoyan.website/blog/index.php/2017/07/15/future/ There are many interesting articles on Teacher Zhao’s website, I recommend checking them out. This article has been authorized for reprint. Evaluating any programming language is bound to attract criticism. It’s always like this. Just like in the chilly spring, when people … Read more