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

Detailed Analysis of Interrupt Functions in STM32 HAL Library

Detailed Analysis of Interrupt Functions in STM32 HAL Library

Reminder: This article briefly reviews the relevant knowledge points of EXTI and NVIC, analyzing the external interrupt callback mechanism of the STM32F1 series microcontroller. Before we start, let’s review some knowledge related to EXTI and NVIC: External Interrupt/Event Controller (EXTI) For interconnect products (series 105, 107), the external interrupt/event controller consists of 20 edge detectors … Read more

Detailed Analysis of Interrupt Functions in STM32 HAL Library – NVIC

Detailed Analysis of Interrupt Functions in STM32 HAL Library - NVIC

Reminder: This article takes external interrupt for lighting as an example, analyzing the usage of interrupt service related functions in the HAL library, their interconnections, and underlying principles. 1. Example Implementation Example Overview: The main function controls LED2 to blink, while the interrupt controls the switch of LED0: First, we use CubeMX to create the … Read more