Why UART Serial Communication Requires 16x Oversampling

Why UART Serial Communication Requires 16x Oversampling

Enhancing anti-interference is one reason. Standard UART can choose 16x sampling or 64x sampling; I personally think it should be for convenient frequency division design. The RXD front end of the standard UART has a “1 to 0 transition detector.” When it continuously receives 8 ground level signals on RXD, the detector considers that the … Read more

Can SPI Use UART Communication Protocol?

Can SPI Use UART Communication Protocol?

Follow+Star Public Account, don’t miss out on exciting content Author | strongerHuang WeChat Official Account | strongerHuang Recently, a reader asked this question: Can SPI use the UART custom communication protocol? In principle: as long as the communication protocol is not directly related to the underlying communication interface (hardware), it can be used. For example, … Read more

Detailed Explanation of UART Waveforms

Detailed Explanation of UART Waveforms

Click on the above “Electronic Engineer’s Notes” and select “Pin/Star the Official Account” Valuable content delivered instantly! UART (Universal Asynchronous Receiver/Transmitter) is an asynchronous full-duplex serial communication protocol consisting of two data lines, Tx and Rx. Since there is no reference clock signal, both communication parties must agree on serial baud rate, data bit width, … Read more

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

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