Method and system for converting UART to SPI interface

The embodiment of the invention provides a UART-to-SPI interface conversion method and system, and belongs to the technical field of data transmission. The method is executed by a UART (Universal Asynchronous Receiver/Transmitter) processing module and comprises the following steps: acquiring an inp...

Full description

Saved in:
Bibliographic Details
Main Authors ZHAO RENXI, ZHU YUFENG, SHU BIN, YAN XUNING, CHEN WENMING
Format Patent
LanguageChinese
English
Published 25.11.2022
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The embodiment of the invention provides a UART-to-SPI interface conversion method and system, and belongs to the technical field of data transmission. The method is executed by a UART (Universal Asynchronous Receiver/Transmitter) processing module and comprises the following steps: acquiring an input signal and decoding the input signal; converting the decoded input signal into a serial UART (Universal Asynchronous Receiver/Transmitter) serial bit frame format; judging the state of an SPI internal register by reading the register address, and determining a UART generation port based on the state of the SPI internal register; and driving the input signal in the UART serial bit frame format to the determined UART generation port. According to the scheme, the IP conversion method for directly accessing the SPI internal bus through the UART bus interface is used for solving the problems that data transmission of the UART interface is slow, and more SPI resources are relatively occupied. 本发明实施例提供一种UART到SPI接口的转化方法
Bibliography:Application Number: CN202211175251