HG533 Router Analysis Tutorial: Firmware Search

HG533 Router Analysis Tutorial: Firmware Search

In the previous section (HG533 Router Analysis Tutorial: Finding Hardware Debug Interface), we analyzed the hardware structure of the PCB and discovered a UART interface. Through this interface, we achieved a Linux shell management interface. In this section, we will use the methods proposed in the last section to access the device and further debug … Read more

Common I/O Ports of MCUs and Their Differences

Common I/O Ports of MCUs and Their Differences

When it comes to microcontrollers (MCUs), the first thing that comes to mind is that they have many input/output (I/O) ports, which can be difficult to distinguish. As the core of embedded systems, they can communicate with external devices or sensors. However, the presence of I/O ports often makes learning challenging for many people. This … Read more

Microcontroller Basics and Applications: Serial Expansion

Microcontroller Basics and Applications: Serial Expansion

Click the blue text to follow us 1. Overview of Microcontroller Serial Expansion The methods for implementing microcontroller serial expansion include commonly used serial bus standards such as: I2C bus, Serial Peripheral Interface (SPI), and Universal Serial Bus (USB). This chapter will focus on the I2C bus. 1. Implementation through dedicated serial standard bus (1) … Read more

How to Output Analog Signals via Microcontroller UART?

How to Output Analog Signals via Microcontroller UART?

1. Introduction In electronic circuit design, there might be a situation where the microcontroller has no DAC resources and no spare PWM ports available. The only remaining option is a UART. So how can we output an analog voltage through this port? By using the microcontroller’s port, we can output a square wave signal with … Read more

STM32CubeMX Configuration for STM32F103C8Tx UART Data Manager

STM32CubeMX Configuration for STM32F103C8Tx UART Data Manager

Introduction Since both the Arduino controlling the lead screw and the board controlling the servo only have one UART, they need to communicate with each other, and also with the Raspberry Pi. Therefore, the number of UARTs is insufficient. Thus, I created a UART Data Manager using the STM32F103 chip, which has three UARTs: USART1~3. … Read more

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

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

STM32CubeIDE Tutorial: Configuration Process

STM32CubeIDE Tutorial: Configuration Process

Click the blue text to follow us 0 Preface: Previously, we learned about STM32CubeIDE and provided the official download link for STM32CubeIDE. This time, we will share the basic configuration required for STM32 projects in STM32CubeIDE, including the configuration of the UART peripheral. 1. Download link for STM32CubeIDE: https://www.st.com/zh/development-tools/stm32cubeide.html Note: The image indicates a Windows … Read more

Designing High Load UART Communication with STM32

Designing High Load UART Communication with STM32

1 Introduction Direct Memory Access (DMA) is a component used by the CPU to “move” (copy) data from one address space to another without CPU intervention during the data copying process. The CPU is notified once the data copying is complete. As a result, using DMA can free up CPU resources when copying large amounts … Read more

Understanding STM32 Serial Communication

Understanding STM32 Serial Communication

Introduction to Serial Communication Classification Based on Data Transmission Direction Simplex: Data transmission only supports data transfer in one direction. Half-Duplex: Allows data to be transmitted in both directions. However, at any given time, data can only be transmitted in one direction, which is essentially a switched direction simplex communication; it does not require separate … Read more