Exploring Two Interrupt Modes for Serial Reception on DSP28335 (Similar to Transmission Interrupt)

Exploring Two Interrupt Modes for Serial Reception on DSP28335 (Similar to Transmission Interrupt)

Let’s explore the mysteries of DSP To explore DSP The DSP series main control chips are widely used in power electronics and switch-mode power supply circuits. Their powerful data computation and fixed-point floating-point processing capabilities make them extensively used for data acquisition and algorithm processing in circuits. Moreover, TI and ADI’s DSP chips come with … Read more

STM32 UART Variable Length Reception: A Comprehensive Guide

STM32 UART Variable Length Reception: A Comprehensive Guide

Click the blue text above to follow us Embedded Training – Choose Jufeng Smart Link Why Use UART Variable Length Reception Standard blocking reception functions HAL_UART_Receive(UART_HandleTypeDef * huart, uint8_t * pData, uint16_t Size,uint32_t Timeout) // huart: handle // pData: variable to hold received data // Size: size of data to be received Interrupt reception functions … Read more

STM32F103 Series – GPIO External Interrupt – HAL Library

STM32F103 Series - GPIO External Interrupt - HAL Library

1. What is an Interrupt? It interrupts the normal execution of the CPU’s program to handle an urgent program, and after processing, it returns to the original paused program to continue execution. As shown in the figure below, for example, I am doing homework, and suddenly feel thirsty, so I go to drink water. The … Read more

STM32 Series Tutorial (7): Understanding GPIO Interrupt Mechanism

STM32 Series Tutorial (7): Understanding GPIO Interrupt Mechanism

Table of Contents 1. GPIO Interrupt Related Registers 2. Code Implementation of PA1 Input Interrupt 3. Summary & Precautions 01 — GPIO Interrupt Related Registers In the previous STM32 series tutorial (3): Understanding STM32’s GPIO, several basic registers of GPIO were discussed. However, to use the interrupt functionality, it is necessary to utilize the GPIO … Read more

Lecture Notes on Microcomputer Principles and Interface Technology for Embedded Systems

Lecture Notes on Microcomputer Principles and Interface Technology for Embedded Systems

The field of embedded systems encompasses a wide range of topics, and there are many choices regarding what and how to teach in the “Microcomputer Principles and Interface Technology” course. Here, I will introduce my approach. 1. Overview of the Main Knowledge Points First Level Knowledge Points (1) Von Neumann Architecture; (2) Embedded Hardware Systems; … Read more

Interrupts in STM32 – The Key to Real-Time Response

Interrupts in STM32 - The Key to Real-Time Response

Part.0 Introduction: Why Do We Need Interrupts? Imagine you are reading a book at home, but you also need to pay attention to visitors. At this moment, you have two options: Polling: Every few minutes, you put down the book to check at the door if someone is there – this is inefficient and prevents … Read more

Fundamentals of ESP32 Peripheral Control: Detailed GPIO Applications and Input/Output Examples

Fundamentals of ESP32 Peripheral Control: Detailed GPIO Applications and Input/Output Examples

1. What is GPIO? GPIO (General Purpose Input Output) refers to “general-purpose input/output ports,” which are pins that can be flexibly configured as input or output through software. Typical applications in embedded development include: Controlling output devices such as LED lights, relays, and buzzers Detecting input devices such as buttons and dip switches Interacting with … Read more

ESP32 – Rust Practical Application: Polling vs. Interrupts, Which Button Detection Method is Superior?

ESP32 - Rust Practical Application: Polling vs. Interrupts, Which Button Detection Method is Superior?

In your embedded projects, can the program really respond immediately when a button is pressed? The seemingly simple “polling” may hide performance traps and response delays; while “interrupts” provide a more elegant and efficient solution. This article will guide you through a classic “button control LED” experiment using <span>Rust</span> and <span>ESP32-S3</span>, allowing you to intuitively … Read more

VxWorks BSP Board Support Package Development Manual

VxWorks BSP Board Support Package Development Manual

1. Introduction Board Support Package (BSP) is the hardware abstraction layer for VxWorks, responsible for initializing the processor, memory, clocks, interrupt controllers, and peripherals at system startup, and then handing control over to the operating system kernel. Without a suitable BSP, VxWorks cannot run on your hardware. BSPs are typically highly dependent on specific hardware … Read more

The Battle of Interrupt Priorities in STM32: How NVIC Preemption and DMA Saved Our Production Line from Losing Millions

The Battle of Interrupt Priorities in STM32: How NVIC Preemption and DMA Saved Our Production Line from Losing Millions

If you ask me what the most persistent issue in embedded development is, I would say just two words: interrupts. Especially in STM32, if the interrupt priorities are not configured correctly, the system may appear normal on the surface, but underneath it is a complete mess. The loss we experienced was a vivid example. It … Read more