Display control method and device of display screen, display screen, equipment and medium

By configuring the buffer and display area in the display register, the problem of difficult to ensure real-time communication of the display screen in embedded devices is solved, and data integrity and display stability are achieved.

CN119516916APending Publication Date: 2025-02-25GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411729146.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In embedded devices, real-time communication of the display screen is difficult to guarantee, resulting in problems such as jamming and incomplete display.

Method used

By obtaining the number of common electrodes of the display screen, configuring the buffer and display area in the register, ensuring that the number of bits of the buffer and display area corresponds to the number of common electrodes, and buffering and synchronization of the data to be displayed is achieved.

Benefits of technology

It effectively guarantees the integrity of the display data, avoids the screen stuck on the display, and ensures real-time communication and data synchronization of the display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119516916A_ABST
    Figure CN119516916A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a display control method and device of a display screen, the display screen, equipment and a medium. The method comprises the steps that the number of common electrodes of the display screen is obtained; when the number of the common electrodes is smaller than or equal to the preset number, a buffer area and a display area in a register of the display screen are configured according to the number of the common electrodes; the digits of the buffer area and the digits of the display area correspond to the number of the common electrodes; when to-be-displayed first display data is obtained, writing the first display data into a buffer area; synchronizing the first display data in the buffer area to a display area; and displaying the first display data in the display area. Therefore, the register of the display screen is configured, the buffer area and the display area are configured, the buffer area and the display area are arranged, and the first display data are buffered and synchronized, so that the integrity of the display data is guaranteed, and the phenomenon that the display screen is stuck is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a display control method for a display screen, a display control device for a display screen, a display screen, an electronic device and a computer-readable storage medium. Background Art

[0002] With the rapid development of embedded technology, embedded devices are also continuously applied to people's lives, thus facilitating people's lives. Display screens are also applied to various embedded devices. In the interaction between embedded devices and users, the display screen is an indispensable part. Therefore, in order to ensure the display integrity of the display screen and the user's sense of use, the real-time communication of the display screen must be guaranteed. In the related technology, the control of the display screen is controlled by the liquid crystal display controller. The controller of the display screen controls the light or extinguishing of the display screen code segment by directly writing to the register. When the code segment on the display screen needs to be lit or extinguished, the code segment control position of the corresponding register is set to 1 or 0. If the CPU occupancy rate is high, it is difficult to ensure real-time communication with the display screen, and it is easy to cause the screen to be stuck and the display to be incomplete. Summary of the invention

[0003] In view of the above problems, embodiments of the present invention are proposed to provide a display control method for a display screen, a display control device for a display screen, a display screen, an electronic device and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0004] In order to solve the above problem, an embodiment of the present invention discloses a display control method of a display screen, the method comprising:

[0005] Obtaining the number of common electrodes of the display screen;

[0006] When the number of the common electrodes is less than or equal to a preset number, a buffer area and a display area in a register of the display screen are configured according to the number of the common electrodes; the number of bits in the buffer area and the number of bits in the display area correspond to the number of the common electrodes;

[0007] When first display data to be displayed is acquired, writing the first display data into the buffer;

[0008] Synchronizing the first display data in the buffer to the display area;

[0009] The first display data in the display area is displayed.

[0010] Optionally, configuring a buffer area and a display area in a register of the display screen according to the number of the common electrodes includes:

[0011] Determining the number of display bits and the number of buffer bits of the register of the display screen according to the number of the common electrodes;

[0012] According to the number of display bits, configuring the display area of ​​the register;

[0013] The buffer area of ​​the register is configured according to the number of the buffer bits and the display area.

[0014] Optionally, when first display data to be displayed is acquired, writing the first display data into the buffer includes:

[0015] When the first display data to be displayed is obtained, determining whether the state of the register is a write protection state;

[0016] When the state of the register is not in the write protection state, the first display data is written into the buffer, and the state of the register is set to the write protection state.

[0017] Optionally, synchronizing the first display data in the buffer to the display area includes:

[0018] When the state of the register is the write protection state, the first display data in the buffer is synchronized to the display area, and the write protection state of the register is cancelled.

[0019] Optionally, after processing the first display data in the display area, the method further includes:

[0020] When a control instruction is obtained, determining whether the control instruction is to disable the display screen;

[0021] When the control instruction is to disable the display screen, the display screen is disabled;

[0022] When the control instruction is not to disable the display screen, determining whether the state of the register is a write protection state;

[0023] When the state of the register is not the write protection state, writing the second display data in the control instruction into the buffer of the register, and setting the state of the register to the write protection state;

[0024] When the state of the register is the write protection state, synchronizing the second display data in the buffer area of ​​the register to the display area of ​​the register, and canceling the write protection state of the register;

[0025] The second display data in the display area is displayed.

[0026] Optionally, when the first display data to be displayed is acquired, determining whether the state of the register is a write protection state includes:

[0027] When the first display data to be displayed is obtained, a state value corresponding to the state of the register is obtained;

[0028] When the state value is the first preset value, determining that the state of the register is a write protection state;

[0029] When the state value is the second preset value, it is determined that the state of the register is not the write protection state.

[0030] Optionally, when the state of the register is not in a write-protected state, writing the first display data into the buffer and setting the state of the register to the write-protected state includes:

[0031] When the state of the register is not a write protection state, the first display data is written into the buffer, and the state value is modified to the first preset value.

[0032] Optionally, the method further comprises:

[0033] When the number of the common electrodes is greater than a preset number, writing the first display data into the register;

[0034] The first display data in the register is displayed.

[0035] Optionally, after displaying the first display data in the register, the method further includes:

[0036] When a control instruction is obtained, determining whether the control instruction is to disable the display screen;

[0037] When the control instruction is to disable the display screen, the display screen is disabled;

[0038] When the control instruction is not to disable the display screen, writing the second display data in the control instruction into the register;

[0039] The second display data in the register is displayed.

[0040] An embodiment of the present invention discloses a display control device for a display screen, the device comprising:

[0041] A first acquisition module, used to acquire the number of common electrodes of the display screen;

[0042] A configuration module, configured to configure a buffer and a display area in a register of the display screen according to the number of common electrodes when the number of common electrodes is less than or equal to a preset number; the number of bits in the buffer and the number of bits in the display area correspond to the number of common electrodes;

[0043] A second acquisition module, configured to write the first display data to be displayed into the buffer when the first display data to be displayed is acquired;

[0044] A first synchronization module, used for synchronizing the first display data in the buffer to the display area;

[0045] The first display module is used to display the first display data in the display area.

[0046] Optionally, the configuration module includes:

[0047] A first determination submodule, used to determine the number of display bits and the number of buffer bits of the register of the display screen according to the number of the common electrodes;

[0048] A first configuration submodule, configured to configure a display area of ​​the register according to the number of display bits;

[0049] The second configuration submodule is used to configure the buffer area of ​​the register according to the number of the buffer bits and the display area.

[0050] Optionally, the second acquisition module includes:

[0051] an acquisition submodule, for determining whether the state of the register is a write protection state when the first display data to be displayed is acquired;

[0052] The writing submodule is used for writing the first display data into the buffer and setting the state of the register to the write protection state when the state of the register is not the write protection state.

[0053] Optionally, the first synchronization module includes:

[0054] The synchronization submodule is used for synchronizing the first display data in the buffer to the display area and canceling the write protection state of the register when the state of the register is the write protection state.

[0055] Optionally, the device further comprises:

[0056] A third acquisition module is used to determine whether the control instruction is to disable the display screen when the control instruction is acquired;

[0057] A first disabling module, configured to disable the display screen when the control instruction is to disable the display screen;

[0058] A first judgment module, configured to judge whether the state of the register is a write protection state when the control instruction is not to disable the display screen;

[0059] A first writing module, used for writing the second display data in the control instruction into the buffer of the register and setting the state of the register to the write protection state when the state of the register is not the write protection state;

[0060] a second synchronization module, configured to synchronize the second display data in the buffer of the register to the display area of ​​the register and cancel the write protection state of the register when the state of the register is the write protection state;

[0061] The second display module is used to display the second display data in the display area.

[0062] Optionally, the acquisition submodule includes:

[0063] an acquiring unit, configured to acquire a state value corresponding to the state of the register when acquiring first display data to be displayed;

[0064] A first determining unit, configured to determine that the state of the register is a write protection state when the state value is the first preset value;

[0065] The second determining unit is configured to determine that the state of the register is not the write protection state when the state value is the second preset value.

[0066] Optionally, the writing submodule includes:

[0067] A writing unit is used to write the first display data into the buffer and modify the state value to the first preset value when the state of the register is not a write protection state.

[0068] Optionally, the device further comprises:

[0069] A second writing module, configured to write the first display data into the register when the number of the common electrodes is greater than a preset number;

[0070] A third display module is used to display the first display data in the register.

[0071] Optionally, the device further comprises:

[0072] A second judgment module is used to judge whether the control instruction is to disable the display screen when the control instruction is obtained;

[0073] A second disabling module, configured to disable the display screen when the control instruction is to disable the display screen;

[0074] A third writing module, configured to write the second display data in the control instruction into the register when the control instruction is not to disable the display screen;

[0075] A fourth display module is used to display the second display data in the register.

[0076] The present invention also discloses a display screen, which is used to execute the display control method of the display screen as mentioned above.

[0077] The present invention also discloses an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the display control method of the display screen as described above when executing the computer program.

[0078] The present invention also discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the display control method of the display screen as described above are implemented.

[0079] The embodiments of the present invention include the following advantages:

[0080] In an embodiment of the present invention, the number of common electrodes of the display screen is first obtained. When the number of common electrodes is less than or equal to a preset number, a buffer and a display area in a register of the display screen are configured according to the number of common electrodes, wherein the number of bits in the buffer and the number of bits in the display area correspond to the number of common electrodes. When first display data to be displayed is obtained, the first display data is written into the buffer, thereby buffering the first display data. The first display data in the buffer is then synchronized to the display area, and finally the first display data in the display area is displayed. Thus, when the number of common electrodes of the display screen is less than or equal to a preset number, the register of the display screen is configured to configure the buffer and the display area. By setting the buffer and the display area, the first display data is buffered and the data is synchronized, thereby ensuring the integrity of the display data and avoiding the phenomenon of screen jamming on the display screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] Figure 1 is a flowchart of a display control method of a display screen provided by an embodiment of the present invention;

[0082] Figure 2It is a schematic diagram of the principle of display control of a display screen provided by an embodiment of the present invention;

[0083] Figure 3 is a flowchart of another display control method of a display screen provided by an embodiment of the present invention;

[0084] Figure 4 It is a structural block diagram of a display device of a display screen provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0085] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0086] In the related art, the controller of the display screen controls the on or off of the display screen code segment by directly writing display data to the register. This method is difficult to ensure real-time communication with the display screen, and it is easy to cause a stuck screen or incomplete display. In order to solve the above technical problems, the present invention provides a display control method for a display screen, first obtaining the number of common electrodes of the display screen, when the number of common electrodes is less than or equal to the preset number, configuring the buffer and display area in the register of the display screen according to the number of common electrodes, wherein the number of bits in the buffer and the number of bits in the display area correspond to the number of common electrodes, when the first display data to be displayed is obtained, the first display data is written into the buffer, thereby playing a buffering role for the first display data, and then the first display data in the buffer is synchronized to the display area, and finally the first display data in the display area is displayed, so that when the number of common electrodes of the display screen is less than or equal to the preset number, the register of the display screen is configured, the buffer and the display area are configured, and the first display data is buffered and the data is synchronized through the setting of the buffer and the display area, thereby ensuring the integrity of the display data and avoiding the stuck screen phenomenon of the display screen.

[0087] Reference Figure 1 , shows a flowchart of a display control method for a display screen provided by an embodiment of the present invention, and the method may specifically include the following steps:

[0088] Step 101, obtaining the number of common electrodes of the display screen.

[0089] In an embodiment of the present invention, the display screen may be a liquid crystal display screen, a controller may be provided in the display screen, a control chip and a register may be deployed in the controller, and the register may be a SEGCOM_x register. When the controller controls the display of the liquid crystal display, it can generally write display data into the register to control the code segment control bit of the corresponding register. For example, when it is necessary to light up the code segment on the display screen, the code segment control bit of the corresponding register can be set to 1, and when it is necessary to extinguish the code segment on the display screen, the code segment control bit of the corresponding register can be set to 0.

[0090] In the present invention, the controller can control the liquid crystal display of different COM*SEG segments, the COM segment is a common segment, the SEF segment is a segment, the controller generally has a total of 32 segments, a maximum of 8 common segments can be supported, and a minimum of 1 common segment can be supported. The segments other than the common segments can be segments. For example, the controller can support the following specifications of liquid crystal display segments (COM*SEG): 1*31, 2*30, 3*29, 4*28, 5*27, 6*26, 7*25, 8*24.

[0091] like Figure 2 As shown, a schematic diagram of the display control principle of a display screen provided by an embodiment of the present invention is shown. Display screens of different specifications have different numbers of COM*SEG. For example, a 4*28 display screen requires 4 COMs and 28 SEGs to drive the display screen. Two COMs and 28 SEGs constitute a coordinate system. By lighting up the code segments corresponding to the coordinates, the display screen can be controlled. Figure 2 COM0-COM7 in the diagram can be equivalent to x in the rectangular coordinate system, and SEG0-SEG31 can be equivalent to y in the rectangular coordinate system. In the coordinate system, one coordinate corresponds to one point. In the controller, the coordinate corresponds to one code segment. If you need to light up the code segment, you need to obtain the coordinate of the code segment and then set it to 1. If you need to turn off the code segment, you need to obtain the coordinate of the code segment and then set it to 0.

[0092] In the present invention, the register can be composed of 4 bytes, one byte can represent a SEG segment, one byte has 8 bits, and 1 bit can represent a COM segment. The register can convert the coordinates into bits, and the process of controlling the bits of the register is also the process of controlling the code segment. When controlling display screens of different specifications, the corresponding display data can be written into the bit of the corresponding COM segment according to the number of COM segments of the display screen, that is, the common electrodes of the display screen.

[0093] In the embodiment of the present invention, when performing display control on the display screen, the controller may first obtain the number of common electrodes of the display screen, that is, the controller may obtain the number of COM segments required to control the display screen.

[0094] Step 102, when the number of the common electrodes is less than or equal to a preset number, configuring a buffer area and a display area in a register of the display screen according to the number of the common electrodes; the number of bits in the buffer area and the number of bits in the display area correspond to the number of the common electrodes.

[0095] In an embodiment of the present invention, after obtaining the number of common electrodes of the display screen, it can be determined whether the number of common electrodes is less than or equal to a preset number. In the present invention, the preset number can be half of the binary digits of the register, for example, the preset number is 4. When the common electrodes of the display screen are less than or equal to 4, the register of the display screen can be configured according to the number of common electrodes, and a buffer area and a display area can be configured in the register. Among them, the number of bits of the buffer and the number of bits of the display area can correspond to the number of common electrodes, for example: if the number of common electrodes is 4, then the number of bits of the buffer and the number of bits of the display area are also 4, and if the number of common electrodes is 2, then the number of bits of the buffer and the number of bits of the display area are also 2.

[0096] In one embodiment, a buffer area and a display area in a register of a display screen are configured according to the number of common electrodes, including: determining the number of display bits and the number of buffer bits of a register of the display screen according to the number of common electrodes; configuring the display area of ​​the register according to the number of display bits; and configuring the buffer area of ​​the register according to the number of buffer bits and the display area.

[0097] For example: when the number of common electrodes of the display screen is 4, that is, COM is 4, then it can be determined that the number of display bits of the register of the display screen is 4, and the number of buffer bits is 4. According to the number of display bits, the display area of ​​the register is configured as BIT0-3, and according to the number of buffer bits and the display area, the buffer area of ​​the register is configured as BIT4-7. Another example: when the number of common electrodes of the display screen is 2, that is, COM is 2, then it can be determined that the number of display bits of the register of the display screen is 2, and the number of buffer bits is 2. According to the number of display bits, the display area of ​​the register is configured as BIT0-1, and according to the number of buffer bits and the display area, the buffer area of ​​the register is configured as BIT2-3, then BIT4-7 of the register is an invalid BIT bit, and when data is written to the invalid BIT bit, it has no effect on the LCD display.

[0098] Step 103: When first display data to be displayed is acquired, the first display data is written into the buffer.

[0099] In the embodiment of the present invention, after the buffer area and the display area in the register of the display screen are configured, when the first display data to be displayed is acquired, the first display data can be written into the buffer area.

[0100] In one embodiment, when the first display data to be displayed is obtained, the first display data is written into a buffer, including: when the first display data to be displayed is obtained, determining whether the state of the register is a write-protected state; when the state of the register is not a write-protected state, writing the first display data into the buffer and setting the state of the register to a write-protected state.

[0101] Specifically, when the first display data to be displayed is obtained, it can be determined first whether the state of the register is a write-protected state. When the state of the register is a write-protected state, it can indicate that the first display data cannot be written into the buffer of the register. When the state of the register is not a write-protected state, it can indicate that the first display data can be written into the buffer of the register. At this time, the first display data is written into the buffer, and then the state of the register is set to a write-protected state, so that when the first display data in the buffer has not yet been synchronized to the display area, new display data is written into the buffer, thereby avoiding incomplete or abnormal first display data.

[0102] In one embodiment, when the first display data to be displayed is obtained, determining whether the state of the register is a write-protected state may include: when the first display data to be displayed is obtained, obtaining a state value corresponding to the state of the register; when the state value is a first preset value, determining that the state of the register is a write-protected state; when the state value is a second preset value, determining that the state of the register is not a write-protected state.

[0103] For example, the first preset value is 1, and the second preset value is 0. When the first display data to be displayed is obtained, the status value corresponding to the status of the register can be obtained. When the status value is 1, it can be determined that the status of the register is a write-protected state. When the status value is 0, it can be determined that the status of the register is not a write-protected state.

[0104] In one embodiment, when the state of the register is not a write-protected state, writing the first display data into the buffer and setting the state of the register to a write-protected state may include: when the state of the register is not a write-protected state, writing the first display data into the buffer and modifying the state value to a first preset value.

[0105] For example, when the state value corresponding to the state of the register is 0, it is determined that the state of the register is not in a write-protected state, and the first display data can be written into the buffer, and then the state value corresponding to the state of the register is modified to 1. In other words, when the state of the register is in a write-protected state, it indicates that there is display data in the buffer of the register, and when the state of the register is not in a write-protected state, it indicates that there is no display data in the buffer of the register.

[0106] Step 104: synchronize the first display data in the buffer to the display area.

[0107] In the embodiment of the present invention, after the first display data is written into the buffer area of ​​the register, the first display data in the buffer area may be synchronized to the display area in the register.

[0108] In one embodiment, synchronizing the first display data in the buffer to the display area may include: when the state of the register is a write protection state, synchronizing the first display data in the buffer to the display area and canceling the write protection state of the register.

[0109] Specifically, when the state of the register is a write-protected state, it indicates that there is display data in the buffer of the register. Then the first display data in the buffer can be synchronized to the display area, and then the state value corresponding to the register state is modified to 0, and the write-protected state of the register is canceled, so that the register is not in a write-protected state, and display data can continue to be written to the buffer of the register.

[0110] Step 105: display the first display data in the display area.

[0111] In the embodiment of the present invention, after the first display data in the buffer area is synchronized to the display area, the first display data in the display area can be displayed through the display screen.

[0112] In an embodiment of the present invention, after the first display data in the display area is displayed, it also includes: when a control instruction is obtained, determining whether the control instruction is to disable the display screen; when the control instruction is to disable the display screen, disabling the display screen; when the control instruction is not to disable the display screen, determining whether the state of the register is a write-protected state; when the state of the register is not a write-protected state, writing the second display data in the control instruction into the buffer of the register, and setting the state of the register to a write-protected state; when the state of the register is a write-protected state, synchronizing the second display data in the buffer of the register to the display area of ​​the register, and canceling the write-protected state of the register; and displaying the second display data in the display area.

[0113] Specifically, when the display of the display screen needs to be controlled again, for example, when the display data needs to be modified, that is, when the displayed content needs to be modified, or when the display screen needs to be disabled, a control instruction can be sent to the controller. When the controller obtains the control instruction, it can first determine whether the control instruction is to disable the display screen. When the control instruction is to disable the display screen, the control instruction can be responded to and the display screen can be disabled. When the control instruction is not a display screen, the control instruction generally carries a second display data, and the second display data can be display data modified for the first display data. At this time, it can be determined whether the state of the register is a write-protected state. When the state of the register is not a write-protected state, the second display data can be written into the buffer of the register, and the state of the register is set to a write-protected state, and then it is determined whether the state of the register is a write-protected state. When the state of the register is a write-protected state, the second display data in the buffer of the register can be synchronized to the display area of ​​the register, and the write-protected state of the register can be canceled, and finally the second display data in the display area is displayed.

[0114] In an embodiment of the present invention, the display control method of a display screen may further include: when the number of common electrodes is greater than a preset number, writing first display data into a register; and displaying the first display data in the register.

[0115] For example, the preset number is 4, and the number of common electrodes of the display screen obtained is 5. At this time, the number of common electrodes is greater than the preset number. At this time, there is no need to configure the buffer area and display area of ​​the register. The first display data can be directly written into the register, and then the first display data in the register can be displayed.

[0116] In an embodiment of the present invention, after displaying the first display data in the register, it also includes: when a control instruction is obtained, determining whether the control instruction is to disable the display screen; when the control instruction is to disable the display screen, disabling the display screen; when the control instruction is not to disable the display screen, writing the second display data in the control instruction into the register; and displaying the second display data in the register.

[0117] Specifically, when the display of the display screen needs to be controlled again, for example, when the display data needs to be modified, that is, when the displayed content needs to be modified, or when the display screen needs to be disabled, a control instruction can be sent to the controller. When the controller obtains the control instruction, it can first determine whether the control instruction is to disable the display screen. When the control instruction is to disable the display screen, the control instruction can be responded to and the display screen can be disabled. When the control instruction is not a display screen, the control instruction generally carries the second display data, which can be the display data modified for the first display data. At this time, the second display data can be directly written into the register, and then the second display data in the register can be displayed.

[0118] In order to better understand the specific content of the embodiments of the present invention, Figure 3 The embodiments of the present invention are described in detail. Figure 3 As shown, a step flow chart of a display control method for another display screen provided by an embodiment of the present invention is shown. First, the number of common electrodes of the display screen is obtained, and it is determined whether the data of the common electrodes is less than or equal to 4. When the number of common electrodes is greater than 4, the first display data to be displayed is written into the register, and the first display data in the register is displayed. When a control instruction is obtained, it is determined whether the control instruction is to disable the display screen. When the control instruction is to disable the display screen, the display screen is disabled. When the control instruction is not to disable the display screen, the second display data in the control instruction is written into the register, and the second display data in the register is displayed.

[0119] When the number of common electrodes is less than or equal to 4, the buffer and display area in the register of the display screen are configured according to the number of common electrodes, and it is determined whether the status value of the register is 1. When the status value of the register is 1, it is continued to be determined whether the status value of the register is 1. When the status value of the register is not 1, that is, when the status value of the register is 0, the first display data with display is written into the buffer, and then it is determined whether the status value of the register is 1. When the status value of the register is not 1, that is, when the status value of the register is 0, it is continued to be determined whether the status value of the register is 1. When the status value of the register is 1, the first display data in the buffer is synchronized to the display area, and the status value of the register is modified to 0, and then the first display data in the display area is displayed.

[0120] When a control instruction is obtained, determine whether the control instruction is to disable the display screen. When the control instruction is to disable the display screen, the display screen is disabled. When the control instruction is not to disable the display screen, determine whether the status value of the register is 1. When the status value of the register is 1, continue to determine whether the status value of the register is 1. When the status value of the register is not 1, that is, when the status value of the register is 0, write the second display data in the control instruction to the buffer, and then determine whether the status value of the register is 1. When the status value of the register is not 1, that is, when the status value of the register is 0, continue to determine whether the status value of the register is 1. When the status value of the register is 1, synchronize the second display data in the buffer to the display area, modify the status value of the register to 0, and then display the second display data in the display area.

[0121] In an embodiment of the present invention, the number of common electrodes of the display screen is obtained; when the number of common electrodes is less than or equal to the preset number, the buffer and display area in the register of the display screen are configured according to the number of common electrodes; the number of bits in the buffer and the number of bits in the display area correspond to the number of common electrodes; when the first display data to be displayed is obtained, the first display data is written into the buffer; the first display data in the buffer is synchronized to the display area; and the first display data in the display area is displayed. Thus, when the number of common electrodes of the display screen is less than or equal to the preset number, the register of the display screen is configured to configure the buffer and the display area, and the first display data is buffered and synchronized through the setting of the buffer and the display area, thereby ensuring the integrity of the display data and avoiding the phenomenon of the display screen being stuck.

[0122] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0123] Reference Figure 4 , shows a structural block diagram of a display device of a display screen provided by an embodiment of the present invention, which may specifically include the following modules:

[0124] A first acquisition module 401 is used to acquire the number of common electrodes of the display screen;

[0125] A configuration module 402, configured to configure a buffer and a display area in a register of the display screen according to the number of common electrodes when the number of common electrodes is less than or equal to a preset number; the number of bits in the buffer and the number of bits in the display area correspond to the number of common electrodes;

[0126] A second acquisition module 403 is used to write the first display data to be displayed into the buffer when the first display data to be displayed is acquired;

[0127] A first synchronization module 404, configured to synchronize the first display data in the buffer to the display area;

[0128] The first display module 405 is used to display the first display data in the display area.

[0129] In one embodiment, the configuration module 402 includes:

[0130] A first determination submodule, used to determine the number of display bits and the number of buffer bits of the register of the display screen according to the number of the common electrodes;

[0131] A first configuration submodule, configured to configure a display area of ​​the register according to the number of display bits;

[0132] The second configuration submodule is used to configure the buffer area of ​​the register according to the number of the buffer bits and the display area.

[0133] In one embodiment, the second acquisition module 403 includes:

[0134] an acquisition submodule, for determining whether the state of the register is a write protection state when the first display data to be displayed is acquired;

[0135] The writing submodule is used for writing the first display data into the buffer and setting the state of the register to the write protection state when the state of the register is not the write protection state.

[0136] In one embodiment, the first synchronization module 404 includes:

[0137] The synchronization submodule is used for synchronizing the first display data in the buffer to the display area and canceling the write protection state of the register when the state of the register is the write protection state.

[0138] In one embodiment, the device further comprises:

[0139] A third acquisition module is used to determine whether the control instruction is to disable the display screen when the control instruction is acquired;

[0140] A first disabling module, configured to disable the display screen when the control instruction is to disable the display screen;

[0141] A first judgment module, configured to judge whether the state of the register is a write protection state when the control instruction is not to disable the display screen;

[0142] A first writing module, used for writing the second display data in the control instruction into the buffer of the register and setting the state of the register to the write protection state when the state of the register is not the write protection state;

[0143] a second synchronization module, configured to synchronize the second display data in the buffer of the register to the display area of ​​the register and cancel the write protection state of the register when the state of the register is the write protection state;

[0144] The second display module is used to display the second display data in the display area.

[0145] In one embodiment, the acquisition submodule includes:

[0146] an acquiring unit, configured to acquire a state value corresponding to the state of the register when acquiring first display data to be displayed;

[0147] A first determining unit, configured to determine that the state of the register is a write protection state when the state value is the first preset value;

[0148] The second determining unit is configured to determine that the state of the register is not the write protection state when the state value is the second preset value.

[0149] In one embodiment, the writing submodule includes:

[0150] A writing unit is used to write the first display data into the buffer and modify the state value to the first preset value when the state of the register is not a write protection state.

[0151] In one embodiment, the device further comprises:

[0152] A second writing module, configured to write the first display data into the register when the number of the common electrodes is greater than a preset number;

[0153] A third display module is used to display the first display data in the register.

[0154] In one embodiment, the device further comprises:

[0155] A second judgment module is used to judge whether the control instruction is to disable the display screen when the control instruction is obtained;

[0156] A second disabling module, configured to disable the display screen when the control instruction is to disable the display screen;

[0157] A third writing module, configured to write the second display data in the control instruction into the register when the control instruction is not to disable the display screen;

[0158] A fourth display module is used to display the second display data in the register.

[0159] In an embodiment of the present invention, the first acquisition module is used to acquire the number of common electrodes of the display screen; the configuration module is used to configure the buffer and display area in the register of the display screen according to the number of common electrodes when the number of common electrodes is less than or equal to the preset number; the number of bits in the buffer and the number of bits in the display area correspond to the number of common electrodes; the second acquisition module is used to write the first display data to be displayed into the buffer when the first display data to be displayed is acquired; the first synchronization module is used to synchronize the first display data in the buffer to the display area; the first display module is used to display the first display data in the display area. Therefore, when the number of common electrodes of the display screen is less than or equal to the preset number, the register of the display screen is configured to configure the buffer and the display area, and the first display data is buffered and synchronized through the setting of the buffer and the display area, thereby ensuring the integrity of the display data and avoiding the phenomenon of the display screen being stuck.

[0160] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0161] An embodiment of the present invention further provides a display screen, which is used to execute the display control method of the display screen as described above.

[0162] An embodiment of the present invention further provides an electronic device, including:

[0163] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the various processes of the display control method embodiment of the above-mentioned display screen are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0164] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the display control method embodiment of the above-mentioned display screen are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0165] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0166] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of 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 codes.

[0167] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the 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 the 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 processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal 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.

[0168] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including 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.

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

[0170] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional 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 embodiments of the present invention.

[0171] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0172] The display control method of a display screen, a display control device of a display screen, a display screen, an electronic device and a computer-readable storage medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technicians in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A display control method for a display screen, characterized in that: The method comprises: Obtaining the number of common electrodes of the display screen; When the number of the common electrodes is less than or equal to a preset number, a buffer area and a display area in a register of the display screen are configured according to the number of the common electrodes; the number of bits in the buffer area and the number of bits in the display area correspond to the number of the common electrodes; When first display data to be displayed is acquired, writing the first display data into the buffer; Synchronizing the first display data in the buffer to the display area; The first display data in the display area is displayed.

2. The display control method of a display screen according to claim 1, characterized in that: The step of configuring the buffer area and the display area in the register of the display screen according to the number of the common electrodes comprises: Determining the number of display bits and the number of buffer bits of the register of the display screen according to the number of the common electrodes; According to the number of display bits, configuring the display area of ​​the register; The buffer area of ​​the register is configured according to the number of the buffer bits and the display area.

3. The display control method of a display screen according to claim 1, characterized in that: When the first display data to be displayed is acquired, writing the first display data into the buffer includes: When the first display data to be displayed is obtained, determining whether the state of the register is a write protection state; When the state of the register is not in the write protection state, the first display data is written into the buffer, and the state of the register is set to the write protection state.

4. The display control method of a display screen according to claim 3, characterized in that: The step of synchronizing the first display data in the buffer to the display area includes: When the state of the register is the write protection state, the first display data in the buffer is synchronized to the display area, and the write protection state of the register is cancelled.

5. The display control method of a display screen according to claim 1, characterized in that: After processing the first display data in the display area, the method further includes: When a control instruction is obtained, determining whether the control instruction is to disable the display screen; When the control instruction is to disable the display screen, the display screen is disabled; When the control instruction is not to disable the display screen, determining whether the state of the register is a write protection state; When the state of the register is not the write protection state, writing the second display data in the control instruction into the buffer of the register, and setting the state of the register to the write protection state; When the state of the register is the write protection state, synchronizing the second display data in the buffer area of ​​the register to the display area of ​​the register, and canceling the write protection state of the register; The second display data in the display area is displayed.

6. The display control method of a display screen according to claim 3, characterized in that: When the first display data to be displayed is acquired, determining whether the state of the register is a write protection state includes: When the first display data to be displayed is obtained, a state value corresponding to the state of the register is obtained; When the state value is the first preset value, determining that the state of the register is a write protection state; When the state value is the second preset value, it is determined that the state of the register is not the write protection state.

7. The display control method of a display screen according to claim 6, characterized in that: When the state of the register is not in the write protection state, writing the first display data into the buffer and setting the state of the register to the write protection state comprises: When the state of the register is not a write protection state, the first display data is written into the buffer, and the state value is modified to the first preset value.

8. The display control method of a display screen according to claim 1, characterized in that: The method further comprises: When the number of the common electrodes is greater than a preset number, writing the first display data into the register; The first display data in the register is displayed.

9. The display control method of a display screen according to claim 8, characterized in that: After displaying the first display data in the register, the method further includes: When a control instruction is obtained, determining whether the control instruction is to disable the display screen; When the control instruction is to disable the display screen, the display screen is disabled; When the control instruction is not to disable the display screen, writing the second display data in the control instruction into the register; The second display data in the register is displayed.

10. A display control device for a display screen, characterized in that: The device comprises: A first acquisition module, used to acquire the number of common electrodes of the display screen; A configuration module, configured to configure a buffer and a display area in a register of the display screen according to the number of common electrodes when the number of common electrodes is less than or equal to a preset number; the number of bits in the buffer and the number of bits in the display area correspond to the number of common electrodes; A second acquisition module, configured to write the first display data to be displayed into the buffer when the first display data to be displayed is acquired; A first synchronization module, used for synchronizing the first display data in the buffer to the display area; The first display module is used to display the first display data in the display area.

11. A display screen, characterized in that: The display screen is used to execute the display control method of the display screen as described in any one of claims 1-9.

12. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the display control method of a display screen as described in any one of claims 1 to 9 are implemented.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the display control method of a display screen according to any one of claims 1 to 9 are implemented.