Bus Disorder in Embedded Systems

Bus Disorder in Embedded Systems

Introduction RAM is the component in a computer system that stores temporary results, and its size also determines the scale of data processing by the computer. In embedded computers (microcontrollers), due to factors like cost and power consumption, the internal RAM capacity is often quite small, typically ranging from a few hundred bytes to several … Read more

Understanding CAN Bus: A Comprehensive Guide

Understanding CAN Bus: A Comprehensive Guide

Understanding CAN Bus (Part 1) Original source: http://www.cnblogs.com/jacklu/p/4729638.html Blog Garden, Author: lulujianjie Engineers in embedded systems generally know that the CAN bus is widely used in automobiles; in fact, naval electronic devices also extensively use CAN. As the country pays more attention to maritime defense, the demand for CAN will only increase. This summer, I … Read more

Analysis of Bus Device Driver Model

Analysis of Bus Device Driver Model

Reviewing the bus device driver model, I’ve made a few notes for reference, experts can skip this. 1. A significant part of the driver framework in the Linux system revolves around the bus device driver model. 2. Involves three important structures: struct bus_type: Bus struct device: Device struct device_driver: Driver 3. Core code analysis of … Read more

Graduation Project: STM32 and UART HMI Minesweeper Game

Graduation Project: STM32 and UART HMI Minesweeper Game

If you don’t want to miss my updates, remember to check the public account in the upper right corner and set it as a star. Send a star to me! Every year, STM32 appears most frequently in graduation projects. Many are “honest designs,” but there are also some that take unconventional paths, like this graduation … Read more

How printf() Works with UART Peripheral Driver Functions

How printf() Works with UART Peripheral Driver Functions

Today, I will share with you the hardware UART peripheral debugging output mechanism under IAR. In the embedded world, outputting print information is a very common auxiliary debugging method. With the help of print information, we can easily locate and analyze program issues. There are many ways to implement print information output in embedded application … Read more

Realistic Animation Demonstrating I2C, SPI, and UART Communication

Realistic Animation Demonstrating I2C, SPI, and UART Communication

So far, protocols like I2C, SPI, and UART remain the most commonly used communication protocols in electronic embedded devices. In this article, we will analyze these three protocols to provide a clear and intuitive understanding of their functions, advantages, and limitations, supplemented with GIF animations. I2C Protocol I2C is a serial communication protocol commonly used … Read more

Implementation Method of Custom UART Communication Protocol

Implementation Method of Custom UART Communication Protocol

When we study microcontrollers, the first thing we may encounter is lighting up (GPIO), and then comes the serial port (UART). The serial port is a commonly used communication interface and is a necessary knowledge to master in embedded systems. However, I have found that many friends only know how to use the serial port … Read more

Is CAN Bus More Difficult Than UART?

Is CAN Bus More Difficult Than UART?

Follow+Star Public Number, don’t miss exciting content Author | strongerHuang WeChat Official Account | strongerHuang Recently, I saw some netizens discussing whether ‘CAN is more difficult than UART’ in a technical group. Some said CAN is easy, while others said it is difficult. In fact, whether it is difficult or not mainly depends on your … Read more

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

Understanding UART Protocol Frame Format

Understanding UART Protocol Frame Format

Look at the image below; you probably guessed that today’s protagonist is UART. The serial port we commonly refer to includes both TTL level and RS-232 level, and in embedded systems, the serial port of microcontrollers is usually TTL level. Today’s content is about the frame format of UART, which is quite simple; those who … Read more