STM32CubeIDE Tutorial: Project Configuration 01

STM32CubeIDE Tutorial: Project Configuration 01

0 Preface The previous article introduced how to use STM32CubeIDE to create a new project and its features. This article will continue to explain how to configure the project, which is also a very important step. 1 Introduction to the Configuration Interface (STM32CubeMX Interface) The project configuration is mainly operated through the original STM32CubeMX tool. … Read more

Using STM32 HAL Library for GPIO Control

Using STM32 HAL Library for GPIO Control

01 Introduction In the development of embedded systems based on STM32 microcontrollers, GPIO (General Purpose Input/Output) control is one of the most fundamental and common operations. By using the STM32 HAL library, configuring and controlling GPIO can be done easily. This article will demonstrate how to use the STM32 HAL library for GPIO control and … Read more

Building the STM32 F103C8T6 Minimum System: Overview and Power System

Building the STM32 F103C8T6 Minimum System: Overview and Power System

This tutorial series will start from the most basic theories and practices, detailing how to build the STM32F103C8T6 minimum system. The article will divide the minimum system into several modules for sequential introduction, thoroughly analyzing the circuit topology and the role of each component in the circuit along with reasons for their selection. This ensures … Read more

Easy Introduction and Practice with STM32 Microcontroller

Easy Introduction and Practice with STM32 Microcontroller

Introduction The STM32 series chips are developed based on the Cortex-M3 core. They adopt the industry-leading Cortex-M3 core architecture, utilizing Harvard architecture and the Thumb-2 instruction set. They can achieve 32-bit performance with a 16-bit code density. Additionally, with single-cycle multiplication instructions, hardware division instructions, and a built-in fast interrupt controller, STM32 chips can run … Read more

A Comprehensive Guide to STM32 Watchdog (Part 1)

A Comprehensive Guide to STM32 Watchdog (Part 1)

● Significance of the Watchdog 1、 The c language execution process In microcontrollers, c programs execute sequentially starting from address 0, where the PC pointer indicates the current execution address. For the STM32F407, as the code executes, the PC pointer continuously moves along the memory addresses. When it reaches the last statement of the main … Read more

How to Handle Single Chip Select in STM32 SPI?

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

Learning STM32: A Comprehensive Guide

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

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

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

32-Bit MCUs Surpassing 8-Bit MCUs

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

Hands-On STM32 SPI Interface (Part 1)

Hands-On STM32 SPI Interface (Part 1)

●SPI Bus 1. What is SPI SPI is the abbreviation for Serial Peripheral Interface, which is a serial peripheral interface. SPI is a high-speed, full-duplex, synchronous communication bus that occupies only four pins on the chip, saving pin space and providing convenience for PCB layout. Due to its simplicity and ease of use, more and … Read more