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

Is STM32 Based on Harvard or Von Neumann Architecture?

Is STM32 Based on Harvard or Von Neumann Architecture?

Word Count: 1800 Content Quality Index: ⭐⭐⭐⭐⭐ Modern CPUs are generally categorized into von Neumann architecture (also known as Princeton architecture) and Harvard architecture. The von Neumann architecture refers to the X86 architecture, while the Harvard architecture refers to the ARM architecture. One is widely used in desktop environments (desktops/laptops/servers/workstations, etc.), while the other dominates … Read more

Understanding STM32 Serial Communication

Understanding STM32 Serial Communication

Introduction to Serial Communication Classification Based on Data Transmission Direction Simplex: Data transmission only supports data transfer in one direction. Half-Duplex: Allows data to be transmitted in both directions. However, at any given time, data can only be transmitted in one direction, which is essentially a switched direction simplex communication; it does not require separate … Read more

How STM32 Combines Software and Hardware for Execution

How STM32 Combines Software and Hardware for Execution

Have you ever wondered why software can control hardware? This article analyzes how the STM32 microcontroller combines software and hardware and how the microcontroller program is compiled and executed. Software and Hardware Integration Beginners often have a question: why can software control hardware? Just like the 51 microcontroller, why can we output high and low … Read more

Why Does the STM32 Chip Have So Many VDD Pins?

Why Does the STM32 Chip Have So Many VDD Pins?

Friends who have worked with microcontroller products know that the STM32 chip has multiple VDD and VSS pins, as shown in the figure below: So why are there so many pins? Wouldn’t it be better to have fewer? Fewer pins make PCB routing easier. Actually, there are reasons for the chip being designed this way. … 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

STM32 IoT Kit Basics 06 – Serial Communication

STM32 IoT Kit Basics 06 - Serial Communication

Click the blue text above: IoT Inn Serial communication plays a very important role in embedded development. It is often used to debug systems, print necessary debugging information, and help us analyze and locate problems. Many common peripherals also support serial protocols, such as WIFI modules, Bluetooth modules, 4G modules, fingerprint modules, PM2.5 sensors, formaldehyde … Read more

Introduction to Independent Key in STM32 IoT Kit

Introduction to Independent Key in STM32 IoT Kit

Click the blue text above: IoT Inn to follow us. In previous sections, we used the LED light, buzzer, and relay components, driven by the GPIO output function of STM32. In this section, we will learn about the GPIO input function. When an external button is pressed, the microcontroller can detect it in real-time. Buttons … Read more

Voltage Characteristics of STM32F030 Input Ports

1. Introduction Previously, we tested the input voltage characteristics of the ports in the STC32C030 microcontroller. A signal source DG1062 was used to generate a peak 10V sine AC signal. It can be observed that the voltage at the microcontroller’s IO port is limited to around 9V. So what are the specific characteristics of the … 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