Data efficient bypass device based on SPI interface and use method of data efficient bypass device

By using the serial communication bridge module in the SPI interface to directly connect the serial communication memory and the display screen, the problems of slow data transmission speed and high power consumption of the SPI interface in the existing technology are solved, and efficient and low-power consumption data transmission is achieved. , the transmission speed is significantly improved.

CN118779276APending Publication Date: 2024-10-15CHANGZHOU JUEZHI VISION TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410847429.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing SPI interface technology has high power consumption, slow speed and low efficiency during data transmission. Especially due to the occupation of CPU, RAM and DMA, it is difficult for the microcontroller to reach the SCK speed of 100M, and the actual utilization rate is low.

Method used

The serial communication bridge module is used to set up between the serial communication controller and peripherals. After initialization, it receives the chip selection signal and associated clock, directly connects the peripherals for data transmission, skips the serial communication controller, and reduces CPU usage and Power consumption, no RAM cache required.

Benefits of technology

It achieves data transmission with fast speed, high efficiency and low power consumption. The transmission speed is only affected by the minimum value of flash or LCD, and the utilization rate reaches 100%, without the need for DMA and RAM cache.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779276A_ABST
    Figure CN118779276A_ABST
Patent Text Reader

Abstract

The invention discloses a data efficient bypass device based on an SPI interface and a using method thereof.The device comprises a serial communication bridging module, the serial communication bridging module is arranged between a serial communication controller and a serial communication memory and between the serial communication controller and a serial communication display screen and connected with a system bus, and after the serial communication bridging module is initialized and started, the serial communication bridging module is connected with the serial communication memory and the serial communication display screen; the serial communication controller is used for receiving a chip selection signal and a channel-associated clock from the serial communication controller, and respectively transmitting the chip selection signal and the channel-associated clock to the serial communication memory and the serial communication display screen; the serial communication input and output between the serial communication memory and the serial communication display screen are directly connected; a chip selection signal and a channel associated clock are transmitted through the serial communication bridging module, the occupation of a CPU (Central Processing Unit) is very small, the CPU only needs to initialize and wait for completion interruption, ram cache and a controller are not needed, the power consumption is low, the speed of the CPU is only influenced by the minimum value of flash or an LCD (Liquid Crystal Display), and the data transmission efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of SPI interfaces, and specifically relates to a data efficient bypass device based on an SPI interface and a use method thereof. Background Art

[0002] SPI interface is a full-duplex synchronous serial communication interface. The normal standard solution to implement SPI flash data, i.e., serial communication power-off non-volatile reprogrammable memory data, is to transfer it to LCD to display animation through SPI controller, i.e., serial communication controller. CPU / DMA reads flash to RAM, and then CPU / DMA writes RAM to LCD. Due to the occupation of CPU, RAM, DMA, and SPI controller, power consumption is high. It is limited by the speed of SPI interface. Since the speed of general SPI controller is not high, it is difficult for ordinary MCU, i.e., microcontroller, to reach 100M SCK. Most of them are below 32M, and there are many invalid bubbles. The actual utilization rate is 50%, the speed is not fast, the power consumption is high, and the efficiency is low. Summary of the invention

[0003] Purpose of the invention: In order to overcome the deficiencies in the prior art, the present invention provides a data efficient bypass device based on an SPI interface and a method for using the device, which has high speed, high efficiency, low power consumption, does not require RAM cache, and occupies less CPU / DMA;

[0004] Technical solution: To achieve the above-mentioned purpose, the technical solution adopted by the present invention is: a data efficient bypass device based on SPI interface, including a serial communication bridge module, which is arranged between a serial communication controller and at least two serial communication peripherals, and is connected to a system bus. After the serial communication bridge module is initialized and started, it receives a chip selection signal and an associated clock from the serial communication controller, and transmits the chip selection signal and the associated clock to each serial communication peripheral respectively.

[0005] On the other hand, a method for using a data efficient bypass device based on an SPI interface comprises the following steps:

[0006] Step 1, power on and reset the device;

[0007] Step 2, using the serial communication controller to initialize all at least two serial communication peripherals, and at the same time initialize the serial communication bridge module;

[0008] Step 3, starting the serial communication controller through the CPU to read and write the start identifier to the first serial communication peripheral;

[0009] Step 4, after receiving the start identifier, the serial communication bridge module takes over all serial communication peripherals, and the serial communication input and output between the serial communication peripherals skip the serial communication controller and are directly connected until the data transmission is completed and interrupted;

[0010] Step 5, the CPU clears the interrupt and turns off the serial communication bridge module;

[0011] Step 6, when the next transmission of the serial communication memory needs to continue, repeat steps 2 to 6; otherwise, the task ends.

[0012] As a preferred implementation mode of the present invention: the serial communication bridge module connects the data communication topology between at least two serial communication peripherals.

[0013] As a preferred implementation manner of the present invention: the serial communication peripheral comprises: a first serial communication peripheral and a second serial communication peripheral, wherein the first serial communication peripheral is a serial communication storage device, and the second serial communication peripheral is a serial communication display screen.

[0014] Compared with the prior art, the present invention has the following beneficial effects:

[0015] Through the serial communication bridge module set between the serial communication memory and the serial communication display screen, after the SPI controller is initialized and started through the startup identifier, the serial communication input and output between the serial communication memory and the serial communication display screen are directly connected; the chip selection signal and the accompanying clock are transmitted through the serial communication bridge module, the CPU occupancy is very small, only initialization and then waiting for the completion of the interrupt, and no RAM cache is required. DMA, that is, a controller for moving data under the control of the processor, is not required. The power consumption is small, and its speed is only affected by the minimum value of the flash or LCD, and the data transmission efficiency is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A flowchart showing a method for using a data efficient bypass device based on an SPI interface;

[0017] Figure 2 Schematic diagram of a data efficient bypass device based on the SPI interface. DETAILED DESCRIPTION

[0018] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that these examples are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent forms of modifications to the present invention by those skilled in the art all fall within the scope defined by the claims attached to this application.

[0019] A data efficient bypass device based on an SPI interface comprises a serial communication bridge module, which is arranged between a serial communication controller and at least two serial communication peripherals and connected to a system bus. After the serial communication bridge module is initialized and started, it receives a chip selection signal and an associated clock from the serial communication controller, and transmits the chip selection signal and the associated clock to each serial communication peripheral respectively.

[0020] The method for using the data efficient bypass device based on the SPI interface comprises the following steps:

[0021] Step 1, power on and reset the device;

[0022] Step 2, using the serial communication controller to initialize all at least two serial communication peripherals, and at the same time initialize the serial communication bridge module;

[0023] Step 3, starting the serial communication controller through the CPU to read and write the start identifier to the first serial communication peripheral;

[0024] Step 4, after receiving the start identifier, the serial communication bridge module takes over all serial communication peripherals, and the serial communication input and output between the serial communication peripherals skip the serial communication controller and are directly connected until the data transmission is completed and interrupted;

[0025] Step 5, the CPU clears the interrupt and turns off the serial communication bridge module;

[0026] Step 6, when the next transmission of the serial communication memory needs to continue, repeat steps 2 to 6; otherwise, the task ends.

[0027] Wherein, the serial communication bridge module can connect the data communication topology between at least two serial communication peripherals.

[0028] Example 1

[0029] like Figure 2The device is a data efficient bypass device based on SPI interface, characterized in that it includes a serial communication bridge module, namely Spi_bridge, and serial communication peripherals include a serial communication memory Spi flash and a serial communication display screen LCD, which are arranged between a serial communication controller, namely the SPI controller, and the serial communication memory and the serial communication display screen respectively, and are connected to the system bus APB. The LCD is a device of spi interface. After the serial communication bridge module is initialized and started, it receives a chip selection signal and an accompanying clock from the serial communication controller, and transmits the chip selection signal and the accompanying clock to the serial communication memory and the serial communication display screen respectively; wherein the serial communication display screen is a serial communication liquid crystal display screen, the chip selection signal is set to be valid only at a low level, and the serial communication memory is specifically a power-off non-volatile reprogrammable memory of serial communication.

[0030] On the other hand, a method for using a data efficient bypass device based on an SPI interface, such as Figure 1 As shown, the following steps are included:

[0031] Step 1, power on reset;

[0032] Step 2, using the serial communication controller to initialize the serial communication display screen, and at the same time initialize the serial communication bridge module;

[0033] Step 3, starting the serial communication controller through the CPU to read and write the start identifier to the serial communication memory;

[0034] Step 4, after receiving the start identifier, the serial communication bridge module takes over the serial communication display screen and the serial communication memory, and the serial communication input and output between the serial communication memory and the serial communication display screen skip the serial communication controller and are directly connected until the data transmission is completed and interrupted;

[0035] Step 5, the CPU clears the interrupt and turns off the serial communication bridge module;

[0036] Step 6, when the next transmission of the serial communication memory needs to continue, repeat steps 2 to 6; otherwise, the task ends.

[0037] The data transmission path does not pass through the SPI controller, but the SPI interface of the power-off non-volatile reprogrammable memory of the SPI flash serial communication is directly output to the SPI interface of the SPI LCD, i.e. the liquid crystal display of the serial communication; the patented solution completes the control of the CSN, i.e. the chip selection signal, and the SCK, i.e. the serial communication clock, of the SPI flash and the SPI LCD;

[0038] The method waits for the interrupt after the transmission is completed after the CPU is initialized, and the data is transmitted in bypass mode. The upper limit of sck, i.e., the serial communication clock, is the minimum value of the flash, i.e., the memory (basically above 100M) or the LCD, i.e., the liquid crystal display (generally between 50M and 100M), which is much greater than the speed of reading the flash to the RAM through the CPU / DMA and then writing the RAM to the LCD. Once the method is initialized, the utilization rate of the sck transmitted between the flash and the LCD through the serial communication bridge module, i.e., Spibridge, reaches 100% until the transmission is completed, and the Dio, i.e., the input and output of the serial communication between the flash and the LCD are directly connected. Therefore, the CPU occupancy of the flash and the LCD connected by the method is very small. It only needs to be initialized and then wait for the interrupt to be completed, and then continue the second transmission. No RAM cache is required, no DMA is required, and the power consumption is low and the efficiency is high.

[0039] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A data efficient bypass device based on SPI interface, characterized in that: The invention comprises a serial communication bridge module, which is arranged between a serial communication controller and at least two serial communication peripherals and connected to a system bus. After the serial communication bridge module is initialized and started, it receives a chip selection signal and an associated clock from the serial communication controller, and transmits the chip selection signal and the associated clock to each serial communication peripheral respectively.

2. A method for using the SPI interface-based data efficient bypass device according to claim 1, characterized in that: The following steps are involved: Step 1, power on and reset the device; Step 2, using the serial communication controller to initialize all at least two serial communication peripherals, and at the same time initialize the serial communication bridge module; Step 3, starting the serial communication controller through the CPU to read and write the start identifier to one of the serial communication peripherals; Step 4, after receiving the start identifier, the serial communication bridge module takes over all serial communication peripherals, and the serial communication input and output between the serial communication peripherals skip the serial communication controller and are directly connected until the data transmission is completed and interrupted; Step 5, the CPU clears the interrupt and turns off the serial communication bridge module; Step 6, when the next transmission of the serial communication memory needs to continue, repeat steps 2 to 6; otherwise, the task ends.

3. The method for using the data efficient bypass device based on the SPI interface according to claim 2, characterized in that: The serial communication bridge module connects the data communication topology between at least two serial communication peripherals.

4. The method for using the data efficient bypass device based on the SPI interface according to claim 2, characterized in that: The serial communication peripherals include: a first serial communication peripheral and a second serial communication peripheral or more, and data transmission between them is only transmitted between the serial communication peripherals without any transit.

Citation Information

Cited By

  • SPI chip communication system

    CN119003429A