Key Considerations for Developing FPGA UART with EIA/TIA-232

Key Considerations for Developing FPGA UART with EIA/TIA-232

In FPGA development, the design of the wiring for the UART interface, specifically the EIA/TIA-232 (commonly known as RS-232) interface, is crucial. A reasonable wiring layout not only enhances communication stability but also effectively reduces signal interference. Below are the key points for EIA/TIA-232 interface in FPGA UART development. 1. Signal Line Layout TX/RX Pair: … Read more

51 Microcontroller 8-Port Serial Communication

51 Microcontroller 8-Port Serial Communication

This section discussesserial communication and the basic theories of communication. 1. Preliminary Knowledge of Serial Ports 1. Classification of Serial Ports A serial port is a widely usedcommunication interface, characterized bylow cost, ease of use, and simple communication lines, allowingtwo devices to communicate with each other. Note: Only two devices can be connected. The microcontroller’s … Read more

Introduction to JTAG Debugging and SWD

Introduction to JTAG Debugging and SWD

SWD stands for Serial Wire Debug Interface. Sometimes you may encounter terms like: JTAG-DP, SW-DP, SWJ-DP, which are interfaces for external hardware boxes. Among them, SWJ-DP was added in ADI v6.0:In summary: Physical Interface JTAG Interface? SWD Interface? Specification JTAG-DP Yes ADI v5.0/v6.0 SW-DP Yes ADI v5.0/v6.0Serial Wire (Serial Interface) SWJ-DP Yes Yes ADI v6.0Serial … Read more

Embedded – Timer and External Interrupt Simulated UART

Embedded - Timer and External Interrupt Simulated UART

The following are the general steps and example code for simulating UART (Universal Asynchronous Receiver-Transmitter) communication using timers and external interrupts (taking STM32 as an example, using C language). This method can achieve basic UART communication functionality through software simulation without hardware UART peripherals or when additional UART features are required. #include “stm32f10x.h” // Define … Read more

Accessing FPGA Registers via UART

Accessing FPGA Registers via UART

I often use ZYNQ, and I access FPGA registers through Linux. Recently, I experimented with the Xilinx XC7K325 development board KC705, which is a pure FPGA without ARM. So how do we access FPGA registers? I2C transmits one byte and responds each time, without the need for an additional feedback mechanism; SPI sends and receives … Read more

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

What Communication Technologies Should You Master for Microcontroller Work?

What Communication Technologies Should You Master for Microcontroller Work?

Recently, a reader asked a question: What communication technologies should one master when working with microcontrollers?With the development of technology, there are more and more communication technologies, but in the embedded field, the common communication technologies are actually not many, such as UART, I²C, SPI, CAN, USB, and TCP/IP, which are the most common.These communication … Read more

In-Depth Analysis of STM32: Part Five

In-Depth Analysis of STM32: Part Five

Introduction First of all, the serial port is an essential tool for anyone involved in hardware and embedded software, especially for debugging systems with MCUs or CPUs. During the debugging process, the first thing we usually do is to light up a GPIO. This has been covered in our previous content. From schematic PCB to … 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