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

Configuring Interrupt Priority for TAE32G5800

Configuring Interrupt Priority for TAE32G5800

01 Application Function Introduction 1.1 • What is an Interrupt An interrupt is a mechanism that temporarily halts the CPU’s normal execution of the main program to handle urgent tasks, after which it returns to the previously paused program, as illustrated below. Figure 1.1 Interrupt Diagram In digital power and motor control systems, the significance … Read more

In-Depth C++ Device Driver Development: Interrupt Handling Basics Revealed

In-Depth C++ Device Driver Development: Interrupt Handling Basics Revealed

1. Interrupts: The “Emergency Contact” Between Devices and Processors In the complex operation of computer systems, interrupts are a crucial technology. Simply put, an interrupt is when the computer pauses the currently running program to execute a related service program upon encountering an urgent event that needs to be processed. Once completed, it automatically returns … Read more

Best Programming Model for Low Power Design: Asynchronous Programming

Best Programming Model for Low Power Design: Asynchronous Programming

Asynchronous programming can create efficient programs that are fast and resource-saving. It allows high concurrency in a single-threaded environment and can implement TCP/IP protocol stacks without an operating system. Fast and resource-efficient, it can keep power consumption at the lowest level, making asynchronous programming the best programming model for low power design. Three Realms There … Read more

Why Are 2 Data Points Lost During SPI Transmission?

Why Are 2 Data Points Lost During SPI Transmission?

Someone used the STM32F4 chip to validate the SPI functionality. When using two on-chip SPI modules for transmission and reception based on interrupts, it was found that there was always a loss of received data, seemingly losing the last 2 data points. The code used the HAL library’s API functions. What could be the reason? … Read more

Understanding STM32 Interrupt Priority: Preemptive and Response Priority

Understanding STM32 Interrupt Priority: Preemptive and Response Priority

1. Preemptive Priority and Response Priority The STM32 interrupt vector has two attributes: preemptive priority and response priority, with a smaller attribute number indicating a higher priority level.Preemption refers to the ability to interrupt other interrupts, meaning that it allows for nested interrupts (interrupt B can interrupt the execution of interrupt service function A, and … Read more

ARM Interrupt Priority and Nested Preemption Issues

ARM Interrupt Priority and Nested Preemption Issues

While sitting on the high-speed train from Shanghai to Beijing, the long journey indeed makes one feel bored (I couldn’t get a direct train, so I had to go slowly, stopping at each station. It’s frustrating, even in the era of high-speed trains. It reminds me of the time I spent hours on a green … Read more

Common Methods for Receiving and Parsing UART Data

Common Methods for Receiving and Parsing UART Data

Follow+Star PublicAccount, don’t miss out on exciting content Author | strongerHuang WeChat Public Account | strongerHuang The UART serial port is a common communication method in embedded development, but many people still do not know how to use the serial port. Today, I will share a few points about serial ports: Serial Port Receiving Methods … Read more