Do UART Serial Ports Need DMA for Transmission?

Do UART Serial Ports Need DMA for Transmission?

DMA is a commonly used feature in embedded real-time task processing. Using DMA for UART data packet transmission can significantly reduce CPU processing time, preventing excessive waste of CPU resources, especially when transmitting a large number of data packets (such as high-frequency command transmissions). Brief Introduction to DMA DMA: Direct Memory Access. In simple terms, … Read more

UART Protocol and Verilog Code

UART Protocol and Verilog Code

Welcome FPGA engineers to join the official WeChat technical group. Clickthe blue textto follow us at FPGA Home – the best and largest community for pure FPGA engineers in China. The code comments are a bit rushed, please criticize any incorrect comments; it is for reference only. UART The UART is relatively simple, so only … Read more

How Does printf() Integrate with UART Driver Functions?

How Does printf() Integrate with UART Driver Functions?

This is definitely a good article. Printing with this function is sometimes more useful than any debugging tool, and the kernel’s prink is a true gem. But how does the printf function connect with the UART driver? This article will answer that for you. Like, share, and bookmark it for when you need it. Today, … Read more

How to Swap UART Rx and Tx Pins and Invert Levels

How to Swap UART Rx and Tx Pins and Invert Levels

Follow+Star Public Account, don’t miss wonderful content Source | AI Electronics Today I will share with you some features of UART in STM32, mainly targeting newer series of STM32 (such as: STM32H7, G0, G4, etc.), which allows changes to the Rx and Tx pins, level inversion, high-low order, and introduces timeout, etc. Embedded Column 1 … Read more

A Deep Dive Into UART, I2C, SPI, and 1-Wire Communication Interfaces

A Deep Dive Into UART, I2C, SPI, and 1-Wire Communication Interfaces

1. UART: The Art of Asynchronous Communication As Qiu Qianzhang from “The Legend of the Condor Heroes” said, UART is like my lightness kung fu, gliding over the water. If you want to cross the river (communicate), you need to set up markers in advance, and your steps should be fixed according to the distance … 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

Open Source Debugging Tool: High-Speed USB to UART, SPI, I2C, JTAG

Open Source Debugging Tool: High-Speed USB to UART, SPI, I2C, JTAG

In the previous article on dynamic library encapsulation examples, a CH347 high-speed USB to UART, SPI, I2C, JTAG bridging module was used, which is now open source 👉 GitHub Repository[1]. Introduction CH347 USB High Speed Bridge is a debugging tool designed based on the CH347[2] chip, supporting high-speed USB, allowing USB to UART, USB to … Read more

Why Do We Prefer Serial Communication? Exploring RS485, SPI, and I2C

Why Do We Prefer Serial Communication? Exploring RS485, SPI, and I2C

Click the card above to follow for more information 1. Why Do We Prefer Serial Communication? When working on microcontroller products, the most commonly used method is serial communication. For any microcontroller peripherals, those with serial port functionality are prioritized, such as Bluetooth modules, WIFI modules, 4G modules, electric meters, and displays. Why do we … Read more

SGM832: 36V, 16-Bit Current, Voltage, Power Monitoring Chip

SGM832: 36V, 16-Bit Current, Voltage, Power Monitoring Chip

Keywords: Power Monitoring; I2C and SMBus Compatible; Alarm Function SG Micro Corp has launched the SGM832 monitoring chip, which can be used for monitoring voltage, current, and power in power supply systems. The chip is compatible with I2C and SMBus interfaces and can simultaneously monitor differential voltage and bus power voltage. The chip integrates flexible … Read more

H7-Tool 2.24 Release: SVD Parsing, RTOS Trace, I2C/SPI Slave, and More

H7-Tool 2.24 Release: SVD Parsing, RTOS Trace, I2C/SPI Slave, and More

1PC Software 2.2.4 Update 1. Offline Programming Function Upgrade— Added GD32C10x Series— Added Juchuang HT502x— Added Infineon TLE987x Series— Added NXP S32K1xx Series— Added APM32E103 Series— Added GD32F427RE Series— Fixed PY32F002 Flash Capacity— Fixed New唐 M480 Series, Option Word Read Protection Bug.— Fixed STM32H723 Series Flash Capacity— Fixed PUYA Serial Flash P25Qxxx Series Unlock Command— … Read more