How to Master Microcontroller Programming Design: Methods and Steps

How to Master Microcontroller Programming Design: Methods and Steps

The motivations for learning microcontrollers can be categorized into four types: firstly, learning for personal interest; secondly, learning for a major; thirdly, learning for a job; and fourthly, learning out of necessity at work. Regardless of the motivation, different individuals may require different learning methods based on their major and the depth of their electronic … Read more

What Is a Microcontroller? How to Get Started with Programming?

What Is a Microcontroller? How to Get Started with Programming?

Click the blue text to follow, reply with “Getting Started Materials” to obtain a tutorial from beginner to advanced on microcontrollers Written by | Wujì (WeChat:603311638) Original | Article No. 21 Full text775 words, reading takes about 3 minutes I am not a graduate of electronics, but I entered this industry through self-study of microcontrollers. … Read more

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 Made Easy with MPLAB MCC

Microcontroller Programming Made Easy with MPLAB MCC

Do you have numerous product prototypes in mind but struggle to validate them quickly? Are you still troubled by microcontroller programming and PCB design in the early stages of product design? Microchip offers you the most intuitive code development tool—MPLAB® Code Configurator (MCC), allowing you to easily generate code in a graphical programming environment and … 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

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