The SPI Protocol is Not as Simple as I Thought

The SPI Protocol is Not as Simple as I Thought

Hello everyone, I am Jide Cheng. Today I will share content related to the SPI protocol. Table of Contents Introduction Table of Contents First, let’s talk about UART SPI Communication Protocol Characteristics of SPI Mode Numbers Multi-Slave Mode Advantages and Disadvantages Programming Implementation First, Let’s Talk About UART I previously wrote an article on UART, … Read more

Advanced Embedded Programming | Detailed Flowchart of DSPS Protocol Stack Software on DA14531 (Organized with DeepSeek)

Advanced Embedded Programming | Detailed Flowchart of DSPS Protocol Stack Software on DA14531 (Organized with DeepSeek)

01Introduction: The DSPS (Dialog Serial Port Service) protocol stack is based on the BLE GATT protocol to implement serial data transmission. The core process is divided into four stages: initialization, connection management, data transmission, and low power control. Initialization → Broadcasting/Scanning → Establishing Connection → Data Transmission → Sleep/Wake → Disconnect → Loop 02Detailed Flowchart … Read more

Streamable HTTP: How It Changes the Game for Distributed AI Platforms

Streamable HTTP: How It Changes the Game for Distributed AI Platforms

Driven by the wave of digitalization, data transmission protocols are undergoing unprecedented transformations. Today, we focus on a significant innovation within the MCP (Model Context Protocol) — Streamable HTTP. This new protocol not only simplifies the traditional HTTP+SSE transmission method but also opens up new pathways for data interaction with features such as stateless server … Read more

Applications of Embedded Programming: The Intricacies of Union

Applications of Embedded Programming: The Intricacies of Union

Concept of union In Chinese, union is referred to as a union, joint, or collective. Its definition format is the same as that of a struct, but its meaning is entirely different. Below is the definition format of a union: union union_name { member_list } union_variable_name; Since its definition format is the same as that … Read more

Solutions to Endianness Issues in Embedded Programming

Solutions to Endianness Issues in Embedded Programming

The issue of endianness is not new in embedded development. As developers, we have a clear understanding of the endianness problem in embedded development, and here I will provide a simple summary of this issue. Endianness refers to the order of bytes in memory. There is a wealth of information available online regarding endianness, so … Read more

TSN Frame Preemption Testing: Creating a ‘Green Channel’ for Data Transmission

TSN Frame Preemption Testing: Creating a 'Green Channel' for Data Transmission

Introduction: In complex and dynamic fields such as automotive and industrial control, the timeliness and determinism of data transmission are crucial. In scheduling shaping mechanisms like TAS or CQF, different priority services are mapped to different queues, ensuring that high-priority services are not interfered with by low-priority services during transmission, thus guaranteeing end-to-end low latency … Read more

Avoid PROFIBUS if Possible! A Simple Comparison of PROFINET and PROFIBUS

Avoid PROFIBUS if Possible! A Simple Comparison of PROFINET and PROFIBUS

1. Introduction to PROFINET and PROFIBUS PROFINET and PROFIBUS are two fieldbuses launched by the PNO organization, first implemented by Siemens. The two are not comparable; PROFINET is based on industrial Ethernet, while PROFIBUS is based on RS485 serial bus. Due to the different media, the protocols of the two are completely different and have … Read more

When Not to Use I2C

When Not to Use I2C

I2C, as the most convenient and simplest onboard communication method, has certain scenarios where it is not suitable, and there are timing considerations to be aware of. Hardware Interface • Simple hardware interface with only two wires • SCL (Serial Clock) / SDA (Serial Data) • Low communication speed and low communication requirements • Fast: … Read more

An Easy-to-Understand Introduction to the I2C Interface

An Easy-to-Understand Introduction to the I2C Interface

In the complex world of electronic circuits, various circuit module devices need to communicate with each other to work together. The I2C interface acts as a communication bridge between these circuit module devices, and today we will take a deep dive into it. 1. Starting with a Physical Example The image below shows an I2C … Read more

SPI Peripherals: The Bridge for High-Speed Synchronous Serial Communication

SPI Peripherals: The Bridge for High-Speed Synchronous Serial Communication

In embedded systems, efficient data transmission is key to connecting processors with peripheral devices. SPI (Serial Peripheral Interface), as a high-speed synchronous serial communication protocol, has become the preferred solution for interactions with peripherals such as sensors, memory, and display modules due to its flexible configuration, full-duplex capability, and low-latency characteristics. This article will comprehensively … Read more