How to Enable DWT for Counting in STM32 Based on Arm®v7-M Architecture

How to Enable DWT for Counting in STM32 Based on Arm®v7-M Architecture

Keywords: DWT, DEMCR Table of Contents 1. Introduction 2. Research 3. Enabling DWT for Counting 4. Conclusion 01 Introduction When using the STM32H7, the customer wants to utilize DWT counting to measure code execution time and evaluate execution efficiency. The customer found that after power cycling or resetting, they could not enable DWT for counting. … Read more

Recommended Reference Books for Core Courses in Electronic Information

Recommended Reference Books for Core Courses in Electronic Information

Core Courses in Electronic Information · Embedded Systems In today’s rapidly developing information technology landscape, embedded technology has become a core driving force for the advancement of intelligence. Embedded systems are widely used in fields such as smart homes, industrial control, and medical devices. Taking smartphones as an example, their core consists of a complete … Read more

Data Visualization Host Software: The STM32 Debugging Tool STM32CubeMonitor

STM32CubeMonitor not only provides variable monitoring capabilities but also offers a rich set of components to build various styles of graphical interfaces, along with numerous free third-party components for functional expansion. Additionally, STM32CubeMonitor supports remote monitoring functionality. STM32CubeMonitor is a variable monitoring and visualization tool that connects to the target MCU via the ST-LINK’s SWD … Read more

Proteus + STM32 Simulation + Code for Temperature, Humidity, Formaldehyde, and PM2.5 Monitoring with Sound and Light Alarm System

Proteus + STM32 Simulation + Code for Temperature, Humidity, Formaldehyde, and PM2.5 Monitoring with Sound and Light Alarm System

Bilibili video link: https://www.bilibili.com/video/BV1c1ZXYKEMN/?spm_id_from=333.1387.homepage.video_card.click&vd_source=430bddfa2f26cdc8e5c9331f2166f826 01 — Project Overview The system uses the STM32F103C8 as the main control chip, employing a serial port and OLED display for data output. It utilizes a buzzer and LED lights for sound and light alarms, and a KEY button for interface switching and threshold settings. The DS18B20 is used for … Read more

In-Depth Understanding of SPI Communication Protocol and Practical Applications with STM32 (W25Q128 Driver)

In-Depth Understanding of SPI Communication Protocol and Practical Applications with STM32 (W25Q128 Driver)

1. Introduction to W25Q128 W25Q128 is a 128M-bit (16MB) SPI interface Flash memory chip launched by Winbond, supporting standard SPI, Dual-SPI, and Quad-SPI modes. Key features include: Operating Voltage: 2.7V~3.6V Page Structure: 256 pages/block, 16KB per block, total of 1024 blocks Supports page programming (256 bytes/page) Erase operations supported: sector erase (4KB), block erase (32/64KB), … Read more

TCAN4550 SPI-CANFD Debugging Notes

TCAN4550 SPI-CANFD Debugging Notes

Table of Contents Standard Version and Q1 Version Schematic Diagram Physical Diagram Test Wiring Default Power-On Test STM32CubeMX Configuration Adaptation of SLLC469 Driver Library SPI Read ID Test Steps to Send and Receive CAN Messages MCAN and MRAM Configuration CAN Send Test CAN Receive Test VCCOUT Direct 5V Test Open Circuit, Short Circuit, and Busoff … Read more

Embedded Development with MCU – FPM383C Fingerprint Recognition

Embedded Development with MCU - FPM383C Fingerprint Recognition

The FPM383C is a high-performance fingerprint recognition module characterized by fast recognition and high precision. Among many fingerprint sensors, the FPM383C is favored, especially by students working on graduation projects or course designs. Today, I will guide you through the fingerprint module (FPM383C) sensor. 1. Searching and Purchasing the Sensor There are many websites to … Read more

Understanding the Driving Capability of MCU’s SPI Interface and GPIO: How Many Slave Devices Can SPI Connect?

Understanding the Driving Capability of MCU's SPI Interface and GPIO: How Many Slave Devices Can SPI Connect?

Friends involved in hardware design should be familiar with the SPI interface and the GPIO ports of MCUs, and many have personally designed SPI interfaces. When designing, did you consider this important parameter? — The driving capability of the SPI interface and ordinary GPIO ports. Today, let’s discuss how to evaluate the driving capability of … Read more

Study Notes: Embedded Technology (3): Design and Implementation of an Infusion Monitoring System Based on STM32

Study Notes: Embedded Technology (3): Design and Implementation of an Infusion Monitoring System Based on STM32

0 Introduction Intravenous infusion is one of the most commonly used auxiliary medical methods in clinical medicine. According to statistics, over 80% of hospitalized patients receive intravenous infusion therapy. During the infusion treatment, medical staff select the appropriate infusion speed based on the medication and the patient’s condition. Currently, most hospitals still rely on the … Read more

I2C Communication Principles and Programming Implementation

I2C Communication Principles and Programming Implementation

I2C (Inter-Integrated Circuit) is a serial communication protocol used for short-distance communication, typically for data transmission between microcontrollers and various peripheral devices (such as sensors, displays, memory, etc.). Characteristics of the I2C Protocol The I2C protocol has several notable features: Two-wire Communication: The I2C protocol uses only two signal lines: SDA (data line) and SCL … Read more