Screen refreshing method, device and storage medium based on QSPI

By using data storage queues and displacement processing in the LCD screen flushing method to generate QSPI interface data and flushing information, the problem of multi-module access bandwidth preemption is solved, and the flushing frame rate and user experience are improved.

CN118885143BActive Publication Date: 2025-01-07GUANGDONG JIANGXINCHUANG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411355560.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-07
Estimated Expiration
2044-09-27

AI Technical Summary

Technical Problem

The existing LCD screen flushing method has the tight bus bandwidth, which affects the display effect and user experience because multiple data modules access dynamic random access memory at the same time.

Method used

By obtaining image information and sending it to the data storage queue, reading and displacement processing is performed in sequence, QSPI interface data and screen flushing information are generated, including synchronization instructions and display instructions, and controlling the display screen to execute instructions to simplify the driving control process and avoiding Multiple modules access bandwidth preemption at the same time.

Benefits of technology

It improves the screen-flash frame rate, ensures the continuity of image information, reduces software intervention and delay, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885143B_ABST
    Figure CN118885143B_ABST
Patent Text Reader

Abstract

The present invention discloses a screen-swiping method, device and storage medium based on QSPI, the method comprising the following steps: acquiring image information and sending the image information to a data storage queue; sequentially reading the image information in the data storage queue and performing displacement processing to obtain corresponding QSPI interface data; generating screen-swiping information according to the QSPI interface data, wherein the screen-swiping information includes synchronization instructions and display instructions; and controlling the display screen to execute the synchronization instructions and display instructions according to the screen-swiping information. By storing and forwarding image information through the data storage queue and generating corresponding QSPI interface data and screen-swiping information, the driving control process of the liquid crystal display screen is effectively simplified, the problem of tight bus bandwidth caused by simultaneous access of multiple data modules is avoided, and the screen-swiping frame rate is improved; the continuity of sending image information is also ensured, software intervention is avoided, and delay is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of display screen refreshing, and in particular to a QSPI-based screen refreshing method, device and storage medium thereof. Background Art

[0002] At present, most screen refresh methods use a dedicated LCD controller with an internal integrated timing protocol (QuadSPI, QSPI) interface. The image data pre-stored in the dynamic random access memory (DRAM) is obtained by the display engine and output to the digital logic module. The digital logic module then converts the parallel data of the LCD into serial data of QSPI and sends it out. Therefore, the existing screen refresh methods have the problem of poor versatility. In addition, since the system direct memory access (DMA) or display engine is used to obtain image data, there will be bandwidth preemption when multiple modules access DRAM at the same time, which affects the display effect and user experience. Summary of the invention

[0003] To solve the above problems, the purpose of the present invention is to provide a screen refresh method, device and storage medium based on QSPI, which can effectively simplify the driving control process of the liquid crystal display, avoid the problem of bus bandwidth shortage caused by simultaneous access of multiple data modules, and improve the screen refresh frame rate and user experience.

[0004] The technical solution adopted by the present invention to solve the problem is:

[0005] In a first aspect, an embodiment of the present application provides a screen refreshing method based on QSPI, comprising the following steps: acquiring image information, and sending the image information to a data storage queue; sequentially reading the image information in the data storage queue, and performing displacement processing to obtain corresponding QSPI interface data, including: determining the displacement difference between the image information and the QSPI interface data according to the data bit width of the QSPI interface; performing displacement processing on the image information according to the displacement difference to obtain the QSPI interface data; generating screen refreshing information according to the QSPI interface data, wherein the screen refreshing information includes synchronization instructions and display instructions; controlling the display screen to execute the synchronization instructions and the display instructions according to the screen refreshing information.

[0006] In the second aspect, an embodiment of the present application provides a screen refreshing device based on QSPI, including: an acquisition module, used to acquire image information and send the image information to a data storage queue; a displacement module, used to read the image information in the data storage queue in sequence, and perform displacement processing to obtain corresponding QSPI interface data; a conversion module, used to generate screen refreshing information according to the QSPI interface data, wherein the screen refreshing information includes synchronization instructions and display instructions; a display module, used to control the display screen to execute the synchronization instructions and the display instructions according to the screen refreshing information.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the QSPI-based screen refreshing method as described above is implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the QSPI-based screen refreshing method as described above is implemented.

[0009] In the embodiment of the present application, image information is acquired and sent to a data storage queue; the image information in the data storage queue is read in order and shifted to obtain corresponding QSPI interface data; screen refresh information is generated according to the QSPI interface data, wherein the screen refresh information includes synchronization instructions and display instructions; and the display screen is controlled to execute the synchronization instructions and display instructions according to the screen refresh information. By storing and forwarding image information through the data storage queue and generating corresponding QSPI interface data and screen refresh information, the driving control process of the liquid crystal display screen is effectively simplified, the problem of bus bandwidth tension caused by simultaneous access of multiple data modules is avoided, and the screen refresh frame rate is improved; at the same time, the continuity of sending image information is guaranteed, software intervention is avoided, and delay is effectively reduced.

[0010] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 This is a flow chart of a screen refreshing method based on QSPI according to an embodiment of the present invention;

[0012] Figure 2 for Figure 1 Flowchart of step S1000;

[0013] Figure 3 for Figure 2 Flowchart of step S1200;

[0014] Figure 4 for Figure 3 Flow chart of step S1220;

[0015] Figure 5 for Figure 1 Flowchart of step S2000;

[0016] Figure 6 for Figure 5 Flowchart of step S2200;

[0017] Figure 7 for Figure 1 Flowchart of step S3000;

[0018] Figure 8 for Figure 1 Flowchart of step S4000;

[0019] Fig. 9 for Figure 7 A schematic diagram of the display screen in FIG.

[0020] Fig.10 This is a structural diagram of a screen refreshing device based on QSPI according to an embodiment of the present invention;

[0021] Fig.11 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0023] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0024] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0025] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0026] The screen refreshing method, device and storage medium based on QSPI involved in the embodiment of the present invention obtain image information and send the image information to a data storage queue; read the image information in the data storage queue in order and perform displacement processing to obtain corresponding QSPI interface data; generate screen refreshing information according to the QSPI interface data, wherein the screen refreshing information includes synchronization instructions and display instructions; and control the display screen to execute the synchronization instructions and display instructions according to the screen refreshing information. By storing and forwarding image information through the data storage queue and generating corresponding QSPI interface data and screen refreshing information, the driving control process of the liquid crystal display screen is effectively simplified, the problem of tight bus bandwidth caused by simultaneous access of multiple data modules is avoided, and the screen refreshing frame rate is improved; at the same time, the continuity of sending image information is guaranteed, software intervention is avoided, and delay is effectively reduced.

[0027] The refresh rate of a display usually refers to the number of times the display updates per second, also known as the screen refresh rate. This frequency directly affects the smoothness and visual effects of the displayed image. The refresh rate of a display is one of the important indicators to measure its performance. Different types of displays have different refresh mechanisms and frequencies. This parameter can be measured and adjusted through specific tools and methods to meet different usage requirements.

[0028] At present, most screen refresh methods use a dedicated LCD controller with an internal integrated QSPI interface. The image information pre-stored in DRAM is obtained by the display engine and output to the digital logic module. The digital logic module then converts the parallel data of the LCD into serial data of QSPI and sends it out. Therefore, due to the participation of the display engine, the risk of bus bandwidth tension caused by simultaneous access between various data processing modules is increased. In addition, the conversion of image information from parallel to serial also increases the processing time and workload of each data processing module, making it impossible to guarantee the screen refresh frame rate and increasing the display delay of the display screen.

[0029] Based on the above, the embodiment of the present invention provides a screen refresh method, device and storage medium based on QSPI, which obtains image information and sends the image information to a data storage queue; reads the image information in the data storage queue in sequence and performs displacement processing to obtain corresponding QSPI interface data; generates screen refresh information according to the QSPI interface data, wherein the screen refresh information includes synchronization instructions and display instructions; and controls the display screen to execute synchronization instructions and display instructions according to the screen refresh information. By storing and forwarding image information through the data storage queue and generating corresponding QSPI interface data and screen refresh information, the driving control process of the liquid crystal display screen is effectively simplified, the problem of bus bandwidth tension caused by simultaneous access of multiple data modules is avoided, and the screen refresh frame rate is improved.

[0030] See also Figure 1 , Figure 1 The process of the screen refreshing method based on QSPI provided by the embodiment of the present invention is shown. Figure 1 As shown, the screen refreshing method based on QSPI in the embodiment of the present invention comprises the following steps:

[0031] Step S1000: Acquire image information and send the image information to a data storage queue.

[0032] It is understandable that the image information is used to determine the colors displayed in various positions and areas of the electronic screen. Specifically, the image information adopts the RGB format widely used in the field of electronic screen display. Among them, RGB stands for the three color channels of red, green and blue. This is a color system widely used in computer technology. In digital images and videos, the RGB mode produces a full-color display effect by combining the brightness levels of these three basic colors. The images displayed on the computer screen are all achieved by combining the brightness of these three colors to achieve different color effects. The intensity of these three colors determines the final displayed color of each pixel. This mode is applicable to the standard of electronic equipment to display colors. In a broad sense, it is a parsing standard for the color results obtained by the screen emitting or reflecting light. RGB is widely used in fields such as image processing software and plays an important role in the display screens of modern electronic products. Simply put, RGB is one of the key factors that determine the color displayed on the electronic screen.

[0033] It can be understood that the data storage queue uses an array storage queue, that is, a group of storage units with consecutive addresses are used to store the elements in the queue in sequence. There are also certain restrictions on the location where data can be operated in the queue. In the stack, data is added and deleted at the same end, while in the queue it is done at both ends. The queue also cannot directly access the data in the middle, and the target data must be put in the first place through the dequeue operation before it can be accessed. Similar to the queue in reality (entry at the end of the queue, exit at the head of the queue), the end where the element is inserted is called the tail of the queue, and the end where the element is deleted (removed) is called the head of the queue, corresponding to the entry and exit operations respectively.‌

[0034] See also Figure 2 , Figure 2 FIG. 5 is a schematic diagram showing a specific implementation process of another embodiment of the above step S1000. Figure 2 As shown, step S1000 at least includes the following steps:

[0035] Step S1100: Read image information from the dynamic random access memory.

[0036] It is understandable that DRAM is a semiconductor memory, and its main working principle is to use the amount of charge stored in the capacitor to represent whether a binary bit is 1 or 0. Since transistors have leakage current in reality, the amount of charge stored on the capacitor is not enough to correctly judge the data, resulting in data corruption. Therefore, for DRAM, periodic charging is an inevitable requirement. Due to this characteristic of requiring regular refresh, it is called dynamic memory.

[0037] It should be noted that DRAM has the advantages of large capacity, low cost and high integration, and is usually used for data cache and program cache. Image information is stored in DRAM, which facilitates the rapid acquisition of a large amount of image information and improves the efficiency of LCD in acquiring image information.

[0038] Step S1200: Store the image information in a data storage queue, wherein the data storage queue follows the first-in-first-out principle.

[0039] It is understandable that the First Input First Output (FIFO) queue is a traditional sequential execution method. The first instruction to enter is completed and retired first, and then the second instruction is executed. The FIFO queue does not classify the messages. When the speed at which the messages enter the interface is greater than the speed at which the interface can send them, the FIFO allows the messages to enter the queue in the order in which they arrive at the interface. At the same time, the FIFO allows the messages to exit the queue in the order in which they enter the queue. The first messages will exit the queue first, and the last messages will exit the queue later. The data storage queue follows the principle of first in, first out, which can ensure that the image information can be processed and transmitted in order, avoiding the situation of confusion and error frames of image information and display screens, which affects the display effect of the display screen.

[0040] See also Figure 3 , Figure 3 FIG. 5 is a schematic diagram showing a specific implementation process of another embodiment of the above step S1200. Figure 3 As shown, step S1200 at least includes the following steps:

[0041] Step S1210, obtaining the idle quantity of the sending end of the data storage queue and the valid data quantity of the receiving end of the data storage queue.

[0042] It is understandable that the idle number of the sending end of the FIFO data storage queue and the effective data volume of the receiving end can reflect the data forwarding status of the current FIFO data storage queue. When the idle number of the sending end and the effective data volume of the receiving end change, the access operation of the image information can be performed by comparing the preset trigger threshold. In practical applications, obtaining the idle number of the sending end of the data storage queue and the effective data volume of the receiving end of the data storage queue through instructions belongs to the prior art and will not be described in detail here.

[0043] Step S1220: access the image information in the data storage queue according to the idle quantity, the effective data quantity and the preset trigger threshold.

[0044] It can be understood that by properly configuring the trigger threshold of the FIFO to dynamically send a direct memory access (DMA) request, wherein DMA is a function provided by some computer bus architectures, which enables data to be sent directly from an attached device (such as a disk drive) to the memory of the computer motherboard.

[0045] See also Figure 4 , Figure 4 FIG. 5 is a schematic diagram showing a specific implementation process of another embodiment of the above step S1220. Figure 4 As shown, step S1220 at least includes the following steps:

[0046] Step S1221: When the idle quantity is less than the sending threshold, the image information is read from the dynamic random access memory and stored in the data storage queue.

[0047] It is understandable that when the idle number is less than the preset sending threshold, in order to ensure that the space of the data storage queue can be fully utilized, the image information is read from the dynamic random access memory and stored in the data storage queue. Specifically, when the idle number of TXFIFO is less than the sending threshold, DMA obtains image data from DRAM and sends it to the FIFO queue.

[0048] Step S1222: When the amount of valid data is greater than the receiving threshold, image information is obtained from the sending end of the data storage queue.

[0049] It is understandable that when the amount of valid data is greater than the receiving threshold, in order to avoid occupying too much space in the data storage queue, the image information is obtained from the sending end of the data storage queue, that is, the image information in the data storage queue is dequeued in time. Specifically, when the amount of valid data in the RX FIFO is greater than the receiving threshold, the DMA obtains the image information from the RX FIFO and sends it to the SRAM or DRAM.

[0050] It should be noted that the image information transfer in the above steps S1221 and S1222 is handled by internal direct memory access (IDMA). Among them, IDMA is a dedicated digital logic inside the controller, which can directly access the memory as a host through the Advanced High Performance Bus (AHB) interface, does not require the participation of the CPU, is simple to configure, and is not affected by other hosts. Therefore, the embodiment of the present application reduces the CPU load and may improve the performance of image information loading and exporting.

[0051] Step S2000, sequentially read the image information in the data storage queue, and perform displacement processing to obtain corresponding QSPI interface data, including: determining the displacement difference between the image information and the QSPI interface data according to the data bit width of the QSPI interface; and performing displacement processing on the image information according to the displacement difference to obtain the QSPI interface data.

[0052] It is understandable that QSPI has made some enhancements based on SPI and is backward compatible with SPI. The most significant difference between QSPI and SPI is that it improves the interface transmission rate, and the controller can allocate appropriate resources according to the actual bandwidth requirements. Therefore, the use of the QSPI interface does not require the CPU to participate in every data transmission, which can reduce the CPU resource usage. Since the QSPI interface is 4 data bits wide, the byte data of the FIFO needs to be converted into the corresponding QSPI interface data, that is, the image information needs to be shifted.

[0053] See also Figure 5 , Figure 5 FIG. 2 shows a schematic diagram of a specific implementation process of another embodiment of the above step S2000. Figure 5 As shown, step S2000 at least includes the following steps:

[0054] Step S2100: Determine the displacement difference between the image information and the QSPI interface data according to the data bit width of the QSPI interface.

[0055] It can be understood that the bit width refers to the number of binary bits that a digital circuit (such as a processor, memory, etc.) processes or transmits at one time. The bit width determines the width of the data bus and the amount of data that the data bus can transmit. The role of bit width is mainly reflected in data transmission and storage, processor data processing and addressing capabilities. In a memory (such as RAM or Flash), the bit width determines the size of each storage unit. For example, an 8-bit wide memory means that each storage unit can store 1 byte of data (8 bits). In terms of the data bus, the bit width determines the amount of data transmitted each time. A wide data bus can transmit more data at the same time, thereby improving the overall performance of the system. Therefore, it is necessary to determine the displacement difference between the image information and the QSPI interface data based on the data bit width of the QSPI interface.

[0056] Step S2200: Perform displacement processing on the image information according to the displacement difference to obtain QSPI interface data.

[0057] It is understandable that the shift operation usually involves the movement of binary bits, which includes operations such as left shift and right shift. The correct execution of the shift operation depends on the bit width of the processor, because the integrity and correctness of the data can only be guaranteed when the data is moved within the correct bit width range. For example, if a 32-bit processor performs a right shift operation, it must ensure that the data is correctly moved within the 32-bit range to avoid data loss or error. Therefore, it is necessary to perform shift processing on the image information according to the shift difference to obtain the QSPI interface data.

[0058] See also Figure 6 , Figure 6 FIG. 2 shows a schematic diagram of a specific implementation process of another embodiment of the above step S2200. Figure 6 As shown, step S2200 at least includes the following steps:

[0059] Step S2210: Obtain the number of bits of the image information shifted to the right according to the displacement difference.

[0060] It can be understood that after obtaining the displacement difference through the above steps, the number of bits of the image information shifted to the right is obtained according to the displacement difference. Specifically, the displacement operation includes left shift and right shift, which is achieved by shifting the bits of the binary number to the left or right. These operations are usually used for fast multiplication or division operations, as well as bit-level data operations and adjustments.

[0061] Step S2220: perform shift processing on the image information according to the number of bits to obtain QSPI interface data.

[0062] It is understandable that, in practical applications, the left shift operator shifts the bits of a number to the left by a specified number of bits, and each shift is equivalent to multiplying the number by 2. The right shift operator shifts the bits of a number to the right by a specified number of bits, and each shift is equivalent to dividing the number by 2. These operators can improve the calculation speed in the underlying programming and implement key data operations when processing bit masks. In the embodiment of the present application, for a QSPI interface with a data bit width of 4, each image information needs to be shifted and sent to the QSPI interface through two clock cycles.

[0063] Step S3000: Generate screen refresh information according to QSPI interface data, wherein the screen refresh information includes synchronization instructions and display instructions.

[0064] It can be understood that during the display process of the display, starting from the upper left corner of the screen, the data of each pixel is obtained and displayed line by line. When the display reaches the rightmost side of a line, it jumps to the leftmost side of the next line to start displaying the next line; when all lines are displayed, it jumps to the upper left corner to start the next frame. The display scans along a "Z"-shaped route, and uses the frame synchronization signal (VSYNC) and the line synchronization signal (HSYNC) to control the jump of the scanning route. Specifically, VSYNC indicates the start of scanning a frame, and a frame is a picture displayed by the LCD; HSYNC indicates the start of scanning a line. Therefore, it is necessary to generate screen refresh information for guiding the display screen to perform display operations based on the QSPI interface data.

[0065] See also Figure 7 , Figure 7 FIG. 5 is a schematic diagram showing a specific implementation process of another embodiment of the above step S3000. Figure 7 As shown, step S3000 at least includes the following steps:

[0066] Step S3100: Obtain synchronization instructions and their quantity according to the QSPI interface data, wherein the synchronization instructions include a reset interval instruction, a front shoulder synchronization instruction, and a back shoulder synchronization instruction.

[0067] It is understandable that there are some intervals between two frames during the display process of the display screen, including the reset interval instruction (VSW), which indicates the interval between the falling edge and the rising edge of the VSYNC signal; the front shoulder synchronization instruction (VBP), which indicates the front shoulder of the frame synchronization signal; the back shoulder synchronization instruction (VFP), which indicates the back shoulder of the frame synchronization signal. According to the QSPI interface data, the number of rows of VSW, VBP and VFP and the corresponding instruction data are obtained, including the number of VSW rows, the number of VBP rows, the number of VFP rows, the VSW command, the VBP command, the VFP command, etc.

[0068] Step S3200: Obtain a display instruction corresponding to the image information according to the QSPI interface data.

[0069] It is understandable that after obtaining the VSW command, VBP command and VFP command in the QSPI interface data, it is also necessary to extract the display instruction for controlling the display effect of the display, that is, the VALID line number and the VALID command.

[0070] Step S3300, output the reset interval instruction, the front shoulder synchronization instruction, the display instruction and the back shoulder synchronization instruction in sequence to obtain the screen refresh information.

[0071] It can be understood that the VSW line number, VBP line number, VALID line number, VFP line number, VSW command, VBP command, VALID command and VFP command obtained in the above steps S3100 and S3200 are output in sequence to obtain the screen refresh information for indicating the operation of the display screen.

[0072] Step S4000, controlling the display screen to execute synchronization instructions and display instructions according to the screen refresh information.

[0073] It can be understood that when the QSPI interface receives the screen refresh information, it is transmitted to the display screen, and the display screen executes the synchronization instruction and the display instruction according to the screen refresh information to perform the screen refresh operation.

[0074] See also Figure 8 , Figure 8 FIG. 4 is a schematic diagram showing a specific implementation process of another embodiment of the above step S4000. Figure 8 As shown, step S4000 at least includes the following steps:

[0075] Step S4100: Send the screen refresh information to the display screen through the QSPI interface.

[0076] It is understandable that after obtaining the screen refresh information of step S3000, the screen refresh information is sent to the display screen through the QSPI interface to ensure that the display screen can respond and perform display operations in a timely manner. It is understandable that sending the screen refresh information to the display screen through the QSPI interface belongs to the prior art and will not be described in detail here.

[0077] Step S4200, control the display screen to execute the reset interval instruction, the front shoulder synchronization instruction, the display instruction and the back shoulder synchronization instruction in sequence, wherein the execution time of each synchronization instruction and display instruction is consistent with the reading time of the synchronization instruction and the display instruction.

[0078] It is understandable that if Fig. 9 As shown, after receiving the screen refresh information, the display screen executes the reset interval instruction, the front shoulder synchronization instruction, the display instruction and the back shoulder synchronization instruction in sequence, and obtains the following Fig. 9 Schematic diagram of the display screen shown.

[0079] It should be noted that in order to ensure that the display instructions in the image information can be synchronously transmitted to the display screen and executed, the execution time of each synchronization instruction and display instruction is consistent with the reading time of the synchronization instruction and the display instruction. Specifically, the row processing time refers to the execution time of sending a row command and row valid data, which depends on the resolution of the display screen and the interface clock frequency. For example, for 400*400 resolution, RGB888 image information, the interface frequency is 50MHz, and each clock cycle is 20ns. At this time, the amount of data in a row is 400*3*8bits=1200bytes. When the interface works in 4-bit wide mode (4bit), each byte requires 2 clock cycles, and the data occupies 2400 clock cycles. The command is transmitted in 1bit, which takes 32 clock cycles. Therefore, the data processing time of a row is 2400*20ns=48us. In the embodiment of the present application, the processing time of each row of data also needs to add the number of clock cycles occupied by the command, that is, (2400+32)*20ns is about 48.6us. At this time, it is necessary to control the reading time of the synchronization instructions and the display instructions to be consistent with the execution time of each line of instructions, so as to ensure that the display instructions in the image information can be synchronously transmitted to the display screen and executed to ensure the display delay of the display.

[0080] See also Fig.10 , Fig.10 It is a structural schematic diagram of a QSPI-based screen refreshing device 500 provided in an embodiment of the present application. The entire process of the QSPI-based screen refreshing method provided in an embodiment of the present application involves the following modules in the QSPI-based screen refreshing device: an acquisition module 510, a displacement module 520, a conversion module 530 and a display module 540.

[0081] The acquisition module 510 is used to acquire image information and send the image information to the data storage queue;

[0082] The displacement module 520 is used to read the image information in the data storage queue in sequence and perform displacement processing to obtain the corresponding QSPI interface data;

[0083] The conversion module 530 is used to generate screen refresh information according to the QSPI interface data, wherein the screen refresh information includes a synchronization instruction and a display instruction;

[0084] The display module 540 is used to control the display screen to execute synchronization instructions and display instructions according to the screen refresh information.

[0085] It should be noted that the information interaction, execution process and other contents between the modules of the above-mentioned device are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0086] Fig.11 The electronic device 600 provided in the embodiment of the present application is shown. The electronic device 600 includes but is not limited to:

[0087] A memory 620, used for storing programs;

[0088] The processor 610 is used to execute the program stored in the memory 620. When the processor 610 executes the program stored in the memory 620, the processor 610 is used to execute the above-mentioned QSPI-based screen refreshing method.

[0089] The processor 610 and the memory 620 may be connected via a bus or in other ways.

[0090] The memory 620, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer executable programs, such as the QSPI-based screen refreshing method described in any embodiment of the present application. The processor 610 implements the above-mentioned QSPI-based screen refreshing method by running the non-transitory software programs and instructions stored in the memory 620.

[0091] The memory 620 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store and execute the above-mentioned QSPI-based screen refresh method. In addition, the memory 620 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 620 may optionally include a memory remotely disposed relative to the processor 610, and these remote memories may be connected to the processor 610 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0092] The non-transient software programs and instructions required to implement the above-mentioned QSPI-based screen refreshing method are stored in the memory 620. When executed by one or more processors 610, the QSPI-based screen refreshing method provided by any embodiment of the present application is executed.

[0093] The embodiment of the present application also provides a storage medium storing computer executable instructions, and the computer executable instructions are used to execute the above-mentioned QSPI-based screen refreshing method.

[0094] In one embodiment, the storage medium stores computer executable instructions, which are executed by one or more control processors 610, for example, by a processor 610 in the above-mentioned electronic device 600, so that the above-mentioned one or more processors 610 can execute the QSPI-based screen refreshing method provided in any embodiment of the present application.

[0095] The above described embodiments are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0096] It will be appreciated by those skilled in the art that all or some of the steps and systems in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

Claims

1. A screen refreshing method based on QSPI, characterized in that: The method comprises the following steps: Acquire image information and send the image information to a data storage queue, including: acquire the idle number of the sending end of the data storage queue and the valid data volume of the receiving end of the data storage queue; perform access operations on the image information of the data storage queue according to the idle number, the valid data volume and a preset trigger threshold, the trigger threshold includes a sending threshold and a receiving threshold, including: when the idle number is less than the sending threshold, read the image information from a dynamic random access memory and store it in the data storage queue; when the valid data volume is greater than the receiving threshold, acquire the image information from the sending end of the data storage queue, wherein the transmission of the image information is handled by internal direct memory access, and the memory is accessed as a host through an advanced high-performance bus interface, thereby reducing the CPU load and improving the performance of loading and exporting the image information; The image information in the data storage queue is read in sequence and shifted to obtain corresponding QSPI interface data, including: determining the shift difference between the image information and the QSPI interface data according to the data bit width of the QSPI interface; performing shift processing on the image information according to the shift difference to obtain the QSPI interface data; Generate screen refresh information according to the QSPI interface data, wherein the screen refresh information includes a synchronization instruction and a display instruction; The display screen is controlled to execute the synchronization instruction and the display instruction according to the screen refresh information.

2. The screen refreshing method based on QSPI according to claim 1, characterized in that: The acquiring of image information and sending the image information to a data storage queue comprises: Reading the image information from the dynamic random access memory; The image information is stored in the data storage queue, wherein the data storage queue follows the first-in-first-out principle.

3. The screen refreshing method based on QSPI according to claim 1, characterized in that, The step of performing displacement processing on the image information according to the displacement difference to obtain the QSPI interface data includes: Obtaining the number of bits of the image information shifted to the right according to the displacement difference; The image information is subjected to shift processing according to the number of bits to obtain the QSPI interface data.

4. The screen refreshing method based on QSPI according to claim 3, characterized in that: The step of generating screen refresh information according to the QSPI interface data, wherein the screen refresh information includes a synchronization instruction and a display instruction, including: According to the QSPI interface data, a synchronization instruction and a quantity thereof are obtained, wherein the synchronization instruction includes a reset interval instruction, a front shoulder synchronization instruction and a back shoulder synchronization instruction; Obtaining the display instruction corresponding to the image information according to the QSPI interface data; The reset interval instruction, the front shoulder synchronization instruction, the display instruction and the back shoulder synchronization instruction are output in sequence to obtain the screen refresh information.

5. The screen refreshing method based on QSPI according to claim 4, characterized in that, The controlling display screen to execute the synchronization instruction and the display instruction according to the screen refreshing information includes: Sending the screen refresh information to the display screen via the QSPI interface; Control the display screen to execute the reset interval instruction, the front shoulder synchronization instruction, the display instruction and the back shoulder synchronization instruction in sequence, wherein the execution duration of each of the synchronization instruction and the display instruction is consistent with the reading duration of the synchronization instruction and the display instruction.

6. A screen refreshing device based on QSPI, characterized in that: include: An acquisition module is used to acquire image information and send the image information to a data storage queue, including: acquiring the idle number of the sending end of the data storage queue and the effective data volume of the receiving end of the data storage queue; performing access operations on the image information of the data storage queue according to the idle number, the effective data volume and a preset trigger threshold, wherein the trigger threshold includes a sending threshold and a receiving threshold, including: when the idle number is less than the sending threshold, reading the image information from a dynamic random access memory and storing it in the data storage queue; when the effective data volume is greater than the receiving threshold, acquiring the image information from the sending end of the data storage queue, wherein the transmission of the image information is handled by internal direct memory access, and the memory is accessed as a host through an advanced high-performance bus interface, thereby reducing the CPU load and improving the performance of loading and exporting the image information; A displacement module, used for sequentially reading the image information in the data storage queue and performing displacement processing to obtain corresponding QSPI interface data; A conversion module, used to generate screen refresh information according to the QSPI interface data, wherein the screen refresh information includes a synchronization instruction and a display instruction; The display module is used to control the display screen to execute the synchronization instruction and the display instruction according to the screen refresh information.

7. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the screen refreshing method based on QSPI as described in any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the screen refreshing method based on QSPI as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Processing system comprising a queued serial peripheral interface, related integrated circuit, device and method

    CN113448902A

  • Thin film transistor (TFT) screen driving system and method and display equipment

    CN117496866A