UART Serial Communication System Based on 51 Microcontroller

UART Serial Communication System Based on 51 Microcontroller

Introduction In embedded system development, serial communication is one of the fundamental technologies for data exchange between devices. UART (Universal Asynchronous Receiver/Transmitter) is the most commonly used serial communication interface, widely applied in 51 microcontroller systems due to its simplicity, reliability, and low resource consumption. This article will detail the implementation method of a dual-machine … Read more

STM32 UART DMA Transmission Mechanism with Code Example

STM32 UART DMA Transmission Mechanism with Code Example

1 Introduction Direct Memory Access (DMA) is a component used by the CPU to transfer data from one address space to another without CPU intervention. Once the data transfer is complete, the CPU is notified to process the data. Therefore, using DMA can free up CPU resources during large data transfers. Typical DMA data transfer … Read more

Overview of Embedded Communication Protocols

Overview of Embedded Communication Protocols

Protocol Physical Lines Duplex Mode Sync/Async Topology Typical Application Scenarios Key Advantages 1-Wire 1 (DQ + GND) Half-Duplex Asynchronous One Master, Multiple Slaves Identity recognition, temperature sensors Minimal wiring, parasitic power supply IIC 2 (SDA, SCL) Half-Duplex Sync Multi-Master, Multi-Slave Onboard chip communication Hardware addressing, fewer pins SPI 3+n (SCK, MOSI, MISO, n*CS) Full-Duplex Sync … Read more

UART Asynchronous Serial Communication Circuit Design Verilog Code for Quartus FPGA_C4_V2.1 Experimental Board

UART Asynchronous Serial Communication Circuit Design Verilog Code for Quartus FPGA_C4_V2.1 Experimental Board

Name: UART Asynchronous Serial Communication Circuit Design Verilog Code for Quartus FPGA_C4_V2.1 Experimental Board Software: Quartus Language: Verilog Code Function: Function Description Enhance the transmission rate of UART communication, supporting higher baud rates (such as 115200, 230400, or higher). Implementation Method 1. Optimize Baud Rate Division Use a higher system clock frequency (e.g., 100MHz) and … Read more

Understanding I2C, SPI, and UART Through GIFs

Understanding I2C, SPI, and UART Through GIFs

By 2025, communication protocols such as I2C, SPI, and UART will remain a vital part of the tech world. These protocols facilitate communication between various electronic devices and serve as the invisible heart that keeps our interconnected embedded systems and peripherals running optimally. In this article, we will dissect the functions, advantages, and limitations of … Read more

Serial Communication Protocol in C Language for Microcontrollers (Code Sharing)

Serial Communication Protocol in C Language for Microcontrollers (Code Sharing)

In real life, we always need to interact with others and share information. Microcontrollers also need to communicate with various devices. For example, the display instrument in a car needs to know the engine speed and the operating parameters of the motor, so the display instrument must obtain data from the car’s underlying controller. This … Read more

From Unboxing to Practical Use: A 30-Day Experience with the STM32U385RG Development Board

From Unboxing to Practical Use: A 30-Day Experience with the STM32U385RG Development Board

ST MCU Forum https://bbs.21ic.com/iclist-49-1.html *Reading Instructions: The following is a brief summary display, with no particular order. For detailed evaluation processes, source code, and materials, please click the original link to view. Evaluation One 1. Development Environment Setup and LED Blinking https://bbs.21ic.com/icview-3470430-1-1.html 2. Implementing Onboard Debugging Serial Communication https://bbs.21ic.com/icview-3470452-1-1.html This article implements UART serial communication. … Read more

UART Serial Transmission and Reception String Design Verilog Code Quartus Simulation

UART Serial Transmission and Reception String Design Verilog Code Quartus Simulation

Name: UART Serial Transmission and Reception String Design Verilog Code Quartus Simulation Software: Quartus Language: Verilog Code Function: UART serial transmission and reception of strings Simulated transmission string “from my RISC-V SoC UART !!!!!!” 1. Project Files Edit 2. Program Files Edit 3. Testbench Edit 4. Simulation Diagram Edit Partial Code Display: `timescale 1ns / … Read more

Essential Topics to Prepare for Embedded Software Interviews

Essential Topics to Prepare for Embedded Software Interviews

Pointers and Arrays: Stop Saying “Pointers are Just Addresses” This is the “appetizer” for embedded interviews, but 80% of candidates fail to provide a deep answer. For example, when asked about the “difference between pointers and arrays,” simply stating “the array name is a constant pointer” is insufficient; it must be explained in the context … Read more

Basics of Embedded Programming | HC32L196 UART Configuration

Basics of Embedded Programming | HC32L196 UART Configuration

01Introduction: The HC32L196_L190 series is widely used in the following scenarios: IoT Devices: In IoT devices, the high performance and low power characteristics of the HC32L196_L190 series microcontrollers enable efficient operation over extended periods. Smart Home: In the smart home sector, microcontrollers can be used to control various appliances, such as air conditioning and lighting, … Read more