Introduction to TCP/IP Communication Protocol (1) – Overview of LwIP

Introduction to TCP/IP Communication Protocol (1) - Overview of LwIP

1. Introduction 1. Why use Ethernet for communication? Ethernet refers to a local area network that complies with the IEEE 802.3 standard. It is a type of internet technology, and since it occupies the highest proportion in networking technology, many people directly equate Ethernet with the internet. However, IEEE also has other local area network … Read more

Embedded – Timer and External Interrupt Simulated UART

Embedded - Timer and External Interrupt Simulated UART

The following are the general steps and example code for simulating UART (Universal Asynchronous Receiver-Transmitter) communication using timers and external interrupts (taking STM32 as an example, using C language). This method can achieve basic UART communication functionality through software simulation without hardware UART peripherals or when additional UART features are required. #include “stm32f10x.h” // Define … Read more

Understanding STM32 SPI Communication (Master-Slave Dual Machine SPI Communication)

Understanding STM32 SPI Communication (Master-Slave Dual Machine SPI Communication)

Click the blue text Follow us STM32 SPI Communication High-speed full-duplex communication bus The SPI communication uses 3 lines and a chip select line. The 3 lines are SCK, MOSI, and MISO, and the chip select line is NSS (CS). The NSS signal line goes from high to low, which is the start signal for … Read more

2. Naming Conventions of STM32 and the Architecture of Cortex-M3 Chips

2. Naming Conventions of STM32 and the Architecture of Cortex-M3 Chips

Hello everyone, I am Xian Di! The following content is a summary of my personal learning notes on microcontrollers. Please open in the WeChat client 1. Naming Conventions of STM32 What are the differences between STM32F103 and STM32F407? How can we distinguish them? STM32 has a rigorous naming convention, for example: STM32F103ZET6 1. STM32: Indicates … Read more

Embedded Development Engineer: Coding, Soldering, and Repairing

Embedded Development Engineer: Coding, Soldering, and Repairing

01 Identifying the ProblemI have a STM32F407G-DISC1 development board, with the MCU being STM32F407VGT6. Recently, I needed to use this board for a test, but it turned out to be non-functional. After sitting idle for a long time, it was prone to failure.I conducted some troubleshooting, first checking that there were no short circuits between … Read more

Porting FreeRTOS

Porting FreeRTOS

Introduction I wrote this porting guide because a colleague from my WeChat public account asked me to write a tutorial on porting, so I wrote this article at their request. Preparation Before porting, we first need to obtain the official source package of FreeRTOS. Here are two download links: One is the official website: http://www.freertos.org/ … Read more

What to Do When the External Reference Voltage of the MCU ADC Changes?

What to Do When the External Reference Voltage of the MCU ADC Changes?

Regarding the reference voltage of the ADC, I have found that many engineers do not have a clear understanding. This is especially true in scenarios where the battery directly powers the MCU and the ADC is used. This article provides a brief summary. Taking the classic STM32F103 as an example, the reference voltage for the … Read more

Review of Domestic Alternatives to STM32 (6)

Review of Domestic Alternatives to STM32 (6)

At the request of readers, Embedded ARM will continue to introduce domestic products that can replace STM32. Today, we present the Dongsoft Carrier ES32F369x, which can perfectly replace STM32.Dongsoft Carrier was formerly known as Shanghai Haier Integrated Circuit Co., Ltd., and later renamed Shanghai Dongsoft Carrier Microelectronics Co., Ltd. Dongsoft Carrier has an 8-bit MCU … Read more

Performance Comparison of Code Based on Different STM32 Library Functions

Performance Comparison of Code Based on Different STM32 Library Functions

Introduction ST has released three types of library functions to facilitate customers in quickly developing STM32 series MCUs. From the earliest standard peripheral driver library to the later Cube HAL, and then to Cube LL and direct register manipulation. How efficient is the code of these libraries? This article will provide a rough analysis of … Read more

In-Depth Analysis of STM32: Part Five

In-Depth Analysis of STM32: Part Five

Introduction First of all, the serial port is an essential tool for anyone involved in hardware and embedded software, especially for debugging systems with MCUs or CPUs. During the debugging process, the first thing we usually do is to light up a GPIO. This has been covered in our previous content. From schematic PCB to … Read more