Embedded Development Software Architecture in C: Interrupt Service Routines

Embedded Development Software Architecture in C: Interrupt Service Routines

1. Interrupt Mechanism of Microcontrollers The interrupt mechanism refers to the ability of a microcontroller to quickly handle external events (interrupt requests) while executing the main program. When an external event A occurs, the microcontroller pauses the current main program (interrupt response), saves the current state data, and then calls the handler for event A … Read more

ESP32 vs STM32: Which is More Suitable for Embedded Beginners

ESP32 vs STM32: Which is More Suitable for Embedded Beginners

For students who are new to the embedded field, the ESP32 and STM32 represent two different technical gateways. The ESP32, developed by Espressif Systems, focuses on IoT features; the STM32 is a family of general-purpose microcontrollers from STMicroelectronics. Both are equipped with a 32-bit Cortex-M core, but they are positioned quite differently. 1.Core Differences Comparison … Read more

Is Feeling That STM32 is Too Simple a Form of Arrogance?

Is Feeling That STM32 is Too Simple a Form of Arrogance?

In fact, whether something is simple or complex is not important; what matters is what we can learn through STM32. Creating a keyboard/mouse allows us to learn the USB protocol. Building a networked device requires understanding the underlying implementation of Ethernet and TCP/IP protocols. For a wireless device, one might need to learn Bluetooth, Wi-Fi, … Read more

STM32-Proteus Simulation of Intelligent Greenhouse Control System

STM32-Proteus Simulation of Intelligent Greenhouse Control System

1. System Architecture Design This intelligent greenhouse control system uses the STM32F401CC as the core controller, collecting environmental parameters through multiple sensors and driving actuators for automatic control. The system hardware architecture is as follows: Sensor Module: DHT11 Temperature and Humidity Sensor (PA0) Soil Moisture Sensor (PA3 ADC) LDR Light Sensor (MCP3008 CH0) Display Module: … Read more

Is the Embedded Industry Really Without a Future?

Is the Embedded Industry Really Without a Future?

A first-year graduate student who has been learning embedded systems for four years since undergraduate studies, here to share a few thoughts. Let’s first talk about the employment situation of graduates from my alma mater. My alma mater is an ordinary second-tier university, and many seniors or classmates who started working in the embedded field … Read more

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