Overview of Embedded Communication Protocols

Overview of Embedded Communication Protocols

Protocol Physical Lines Duplex Mode Sync/Async Topology Typical Application Scenarios Key Advantages 1-Wire 1 (DQ + GND) Half-Duplex Asynchronous One Master, Multiple Slaves Identity recognition, temperature sensors Minimal wiring, parasitic power supply IIC 2 (SDA, SCL) Half-Duplex Sync Multi-Master, Multi-Slave Onboard chip communication Hardware addressing, fewer pins SPI 3+n (SCK, MOSI, MISO, n*CS) Full-Duplex Sync … Read more

Introduction to Common Internal Buses: IIC, IIS, SPI, UART, JTAG, CAN, SDIO, GPIO

Introduction to Common Internal Buses: IIC, IIS, SPI, UART, JTAG, CAN, SDIO, GPIO

▲Click the card above to follow for more information▲ 1IIC IIC (Inter-Integrated Circuit) bus is a two-wire serial bus developed by PHILIPS for connecting microcontrollers and their peripheral devices. The I2C bus transmits information between the bus and devices using two lines (SDA and SCL), allowing for serial communication between microcontrollers and external devices, or … Read more

Understanding STM32 IIC Challenges and Common Mistakes

First, a little aside~ It is said online that the IIC of STM32F103 has flaws! Let’s just consider it as some shortcomings; personally, I think it can definitely be used, but it is not easy to use. Because ST Company considered patent issues, they did not follow Philips’s standards. This leads to the IIC of … Read more

Making a Voltage and Current Meter Based on New Tang Microcontroller (INA226)

Making a Voltage and Current Meter Based on New Tang Microcontroller (INA226)

Produced by 21ic Forum Xiao Ye San Qian Website: bbs.21ic.com We usually use adjustable power supplies, which typically display two values: the current voltage set and the current flowing through the device. Below, I will introduce how to make a meter that can display both voltage and current values using the INA226 power chip. 1. … Read more

Renesas RA0E1 Development Board Evaluation and IIC OLED Testing

Renesas RA0E1 Development Board Evaluation and IIC OLED Testing

Content from: Jialichuang Community Based on the previous use of the Renesas e2 studio development software and the basics of engineering testing, this article further explores the implementation of hardware IIC OLED text and image display. RA0E1 Block Diagram RA0E1 Features 32MHz Arm Cortex-M23 core Up to 64KB Flash and 12KB SRAM 1KB data Flash … Read more

Object-Oriented Implementation of IIC Driver in C Language

Object-Oriented Implementation of IIC Driver in C Language

1. Overview This article encapsulates the IIC driver using object-oriented programming principles, packaging the properties and operations of IIC into a library. When creating an IIC device, one only needs to instantiate an IIC object. This implementation is based on STM32 and the HAL library for further encapsulation. The underlying driver methods are not important; … Read more

Comprehensive Comparison of Communication Protocols IIC and SPI

Comprehensive Comparison of Communication Protocols IIC and SPI

In today’s low-end digital communication applications, we frequently encounter IIC (Inter-Integrated Circuit) and SPI (Serial Peripheral Interface). The reason is that these two communication protocols are very suitable for short-distance, low-speed communication between chips. Philips (for IIC) and Motorola (for SPI) developed these two standard communication protocols based on different backgrounds and market needs. IIC … Read more

Embedded Interview Guide: Communication Protocols You Must Master (Part 1)

Embedded Interview Guide: Communication Protocols You Must Master (Part 1)

As an embedded engineer, the following commonly used communication protocols are often essential knowledge in interviews. 1. UART Protocol UART (Universal Asynchronous Receiver/Transmitter) is a bidirectional, serial, asynchronous communication bus that can achieve full-duplex communication with just one data receiving line and one data sending line. Typical serial communication uses three lines: the transmit line … Read more

Comprehensive Comparison of Communication Protocols IIC and SPI

Comprehensive Comparison of Communication Protocols IIC and SPI

In today’s low-end digital communication applications, we frequently encounter IIC (Inter-Integrated Circuit) and SPI (Serial Peripheral Interface). The reason is that these two communication protocols are very suitable for short-distance, low-speed communication between chips. Philips (for IIC) and Motorola (for SPI) developed these two standard communication protocols based on different backgrounds and market needs. IIC … Read more

Similarities and Differences Between IIC, SPI, and UART Communication

Similarities and Differences Between IIC, SPI, and UART Communication

The three low-speed communication protocols IIC, SPI, and UART are widely used in our actual designs. Common communications between various ICs and between PCBs and external serial ports often utilize these protocols. Today, we will specifically share the similarities and differences among these three low-speed communication methods. Communication Name SPI IIC UART Synchronization/Asynchronous Communication Synchronization … Read more