Using UART IDLE Interrupt for Receiving Variable Length Serial Data

Using UART IDLE Interrupt for Receiving Variable Length Serial Data

Introduction In serial communication applications, we often use receive and transmit interrupts, which most of you are familiar with. There is a very useful interrupt that may be overlooked, which is the bus IDLE interrupt. When a frame of data transmission ends, the bus will maintain a high level state, at which point the MCU’s … Read more

Firmware Upgrade Process for Microcontroller UART

Firmware Upgrade Process for Microcontroller UART

OTA upgrades are no longer a novelty; most IoT terminal devices now have this capability. I previously shared an article on the principles of OTA upgrades: Dry Goods | Principles of Embedded OTA Upgrade Implementation. Today, I will share the detailed process of OTA upgrades using the AT32 as an example. . Overview Over-the-Air Technology … Read more

Single USB to Multiple UART Solutions

Single USB to Multiple UART Solutions

Source | Electronic Circuit Development Learning Serial ports are familiar to friends in the electronics industry; they are a very common device communication protocol. Most desktop cases have RS232-DB9 interfaces, and they also have multiple USB ports. Laptops typically only have three USB ports and no DB9 ports. If you want to use serial port … Read more

Engineer Notes | Receiving Variable Length Data Using UART IDLE Interrupt

Engineer Notes | Receiving Variable Length Data Using UART IDLE Interrupt

Introduction In serial communication, we often use receive and transmit interrupts, which everyone is familiar with. There is another very useful interrupt that may be overlooked, namely the bus idle state IDLE interrupt. When a frame of data transmission ends, the bus remains high idle, which triggers the MCU’s IDLE interrupt. In this article, we … Read more

Understanding RS232, RS485, UART, and TTL Serial Ports

Understanding RS232, RS485, UART, and TTL Serial Ports

Click Tech Training Top, delivering to you daily at 7:30 AM What are RS232, RS485, UART, serial ports, COM ports, USB ports, and TTL? Do you understand their relationships? First, we need to distinguish between timing standards and logic level standards. Timing standards refer to the logical values (0 and 1) corresponding to actual voltage … Read more

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