How to Handle Single Chip Select in STM32 SPI?

Previously, when using STM32’s SPI to control many external chips, there was only one chip select for a single SPI peripheral. How can we achieve independent chip selection for one master and multiple slaves? SPI Bus Topology Generally, the SPI bus is connected as shown in the figure below, with one master and multiple slaves. … Read more

Testing the 16-bit ADC in STM32F373

1. Introduction   The previously made test circuit board for the STM32F373 did not have the 16-bit high-precision ADC pins exposed, so a new board was made to test the performance of the 16-bit ADC in the F373. 2. Designing the Circuit Board   Based on the previous experimental circuit board, the original output pin header was … Read more

Learning STM32: A Comprehensive Guide

Introduction Many people who have learned STM32 share a common characteristic: they can only use some representative hardware functions, such as AD conversion, and can only perform single conversions, while they struggle with looping or multiple conversions. This leads to the necessity of referring to the chip manual; however, the problem arises because the chip … Read more

ECG Signal Acquisition Circuit Design Using STM32

The ECG acquisition includes two parts: analog acquisition and digital processing. This design captures the human ECG signal using AgCl electrodes and a three-lead ECG acquisition line. The signal is then processed through a preamplifier circuit, bandpass filter circuit, and a 50 Hz twin-T notch filter before being amplified by the main amplifier circuit and … Read more

Configuring DAC Output for Fixed Voltage and Square Wave on STM32

The STM32F103VCT6 features two 12-bit DACs. The conversion speed of the DAC has not been confirmed, but some online sources suggest a frequency of 1MHz, which means 1us. The ADC conversion time at a working frequency of 56MHz is 1us, and at 72MHz it is 1.17us. If there is a symmetrical relationship between AD and … Read more

An Overview of UART Modes in STM32

Click the blue text to follow us 0. Introduction: Computer communication is divided into serial communication and parallel communication. Parallel communication: Typically transmits data bytes simultaneously using multiple data lines. Serial communication: Transmits data bytes one bit at a time over a single transmission line. Each has its own advantages and disadvantages: Parallel communication: Simple … Read more

Step-By-Step Guide to STM32 General Timers (Part 1)

● General Timer (TM2~TM5) The general timer is managed by the chip and can perform up counting, down counting, or both simultaneously. Additionally, these timers have other functionalities: input capture, output compare, PWM, and single pulse. ● From Manual to Flow The main module of the timer consists of a 16/32-bit counter and its related … Read more

Signal Acquisition and Control with STM32F373

01 STM32F373 Signal Acquisition and Control 1. Introduction   Due to the need to update a circuit board designed based on an old controller chip, this morning we will use the STM32F373 microcontroller to design a signal acquisition and control circuit board. First, we will design and produce it, and then proceed to software debugging. AD\XQWF\2024\CLDesign\Ver2\CLMainF373.PcbDoc … Read more

Building STM32 F103C8T6 System Board Download Circuit Tutorial

1. What is a Download Circuit The download circuit of a microcontroller refers to the hardware circuit used to download the written program (firmware) to the internal memory of the microcontroller. This process is often referred to as programming or flashing. The download circuit includes the debugging interface with the microcontroller and the corresponding circuit … Read more

32-Bit MCUs Surpassing 8-Bit MCUs

Since STMicroelectronics (ST) launched the first STM32 Cortex-M core MCU in 2007, over 16 years, the cumulative shipment of the STM32 series has exceeded 11 billion units, including mainstream, ultra-low power, high-performance, wireless MCUs, and five major series of MPUs. ST’s ranking in the global general-purpose MCU market has jumped from 3rd place in 2017 … Read more