Hands-On Guide to STM32 I2C Bus

Hands-On Guide to STM32 I2C Bus

●IIC Bus 1. Concept of IIC I²C stands for Inter-Integrated Circuit, using two bidirectional lines: one Serial Data Line (SDA) and one Serial Clock (SCL). SCL: The rising edge inputs data into each EEPROM device; the falling edge drives the EEPROM device to output data (edge-triggered). SDA: The bidirectional data line is an open-drain configuration, … Read more

Understanding Automotive CAN Bus Technology Principles

This article is reprinted from the Jishu Community Jishu Column: Shanghai Hangxin Author: C H E N Y I With the continuous development of the automotive industry, the number of automotive electronic control units has gradually increased, and the signal exchange between various control units has become more complex. The CAN bus connects the various … Read more

Can SPI Use UART Communication Protocol?

Can SPI Use UART Communication Protocol?

Follow+Star Public Account, don’t miss out on exciting content Author | strongerHuang WeChat Official Account | strongerHuang Recently, a reader asked this question: Can SPI use the UART custom communication protocol? In principle: as long as the communication protocol is not directly related to the underlying communication interface (hardware), it can be used. For example, … Read more

Microcontroller Communication Protocols: UART, SPI, I2C

Microcontroller Communication Protocols: UART, SPI, I2C

Today, let’s talk about the topic of microcontroller communication protocols. When microcontrollers interact with peripherals, there needs to be a common language, right? That’s what communication protocols are for! We will focus on three common protocols: UART, SPI, and I2C, and see how they allow devices to communicate with each other. UART: The Simplest Serial … Read more

Implementing CAN Bus Communication Protocol in Embedded C

Implementing CAN Bus Communication Protocol in Embedded C

For training, consulting, or project development, please contact 【Thought】 Readers of this public account must be familiar with the CAN communication protocol. Have you ever wondered how these signals are implemented in the communication protocol within the Electronic Control Unit (ECU) when collecting CAN bus signals and analyzing data? This content introduces how to implement … Read more

Explaining the SPI Protocol and Its Applications in Embedded Systems

Explaining the SPI Protocol and Its Applications in Embedded Systems

SPI is very common in embedded systems, whether in system processors on chips (such as ARM, MIC, or high-end 32-bit processors like Power PC), or in microcontrollers (such as AVR, PIC, etc.), which typically include SPI controllers capable of operating in master-slave mode. Programmable AVR controllers in the system can be programmed using the SPI … Read more

Embedded Learning Notes on UART Communication Protocol

Embedded Learning Notes on UART Communication Protocol

Wu Jianying Microcontroller Development Board Address Taobao Store:【Wu Jianying’s Shop】 Address:【https://item.taobao.com/item.htm?_u=ukgdp5a7629&id=524088004171】 UART is a chip used to control communication between computers and serial devices. One important point to note is that it provides a data terminal equipment interface, allowing the computer to communicate with modems or other serial devices using the RS-232C interface. As part … Read more

IIC Communication Interface Protocol – Layered Architecture Design Simulation

IIC Communication Interface Protocol - Layered Architecture Design Simulation

Regarding the idea of layered design, a detailed design process was explained in a previous article titled “Embedded Hardware Communication Interface Protocol-SPI (Part 2) Layered Architecture Design Simulation Interface” when discussing SPI interface design, so I won’t elaborate further here. Now, using the BSP layer design approach of SPI as a reference, we will use … Read more

Understanding USB Communication Protocol with a Diagram

Understanding USB Communication Protocol with a Diagram

1. Overview 2. Related Materials 3. USB Block Diagram 4. Understanding USB Concepts 4.1 USB Specification 4.2 USB Interface 4.3 USB Endpoint 4.4 USB Pipe 4.5 USB Data Transfer Types 4.6 USB Device Class 4.7 USB Descriptors 4.8 USB Communication Process 5. Summary 6. Discussion or Reflection 1. Overview USB (Universal Serial Bus) is ‘universal’ … Read more

Implementation of Communication Protocols in Industrial Automation Using C

Implementation of Communication Protocols in Industrial Automation Using C

Implementation of Communication Protocols in Industrial Automation Using C Introduction With the development of industrial automation, the demand for communication between various devices, sensors, and control units is increasing. In this context, communication protocols have become an essential foundation for data exchange among different systems. The C language, with its efficiency and low-level characteristics, is … Read more