An Overview of UART Modes in STM32

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)

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

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

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

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

Step-by-Step Guide to STM32 GPIO

Step-by-Step Guide to STM32 GPIO

GPIO, translated as General Purpose Input Output. I believe everyone is quite clear about the meaning of input and output. The most commonly used output function is the LED, while the most commonly used input function is the key. To use the GPIO functionality of STM32, the first thing to clarify is who controls this … Read more

STM32 Microcontroller Smart Bracelet Heart Rate Pedometer Temperature

STM32 Microcontroller Smart Bracelet Heart Rate Pedometer Temperature

Introduction The STM32F103C8T6 microcontroller core board circuit, ADXL345 sensor circuit, heart rate sensor circuit, temperature sensor, and LCD1602 circuit are combined. The ADXL345 gravity acceleration sensor detects the state of a person, calculating the number of steps walked, walking distance, and average speed. The heart rate sensor detects heart rate in real-time, while the temperature … 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

Step-by-Step Guide to STM32 External Interrupts

Step-by-Step Guide to STM32 External Interrupts

● Interrupts Interrupts play a very important role in microcontrollers. The code executes from top to bottom by default, and when it encounters conditions or other statements, it jumps to specified locations. During the execution of code in a microcontroller, unexpected situations may arise that need to be handled, which will interrupt the current code. … Read more

Detailed Analysis of GPIO Initialization Functions in STM32 HAL Library

Detailed Analysis of GPIO Initialization Functions in STM32 HAL Library

Reminder: This article provides a detailed analysis of the functions related to GPIO configuration in the HAL library, including MX_GPIO_Init(), HAL_GPIO_WritePin(), and HAL_GPIO_Init(). At the end of the article, a description of the f1 series GPIO port registers is attached. MX_GPIO_Init() First, let’s look at the source code: void MX_GPIO_Init(void){ GPIO_InitTypeDef GPIO_InitStruct = {0}; /* … Read more