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

In-Depth Explanation of UART Serial Communication Protocol

In-Depth Explanation of UART Serial Communication Protocol

  UART (Universal Asynchronous Receiver/Transmitter) is a widely used serial communication protocol in embedded systems. It supports full-duplex communication, allowing simultaneous data transmission and reception, making it very useful in applications that require bidirectional communication. The working principle of UART is to transmit data bit by bit, meaning each binary bit is transmitted independently through signal … Read more

Understanding I2C, SPI, and UART Serial Communication

Understanding I2C, SPI, and UART Serial Communication

1.I2C: Inter-Integrated Circuit, abbreviated as I2C Bus. I2C mainly distinguishes slave devices through addresses, and its communication principle is relatively simple. 2.SPI: Serial Peripheral Interface, a common serial synchronous communication protocol widely used in applications. 3.UART: Universal Asynchronous Receiver/Transmitter, a serial, asynchronous, full-duplex communication protocol. GIF source from https://www.parlezvoustech.com/en/comparaison-protocoles-communication-i2c-spi-uart/ Follow the WeChat public account “Embedded … Read more

High-Speed I2C Driver for OLED Screen

High-Speed I2C Driver for OLED Screen

Write summaries, discuss careers, and win DJI drones, Redmi tablets, Huawei headphones, and JD cards! This article is from the Breadboard Community’s “Lingdong Mini-F5333 Development Board” free evaluation activity. 【Purpose of Experience】Light up the OLED screen and learn to use I2C peripherals. 【Experimental Equipment】 MIN-F5333 Development Board OLED Display Screen 【Implementation Steps】 1. Copy the … Read more

I3C: The Next Generation Serial Communication Technology

I3C: The Next Generation Serial Communication Technology

The Electronic Enthusiast Network reports (by Li Ningyuan) that the I2C bus, a well-known simple, bidirectional two-wire synchronous serial bus technology developed by Philips, requires only two wires to transmit information between devices connected to the bus. It has been widely used to connect various sensors, LCD screens, and memory. Previously, the impression of I2C … Read more