Introduction to SPI, UART, and I2C Serial Buses

Introduction to SPI, UART, and I2C Serial Buses

SPI (Serial Peripheral Interface) SPI is a high-speed, full-duplex, synchronous, serial communication bus with a 3-4 wire interface, operating in a master-slave mode, allowing multiple SPI devices to be interconnected. The SPI device that provides the SPI serial clock is the SPI master, while other devices are the SPI slaves. The SPI bus consists of … Read more

Comprehensive Guide to UART, SPI, and I2C Communication Protocols

Comprehensive Guide to UART, SPI, and I2C Communication Protocols

I2C Communication Protocol Basics 3.1 Introduction to Communication I²C (Inter-Integrated Circuit) is a serial communication bus designed by Philips in the early 1980s. It facilitates communication between motherboards, embedded systems, or mobile phones and peripheral devices. Due to its simplicity, it is widely used for communication between microcontrollers and sensor arrays, displays, IoT devices, EEPROMs, … Read more

Guide to Routing and Layout for UART, SPI, and I2C

Guide to Routing and Layout for UART, SPI, and I2C

This is a very basic article translated from PCB Hero. There is also a comparative article about these three buses that you can refer to: https://www.totalphase.com/blog/2021/12/i2c-vs-spi-vs-uart-introduction-and-comparison-similarities-differences/ Differences Between I2C, SPI, and UART and Their Layout Guidelines MCUs from 8-bit to 32-bit will use at least one of these protocols along with GPIO to achieve programmability … Read more

UART Serial Port Debugging Guide

UART Serial Port Debugging Guide

0x00 Introduction Recently, I have been learning about debugging hardware interfaces such as optical modems, routers, and cameras, but I did not make any records. Therefore, I will briefly document the learning process here for future reference. 0x01 Required Tools 1. TTL to USB converter 2. Multimeter 3. TTL to USB converter 4. SecureCRT connection … Read more

Understanding UART, I2C, SPI, and 1-Wire Communication Interfaces

Understanding UART, I2C, SPI, and 1-Wire Communication Interfaces

1. Qiu Qianzhang’s Lightness Skill: UART In the Legend of the Condor Heroes, Qiu Qianzhang says that UART is like my lightness skill, allowing me to float over water to cross rivers. To communicate (cross the river), set up hidden stakes in advance, and during the crossing, maintain a fixed step based on the distance … Read more

Air724UG Software Guide: I2C Example

Air724UG Software Guide: I2C Example

Read the latest documentation and participate:【Find Errors in Documentation to Win Prizes】 Event For the latest documentation content, see: https://docs.openluat.com/air724ug/luatos/app/driver/i2c/ 1. Introduction The I2C bus (Inter-Integrated Circuit) is a simple, bidirectional, two-wire synchronous serial bus developed by Philips. It requires only two wires to transmit information between devices connected to the bus. The Air724UG module … Read more

Understanding I2C, SPI, and UART Serial Communication

Understanding I2C, SPI, and UART Serial Communication

1.I2C: Inter-Integrated Circuit, abbreviated as I2C Bus. I2C mainly distinguishes slave devices through addresses, and its communication principle is relatively simple. 2.SPI: Serial Peripheral Interface, a common serial synchronous communication protocol widely used in applications. 3.UART: Universal Asynchronous Receiver/Transmitter, a serial, asynchronous, full-duplex communication protocol. GIF source from https://www.parlezvoustech.com/en/comparaison-protocoles-communication-i2c-spi-uart/ Follow the WeChat public account “Embedded … Read more

Comprehensive Introduction to UART, SPI, and I2C Protocols

Comprehensive Introduction to UART, SPI, and I2C Protocols

I2C Communication Protocol Basics 3.1 Communication Overview I²C (Inter-Integrated Circuit) is a serial communication bus designed by Philips in the early 1980s. It facilitates communication between motherboards, embedded systems, or mobile phones and peripheral devices. Due to its simplicity, it is widely used for communication between microcontrollers and sensor arrays, displays, IoT devices, EEPROMs, etc. … Read more

Using I2C to Drive PCA9555 Expansion Chip

Using I2C to Drive PCA9555 Expansion Chip

To further study Linux I2C, after the previous I2C driver for BL24C04, I have prepared the PCA9555/TCA9555 expansion GPIO chip. Its specific function is to extend 16 GPIOs via the I2C bus and it has input interrupt capabilities. 1. Add PCA9555 Device Tree Node According to the PCA9555 circuit diagram above, the 7-bit I2C address … Read more