A flash memory continuous read mode configuration system and configuration method in a display device

Through the combination of hardware command machine, arbitration machine and SPI controller, SPI FLASH continuous reading mode configuration and exit without CPU is realized, which solves the problem of insufficient data reading speed in display devices, provides high-speed access channel and Cost savings.

CN118567568BActive Publication Date: 2024-10-22WUHAN LINGJIU MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410769265.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-22
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

In display devices, especially when there is no CPU or the CPU has not been started, SPI FLASH cannot be quickly configured to four-line continuous reading mode, resulting in data reading speed being insufficient to meet high-speed requirements.

Method used

A system including a hardware command machine, arbitration machine and SPI controller is designed. The continuous reading mode of SPI FLASH is configured and exited through hardware logic to ensure that high-speed data access can be achieved without a CPU.

Benefits of technology

It realizes the ability to quickly configure and access SPI FLASH without a CPU or before the CPU is started, solving the problem of insufficient data reading speed, and the control method is simple and does not consume additional system resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567568B_ABST
    Figure CN118567568B_ABST
Patent Text Reader

Abstract

The present invention provides a flash memory continuous read mode configuration system and configuration method in a display device, wherein the configuration system includes a hardware command machine, an arbitration machine and an SPI controller; the hardware command machine is used to receive a control signal sent by a display device system interface, and configure the SPI controller for continuous read mode or exit the continuous read mode; and send a configuration success signal and an exit success signal to the display device system interface; the arbitration machine is used to receive a data stream from the display device system interface or the hardware command machine, and send it to the SPI controller; the SPI controller is used to receive a control stream and a data stream, and generate corresponding timing streams based on the control stream and the data stream and send them to the SPI FLASH. The present invention realizes configuring the flash memory into a continuous read mode based on a hardware logic method, and provides a method for high-speed access to the SPI FLASH for some display devices without a CPU or whose CPU has not yet worked.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of flash memory control, and more specifically, to a flash memory continuous read mode configuration system and configuration method in a display device. Background Art

[0002] Flash memory is a non-volatile memory that uses the SPI interface specification for communication, also known as SPI FLASH. According to the different properties of flash memory particles, SPI FLASH can be divided into SPI NOR FLASH and SPI NAND FLASH. The SPI FLASH mentioned below refers to SPI NOR FLASH, which will not be repeated in the following text.

[0003] There are three common working modes of SPI FLASH, namely single-line SPI, dual-line (DUAL) SPI and quad-line (QUAD) SPI. Theoretically, the more IO lines there are, the greater the data transmission throughput. Designers can choose SPI FLASH with different working modes according to their needs. Generally speaking, the three working modes are backward compatible, that is, those that support the quad-line mode also support dual-line and single-line SPI. The characteristics of SPI FLASH are simple interface, single-byte reading, support for four-line continuous read mode and high data reading rate. This makes it often used in embedded systems as firmware memory when the system starts.

[0004] With the diversification of application scenarios, the role of SPI FLASH in the system is no longer limited to program memory, but also stores some configuration data. For example, flash memory is used in display devices to store some data or firmware required for display device initialization. These data include: data used to configure key functions of analog circuits in PCIE controllers, some initialization parameters in DDR controllers, etc. These data are often required to be configured within a certain period of time, which places higher requirements on the reading speed of SPI FLASH data.

[0005] In application scenarios with low requirements for reading speed and storage capacity, the single-line and dual-line modes can basically meet the requirements; once the single / dual-line cannot meet the requirements, the FLASH needs to be configured in four-line continuous read mode to meet high-speed requirements. The so-called four-line continuous read mode is actually a read working state of the four-line SPI FLASH. It supports four-line mode reading, and can send the instruction sequence and address sequence only once during the first read, and complete a data read. After that, the FLASH has entered the continuous read mode, and in subsequent reads, only the address sequence and mode code sequence need to be sent to the FLASH, eliminating the instruction cycle. This is also the fastest read mode of all FLASH instructions.

[0006] Most manufacturers support single-line, dual-line, and four-line working modes in their respective SPI FLASH products, and the factory default working mode of such products is often single-line mode. If you want to activate it to four-line continuous read mode, you need to perform some configuration operations on the FLASH. Common SPI FLASH four-line drive methods are based on "software mode" operation and rely on the CPU or operating system platform to run. That is, a main control unit such as CPU or MCU is required in the system to configure the FLASH.

[0007] For display devices, it is feasible to integrate a CPU or MCU and other master control units to control the four-wire continuous read mode of the flash memory. However, if other components have a large amount of data reading requirements for the FLASH before the CPU starts, the configuration of the SPI FLASH four-wire continuous read mode cannot be completed using software. Or, for cost considerations, some CPU or MCU and other master control units are not integrated in the display device. If you still want to quickly obtain a large amount of data from the FLASH, you need to design a hardware module that communicates with the FLASH in a four-wire manner to complete the data interaction between the system and the FLASH.

[0008] Therefore, a flexible and fast hardware module is needed to configure the continuous read mode of the flash memory, especially in some scenarios where there is no CPU and the software method cannot be used. Summary of the invention

[0009] The present invention aims at the technical problems existing in the prior art and provides a flash memory continuous read mode configuration system and configuration method in a display device.

[0010] According to a first aspect of the present invention, there is provided a system for configuring a flash memory continuous read mode in a display device, comprising a hardware command machine, an arbitration machine and an SPI controller;

[0011] The hardware command machine is used to receive a control signal sent by the display device system interface, configure the SPI controller in a continuous read mode or exit the continuous read mode based on the control signal; and send a configuration success signal and an exit success signal to the display device system interface;

[0012] The arbitration machine is used to receive the data stream from the display device system interface or the hardware command machine and send it to the SPI control machine;

[0013] The SPI controller is used to receive the control stream sent by the hardware command machine and the data stream sent by the arbitration machine, and generate corresponding timing streams based on the control stream and the data stream and send them to the SPI FLASH.

[0014] Based on the above technical solution, the present invention can also make the following improvements.

[0015] Optionally, the hardware command machine includes a process control command machine, a reset command machine, a configuration command machine, a read command machine and a hardware command data interface;

[0016] The reset command machine is responsible for generating a reset command for the flash memory particles;

[0017] The configuration command machine is responsible for configuring the flash memory particles and the SPI controller to a continuous read mode;

[0018] The read command machine is responsible for sending the hardware command machine a read command for particle data;

[0019] The hardware command data interface is responsible for converting the commands and data sent by the reset command machine, the configuration command machine and the read command machine into protocol signals that conform to the interface of the SPI controller;

[0020] The process control command machine is responsible for controlling and coordinating the work of the reset command machine, the configuration command machine and the read command machine.

[0021] Optionally, the arbitrator is a control right arbitrator, which is used to determine the ownership of the control right of the SPI controller. At different stages, the control right of the SPI controller will be transferred to the hardware command machine or the display device system interface respectively.

[0022] Optionally, the SPI controller includes a command cache unit, a data cache unit, a mode controller, a write timing generator, a read timing generator and a timing arbitrator;

[0023] The command cache unit and the data cache unit are responsible for storing commands and data respectively, wherein the commands come from the display device system interface or the hardware command machine, and the data come from the display device system interface, the hardware command machine or flash memory particles;

[0024] The mode controller is responsible for controlling the read and write working state of the SPI controller, as well as the read and write mode, which is a single-line read and write mode or a four-line read and write mode; wherein the configuration process of the continuous read mode of the flash memory particle is a single-line operation, and the operation after the configuration is completed is a four-line operation;

[0025] The write timing generator and the read timing generator are respectively responsible for receiving commands from the command buffer unit and data from the data buffer unit under the control of the mode controller, and converting the commands and data into a single-line or four-line timing signal sequence that complies with the SPI protocol;

[0026] The timing arbitrator is responsible for judging the working state and sending different instruction sequences to the flash memory particles according to the working state. When the write timing generator is working, the write-related timing commands are sent to the flash memory particles; when the read timing generator is working, the read-related timing commands are sent to the flash memory particles.

[0027] According to a second aspect of the present invention, a method for configuring a continuous read mode of a flash memory in a display device is provided. The method is applied to a continuous read mode configuration system of a flash memory in a display device. The continuous read mode configuration system of a flash memory in a display device comprises a hardware command machine, an arbitration machine and an SPI controller. The hardware command machine comprises a flow control command machine, a reset command machine, a configuration command machine, a read command machine and a hardware command data interface. The method comprises:

[0028] Step 1, after the system clock reset is effective, when the hardware command machine captures the rising edge of the configuration signal cfg, the configuration process begins;

[0029] Step 2: The hardware command machine executes the reset. After the reset is completed, the process control command machine instructs the reset command machine to write a reset instruction to the SPI control machine in single-line mode to configure the flash memory particle reset.

[0030] Step 3: After the flash memory particle is reset, the process control command machine instructs the configuration command machine to send a write enable instruction to the SPI control machine in single-line mode;

[0031] Step 4: After the write enable is sent, the process control command machine instructs the read command machine to send a read status register low byte instruction to the SPI control machine in single-line mode. The SPI control machine receives 1 byte of data returned by the granular flash memory. If the first bit WEL in the byte data is 1, it means that the write enable configuration is successful; if WEL=0, it means that the configuration fails.

[0032] Step 5, when the write enable configuration is successful, the flow control command machine instructs the configuration command machine to send a write enable instruction for configuring the particle status register to the SPI control machine in single-line mode, and configures the high byte of the particle status register. The flow control command machine instructs the configuration command machine to write 1 to the QE bit of the high byte of the particle status register in single-line mode;

[0033] Step 6: After the operation is completed, the process control command machine instructs the read command machine to send a read status register high byte instruction to the SPI controller in single-line mode, and the SPI controller then receives 1 byte of data returned by the particle.

[0034] Step 7, if the 0th bit QE in the byte data is 1, it means that the write enable configuration is successful, and if QE=0, it means that the configuration fails;

[0035] Step 8: After the write enable configuration is successful, the flash memory particles have four-line read and write functions;

[0036] Step 9, the process control command machine instructs the read command machine to continuously send a 1-byte continuous read instruction, a 3-byte address and a 1-byte mode code to the SPI control machine in four-wire mode. The mode code is set to 0xAF, and after receiving the 1-byte data returned by the flash memory particle, the read is ended. At this point, the continuous read mode configuration is completed, and the configuration success signal cfg_done = 1 is pulled high.

[0037] Step 10, transferring the control right of the SPI controller to the display device system interface.

[0038] Optionally, after step 9, the following steps are included:

[0039] Step 11, the display device system interface uses the continuous read mode to read the flash memory particles. The display device system interface sends a 3-byte address to the arbitrator. After receiving the 3-byte address code, the arbitrator transplants the continuous mode code 0XAF to the lowest bit 0 byte, converts the 3-byte address to 4 bytes, and sends it to the SPI controller;

[0040] Step 12, the SPI controller receives the address code and the continuous mode code 0XAF;

[0041] Step 13, the SPI receiver takes out the corresponding data from the flash memory particle according to the address code, and sends the continuous mode code 0XAF to the flash memory particle, informing the flash memory particle that the next operation is still in continuous read mode;

[0042] Step 14, when the rising edge of the exit signal exit=1 is received, the control right of the SPI controller is transferred to the hardware command machine;

[0043] Step 15, the hardware command machine sends a 3-byte address to the arbitrator. After receiving the 3-byte address, the arbitrator transplants the mode exit code 0XFF to the lowest bit 0 byte, so that the 3-byte address is converted to 4 bytes;

[0044] Step 16, the SPI controller receives the address code and the mode exit code 0XFF;

[0045] Step 17, the SPI receiver retrieves the corresponding data from the flash memory particle according to the address code, and sends the mode exit code 0XFF to the flash memory particle, informing the flash memory particle that the next operation will exit the continuous read mode;

[0046] Step 18, pull up the exit success signal exit_done, and transfer the control right of the SPI controller to the display device system interface.

[0047] The present invention provides a system and method for configuring a continuous read mode of a flash memory in a display device. In a scenario where the display device has no CPU or the CPU has not yet worked, the flash memory is configured to a continuous read mode based on a hardware logic method, and the mode can be exited by hardware. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A block diagram of a system for configuring a continuous read mode of a flash memory in a display device provided by the present invention;

[0049] Figure 2 A schematic diagram of the internal block diagram of various parts of a system for configuring a flash memory continuous read mode in a display device;

[0050] Figure 3 A schematic diagram of a method for configuring a continuous read mode of a flash memory in a display device provided by the present invention;

[0051] Figure 4 Schematic diagram of the arbitration mechanism of the arbitration machine. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be arbitrarily combined with each other to form a feasible technical solution. This combination is not subject to the constraints of the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in this field to achieve. When the combination of technical solutions is contradictory or cannot be achieved, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0053] Regarding the memory read mode configuration in the display device, the patent "A SOC system boot method based on off-chip NOR flash" introduces how to use the bus decoder to implement the on-chip execution of SPI-NOR-Flash. This method is also commonly used at present. How to implement SPI flash data reading in a scenario without a CPU. The disadvantage of this method is that in order to be compatible with all FLASH particles, a single-line read mode is used. This makes the data reading speed very slow.

[0054] Although not all FLASH supports four-wire mode, in complex application scenarios with high speed and high throughput, it is necessary to select FLASH particles that support four-wire continuous read mode to match. Once the CPU cannot complete the configuration of the four-wire read mode in this scenario, it is necessary to use hardware logic to configure the FLASH and SPI controller to activate the continuous read mode.

[0055] Therefore, the present invention provides a device for configuring a flash memory continuous read mode based on hardware logic. In a scenario where there is no CPU or the CPU is not working, the flash memory is configured to a continuous read mode based on hardware logic, and the mode can be exited through hardware.

[0056] Figure 1 The present invention provides a flash memory continuous read mode configuration system in a display device. In a scenario where there is no CPU or the CPU is not working, the flash memory is configured to a continuous read mode based on a hardware logic method, and a high-speed access channel of the SPI FLASH is provided for the system module of the display device. The continuous read mode can be exited by configuring the hardware, and the control method is simple, and no additional system resources are required.

[0057] See also Figure 1 The present invention provides a device for configuring a flash memory continuous read mode based on hardware logic, which mainly includes three components: a hardware command machine, an arbitration machine and an SPI controller. Figure 1 The dotted box portion shown.

[0058] The hardware command machine is used to receive a control signal sent by the display device system interface, configure the SPI controller in continuous read mode or exit the continuous read mode based on the control signal; and send a configuration success signal and an exit success signal to the display device system interface.

[0059] The arbitrator is used to receive the data stream from the display device system interface or the hardware command machine and send it to the SPI controller. The SPI controller is used to receive the control stream sent by the hardware command machine and the data stream sent by the arbitrator, and generate corresponding timing streams based on the control stream and the data stream and send them to the SPI FLASH.

[0060] See also Figure 2 The hardware command machine consists of five main modules: flow control command machine, reset command machine, configuration command machine, read command machine and hardware command data interface. Figure 2As shown. Among them, the reset command machine is responsible for generating the reset command of the flash memory particles; the configuration command machine is responsible for configuring the flash memory particles and the SPI controller to the continuous read mode; the read command machine is responsible for sending the hardware command machine to read the particle data; the hardware command data interface module is responsible for converting the commands and data sent by the reset command machine, the configuration command machine and the read command machine into protocol signals (such as APB / AHB, etc.) that conform to the interface of the SPI control machine; the process control command machine is responsible for controlling and coordinating the work of other command machines to ensure the orderly operation of the hardware command machine.

[0061] The arbitrator is the control arbitration machine, which is responsible for deciding who controls the SPI controller. At different stages, the control will be transferred to the hardware command machine or the display device system interface. The existence of the arbitrator also prevents the situation where two master devices (system interface and hardware command machine) control the SPI controller at the same time.

[0062] The SPI controller consists of six modules: command cache unit, data cache unit, mode controller, write timing generator, read timing generator and timing arbitrator.

[0063] The command cache unit and data cache unit are responsible for storing commands and data respectively. Commands come from the system interface (hereinafter, all display device system interfaces are referred to as system interfaces or systems) or hardware command machines, and data come from the system interface, hardware command machines or flash memory particles.

[0064] The mode controller is responsible for controlling the SPI controller to work in read or write mode, and in single-wire or four-wire mode. Since the process of configuring the continuous read mode is a single-wire operation, and after the configuration is completed, it is a four-wire operation. In addition, during the configuration process, there will be situations where the read and write processes are intertwined. Therefore, the mode controller is responsible for coordinating the correct working state to avoid confusion.

[0065] The write timing generator and the read timing generator are responsible for receiving commands and data from the upper-level master module under the control of the mode controller, and converting them into a single-wire or four-wire timing signal sequence that complies with the SPI protocol.

[0066] The timing arbiter is responsible for judging the working state and sending different instruction sequences to the flash memory according to the working state. For example, when the write timing generator is working, the write-related timing commands are sent to the SPI FLASH; when the read timing generator is working, the read-related timing commands are sent to the SPI FLASH.

[0067] In general, the hardware command machine is responsible for controlling the workflow, the arbitration machine is responsible for allocating control rights, and the SPI controller is responsible for SPI timing implementation.

[0068] See also Figure 3The present invention also provides a method for configuring a continuous read mode of a flash memory in a display device, which mainly includes the following steps:

[0069] Step 1: When the system clock reset is valid, the hardware command machine waits for the configuration signal cfg to be valid. When the hardware command machine captures the rising edge of cfg, the configuration process begins.

[0070] Step 2: The hardware command machine will perform a reset in the first step, and will perform a reset of the hardware command machine after receiving a rising edge of cfg.

[0071] Step 3: After the hardware command machine completes the reset, the process control command machine instructs the reset command machine to write a reset instruction to the SPI control machine in single-line mode to configure the flash memory particle reset. The purpose of the reset is to return all the status registers of the flash memory particle to the initial state and obtain a clean and stable configuration starting point.

[0072] Step 4: After the flash memory chip is reset, the process control command machine instructs the configuration command machine to send a write enable instruction to the SPI control machine in single-line mode. This write enable instruction must be executed before any write operation.

[0073] Step 5, after the write enable is sent, the next step is for the process control command machine to instruct the read command machine to send a read status register low byte instruction to the SPI controller in single-line mode, and the SPI controller then receives 1 byte of data returned by the particle.

[0074] Step 6, determine if the first bit WEL in the byte data is 1, which indicates that the write enable configuration is successful; if WEL=0, it indicates that the configuration fails.

[0075] Step 7, when the write enable configuration is successful, the next step is for the process control command machine to instruct the configuration command machine to send a configuration particle status register write enable instruction to the SPI control machine in single-line mode. Only after writing this instruction can the particle status register be written.

[0076] Step 8: Next, the high byte of the particle status register can be configured. The flow control command machine instructs the configuration command machine to write 1 to the QE bit of the high byte of the particle status register in single-line mode.

[0077] Step 9, after the operation is completed, the process control command machine instructs the read command machine to send a read status register high byte instruction to the SPI control machine in single-line mode, and the SPI control machine then receives 1 byte of data returned by the particle.

[0078] Step 10, if the 0th bit QE in the byte data is determined to be 1, it indicates that the write enable configuration is successful; if QE=0, it indicates that the configuration fails.

[0079] Step 11: After the QE configuration is successful, the flash memory particles have 4-line read and write functions.

[0080] Step 12, the process control command machine instructs the read command machine to continuously send a 1-byte continuous read instruction, a 3-byte address and a 1-byte mode code to the SPI control machine in four-wire mode. The mode code is set to 0xAF, and after receiving the 1-byte data returned by the flash memory particle, the reading is ended.

[0081] Step 13: At this point, the continuous read mode configuration of the flash memory particle is completed, and the configuration success signal cfg_done = 1 is pulled high.

[0082] Step 14, transfer the control right of the SPI command machine to the display device system interface.

[0083] Step 15, the system then uses the continuous read mode to read the flash memory. The system will send a 3-byte address to the arbitrator. After receiving the 3-byte address code, the arbitrator will transplant the continuous mode code 0XAF to the lowest bit 0 byte, so that the 3-byte address is converted to 4 bytes. Then it is sent to the SPI controller.

[0084] Step 16, the SPI controller receives the address code and the continuous mode code 0XAF.

[0085] Step 17, the SPI receiver retrieves the corresponding data from the flash memory particle according to the address code, and sends the continuous mode code 0XAF to the flash memory particle, informing the flash memory particle that the next operation is still in continuous read mode.

[0086] Step 18, when the rising edge of the exit signal exit=1 is received, the control right of the SPI controller is transferred to the hardware command machine.

[0087] Step 19, the hardware command machine sends a 3-byte address to the arbitrator. After receiving the 3-byte address, the arbitrator transplants the mode exit code 0XFF to the lowest bit 0 byte, so that the 3-byte address is converted into 4 bytes.

[0088] Step 20, the SPI controller receives the address code and the mode exit code 0XFF.

[0089] Step 21, the SPI controller retrieves the corresponding data from the flash memory according to the address code, and sends the mode exit code 0XFF to the flash memory particle, informing the flash memory particle that the next operation will exit the continuous read mode.

[0090] Step 22, pull high the exit success signal exit_done.

[0091] Step 23, transferring the control right of the SPI controller to the display device system interface.

[0092] The above is the configuration operation flow of the continuous read mode of the flash memory particles and the operation flow of exiting the configuration. It can be seen in the entire operation flow that the hardware command machine is the dominant module of the operation. The start of the configuration is controlled by the cfg signal, and the exit of the configuration is controlled by the exit signal. The cfg signal and the exit signal are respectively transmitted from the system interface to the hardware command machine. That is, the system interface controls the start and exit of the continuous read mode configuration. The configuration completion signal cfg_done and the exit completion signal exit_done are transmitted from the hardware command machine to the system interface as a feedback of the current working status. For example, the system interface will only start reading the flash memory particles after receiving cfg_done. The system interface will start to modify the content in the flash memory after receiving the exit_done signal, etc.

[0093] The arbitrator is responsible for the ownership of the control of the SPI controller during the configuration stage and the exit stage. During the configuration stage: when the rising edge of cfg is valid, the control belongs to the SPI command machine. When cfg_done is pulled high, the control belongs to the system interface. During the exit stage, when the exit signal is valid, the control belongs to the SPI command machine. When exit_done is pulled high, the control belongs to the system interface. Note: cfg and exit signals cannot be valid at the same time.

[0094] The arbitration mechanism of the arbitration machine is as follows Figure 4 As shown. The solid arrow has a higher priority than the dotted arrow. This means that when the rising edge of cfg and exit_done=1 are valid at the same time (that is, after the exit mode is successfully, the configuration mode needs to be reopened), the control right should belong to the hardware command machine, because the priority of cfg is higher than the priority of exit_done. Similarly, when the rising edge of exit and cfg_done are valid at the same time (that is, after the configuration is successful, the continuous read mode needs to be exited), the control right should belong to the hardware command machine. The rising edge of cfg and cfg_done=1 cannot be valid at the same time, because the rising edge of cfg is a transient behavior, and cfg_done=1 must appear after the rising edge of cfg is valid. Therefore, this situation will not exist, and there will be no problem of control right ownership. Similarly, the rising edge of exit and exit_done cannot be valid at the same time, and there will be no problem of control right ownership.

[0095] The present invention provides a system and method for configuring a continuous read mode of a flash memory in a display device, which has the following beneficial effects:

[0096] (1) The problem that display devices without a CPU (or before the CPU is started) cannot access flash memory particles in large quantities and quickly during the power-on initialization phase is solved.

[0097] (2) A hardware command machine, a control right arbitrator and an SPI controller are used to complete the configuration of the flash memory continuous read mode. Compared with the CPU, the hardware overhead is extremely small, saving costs. At the same time, due to the existence of the control right arbitrator, the display device system interface still has the control of the SPI controller. After the system exits the continuous read mode, the flash memory can still be controlled by the SPI controller.

[0098] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0099] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0100] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0101] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0102] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0103] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0104] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A system for configuring a continuous read mode of a flash memory in a display device, It is characterized in that Including hardware command machine, arbitration machine and SPI control machine; The hardware command machine is used to receive a control signal sent by the display device system interface, and configure the SPI controller in a continuous read mode or exit the continuous read mode based on the control signal; And sending a configuration success signal and an exit success signal to the display device system interface; The arbitration machine is used to receive the data stream from the display device system interface or the hardware command machine and send it to the SPI control machine; The SPI controller is used to receive the control stream sent by the hardware command machine and the data stream sent by the arbitration machine, and generate corresponding timing streams based on the control stream and the data stream and send them to the SPI FLASH; The hardware command machine includes a flow control command machine, a reset command machine, a configuration command machine, a read command machine and a hardware command data interface; The reset command machine is responsible for generating a reset command for the flash memory particles; The configuration command machine is responsible for configuring the flash memory particles and the SPI controller to a continuous read mode; The read command machine is responsible for sending the hardware command machine a read command for particle data; The hardware command data interface is responsible for converting the commands and data sent by the reset command machine, the configuration command machine and the read command machine into protocol signals that conform to the interface of the SPI controller; The process control command machine is responsible for controlling and coordinating the work of the reset command machine, the configuration command machine and the read command machine; The SPI controller includes a command cache unit, a data cache unit, a mode controller, a write timing generator, a read timing generator and a timing arbitrator; The command cache unit and the data cache unit are responsible for storing commands and data respectively, wherein the commands come from the display device system interface or the hardware command machine, and the data come from the display device system interface, the hardware command machine or flash memory particles; The mode controller is responsible for controlling the read and write working state of the SPI controller, as well as the read and write mode, which is a single-line read and write mode or a four-line read and write mode; wherein the configuration process of the continuous read mode of the flash memory particle is a single-line operation, and the operation after the configuration is completed is a four-line operation; The write timing generator and the read timing generator are respectively responsible for receiving commands from the command buffer unit and data from the data buffer unit under the control of the mode controller, and converting the commands and data into a single-line or four-line timing signal sequence that complies with the SPI protocol; The timing arbitrator is responsible for judging the working state and sending different instruction sequences to the flash memory particles according to the working state. When the write timing generator is working, the write-related timing commands are sent to the flash memory particles; when the read timing generator is working, the read-related timing commands are sent to the flash memory particles.

2. The flash memory continuous read mode configuration system in the display device according to claim 1, It is characterized in that The arbitrator is a control right arbitrator, which is used to determine the ownership of the control right of the SPI controller. At different stages, the control right of the SPI controller will be transferred to the hardware command machine or the display device system interface respectively.

3. A method for configuring a continuous read mode of a flash memory in a display device, It is characterized in that The method is applied to a flash memory continuous read mode configuration system in a display device, the flash memory continuous read mode configuration system in the display device comprises a hardware command machine, an arbitration machine and an SPI control machine, the hardware command machine comprises a flow control command machine, a reset command machine, a configuration command machine, a read command machine and a hardware command data interface, the method comprises: Step 1, after the system clock reset is effective, when the hardware command machine captures the rising edge of the configuration signal cfg, the configuration process begins; Step 2: The hardware command machine executes the reset. After the reset is completed, the process control command machine instructs the reset command machine to write a reset instruction to the SPI control machine in single-line mode to configure the flash memory particle reset. Step 3: After the flash memory chip is reset, the process control command machine instructs the configuration command machine to send a write enable instruction to the SPI control machine in single-line mode; Step 4: After the write enable is sent, the process control command machine instructs the read command machine to send a read status register low byte instruction to the SPI control machine in single-line mode. The SPI control machine receives 1 byte of data returned by the granular flash memory. If the first bit WEL in the byte data is 1, it means that the write enable configuration is successful; if WEL=0, it means that the configuration fails. Step 5, when the write enable configuration is successful, the flow control command machine instructs the configuration command machine to send a write enable instruction for configuring the particle status register to the SPI control machine in single-line mode, and configures the high byte of the particle status register. The flow control command machine instructs the configuration command machine to write 1 to the QE bit of the high byte of the particle status register in single-line mode; Step 6: After the operation is completed, the process control command machine instructs the read command machine to send a read status register high byte instruction to the SPI control machine in single-line mode, and the SPI control machine then receives 1 byte of data returned by the particle; Step 7, if the 0th bit QE in the byte data is 1, it means that the write enable configuration is successful, and if QE=0, it means that the configuration fails; Step 8: After the write enable configuration is successful, the flash memory particles have four-line read and write functions; Step 9, the process control command machine instructs the read command machine to continuously send a 1-byte continuous read instruction, a 3-byte address and a 1-byte mode code to the SPI control machine in four-wire mode. The mode code is set to 0xAF, and after receiving the 1-byte data returned by the flash memory particle, the read is ended. At this point, the continuous read mode configuration is completed, and the configuration success signal cfg_done = 1 is pulled high. Step 10, transferring the control right of the SPI controller to the display device system interface.

4. The method for configuring a flash memory continuous read mode in a display device according to claim 3, It is characterized in that After step 9, the following steps are included: Step 11, the display device system interface uses the continuous read mode to read the flash memory particles. The display device system interface sends a 3-byte address to the arbitrator. After receiving the 3-byte address code, the arbitrator transplants the continuous mode code 0XAF to the lowest bit 0 byte, converts the 3-byte address to 4 bytes, and sends it to the SPI controller; Step 12, the SPI controller receives the address code and the continuous mode code 0XAF; Step 13, the SPI controller takes out the corresponding data from the flash memory particle according to the address code, and sends the continuous mode code 0XAF to the flash memory particle, informing the flash memory particle that the next operation is still in continuous read mode; Step 14, when the rising edge of the exit signal exit=1 is received, the control right of the SPI controller is transferred to the hardware command machine; Step 15, the hardware command machine sends a 3-byte address to the arbitrator. After receiving the 3-byte address, the arbitrator transplants the mode exit code 0XFF to the lowest bit 0 byte, so that the 3-byte address is converted to 4 bytes; Step 16, the SPI controller receives the address code and the mode exit code 0XFF; Step 17, the SPI controller retrieves the corresponding data from the flash memory particle according to the address code, and sends the mode exit code 0XFF to the flash memory particle, informing the flash memory particle that the next operation will exit the continuous read mode; Step 18, pull up the exit success signal exit_done, and transfer the control right of the SPI controller to the display device system interface.