18 Q&A on Basic Microcontroller Programming Knowledge

18 Q&A on Basic Microcontroller Programming Knowledge

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 words to represent machine instructions, making it the closest language to machine code. Its main advantages are low resource usage and high execution efficiency. However, assembly languages may differ … Read more

Comparing Programming Methods of 51 and STM32 Microcontrollers

Comparing Programming Methods of 51 and STM32 Microcontrollers

STM32 and 51 microcontrollers are two common series of microcontrollers, which differ in hardware architecture, performance characteristics, and programming methods. However, from the perspective of C language programming, I believe they are quite similar. Let’s compare their programming characteristics: 51 & STM32 STM32: STM32 is a 32-bit microcontroller based on the ARM Cortex-M core, featuring … Read more

Microcontroller C Language Programming Insights

Microcontroller C Language Programming Insights

During the process of writing this 8*8 key program, whether I was writing it myself or referencing others’ programs, I found that I had many misunderstandings about some basic points of C language and programming norms. Some were due to my previous bad programming habits, and some were a manifestation of not having a solid … Read more

Comparison of Microcontroller Programming Languages

Comparison of Microcontroller Programming Languages

Introduction A microcontroller, also known as a microcontroller unit (MCU), integrates a complete computer system, including the CPU, RAM, ROM, timers/counters, and various I/O interfaces, onto a single chip. Due to its numerous advantages and characteristics, the applications of microcontrollers are extremely wide-ranging. A microcontroller system consists of both hardware and software systems, which involves … Read more

Discussion on Microcontroller Programming Efficiency

Discussion on Microcontroller Programming Efficiency

I am an embedded developer who has worked on various models of microcontrollers and embedded systems. Sometimes, I often look at programs written by others and frequently find many issues in the details. Although the functionalities achieved are the same, the stability can vary. I would like to discuss some problems I have observed for … Read more

How to Master Microcontroller Programming Techniques

How to Master Microcontroller Programming Techniques

In today’s era, new technologies are emerging one after another. In the field of electronics, especially in automation and intelligent control, traditional control systems made of discrete components or digital logic circuits are being replaced at an unprecedented speed by microcontroller-based intelligent control systems. Most higher engineering schools have already introduced microcontroller courses. Microcontrollers have … Read more

Understanding the Volatile Keyword in Microcontroller Programming

Understanding the Volatile Keyword in Microcontroller Programming

Click the “blue text” above Follow us! The variable modified by volatile indicates that this variable may be unexpectedly changed. For programmers, this keyword is quite common in microcontroller programming. Volatile means changeable and unstable. In fact, many people may have never seen this keyword and are unaware of its existence. There are also many … Read more

80 Examples of Microcontroller Programming

80 Examples of Microcontroller Programming

▍Note: If you need the Word source file, please reply “Admin” in the public account backend to get the material. *Example 70: Software Debounce Independent Keyboard Input Experiment #include<reg51.h> // Include header file defining 51 microcontroller registers sbit S1=P1^4; // Define S1 pin as P1.4 sbit LED0=P3^0; // Define LED0 pin as P3.0 /* Function: … 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

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