An Overview of the Linux UART Subsystem

An Overview of the Linux UART Subsystem

Introduction The development of UART has matured significantly, and it is generally sufficient to directly port the 8250 driver. For example, the UART driver for Rockchip directly uses “snps,dw-apb-uart”, which corresponds to <span>Linux-4.9.88/drivers/tty/serial/8250/8250_dw.c</span> driver. uart1: serial@ff190000 { compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart"; reg = <0x0 0xff190000 0x0 0x100>; clock-frequency = <24000000>; clocks = <&cru SCLK_UART1>, <&cru … Read more

Arduino Lecture 9: Serial Communication

Arduino Lecture 9: Serial Communication

01Serial CommunicationSerial Port:The serial port, also known asserial communicationinterface orserial communication interface(usually referring toCOM port), is anexpansion interface that uses serial communication.USB (Universal Serial Bus)is a serial portbus standardand also atechnical specification for input and output interfacesthat is widely used inpersonal computersandmobile devicesand has expanded tophotographic equipment,digital televisions(set-top boxes),game consolesand other related fields.Serial communication: Refers … Read more

Reverse Engineering of UART Protocol: 128 Ways to Real-Time Decode Serial Data with FPGA

Reverse Engineering of UART Protocol: 128 Ways to Real-Time Decode Serial Data with FPGA

1. Experimental Task Task: Based on the STEP-MAX10M08 core board and STEP BaseBoard V4.0 baseboard, complete the design of a serial port monitoring system and observe the debugging results. Requirements: Design a serial port monitoring system to monitor the serial port (UART) receiving data in real-time and display the data on the baseboard’s 8-digit digital … Read more

How to Communicate with Multiple Slave Serial Ports Using a Single Microcontroller Serial Port?

How to Communicate with Multiple Slave Serial Ports Using a Single Microcontroller Serial Port?

To join the hardware electronics learning group, reply with “Join Group“. Sometimes, when a circuit needs to implement a master-slave communication setup, the commonly used communication protocols are SPI, I2C, or RS485 bus forms. Among these, I2C is the simplest and most convenient for on-board communication, requiring only two wires to establish a bus. However, … Read more

Serial Communication: RS232 and RS485 Overview

Serial Communication: RS232 and RS485 Overview

Click the blue text / to follow us Serial Communication and Parallel Communication In communication and computer science, serial communication is a general concept that refers to all serial communication protocols, such as RS232, RS422, RS485, USB, I2C, SPI, etc. Serial communication refers to a communication method that transmits data bit by bit using only … Read more

Common Communication Protocols in Power Systems: RS-232 as a Country Road, RS-485 as a Highway? A Systematic Discussion of Their Differences!

Common Communication Protocols in Power Systems: RS-232 as a Country Road, RS-485 as a Highway? A Systematic Discussion of Their Differences!

In the previous article, we discussed the differences between Modbus and RS-485, which belong to different layers. If we use a language analogy, then Modbus determines which “language” to use, while RS-485 and RS-232 determine the method of communication, such as face-to-face or telephone communication. In this article, we will discuss the differences between RS-485 … Read more

How to Perform Serial Communication After Installing Linux on RK3588? A Few Commands to Solve It

How to Perform Serial Communication After Installing Linux on RK3588? A Few Commands to Solve It

Recently, someone asked how to test serial communication on an RK3588 that had Linux installed in our lab. I spent quite some time figuring it out, and below I will share the method with you.Tools required: Tabby (for SSH connection), RK3588, monitor.The prerequisite is that you have already installed the Ubuntu system to proceed with … Read more

Detailed Explanation of RS-232, RS-485, and RS-422

Detailed Explanation of RS-232, RS-485, and RS-422

RS-232, RS-485, and RS-422 are common serial communication standards, each with unique characteristics and applicable scenarios. Below is a detailed analysis of these three communication standards: 1. RS-232 1. Origin and Purpose: ● Established by the Electronic Industries Alliance (EIA) in 1962. ● Aimed at solving low-speed, short-distance communication issues between early computers and peripheral … Read more

Understanding Serial Communication: Basics of SPI

Understanding Serial Communication: Basics of SPI

In this article, we will introduce the basics of digital communication and the Serial Peripheral Interface (SPI) communication. This includes the communication structure and the required digital lines.Many precision analog devices have digital interfaces between microcontrollers (referred to as controllers) and controlled devices (referred to as peripherals). For example, a precision Analog-to-Digital Converter (ADC) measures … Read more