Five Considerations for Microcontroller Embedded Programming

Five Considerations for Microcontroller Embedded Programming

In the process of microcontroller programming, if a designer can master multiple programming languages simultaneously, then that designer is undoubtedly a very talented individual. However, mastering assembly, C, and C++ at the same time is quite challenging, and many beginners struggle significantly while learning just one of these languages. This article specifically compiles opinions from … Read more

How to Prevent Variable Changes Due to Interrupts in Microcontroller Programming

How to Prevent Variable Changes Due to Interrupts in Microcontroller Programming

Introduction In embedded development, have you ever encountered a scenario where the value of a global variable suddenly changes? The interrupt service routine has modified it, yet the main program continues to read the old value. Even more frustrating, these issues are often difficult to reproduce, making debugging feel like “catching ghosts.” The root cause … Read more

Goodbye 996! Essential Tips to Boost Efficiency in Microcontroller and PLC Programming

Goodbye 996! Essential Tips to Boost Efficiency in Microcontroller and PLC Programming

Hello everyone! Today, let’s talk about some essential tips in microcontroller and PLC programming that can help you boost your efficiency, allowing you to say goodbye to the 996 work culture and easily tackle your programming tasks! 1. Efficiency Improvement Techniques for Microcontrollers (1) Bit Manipulation: Programming Techniques to Make Microcontrollers Run Faster Basic Concept … Read more

Common Microcontroller Faults and Solutions

Common Microcontroller Faults and Solutions

Click the blue textFollow me! ☀The official WeChat of Jicheng Training Network is the industrial control WeChatwith the most concentratedand specializednumber of people, providing technical articles, free video tutorials, and a free communication platform. Follow Jicheng, and there will be no problem in improving your skills! Consultation Q:4001114100 Source: jcpeixun In work and life, you … Read more

Using Timer Interrupts to Implement Breathing Light Effect with CC2530

Using Timer Interrupts to Implement Breathing Light Effect with CC2530

Introduction Today, we will not cover the Zigbee protocol, but rather some operations of the timer in the CC2530 microcontroller. This article uses 8-bit Timer 3 for experimentation, and other timers can be similarly applied. Through this article: You will learn some basic knowledge about timers. You will see configuration instructions for some timer registers. … Read more

Control LED with Button Using CC2530

Control LED with Button Using CC2530

Introduction Today’s content does not involve the Zigbee protocol, but rather the use of the CC2530 microcontroller to control an LED with a button. This tutorial is divided into two parts: Polling to detect button levels for controlling the LED. Using button interrupts to control the LED. 1. Principle Analysis 1. Button Functionality The schematic … Read more

Does ARM Architecture Support Interrupt Nesting?

Does ARM Architecture Support Interrupt Nesting?

Click the blue "Arm Selected" in the upper left corner and select "Set as Star" Note: This article primarily discusses the ARMV8-aarch64 architecture, gicv3, and Linux kernel 5.14 by default. Consideration: Have you ever thought about a scenario where a high-priority interrupt preempts another interrupt that is currently being processed? This is known as interrupt … Read more

Understanding Interrupts in Microcontrollers

Understanding Interrupts in Microcontrollers

The microcontroller’s CPU, while processing an event A, receives a request to quickly handle another event B (interrupt occurs); the CPU temporarily interrupts its current work to process event B (interrupt response and interrupt service); upon completing event B, the CPU returns to the original point of event A that was interrupted to continue processing … Read more

Essential Concepts of Microcontroller Terminology

Essential Concepts of Microcontroller Terminology

Bus: Refers to the information transmission line that serves multiple components. In microcomputer systems, various components communicate with each other through the bus. Address Bus (AB): The address bus is unidirectional and is used to transmit address information. The width of the address bus is 16 bits, thus allowing direct addressing of 64K external memory. … Read more

Step-by-Step Guide to STM32 External Interrupts

Step-by-Step Guide to STM32 External Interrupts

● Interrupts Interrupts play a very important role in microcontrollers. The code executes from top to bottom by default, and when it encounters conditions or other statements, it jumps to specified locations. During the execution of code in a microcontroller, unexpected situations may arise that need to be handled, which will interrupt the current code. … Read more