An Introduction to SPI

An Introduction to SPI

SPI (Serial Peripheral Interface) is a synchronous serial communication protocol widely used in embedded systems and peripheral communication. SPI follows a one-master, multiple-slave communication method. Based on its operating modes and extended functionalities, SPI can be categorized into the following types based on hardware connection methods: 1. Standard SPI, commonly referred to as SPI, it … Read more

Troubleshooting Incorrect Baud Rate Configuration for S32K324 MCAL SPI

Troubleshooting Incorrect Baud Rate Configuration for S32K324 MCAL SPI

Introduction During the project development process, it was found that the actual baud rate configured for the MCAL SPI did not match the clock frequency captured by the logic analyzer. The actual frequency was only half of the configured value. This article documents the troubleshooting process for this issue. MCAL Configuration Check The baud rate … Read more

Fundamentals of Four-Line SPI Communication and Daisy Chain Configuration

Fundamentals of Four-Line SPI Communication and Daisy Chain Configuration

Formatting | Last BugThe main content shared today is derived from ADI’s SPI knowledge study. SPI is one of the most commonly used communication methods in embedded development. However, most embedded software engineers often focus more on upper-layer software development and tend to overlook some underlying signal formats. When communication issues arise, it can be … Read more

An In-Depth Look at the SPI Communication Protocol and Practical Applications with STM32 (W25Q128 Driver) – Theoretical Part

An In-Depth Look at the SPI Communication Protocol and Practical Applications with STM32 (W25Q128 Driver) - Theoretical Part

1. SPI Communication Protocol: The High-Speed Dialogue of Electronic Devices SPI (Serial Peripheral Interface) is a commonly used synchronous serial communication protocol between electronic devices. Due to its high speed and full-duplex characteristics, it is widely used for communication with peripherals such as memory and sensors. 1.1 Basic Principles (Four-Wire Interaction) SCK: Clock signal line … Read more

A Simple Analysis of the Linux SPI Control Layer

A Simple Analysis of the Linux SPI Control Layer

Introduction I previously shared the control layer for I2C and mentioned that I would update the SPI section shortly. However, I was too tired and didn’t get around to it, so I apologize for the delay, haha. The SPI protocol is much simpler than I2C, but I find the software handling to be more complex … Read more

Configuring SPI in AUTOSAR MCAL for NXP S32K148 Microcontroller

Configuring SPI in AUTOSAR MCAL for NXP S32K148 Microcontroller

This article provides a detailed explanation of how to configure the SPI (Serial Peripheral Interface) module in the MCAL (Microcontroller Abstraction Layer) for the NXP S32K148 microcontroller using the EB Tresos Studio tool. It includes preparation steps, configuration procedures, code generation, and the complete process of integration and debugging in S32 Design Studio (S32DS), offering … Read more

Understanding the Simplicity of SPI Design for Serial Peripheral Interfaces

Understanding the Simplicity of SPI Design for Serial Peripheral Interfaces

1. Introduction to Serial Peripheral Interface (SPI)The SPI interface (Serial Peripheral Interface) is a widely used high-speed, full-duplex, synchronous serial communication protocol between microcontrollers and peripheral devices.2. Main Features of SPIIt supports master-slave operation in both full-duplex and half-duplex modes; 16-bit width with independent transmit and receive buffers;8-bit or 16-bit data frame formats;Data bit order … Read more

Exploring the SPI Bus

Exploring the SPI Bus

“A detailed explanation of the Serial Peripheral Interface and its communication applications with memory, displays, Wi-Fi modules, and SD cards.” In a previous article, I explored the astonishing convenience of interfacing modern OLED displays with bare-metal microcontrollers. My point is simple: in most embedded applications, using a complete Linux SoC platform (like Raspberry Pi) is … Read more

SPI Communication (STM32 vs GD32)

SPI Communication (STM32 vs GD32)

This article summarizes the learning process of STM32 and GD32, and I hope it serves as a reference for you. 1. Characteristics of SPI Communication SPI is a full-duplex, synchronous, serial communication protocol. Full-duplex: Simultaneous data transmission and reception (Half-duplex transmits and receives data in a time-shared manner) Synchronous: All tasks must be completed before … Read more

Six Microcontroller Communication Methods: Learn How to Choose in Three Minutes!

Six Microcontroller Communication Methods: Learn How to Choose in Three Minutes!

With the rapid development of electronic technology, microcontrollers are increasingly used in various electronic systems. Initially, there were not many issues in simple systems, but in complex systems, multiple microcontrollers need to work together to achieve their respective functions and communicate with each other. Therefore, learning how to choose the communication method for microcontrollers is … Read more