Learn C Language from Scratch: Basics of Microcontroller Programming

Learn C Language from Scratch: Basics of Microcontroller Programming

Learn C Language from Scratch: Basics of Microcontroller Programming The C language is the foundational language for microcontroller programming, akin to the brain language of the microcontroller, allowing our hardware devices to “understand” commands and perform operations. In today’s article, we will approach this from the perspective of beginners, introducing you to the basic knowledge … Read more

Common Type Definitions in Microcontroller Programming

Common Type Definitions in Microcontroller Programming

Keywords“typedef ” in C language is a very important keyword that is not widely used but is critical. It is used to create a new alias for existing data types, facilitating the portability and management of various programs. I often use it in the following aspects: 1) Simplifying complex type declarations: When encountering complex array … Read more

Comparison of Microcontroller Programming Languages: Assembly vs C

Comparison of Microcontroller Programming Languages: Assembly vs C

Introduction A microcontroller, also known as a microcontroller unit (MCU), is a small computer system that integrates a CPU, RAM, ROM, timers/counters, and various I/O interfaces. Due to its advantages such as miniaturization, low power consumption, and high reliability, it has been widely used in various control fields. In the development of microcontroller systems, the … Read more

Recommended Static Code Analysis Tools

Recommended Static Code Analysis Tools

Follow+Star Public Account Number, don’t miss out on exciting content Author | strongerHuang WeChat Public Account | Embedded Column Do you usually use static code analysis tools when writing code?Many people may not have performed static analysis on their code, so today I will recommend several static code analysis tools. Embedded Column 0 About Static … Read more

How to Store Variables at Specific Memory Addresses (Based on Keil MDK-ARM)

How to Store Variables at Specific Memory Addresses (Based on Keil MDK-ARM)

Follow and star our public account to not miss exciting content. There are many reasons to store variables and arrays (such as tables or functions) at specific addresses. A checksum may need to be located at a specific address, and functions may need to be placed at specific memory locations. Depending on the compiler used, … Read more

How to Generate Accurate Delays with New Tang Microcontrollers

How to Generate Accurate Delays with New Tang Microcontrollers

Recently, I’ve been working with New Tang microcontrollers, so I’m documenting this part of the content. Previous related articles Hey, do you know how to achieve accurate delays with the 51 microcontroller? If the user wants to generate precise delay times, it is recommended to use the __nop() function in combination. The __nop() function can … Read more

How to Write Delay Functions for Microcontrollers?

How to Write Delay Functions for Microcontrollers?

In microcontroller design, to ensure specific functions are realized, many electronic engineers equip delay functions. However, many beginners in electronics do not understand the purpose of these delay functions and may not even know how to write them. This article will list the delay functions for microcontrollers, hoping to assist everyone. Generally speaking, a microcontroller … Read more

In-Depth Analysis of Linux Processes: Core Techniques to Boost Your Efficiency!

In-Depth Analysis of Linux Processes: Core Techniques to Boost Your Efficiency!

Linux | Red Hat Certification | IT Technology | Operations Engineer 👇 Join the technical exchange QQ group with 1000 members, note 【Official Account】 for faster approval 1. Concept of Address Space In the study of C/C++ language, we often hear people discussing the concept of addresses in memory. In Linux, the exact concept is … Read more

C Language Essentials: Detailed Explanation of Functions

Click the blue words to follow us This article introduces the definition of functions in C language and the use of sub-functions. It then explains variable scope, defines global variables, static variables, read-only variables, variable initialization, and so on. 1. Function Definition // Define a function int func(int a, int b) { } <return type> … Read more

Detailed Explanation of the C Language Continue Statement

The continue statement in C is used to transfer control to the beginning of the loop. The continue statement skips some code inside the loop and continues with the next iteration. It is mainly used to skip certain code based on specific conditions. Syntax: // Loop statement continue;// Some code lines to skip Example of … Read more