Differences and Applications of SPI, UART, and I2C Communication

Differences and Applications of SPI, UART, and I2C Communication

Communication between electronic devices is like communication between humans; both parties need to speak the same language. In electronic products, these languages are called communication protocols. Previously, articles on SPI, UART, and I2C communication were shared separately. This article compares them. Serial vs Parallel Electronic devices communicate by sending data bits to each other. A … Read more

Understanding UART, I2C, and SPI Serial Bus Communication Principles

Understanding UART, I2C, and SPI Serial Bus Communication Principles

Click on the blue text above to follow us I2C, SPI, and UART are the three most commonly used serial communication protocols for embedded IoT terminals. This article briefly introduces the principles of UART, I2C, and SPI serial bus communication. For more detailed explanations, please see the following three articles. Understand I2C Bus Communication in … Read more

Basic UART, I2C, SPI, CAN, and USB Serial Communication Interfaces

Basic UART, I2C, SPI, CAN, and USB Serial Communication Interfaces

Follow+Star Public Account, don’t miss exciting content Author | strongerHuang WeChat Official Account | Embedded Column This article mainly describes the basic knowledge of communication interfaces such as UART, I²C, SPI, CAN, and USB for beginners. 1Overview Why talk about serial communication? Because parallel communication is relatively rare now, it’s basically all serial communication.Today, I … Read more

An In-depth Explanation of UART, I2C, SPI, and 1-Wire Communication Interfaces

An In-depth Explanation of UART, I2C, SPI, and 1-Wire Communication Interfaces

1. UART: The Lightness of Qiu Qianzhang’s Skills In “The Legend of the Condor Heroes”, Qiu Qianzhang says, “UART is like my lightness skill, floating over the water to cross the river.” To cross the river (communication), one must prepare in advance, setting markers at fixed intervals (baud rate predetermined). If the steps are too … Read more

Clock Synchronization of Serial Data (SPI/I2C/UART/USB)

Clock Synchronization of Serial Data (SPI/I2C/UART/USB)

Click the blue text Follow us 1. Clock Synchronization Issues in Serial Data Sending serial data (such as USB, UART, I2C, SPI, etc.) is done over a single data bus. If a continuous stream of 01 signals is sent to the receiving device over this bus, the difference in clock frequencies between the sender and … Read more

Strange Issues and Solutions for Hardware I2C on STM32

Strange Issues and Solutions for Hardware I2C on STM32

1 Introduction Recently, I’ve been working on my graduation project. The second board has arrived, and I’ve basically debugged all the components, with a few chips still having test code written for them. One of the chips is the BMP280 barometric sensor, which worked perfectly on the first board, so I can rule out issues … Read more

TCA9548A I2C Multiplexer – The Tool to Break I2C Address Conflicts

TCA9548A I2C Multiplexer - The Tool to Break I2C Address Conflicts

As an experienced microcontroller developer, I know well the convenience that the I2C bus brings to development, but I have also been tormented by the “big problem” of I2C address conflicts. Today, let’s talk about how to easily solve this annoyance with the TCA9548A, this “tool”. What Is an I2C Address Conflict? Imagine you are … Read more

I2C Basics (1) – Overview and Data Transmission

I2C Basics (1) - Overview and Data Transmission

—–This articleIntroduction—– Main content includes: I2C Part One: Overview, Data Validity, Data Transmission, and Timing Follow our WeChat official account:Hardware Learning Notes Reply:Fan Group, to receive materials —– Body —– Like ↓ before reading, develop a habit! 1. Overview I2C (Inter-Integrated Circuit) also known as IIC, is a serial communication protocol developed by Philips (now … Read more

Using Interrupts to Send Data with dsPIC33CK and I2C

Using Interrupts to Send Data with dsPIC33CK and I2C

Functionality: Use interrupts to send data, efficiently utilizing the I2C peripheral.First, refer to the manual’s I2C section to understand the basic functions and usage of I2C. Then choose the appropriate operational method based on the functionality you want to implement.Obtaining information about OLED: Search for “0.96 inch OLED screen” on Taobao, where you can find … Read more

Microcontroller SPI-I2C Bus Communication

Microcontroller SPI-I2C Bus Communication

Hello everyone, I am Daji Zong, and today I will talk about two commonly used communication buses on microcontrollers: SPI and I2C. As the names suggest, SPI stands for Serial Peripheral Interface, while I2C stands for Inter-Integrated Circuit Bus. Both are common methods for chip-to-chip communication. Introduction to SPI The SPI bus consists of four … Read more