Causes of Data Loss in UART Communication

Causes of Data Loss in UART Communication

If you don’t want to miss my updates, remember to check the public account in the upper right corner and mark it as a star. Send me a star! UART: Universal Asynchronous Receiver / Transmitter, commonly referred to as serial port. The serial port is one of the most commonly used serial peripherals by engineers, … Read more

Automatic Baud Rate Detection for STM32 Serial Ports

Automatic Baud Rate Detection for STM32 Serial Ports

1Introduction Regarding the issue of automatically identifying the UART serial port baud rate, those with project experience or who have studied serial ports should know a little about the methods for automatic identification. Most likely, the common knowledge is to achieve this through baud rate matching, which is the most common and effective method. The … Read more

Advanced STM32: Implementing Circular Buffer for UART

Advanced STM32: Implementing Circular Buffer for UART

The Concept of Queue Before we start, let’s review the basic concept of a queue: Queue: A linear structure that follows the First In First Out (FIFO) principle, allowing insertion at one end (enqueue) and deletion at the other end (dequeue). Characteristics of a Queue Similar to a ticket queue, the first person to arrive … Read more

Exploring the Secrets of Arduino Serial Communication

Exploring the Secrets of Arduino Serial Communication

Basic Principles of Arduino Serial Communication Communication Methods and Implementation Serial communication is a method of transmitting data in a bit-wise order. In Arduino, serial communication is mainly achieved through UART (Universal Asynchronous Receiver-Transmitter). UART utilizes two pins, TX (transmit) and RX (receive), to complete the data sending and receiving tasks. Data is transmitted in … Read more

Debugging Firmware Logs on Raspberry Pi 4 via Serial Port

Debugging Firmware Logs on Raspberry Pi 4 via Serial Port

Third Season Running Flagship Video Course: ARM64 Architecture and Programming Launched on October 1, 2020Led by Ben, with hands-on practice and numerous experiments waiting for you! Firmware on Raspberry Pi 4 Those who have played with Raspberry Pi know that there are several firmware files that need to be copied to the MicroSD card. These … Read more

Methods for Multithreaded Access to UART in RTOS

Methods for Multithreaded Access to UART in RTOS

Reader *Shi San* asks: Can the blogger introduce methods for multiple tasks to access the same hardware under RTOS? For example, multiple tasks need to use the serial port to print information. My answer is: Both mutexes and queues can solve the access conflict problem. Multithreaded access to the same serial hardware is commonly used … Read more

Voltage Meter Design Using TLC5510 and LCD1602

Voltage Meter Design Using TLC5510 and LCD1602

Name: Voltage Meter Design Using TLC5510 and LCD1602 Verilog Code for Quartus on Daxi Watermelon Development Board Software: Quartus Language: Verilog Code Function: Voltage meter based on TLC5510 and LCD1602 display 1. Design driver code for AD chip TLC5510 2. Convert analog signals to digital signals (AD values) using TLC5510 3. Convert digital signals (AD … Read more