UART Communication Protocol

UART Communication Protocol

Communication protocols serve as a “common language” between two devices. Data exchange can only proceed smoothly if both parties use the same rules and settings. UART is a point-to-point (P2P) hardware communication method, where the connected ends can be a microcontroller and anothermicrocontroller, a sensor, or a computer (with conversion). Before data transmission begins, both … Read more

Implementing a Message Queue in C++

Implementing a Message Queue in C++

Have you ever experienced two processes frantically competing to read and write data, resulting in either fragmented data or the program getting stuck in “synchronization wait”?It’s like a cafeteria where no one is in line, everyone is pushing at the window, and in the end, the food spills, and no one gets to eat well. … Read more

Implementing a Simple WebSocket Chat in Python (Client-Server Communication)

Implementing a Simple WebSocket Chat in Python (Client-Server Communication)

Hey there, friends! Today we’re going to create something super fun—a WebSocket chat! <span>websockets</span> library is our trusty assistant, allowing real-time communication between the client and server like good friends! Whether it’s for online games, real-time communication, or other scenarios requiring real-time interaction, it can be very useful. Installation is simple, just run <span>pip install … Read more

The Magic of Clocks: A Battle Between Synchronous and Asynchronous Communication

The Magic of Clocks: A Battle Between Synchronous and Asynchronous Communication, Like a Conductor Leading a Symphony and a Romantic Date Based on Mutual Understanding Understanding them is to grasp the cornerstone of modern communication. Have you ever wondered: “Synchronous communication requires a clock, while asynchronous communication requires matching baud rates. Wait? If the baud … Read more

Comparison of Communication Methods Between Embedded System Modules

Comparison of Communication Methods Between Embedded System Modules

Follow our official account to keep the embedded knowledge flowing! 1. Global Variables Global variables are often regarded as “bad design,” but in embedded systems, they are the most performant communication method. The key is not to avoid their use, but rather to design them correctly. The issue with global variables is not performance, but … Read more

Basics of Serial Communication and RS-232C Standard

Basics of Serial Communication and RS-232C Standard

IntroductionSerial port is short for serial port (serial port), also known as serial communication interface or COM interface. Serial communication refers to a communication mode that uses serial communication protocol to transmit data bit by bit over a single signal line. Serial ports are classified according to electrical standards and protocols, including RS-232-C, RS-422, RS485, … Read more

In-Depth Explanation of STM32 Serial Communication Principles

In-Depth Explanation of STM32 Serial Communication Principles

▲ For more exciting content, please click on the blue text above to follow us! Communication Methods Between Devices Generally, communication methods between devices can be divided into parallel communication and serial communication. The differences between parallel and serial communication are shown in the table below. Classification of Serial Communication 1. According to the direction … Read more

Common Issues in Serial Communication Explained

Common Issues in Serial Communication Explained

This article does not explain serial programming but discusses it from an application perspective. More often than not, products are ready, such as touch screens that need to communicate with controllers or PLCs. Ideally, once powered on, communication should be possible without too much operation and configuration. The latter part of the article lists some … Read more

Verilog Functional Module – SPI Master and Slave (03) – Design Ideas and Code Analysis for SPI Slave

Verilog Functional Module - SPI Master and Slave (03) - Design Ideas and Code Analysis for SPI Slave

Introduction The previous article introduced the Verilog functional module – SPI Master, including design ideas and usage methods. This article designs a fully functional 4-wire SPI Slave using pure Verilog. Unlike some online simulations of slaves with high-frequency clock signals, the SPI Slave in this article derives its working clock from the master’s sclk, adhering … Read more

Microcontroller (3) | Serial Interface

Microcontroller (3) | Serial Interface

6. Serial Interface Parallel Communication and Serial Communication Asynchronous and Synchronous Communication Asynchronous Serial Full Duplex (P3.0-RXD P3.1-TXD) Timer 1 serves as the baud rate generator to control the rhythm of opening the door, generating transmission and reception completion interrupts TI, RI Mode 0 is used for expanding IO, while Modes 1-2 are communication modes. … Read more