High-Speed Sampling and Conversion of ADC (Part 2)

High-Speed Sampling and Conversion of ADC (Part 2)

When performing ADC acquisition on STM32, the difference in time efficiency between using software (interrupt or polling) to transfer data and using DMA to transfer data is very significant. This difference is mainly reflected in CPU time consumption and system responsiveness, rather than the time taken for a single sampling conversion itself. For example, consider … Read more

Common C Language Knowledge in STM32 Development

Common C Language Knowledge in STM32 Development

The C language is essential foundational knowledge in microcontroller development. This article lists some common basic knowledge of C language in STM32 learning. 01 Bit Manipulation Bit manipulation is different from bit-banding operations. Bit manipulation refers to performing operations on each bit of a variable, while logical bit operations are performed on the variable as … Read more

Comparison Table of Different ARM Cortex-M Core Characteristics

Comparison Table of Different ARM Cortex-M Core Characteristics

Scan to FollowLearn Embedded Together, let’s learn and grow together We know that STM32 microcontrollers are an organic combination of ST’s peripherals and various Cortex cores from ARM.ST has produced many microcontrollers based on different Cortex-M cores. I found a comparison table of different Cortex-M core characteristics on the ARM website, and I would like … Read more

RT-Thread Learning Notes Series – 28 I2C Driver

RT-Thread Learning Notes Series - 28 I2C Driver

@[toc] https://github.com/wdfk-prog/RT-Thread-Study 28 I2C Driver https://www.i2c-bus.org/i2c-primer/termination-versus-capacitance/ 28.0 Hardware Circuit External link image storage failed, the source site may have anti-leech mechanisms, it is recommended to save the image and upload it directly. The I2C bus uses SDA and SCL to transmit data and clock. First, it is important to realize that SDA and SCL are … Read more

Flame Alarm Experiment (Flame Detection Sensor)

Flame Alarm Experiment (Flame Detection Sensor)

Flame Alarm Experiment (Flame Detection Sensor) 1. Course Content Understand the principles of flame sensors, use flame sensors and buzzer modules to create a simple flame alarm experiment, and output the corresponding results to the serial assistant. 2. Course Objectives 1.Understand the principles of flame sensors 2.Drive the flame sensor 3.Drive the buzzer 4.Output results … Read more

Smooth Sailing with 51 Microcontrollers, But Stuck with STM32?

Smooth Sailing with 51 Microcontrollers, But Stuck with STM32?

After just finishing with the 51 microcontroller, did you think you had a solid grasp on embedded systems? Typing a few lines of code on the development board, watching the LED blink in rhythm, the digital tube displaying numbers, and even creating a simple password lock, your sense of achievement is through the roof. But … Read more

Embedded Application Technology of ARM Cortex-M4

Embedded Application Technology of ARM Cortex-M4

Table of Contents Chapter 1 Overview of Embedded Systems Video Explanation: 14 minutes, 1 episode 1.1 Definition of Embedded Systems 1.1.1 Embedded Microprocessors 1.1.2 Input/Output Interfaces 1.2 Components of Embedded Systems 1.3 Classification of Embedded Systems 1.3.1 Classification by Processor 1.3.2 Classification by Operating System 1.3.3 Classification by Integration Level and Application Layer 1.4 Characteristics … Read more

DIY Drone Flight Control with STM32 on a Budget of 500 Yuan: A Beginner’s Guide

DIY Drone Flight Control with STM32 on a Budget of 500 Yuan: A Beginner's Guide

Hardware design diagrams are available at the end for download. STM32 is a series of 32-bit microcontrollers based on the ARM Cortex-M core, launched by STMicroelectronics. With high performance, low power consumption, and a rich set of peripherals, it is widely used in embedded system development. Core Components STM32 Microcontroller (Main Control Board): Choose the … Read more

Caution in Using JTAG Pins in Embedded Systems

Caution in Using JTAG Pins in Embedded Systems

In embedded systems such as STM32, if it is necessary to disable the JTAG function pins to avoid floating voltage issues (such as a residual voltage of 0.66V), the following key measures should be followed: 1. Causes and Risks of Voltage Residuals ‌Internal Weak Pull-Up/Pull-Down Resistors‌The JTAG pins (such as TMS, TCK, TDI) typically have … Read more

SPI Bus Protocol and Driver Framework

SPI Bus Protocol and Driver Framework

SPI Communication Protocol SPI Control Mode SPI adopts a master-slave control mode. A master device can control multiple slave devices by providing a clock and selecting the slave device. The SPI protocol also specifies that the clock for the slave device is provided by the master device through the SCK pin, and the slave device … Read more