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

Introduction to STM32 EXTI

Introduction to STM32 EXTI

For STM32, from previous learning, we can know that STM32 refers to the 32-bit microcontroller developed by STMicroelectronics. Today we will learn about the EXTI of STM32. 1. Introduction to EXTI EXTI (External interrupt/event controller) manages the 20 interrupt or event lines of the controller. Each interrupt or event line corresponds to an edge detector, … Read more

Basics of STM32 IoT Kit Part 05 – External Interrupts

Basics of STM32 IoT Kit Part 05 - External Interrupts

Click the blue text above: IoT Inn In the previous section, we learned about the independent key operation of the microcontroller. In fact, we used a polling method, which consumes MCU resources as it constantly checks for key presses. In this section, we will use interrupts to implement key operations. 01 Basic Knowledge 1Introduction to … Read more

Understanding the Interrupt System in STM32

Understanding the Interrupt System in STM32

Little Science Gas Station In embedded learning, the STM32 series chips are particularly favored due to their many excellent features, such as the STM32 MCU integrating a wealth of peripherals, including communication interfaces (like UART, SPI, I2C, CAN, etc.), analog and digital interfaces, timers, and interrupt controllers. Today, Little Science introduces the interrupt system of … Read more

Technical Sharing | ARM Series – Interrupts (Part 3)

Technical Sharing | ARM Series - Interrupts (Part 3)

This article is selected from the Extreme Technology column “Arm Technology Blog” and is authorized to be transferred from the WeChat public account Lao Qin Talks about Chips. Previously, we sharedinterrupts and how they are handled in the ARM architecture and GIC-600 related knowledge; this article will introduce redistributor related knowledge. Keep it simple, keep … Read more

How ARM Cores Respond to Interrupts

How ARM Cores Respond to Interrupts

Click the blue "Arm Selection" in the top left corner and select "Set as Favorite" 1. Interrupt Response Model of 51 Microcontroller Let’s recall the use of interrupts in microcontrollers. As shown in the figure below, on the left is the pin diagram of the 51 microcontroller, where P3.0-P3.5 are the corresponding interrupt pins. When … Read more

Using UART IDLE Interrupt for Receiving Variable Length Serial Data

Using UART IDLE Interrupt for Receiving Variable Length Serial Data

Introduction In serial communication applications, we often use receive and transmit interrupts, which most of you are familiar with. There is a very useful interrupt that may be overlooked, which is the bus IDLE interrupt. When a frame of data transmission ends, the bus will maintain a high level state, at which point the MCU’s … Read more