Instruction execution method and device, electronic device and storage medium

By detecting and executing instruction commands sent by the host computer in the display driver, ensuring that the instruction set is executed in a preset order, the problem of confusing instruction execution order in the prior art is solved, and the accuracy and flexibility of display tasks are improved.

CN119781711APending Publication Date: 2025-04-08OLED IC MICROELECTRONICS BEIJING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411731407.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

When existing display drivers handle complex display tasks, the risks of confusing instruction execution order, inconsistent display content, and flickering screens, resulting in improved accuracy, flexibility and drive efficiency.

Method used

By detecting whether the first and second commands from the host computer are received, and the instruction set arranged in a preset order is received and executed, it is ensured that different instructions are executed in different time periods, and precise control of instruction execution is achieved.

Benefits of technology

Improves the accuracy and flexibility of the display driver when handling complex display tasks, reduces instruction execution errors and delays, and improves the system's response speed and display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119781711A_ABST
    Figure CN119781711A_ABST
Patent Text Reader

Abstract

The present disclosure relates to an instruction execution method and device, an electronic device and a storage medium, comprising detecting whether a first command from a host computer is received; receiving an instruction set from the host computer when the first command is received, the instruction set including m instructions executed in a preset order; detecting whether a second command from the host computer is received; and executing K instructions for displaying an i-th frame image in an i-th time period according to the instruction set when the second command is received. i According to the instruction execution method of the embodiment of the present disclosure, the display driver can execute different instructions in different time periods according to the setting of the instruction set, and achieve different requirements by controlling the instructions in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of display technology, and in particular to an instruction execution method and device, an electronic device, and a storage medium. Background Art

[0002] As the main control element of the display panel, the display driver (Display Driver Integrated Circuit, DDIC) can send driving signals and data to the display panel in the form of electrical signals, and display image information on the screen by controlling the brightness and color of the screen. For example, the display driver can serve as a bridge between the external system or processor and the display screen, responsible for receiving and processing instructions from the external system or processor, and driving the display screen to display according to these instructions.

[0003] However, display drivers in related technologies usually adopt a relatively simple mechanism for instruction execution, that is, sending instructions separately, that is, the display driver will execute each instruction separately each time it receives it, and there is no direct relationship between instructions. The display driver usually executes instructions in the order in which the instructions are received. For example, the display driver will execute the next instruction only after executing the current instruction. It is impossible to accurately control the execution of instructions in time, resulting in risks such as confusion in the order of instruction execution, inconsistent display content, and screen flickering when processing complex display tasks that require multiple instructions to be completed in coordination. Its accuracy, flexibility and driving efficiency when processing complex display tasks need to be further improved. Summary of the invention

[0004] In view of this, the present disclosure proposes an instruction execution solution.

[0005] According to one aspect of the present disclosure, a method for executing instructions is provided, which is applied to a display driver, and comprises: detecting whether a first command from a host computer is received; in the case of receiving the first command, receiving an instruction set from the host computer, wherein the instruction set comprises m instructions executed in a preset order, and the m instructions are used to display n frames of images, wherein the i-th frame of image corresponds to K i Instructions, i is any integer from 1 to n, m is any integer from K1 to K n Detect whether a second command from the host computer is received; if the second command is received, execute K for displaying the i-th frame image in the i-th time period according to the instruction set i Instructions.

[0006] In a possible implementation, the first command is used to set the first switch register of the display driver to an on state, and detect whether the first command from the host computer is received, including: when the first switch register of the display driver is in an on state, the detection result is determined to be that the first command is received, or when the first switch register of the display driver is in a off state, the detection result is determined to be that the first command is not received.

[0007] In a possible implementation, the second command is used to set the second switch register of the display driver to an on state, and detect whether the second command from the host computer is received, including: when the second switch register of the display driver is in an on state, the detection result is determined to be that the second command is received, or when the second switch register of the display driver is in a off state, the detection result is determined to be that the second command is not received.

[0008] In a possible implementation, the method further includes: in response to the display driver completing the K for displaying the nth frame image in the nth time period, n An instruction is provided to set the first switch register and the second switch register of the display driver to a closed state.

[0009] In a possible implementation, according to the instruction set, K for displaying the i-th frame image is executed in the i-th time period. i Instructions, including: in response to the display driver completing the K for displaying the i-1 frame image in the i-1 period i-1 The display driver executes K instructions for displaying the i-th frame image according to the instruction set in the i-th time period. i Instructions.

[0010] In one possible implementation, the display driver is used to drive the display panel to display multiple frames of images, and the instruction set includes a voltage adjustment instruction. The display driver executes the voltage adjustment instruction to instruct the pixel circuit to adjust the driving voltage of the light-emitting device by turning on or off at least one switching transistor in the pixel circuit of the display panel.

[0011] In one possible implementation, the display panel includes at least one of a liquid crystal display panel, a micro light emitting diode display panel, a light emitting diode display panel, a mini light emitting diode display panel, a quantum dot light emitting diode display panel, an organic light emitting diode display panel, a cathode ray tube display panel, a digital light processing display panel, a field emission display panel, a plasma display panel, an electrophoretic display panel, an electrowetting display panel and a small pitch display panel.

[0012] According to another aspect of the present disclosure, an instruction execution device is provided, which is applied to a display driver, and includes: a first detection module, which is used to detect whether a first command from a host computer is received; a receiving module, which is used to receive an instruction set from the host computer when the first command is received, wherein the instruction set includes m instructions executed in a preset order, and the m instructions are used to display n frames of images, wherein the i-th frame of image corresponds to K i Instructions, i is any integer from 1 to n, m is any integer from K1 to K n a second detection module for detecting whether a second command from the host computer is received; an execution module for executing K for displaying the i-th frame image in the i-th time period according to the instruction set when the second command is received i Instructions.

[0013] In a possible implementation, the first command is used to set the first switch register of the display driver to an on state, and the first detection module is used to: when the first switch register of the display driver is in the on state, determine the detection result as receiving the first command, or when the first switch register of the display driver is in the off state, determine the detection result as not receiving the first command.

[0014] In a possible implementation, the second command is used to set the second switch register of the display driver to an on state, and the second detection module is used to: when the second switch register of the display driver is in the on state, determine the detection result as receiving the second command, or when the second switch register of the display driver is in the off state, determine the detection result as not receiving the second command.

[0015] In a possible implementation, the device further includes a closing module, configured to respond to the display driver completing the K for displaying the nth frame image in the nth time period. n An instruction is provided to set the first switch register and the second switch register of the display driver to a closed state.

[0016] In a possible implementation, the execution module is used to: in response to the display driver completing the K for displaying the i-1th frame image in the i-1th time period i-1 The display driver executes K instructions for displaying the i-th frame image according to the instruction set in the i-th time period. i Instructions.

[0017] In one possible implementation, the display driver is used to drive the display panel to display multiple frames of images, and the instruction set includes a voltage adjustment instruction. The display driver executes the voltage adjustment instruction to instruct the pixel circuit to adjust the driving voltage of the light-emitting device by turning on or off at least one switching transistor in the pixel circuit of the display panel.

[0018] In one possible implementation, the display panel includes at least one of a liquid crystal display panel, a micro light emitting diode display panel, a light emitting diode display panel, a mini light emitting diode display panel, a quantum dot light emitting diode display panel, an organic light emitting diode display panel, a cathode ray tube display panel, a digital light processing display panel, a field emission display panel, a plasma display panel, an electrophoretic display panel, an electrowetting display panel and a small pitch display panel.

[0019] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.

[0020] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.

[0021] According to another aspect of the present disclosure, a computer program product is provided, comprising computer program instructions, wherein the computer program instructions implement the above method when executed by a processor.

[0022] According to another aspect of the present disclosure, a display driver chip is provided, wherein the display driver chip is used to implement the above method.

[0023] According to another aspect of the present disclosure, a display device is provided, comprising the display driver chip as described above, and a display panel connected to the display driver chip, wherein the display driver chip is used to drive the display panel.

[0024] By detecting whether a first command from a host computer is received; in the case of receiving the first command, receiving an instruction set from the host computer, the instruction set includes m instructions executed in a preset order, the m instructions are used to display n frames of images, wherein the i-th frame image corresponds to K i Instructions, i is any integer from 1 to n, m is any integer from K1 to K n Detect whether a second command from the host computer is received; if the second command is received, execute K for displaying the i-th frame image in the i-th time period according to the instruction set iIn this way, the display driver can execute different instructions in different time periods according to the settings of the instruction set, and achieve different requirements by controlling the time of the instructions.

[0025] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.

[0027] Figure 1 A flowchart of an instruction execution method according to an embodiment of the present disclosure is shown.

[0028] Figure 2 A timing diagram of an instruction execution method according to an embodiment of the present disclosure is shown.

[0029] Figure 3 A timing diagram of an instruction execution method according to another embodiment of the present disclosure is shown.

[0030] Figure 4 A block diagram of an instruction execution device according to an embodiment of the present disclosure is shown.

[0031] Figure 5 A block diagram of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0032] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0033] In the description of the present disclosure, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present disclosure 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 cannot be understood as a limitation on the present disclosure.

[0034] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0035] In the present disclosure, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.

[0036] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0037] Figure 1 FIG. 1 is a flowchart of an instruction execution method according to an embodiment of the present disclosure. Figure 1 As shown, the method is applied to a display driver, and the method comprises:

[0038] In step S11, it is detected whether a first command from the host computer is received;

[0039] In step S12, when the first command is received, an instruction set is received from the host computer, the instruction set includes m instructions executed in a preset order, the m instructions are used to display n frames of images, wherein the i-th frame of image corresponds to K i Instructions, i is any integer from 1 to n, m is any integer from K1 to K n The sum of ;

[0040] In step S13, it is detected whether a second command from the host computer is received;

[0041] In step S14, when the second command is received, the K for displaying the i-th frame image is executed in the i-th time period according to the instruction set. i Instructions.

[0042] In a possible implementation, the display driver is hardware for driving the display panel, and is used to modulate the phase, peak value, frequency, etc. of the potential signal applied to the electrode of each light-emitting device in the display panel to establish a driving electric field, and drive each light-emitting device of the display panel to display multiple frames of images. For example, the display driver can optimize the display effects such as contrast, brightness, and color of the display panel by controlling the voltage or current of each pixel circuit in the display panel.

[0043] In one possible implementation, the display driver is used to drive a display panel to display multiple frames of images, and the display panel includes at least one of a liquid crystal display panel, a micro light emitting diode display panel, a light emitting diode display panel, a mini light emitting diode display panel, a quantum dot light emitting diode display panel, an organic light emitting diode display panel, a cathode ray tube display panel, a digital light processing display panel, a field emission display panel, a plasma display panel, an electrophoretic display panel, an electrowetting display panel, and a small pitch display panel.

[0044] In a possible implementation, the display driver can communicate with the host computer via wired or wireless means. For example, the display driver can communicate with the host computer via a wired cable such as a serial communication interface, a parallel communication interface, or a network port; or, for another example, a wireless communication module can be set in the display driver to communicate with the host computer via a wireless network such as a Wi-Fi network or Bluetooth. It should be understood that the embodiments of the present disclosure do not limit the communication method between the display driver and the host computer, and can be set according to the actual application scenario.

[0045] In one possible implementation, the host computer is provided with a user interface for receiving display codes input by the user. The user can send control commands or instruction sets to the display driver through the user interface of the host computer. These commands or instruction sets are encoded by the host computer into a format that can be understood by the display driver and sent to the display driver through a communication protocol.

[0046] In order to make the display driver receive a complete instruction set and improve the reliability of communication, the host computer may send a first command to the display driver before sending the instruction set to the display driver, which is used to remind the display driver that it will receive the instruction set next, which is conducive to making the display driver ready to receive the instruction set. In addition, after the host computer sends all the instructions in the instruction set to the display driver, it will send a second command to the display driver to make the instruction set effective, so that the display driver stops receiving the instructions in the instruction set after detecting the second command, and executes the instructions in the instruction set in a preset order.

[0047] In this scenario, in step S11, the display driver detects whether it has received the first command from the host computer, and the first command is used to remind the display driver to start receiving the instruction set. In step S12, if the display driver receives the first command from the host computer, the display driver can receive the instruction set from the host computer and store the instruction set in the memory of the display driver for subsequent execution; if the display driver does not receive the first command from the host computer, the display driver can refuse to receive the instruction set from the host computer and continue to wait for the first command until the first command is detected and the instruction set is started to be received.

[0048] For example, the instruction set may include m instructions (e.g., instruction 1 to instruction m) executed in a preset order, and the m instructions may be used to display n frames of images (e.g., image 1 to image m). For the n frames of images, each frame of image is associated with a certain number of instructions, and the number of these instructions can be represented by K. i Indicates that i is any integer from 1 to n, and m is the number of all these instructions K1 to K n The sum of, that is: m = K1 + K2 + ... + K n , wherein the display driver drives the display panel to display the first frame image corresponding to K1 instructions to be executed, the display driver drives the display panel to display the second frame image corresponding to K2 instructions to be executed, and so on, the display driver drives the display panel to display the nth frame image corresponding to K n It should be understood that the number of instructions K for displaying each frame of image is i They may be the same or different, and the embodiments of the present disclosure are not limited to this.

[0049] It should be understood that the instruction types in the instruction set may include display instructions, control instructions, drive instructions, etc., among which display instructions are used to present image data on the display panel, control instructions are used to adjust the brightness, contrast, color temperature and other parameters of the display panel, and drive instructions are used to adjust the phase, peak value, frequency, etc. of the potential signal in the pixel circuit. The embodiments of the present disclosure do not limit the types of instructions in the instruction set.

[0050] In step S13, the display driver detects whether a second command from the host computer is received, and the second command is used to remind the display driver to end the reception of the instruction set and start the execution of the instruction set according to a preset sequence.

[0051] In step S14, if the display driver does not receive the second command from the host computer, the display driver may refuse to execute any instruction in the instruction set, continue to wait for the second command, and start executing the instruction set until the second command is detected.

[0052] If the display driver receives the second command from the host computer, the display driver can execute m instructions in the instruction set in a preset order to drive the display panel to display n frames of images. For example, in the first period, the display driver can read K1 instructions from the instruction set stored in the memory, and execute K1 instructions to drive the display panel to display the first frame of image; in the second period, the display driver can read K2 instructions from the instruction set stored in the memory, and execute K2 instructions to drive the display panel to display the second frame of image; and so on, in the nth period, the display driver can read K1 instructions from the instruction set stored in the memory, and execute K2 instructions to drive the display panel to display the second frame of image. n Instructions and execute K n The instruction drives the display panel to display the nth frame image.

[0053] In a possible implementation, step S14 may include: in response to the display driver completing the K for displaying the i-1th frame image in the i-1th time period, i-1 The display driver executes K instructions for displaying the i-th frame image according to the instruction set in the i-th time period. i Instructions.

[0054] For example, in response to the display driver completing K1 instructions for displaying the first frame of image in the first period, the display driver reads K2 instructions from the memory in the second period, and executes the K2 instructions to drive the display panel to display the second frame of image; and so on, in response to the display driver completing K1 instructions for displaying the n-1th frame of image in the n-1th period, the display driver reads K2 instructions from the memory in the second period, and executes the K2 instructions to drive the display panel to display the second frame of image. n-1 Instructions, showing that the driver reads K from the memory in the nth period n Instructions and execute K n The command drives the display panel to display the nth frame image, where n is an integer greater than 1.

[0055] It should be understood that the above process can be continuous and dependent, and the execution of instructions in each time period depends on the completion of instructions in the previous time period. This sequential execution method ensures that frame images can be displayed on the screen in sequence and uninterruptedly, thereby providing a smooth visual experience. In addition, this display driver executes different instructions in different time periods according to the setting of the instruction set, so that the display system can more flexibly adapt to various display requirements.

[0056] Through steps S11 to S14, the display driver can execute different instructions in different time periods according to the settings of the instruction set, and achieve different requirements by controlling the instructions in time. For example, for the scene where the display panel switches between different frequencies or different frequency bands and the screen flashes, this solution can be used to process the data between the switching frames of the display panel to achieve consistent brightness and reduce the risk of screen flashing. For another example, for the scene where different voltages switch asynchronously, this solution can be used to control the different voltages in time when the voltage is switched to achieve synchronization of voltage switching.

[0057] In addition, the display driver's method of centrally receiving instructions in advance and then executing them in sequence helps reduce the possibility of errors and delays and improves the system's response speed and accuracy.

[0058] In addition, since the display driver can receive and execute instruction sets according to the commands of the host computer, the instruction execution method of the embodiment of the present invention can easily adapt to different image display requirements. By modifying the instruction set or adjusting the commands of the host computer, the display function can be easily expanded and upgraded.

[0059] Figure 2 A timing diagram of an instruction execution method according to an embodiment of the present disclosure is shown. Figure 2 As shown, in step S11, during the period when the display panel displays -2 frames of images (corresponding to -2 period, i.e. the third period before the first period), the host computer sends a first command CMD_x1 to the display driver, and the display driver detects whether the first command CMD_x1 from the host computer is received.

[0060] In step S12, after the host computer sends the first command CMD_x1 to the display driver, it may then send a set of instructions to be executed in a preset order during the period when the display panel displays a -1 frame image (corresponding to the -1 period, ie, the second to last period before the 1st period).

[0061] Since the display driver received the first command CMD_x1 during the period when the display panel displays -2 frame images, the display driver can receive the instruction set CMD_total from the host computer during the period when the display panel displays -1 frame images (corresponding to the -1 period). The instruction set CMD_total may include m instructions. For example, the first instruction may be expressed as: 0x39 0x51 0x00 0x01, the second instruction may be expressed as: 0x39 0x51 0x00 0x02, and so on. The mth instruction may be expressed as: 0x390x51 0x00 0xm.

[0062] When the host computer sends all the instructions in the instruction set to the display driver during the period when the display panel displays -1 frame image (corresponding to -1 period), in step S13, the host computer can send the second command CMD_x2 indicating that the instruction set is effective to the display driver during the period when the display panel displays 0 frame image (corresponding to 0 period, the penultimate period before the 1st period). Synchronously, the display driver can detect whether the second command CMD_x2 from the host computer is received during the period when the display panel displays 0 frame image (corresponding to 0 period).

[0063] In step S14, in response to the display driver detecting the second command CMD_x2 during the display panel displaying 0 frame image (corresponding to time period 0), the display driver may stop receiving instruction sets and execute instructions in the received instruction sets in a preset order in time periods 1 to n.

[0064] In the example, the display driver is in the first period (corresponding to Figure 2 The display driver executes K1 instructions for displaying the first frame of the image (for example, the K1 instructions from 0x39 0x51 0x00 0x01 to 0x39 0x51 0x00 0xK1); the display driver executes K1 instructions for displaying the first frame of the image (for example, the K1 instructions from 0x39 0x51 0x00 0x01 to 0x39 0x51 0x00 0xK1); Figure 2 The second frame part) executes K2 instructions for displaying the second frame image, for example, the K2 instructions from 0x39 0x51 0x00 0x (K1 + 1) to 0x39 0x51 0x00 0x (K1 + K2); and so on, until the display driver is in the nth time period (corresponding to Figure 2 The n-th frame part) performs K for displaying the n-th frame image n Instructions, for example, from 0x39 0x51 0x000x(mK n +1) to 0x39 0x51 0x00 0xm n Instructions.

[0065] It should be understood that Figure 2 This is merely an example of the instruction execution method in the embodiment of the present disclosure. The embodiment of the present disclosure does not limit the number of instructions in the instruction set and the specific content of each instruction.

[0066] In a possible implementation, the instruction set includes a voltage adjustment instruction, and the display driver executes the voltage adjustment instruction to instruct the pixel circuit to adjust the driving voltage of the light-emitting device by turning on or off at least one switching transistor in the pixel circuit of the display panel.

[0067] Optionally, the display panel may include a plurality of pixel circuits, which are arranged in a matrix to form a dense pixel array. Each pixel circuit operates independently of its adjacent circuits, but can be managed by a display driver at the same time. The pixel circuit includes a pixel compensation circuit and a light-emitting device, and the pixel compensation circuit is used to drive the light-emitting device.

[0068] Exemplarily, the light-emitting device has a turn-on voltage, and emits light when the voltage difference between the anode and cathode of the light-emitting device is greater than or equal to the turn-on voltage. In a specific implementation, the anode of the light-emitting device is electrically connected to the pixel compensation circuit. In an embodiment of the present disclosure, the light-emitting device may include: an electroluminescent diode, such as an organic light-emitting diode (OLED), a quantum dot light-emitting diode (QLED), etc.

[0069] Exemplarily, the pixel compensation circuit is a circuit system for adjusting the light-emitting state of the light-emitting device. By adjusting the driving signal or circuit parameters of the pixel compensation circuit, the light-emitting device can be accurately compensated to achieve uniformity and stability of the display panel display image, reduce the light emission non-uniformity caused by factors such as device aging, environmental differences or driving voltage fluctuations, and thus improve the overall quality of the display panel display image.

[0070] Exemplarily, the pixel compensation circuit may be composed of a driving transistor, a plurality of switching transistors and a capacitor, and by turning on or off at least one switching transistor in the pixel circuit, the pixel circuit may be instructed to adjust the driving voltage of the light-emitting device.

[0071] By adjusting the driving voltage during frame rate switching of the display panel, the probability of screen flickering of the display panel can be reduced.

[0072] Figure 3 A timing diagram of an instruction execution method according to another embodiment of the present disclosure is shown. Figure 3 As shown, the instruction execution method of the embodiment of the present disclosure can also be applied to scenarios where the brightness changes due to frame rate switching. When the display panel switches from 60Hz to 120Hz, due to the different voltage signals at different frame rates, there will be a brightness difference in the brightness of the display panel at different frame rates, and flickering will occur during switching.

[0073] like Figure 3 As shown, in step S11, during the period when the display panel displays -2 frames of images (corresponding to -2 period, i.e. the third period before the first period), the host computer sends a first command CMD_x1 to the display driver, and the display driver detects whether the first command CMD_x1 from the host computer is received.

[0074] The first command CMD_x1 is used to set the first switch register of the display driver to an on state. For example, assuming that the first identifier (e.g., 1) indicates an on state and the second identifier (e.g., 0) indicates an off state. The first command CMD_x1 can write the first identifier (e.g., 1) into the first switch register to set the first switch register to an on state. As a sequential logic circuit, the first switch register can be composed of a trigger with a storage function, and the embodiments of the present disclosure do not limit the specific circuit structure of the first switch register.

[0075] In a possible implementation, step S11 may include: when the first switch register of the display driver is in an on state, determining the detection result is that the first command CMD_x1 is received, or when the first switch register of the display driver is in a off state, determining the detection result is that the first command CMD_x1 is not received.

[0076] For example, assuming that the first identifier (for example, 1) represents the on state and the second identifier (for example, 0) represents the off state, if the display driver detects that the first switch register stores the first identifier, it means that the display driver has received the first command CMD_x1; if the display driver detects that the first switch register stores the second identifier, it means that the display driver has not received the first command CMD_x1.

[0077] By setting the first switch register, the display driver can more accurately detect whether the first command CMD_x1 is received.

[0078] In step S12, after the host computer sends the first command CMD_x1 to the display driver, it may then send an instruction set executed in a preset order during the period when the display panel displays a -1 frame image (corresponding to the -1 period, i.e., the second to last period before the 1st period), for example, including voltage code 1 and voltage code 2. The display driver may receive the instruction set CMD_total from the host computer, and write the instruction set CMD_total into the memory of the display driver, wherein the instruction set CMD_total may include voltage code 1 and voltage code 2.

[0079] In step S13, the host computer may send a second command CMD_x2 indicating that the instruction set is effective to the display driver during the period when the display panel displays 0 frame images (corresponding to period 0, the penultimate period before the first period). Synchronously, the display driver may detect whether the second command CMD_x2 from the host computer is received during the period when the display panel displays 0 frame images (corresponding to period 0).

[0080] The second command CMD_x2 is used to set the second switch register of the display driver to an on state. For example, assuming that the first identifier (e.g., 1) indicates an on state and the second identifier (e.g., 0) indicates an off state. The second command CMD_x2 can write the first identifier (e.g., 1) into the second switch register to set the second switch register to an on state. As a sequential logic circuit, the second switch register can be composed of a trigger with a storage function, and the embodiments of the present disclosure do not limit the specific circuit structure of the second switch register.

[0081] In a possible implementation, step S13 may include: when the second switch register of the display driver is in an on state, determining the detection result is that the second command CMD_x2 is received, or when the second switch register of the display driver is in a off state, determining the detection result is that the second command CMD_x2 is not received.

[0082] For example, assuming that the first identifier (for example, 1) represents the on state and the second identifier (for example, 0) represents the off state, if the display driver detects that the second switch register stores the first identifier, it means that the display driver has received the second command CMD_x2; if the display driver detects that the second switch register stores the second identifier, it means that the display driver has not received the second command CMD_x2.

[0083] By setting the second switch register, the display driver can more accurately detect whether the second command CMD x2 is received.

[0084] In step S14, the display driver performs the first period (corresponding to Figure 2 The display driver executes voltage code 1 in the second period (corresponding to Figure 2 The voltage adjustment instructions (such as voltage code 1 and voltage code 2) will take effect in the display panel displaying the first frame image and the second frame image. This two-frame voltage adjustment is conducive to a gradual transition of the brightness change, making the brightness change of the display panel smoother.

[0085] In a possible implementation, after completing steps S11 to S14, the method further includes: in response to the display driver completing K for displaying the nth frame image in the nth time period, n An instruction is provided to set the first switch register and the second switch register of the display driver to a closed state.

[0086] For example, assuming that the first mark (such as 1) indicates the on state, and the second mark (such as 0) indicates the off state, the display driver completes the K for displaying the nth frame image in the nth time period. nAn instruction, which is the last instruction in the instruction set, corresponds to the display driver driving the display bread to display the last frame of the image. The second identifier (for example, 0) can be written into the first switch register and the second switch register to set the first switch register and the second switch register of the display driver to the closed state.

[0087] In this way, it is helpful for the display driver to more accurately detect whether the first command and the second command are received later.

[0088] In summary, the instruction execution method of the embodiment of the present disclosure detects whether a first command from a host computer is received; when the first command is received, receives an instruction set from the host computer, wherein the instruction set includes m instructions executed in a preset order, and the m instructions are used to display n frames of images, wherein the i-th frame of image corresponds to K i Instructions, i is any integer from 1 to n, m is any integer from K1 to K n Detect whether a second command from the host computer is received; if the second command is received, execute K for displaying the i-th frame image in the i-th time period according to the instruction set i In this way, the display driver can execute different instructions in different time periods according to the settings of the instruction set, and achieve different requirements by controlling the time of the instructions.

[0089] Figure 4 A block diagram of an instruction execution device according to an embodiment of the present disclosure is shown as follows: Figure 4 As shown, the device is applied to a display driver, and the device comprises:

[0090] A first detection module 41, used to detect whether a first command from a host computer is received;

[0091] The receiving module 42 is used to receive an instruction set from a host computer when the first command is received, wherein the instruction set includes m instructions executed in a preset order, and the m instructions are used to display n frames of images, wherein the i-th frame of image corresponds to K i Instructions, i is any integer from 1 to n, m is any integer from K1 to K n The sum of ;

[0092] A second detection module 43, used to detect whether a second command from the host computer is received;

[0093] The execution module 44 is used for executing Ki instructions for displaying the i-th frame image in the i-th time period according to the instruction set when the second command is received.

[0094] In a possible implementation, the first command is used to set the first switch register of the display driver to an on state, and the first detection module 41 is used to: when the first switch register of the display driver is in the on state, determine the detection result as receiving the first command, or when the first switch register of the display driver is in the off state, determine the detection result as not receiving the first command.

[0095] In one possible implementation, the second command is used to set the second switch register of the display driver to an on state, and the second detection module is used for 43: when the second switch register of the display driver is in the on state, the detection result determined is that the second command is received, or when the second switch register of the display driver is in the off state, the detection result determined is that the second command is not received.

[0096] In a possible implementation, the device further includes a closing module, configured to respond to the display driver completing the K for displaying the nth frame image in the nth time period. n An instruction is provided to set the first switch register and the second switch register of the display driver to a closed state.

[0097] In a possible implementation, the execution module 44 is used to: in response to the display driver completing the K for displaying the i-1th frame image in the i-1th time period i-1 The display driver executes K instructions for displaying the i-th frame image according to the instruction set in the i-th time period. i Instructions.

[0098] In one possible implementation, the display driver is used to drive the display panel to display multiple frames of images, and the instruction set includes a voltage adjustment instruction. The display driver executes the voltage adjustment instruction to instruct the pixel circuit to adjust the driving voltage of the light-emitting device by turning on or off at least one switching transistor in the pixel circuit of the display panel.

[0099] In one possible implementation, the display panel includes at least one of a liquid crystal display panel, a micro light emitting diode display panel, a light emitting diode display panel, a mini light emitting diode display panel, a quantum dot light emitting diode display panel, an organic light emitting diode display panel, a cathode ray tube display panel, a digital light processing display panel, a field emission display panel, a plasma display panel, an electrophoretic display panel, an electrowetting display panel and a small pitch display panel.

[0100] In one possible implementation, an embodiment of the present disclosure provides an electronic device, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.

[0101] In a possible implementation, an embodiment of the present disclosure provides a non-volatile computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions implement the above method when executed by a processor.

[0102] In a possible implementation, an embodiment of the present disclosure provides a display driver chip, and the display driver chip is used to implement the above method.

[0103] In a possible implementation, an embodiment of the present disclosure provides a display device, which includes the display driver chip as described above, and a display panel connected to the display driver chip, wherein the display driver chip is used to drive the display panel.

[0104] In one possible implementation, an embodiment of the present disclosure provides a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying a computer-readable code, and when the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.

[0105] Exemplarily, the electronic devices in this embodiment include but are not limited to desktop computers, televisions, mobile devices with large screens such as mobile phones, tablet computers, and other common electronic devices that require multiple chips to be cascaded to achieve driving.

[0106] Exemplarily, the electronic device may also be a user equipment (UE), a mobile device, a user terminal, a terminal, a handheld device, a computing device or a vehicle-mounted device, etc. Exemplarily, some examples of terminals are: a display, a smart phone or a portable device, a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile Internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control (Industrial Control), a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid (Smart Grid), a wireless terminal in transportation safety (Transportation Safety), a wireless terminal in smart city (Smart City), a wireless terminal in smart home (Smart Home), a wireless terminal in Internet of Vehicles, etc. For example, the server may be a local server or a cloud server.

[0107] Figure 5 1 is a block diagram of an electronic device 1900 according to an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server or a terminal device. Figure 5 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

[0108] The electronic device 1900 may further include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input-output interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0109] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.

[0110] The above description is merely an exemplary embodiment of the present invention and is not intended to limit the protection scope of the present invention. The protection scope of the present invention is determined by the appended claims.

[0111] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0112] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0113] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0114] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for executing an instruction, characterized in that: The method is applied to a display driver, and comprises: Detect whether the first command from the host computer is received; When the first command is received, an instruction set is received from a host computer, wherein the instruction set includes m instructions executed in a preset order, and the m instructions are used to display n frames of images, wherein the i-th frame of image corresponds to K i Instructions, i is any integer from 1 to n, m is any integer from K1 to K n The sum of ; Detect whether the second command from the host computer is received; When the second command is received, the K for displaying the i-th frame image is executed in the i-th time period according to the instruction set. i Instructions.

2. The method according to claim 1, characterized in that: The first command is used to set the first switch register of the display driver to an on state, Check whether the first command from the host computer is received, including: When the first switch register of the display driver is in an on state, the detection result determined is that the first command is received, or when the first switch register of the display driver is in a off state, the detection result determined is that the first command is not received.

3. The method according to claim 1, characterized in that The second command is used to set the second switch register of the display driver to an on state, Check whether the second command from the host computer is received, including: When the second switch register of the display driver is in an on state, the detection result is determined to be that the second command is received, or when the second switch register of the display driver is in a off state, the detection result is determined to be that the second command is not received.

4. The method according to claim 2 or 3, characterized in that: The method further comprises: In response to the display driver completing the K for displaying the nth frame image in the nth period n An instruction is provided to set the first switch register and the second switch register of the display driver to a closed state.

5. The method according to claim 1, characterized in that According to the instruction set, K for displaying the i-th frame image is executed in the i-th time period. i Instructions, including: In response to the display driver completing the K for displaying the i-1th frame image in the i-1th period i-1 The display driver executes K instructions for displaying the i-th frame image according to the instruction set in the i-th time period. i Instructions.

6. The method according to any one of claims 1 to 3, characterized in that The display driver is used to drive the display panel to display multiple frames of images. The instruction set includes a voltage adjustment instruction. The display driver executes the voltage adjustment instruction and instructs the pixel circuit to adjust the driving voltage of the light-emitting device by turning on or off at least one switching transistor in the pixel circuit of the display panel.

7. The method according to claim 6, characterized in that The display panel includes at least one of a liquid crystal display panel, a micro light emitting diode display panel, a light emitting diode display panel, a mini light emitting diode display panel, a quantum dot light emitting diode display panel, an organic light emitting diode display panel, a cathode ray tube display panel, a digital light processing display panel, a field emission display panel, a plasma display panel, an electrophoretic display panel, an electrowetting display panel and a small pitch display panel.

8. An instruction execution device, characterized in that: The device is applied to a display driver, and comprises: A first detection module, used for detecting whether a first command from a host computer is received; A receiving module is used to receive an instruction set from a host computer when the first command is received, wherein the instruction set includes m instructions executed in a preset order, and the m instructions are used to display n frames of images, wherein the i-th frame of image corresponds to K i Instructions, i is any integer from 1 to n, m is any integer from K1 to K n The sum of ; A second detection module is used to detect whether a second command from the host computer is received; an execution module, configured to, upon receiving the second command, execute, according to the instruction set, a K command for displaying an i-th frame of image in an i-th time period; i Instructions.

9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method described in any one of claims 1 to 7 when executing the instructions stored in the memory.

10. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.

11. A display driver chip, characterized in that: The display driver chip is used to implement the method described in any one of claims 1 to 7.

12. A display device, characterized in that: The display device comprises the display driver chip as claimed in claim 11, and a display panel connected to the display driver chip, wherein the display driver chip is used to drive the display panel.