How Do MCUs With Different Voltage Levels Communicate?

How Do MCUs With Different Voltage Levels Communicate?

For a long time, communication between microcontrollers (MCUs) has been a learning challenge for many electronic engineers. Since different MCUs may use different voltage levels, many beginners are curious about how these MCUs can communicate. Let’s take a look! Generally speaking, communication between MCUs relies on digital signals, where the voltage level of the digital … Read more

Hands-On STM32 SPI Interface (Part 1)

Hands-On STM32 SPI Interface (Part 1)

●SPI Bus 1. What is SPI SPI is the abbreviation for Serial Peripheral Interface, which is a serial peripheral interface. SPI is a high-speed, full-duplex, synchronous communication bus that occupies only four pins on the chip, saving pin space and providing convenience for PCB layout. Due to its simplicity and ease of use, more and … Read more

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