Detailed Explanation of SPI, UART, and I2C Buses

Detailed Explanation of SPI, UART, and I2C Buses

Source: Automotive ECU Design When you connect a microcontroller to sensors, displays, or other modules, have you considered how these two devices communicate with each other? What exactly are they saying? In fact, communication between electronic devices is like communication between humans; both parties need to speak the same language. In electronic products, these languages … Read more

Subtle Differences Between UART, RS-232, RS-422, and RS-485

Subtle Differences Between UART, RS-232, RS-422, and RS-485

Serial communication is one of the most basic communication methods faced by electronic engineers. Although it seems simple, many people are not clear about the subtle differences between UART, RS-232, RS-422, and RS-485. Hope this engineering note can help everyone sort out their relationships.  Communication issues, like traffic issues, also have various situations such … Read more

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