A method, apparatus and storage medium for adjusting liquid crystal driving
By connecting the drive controller to an external clock input port, the PWM signal frequency is adjusted according to the preset refresh frequency of the LCD, which solves the problem of the LCD screen refresh rate being unable to be adjusted, and improves the clarity and reliability of the LCD display.
Patent Information
- Application Number
- CN202210340941.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-24
- Publication Date
- 2026-01-16
- Estimated Expiration
- 2042-03-24
AI Technical Summary
Existing technology cannot adjust the refresh rate for different LCD screens, resulting in a decline in screen performance and reliability, especially since VA screens cannot meet the requirements for higher refresh rates.
The output port of the drive controller is electrically connected to the external clock input port. The frequency of the PWM signal is determined according to the preset refresh frequency of the LCD. The PWM register parameters are configured, the PWM signal is generated, and the signal is output through the output port. The frequency of the PWM signal is processed by the external clock input port to adjust the refresh frequency of the LCD.
It enables arbitrary adjustment of the LCD refresh rate, improving screen display clarity, LCD performance and reliability, and reducing circuit costs.
Smart Images

Figure CN116844496B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of liquid crystal driving, and in particular, to a method and device for adjusting liquid crystal driving and a storage medium. BACKGROUND
[0002] With the development of intelligent household appliances, LCD screens are often provided in many small household appliances to realize more functions of the small household appliances and improve user experience. The LCD screen usually needs a refresh frequency and refreshes the displayed picture according to the refresh frequency. Whether the refresh frequency is appropriate directly affects the display effect of the LCD screen.
[0003] In the current conventional technology, the controller generally refreshes the LCD screen according to a fixed refresh frequency, such as 64HZ. The refresh frequency of 64HZ can meet the requirements of ordinary segment display screens, but cannot meet the requirements of VA screens that need a higher refresh frequency. Therefore, the prior art cannot adjust the refresh frequency according to different LCD screens, resulting in a decrease in the performance and reliability of the screen. SUMMARY
[0004] The present application at least partially solves one of the above technical problems, and provides a method and device for adjusting liquid crystal driving and a storage medium, which can adjust the refresh frequency of the liquid crystal and improve the performance and reliability of the liquid crystal.
[0005] In a first aspect, the present application provides a method for adjusting liquid crystal driving, applied to a driving controller. The output port of the driving controller is electrically connected to the external clock input port of the driving controller. The method comprises the following steps:
[0006] determining the frequency of a PWM signal according to the preset refresh frequency of the liquid crystal;
[0007] configuring the parameters of the PWM register of the driving controller according to the frequency of the PWM signal;
[0008] generating the PWM signal based on the parameters of the PWM register;
[0009] outputting the PWM signal through the output port of the driving controller when the output port of the driving controller is enabled;
[0010] adjusting the refresh frequency of the liquid crystal according to the frequency of the PWM signal based on the external clock input port.
[0011] In some embodiments, the step of configuring the parameters of the PWM register of the driving controller according to the frequency of the PWM signal comprises the following steps:
[0012] configuring the PWM unit to an independent working mode, and setting a clock of the PWM unit, wherein the PWM unit is a module used by the drive controller to generate the PWM signal;
[0013] determining a period of the PWM signal based on a frequency of the PWM signal;
[0014] calculating and configuring a period setting register parameter of the PWM unit by the following formula:
[0015] Tpwm = (PWMPD[11:0] + 1) / PWM 时钟频率 ;
[0016] wherein Tpwm is the period of the PWM signal, PWMPD[11:0] is the period setting register parameter of the PWM unit, and PWM 时钟频率 is the clock frequency of the PWM unit.
[0017] In some embodiments, the clock of the PWM register is a system clock.
[0018] In some embodiments, the determining the frequency of the PWM signal according to the preset refresh frequency of the liquid crystal adjusts the refresh frequency of the liquid crystal according to the frequency of the PWM signal, comprising:
[0019] determining a clock frequency corresponding to the preset refresh frequency of the liquid crystal according to the preset refresh frequency of the liquid crystal;
[0020] determining the frequency of the PWM signal according to the clock frequency corresponding to the preset refresh frequency.
[0021] In some embodiments, when the preset refresh frequency of the liquid crystal is greater than a preset frequency threshold, the output port of the drive controller is a PWM port.
[0022] In some embodiments, when the preset refresh frequency of the liquid crystal is less than or equal to the preset frequency threshold, the output port of the drive controller is the PWM port or a general input and output port.
[0023] In a second aspect, an embodiment of the present application provides a drive controller, an output port of the drive controller is electrically connected to an external clock input port of the drive controller, and
[0024] the drive controller comprises at least one processor and a memory in communication connection with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for adjusting liquid crystal drive as described above.
[0025] In a third aspect, an embodiment of the present application provides a device for adjusting liquid crystal driving, the device for adjusting liquid crystal driving comprising the drive controller as described above, and the drive controller being configured to adjust a refresh frequency of the liquid crystal driving.
[0026] In a fourth aspect, an embodiment of the present application provides a liquid crystal display device, comprising a liquid crystal display module and the device for adjusting liquid crystal driving as described above, and the device for adjusting liquid crystal driving being electrically connected to the liquid crystal display module.
[0027] In a fifth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium storing computer-executable instructions for causing a device for adjusting liquid crystal driving to perform the method for adjusting liquid crystal driving as described above.
[0028] Compared with the prior art, the present application has at least the following beneficial effects: in the method for adjusting liquid crystal driving in the present application, first, the frequency of the PWM signal is determined according to the preset refresh frequency of the liquid crystal, then the PWM register parameters of the drive controller are configured according to the frequency of the PWM signal, so that the drive controller generates the corresponding PWM signal based on the PWM register parameters, and then the PWM signal is output through the output port of the drive controller when the output port of the drive controller is enabled, since the output port of the drive controller is electrically connected to the external clock input port of the drive controller, the PWM signal acts on the external clock input port, finally, the drive controller processes the frequency of the PWM signal based on the external clock input port, and then adjusts the refresh frequency of the liquid crystal according to the frequency of the processed PWM signal. Therefore, the method can arbitrarily adjust the refresh frequency of the liquid crystal to make it reach the preset refresh frequency, thereby making the screen display clearer, and thereby improving the performance and working reliability of the liquid crystal. BRIEF DESCRIPTION OF DRAWINGS
[0029] One or more embodiments are illustrated by way of example in the drawings in which like reference numerals indicate like elements, and in which:
[0030] Figure 1 is a structural schematic diagram of a liquid crystal display device provided by an embodiment of the present application;
[0031] Figure 2 is a structural schematic diagram of a drive controller provided by an embodiment of the present application;
[0032] Figure 3 is a flowchart of a method for adjusting liquid crystal driving provided by an embodiment of the present application;
[0033] Figure 4 is a structure diagram of an adjusting device for liquid crystal driving provided by an embodiment of the present application. Figure 3 a flowchart of step S20 in the method;
[0034] Figure 5 is a structure diagram of an adjusting device for liquid crystal driving provided by an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and should not be used to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0036] It should be noted that the various features in the embodiments of the present application can be combined with each other without conflict, and all fall within the scope of protection of the present application. In addition, although the functional modules are divided in the device schematic diagram, and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from the module division in the device or the order in the flowchart. Furthermore, the "first", "second", "third" and the like used in the present application do not limit the data and execution order, but only distinguish the same items or similar items with basically the same function and effect.
[0037] Generally, the liquid crystal display module is controlled by a driving controller and a driver to display an image, wherein the driver is electrically connected to the liquid crystal display module and the driving controller, and the driving controller is used to control the driver to output a scanning signal and an image signal to the liquid crystal display module, so that the liquid crystal display module displays a corresponding image. The driving controller stores a set refresh frequency of the liquid crystal display module, and the liquid crystal display module refreshes the picture according to the set refresh frequency.
[0038] If the refresh frequency is too low, the picture will appear gray shadow and flicker, and the service life of the liquid crystal display module will be affected. If the refresh frequency is too high, it will exceed the specified frequency of the liquid crystal display module, affect the activity of the liquid crystal molecules, and accelerate the shortening of the service life of the liquid crystal. Therefore, it is necessary to set a suitable refresh frequency for the liquid crystal display module, so that the liquid crystal display module can better display the picture.
[0039] The current drive controller sets the refresh frequency of the liquid crystal display module according to a fixed frequency, such as 64HZ. For a common segment display screen, the refresh frequency of 64HZ can meet the requirements, but for a VA screen, a higher refresh frequency is required, and the refresh frequency of 64HZ cannot meet the requirements. Therefore, most of the current drive controllers cannot adjust the corresponding refresh frequency according to different liquid crystal display modules, so as to meet the display requirements of the liquid crystal display module.
[0040] Based on the above considerations, the present application provides a method for adjusting liquid crystal driving, applied to a drive controller, wherein the output port of the drive controller is electrically connected with the external clock input port of the drive controller. The method for adjusting liquid crystal driving first determines the frequency of the PWM (pulse width modulation) signal according to the preset refresh frequency of the liquid crystal, then configures the parameters of the PWM register of the drive controller according to the frequency of the PWM signal, so that the drive controller generates the corresponding PWM signal based on the parameters of the PWM register, and then outputs the PWM signal through the output port of the drive controller when the output port of the drive controller is enabled. Since the output port of the drive controller is electrically connected with the external clock input port of the drive controller, the PWM signal acts on the external clock input port. Finally, the drive controller processes the frequency of the PWM signal based on the external clock input port, and then obtains the refresh frequency of the liquid crystal according to the frequency of the processed PWM signal.
[0041] The preset refresh frequency is a set refresh frequency, which can be set according to different liquid crystal screens. Different liquid crystal screens have different set refresh frequencies. Preferably, the preset refresh frequency is the optimal refresh frequency of the liquid crystal display picture.
[0042] The drive controller processes the frequency of the PWM signal through the external clock input port, and the driver obtains the actual refresh frequency of the liquid crystal through the internal hardware circuit.
[0043] Therefore, the method can arbitrarily adjust the refresh frequency of the liquid crystal to reach the preset refresh frequency, so as to make the screen display clearer, and further improve the performance and working reliability of the liquid crystal.
[0044] Please refer to Figure 1 , Figure 1 is a structural schematic diagram of a liquid crystal display device provided by an embodiment of the present application, as Figure 1 shown, the liquid crystal display device 100 includes a liquid crystal display module 10 and a device 20 for adjusting liquid crystal driving, wherein the liquid crystal display module 10 is electrically connected with the device 20 for adjusting liquid crystal driving, and the device 20 for adjusting liquid crystal driving is used to adjust the refresh frequency of the liquid crystal display module 10, so as to realize the function of adjusting the refresh frequency of the liquid crystal display module 10.
[0045] The adjusting liquid crystal driving apparatus 20 of the embodiments of the present application can be configured in any suitable shape and placed in various liquid crystal display devices. The liquid crystal display device of the embodiments of the present application can be any electronic product with the liquid crystal display module 10, such as a television, a desktop computer, a laptop computer, a personal digital assistant (PDA), a portable phone, and various office automation and audio-visual equipment, and can also be any household appliance with the liquid crystal display module 10, such as a rice cooker, a washing machine, a robot vacuum cleaner, and the like. The liquid crystal display module 10 can be any type of LCD screen to display corresponding content as required by the liquid crystal display device.
[0046] In some embodiments, the adjusting liquid crystal driving apparatus 20 includes a drive controller 21, and an output port of the drive controller 21 is electrically connected to an external clock input port of the drive controller 21.
[0047] Please refer to Figure 2 The drive controller 21 includes at least one processor 211 (for example, a processor) and a memory 212 that are communicatively connected through a system bus or other means. Figure 2 The drive controller 21 can exist in the form of a chip.
[0048] The memory 212 stores instructions executable by the at least one processor 211, and the processor 211 is configured to provide computing and control capabilities to control the adjusting liquid crystal driving apparatus 20 to execute related commands, for example, to control the adjusting liquid crystal driving apparatus 20 to execute any one of the adjusting liquid crystal driving methods provided in the embodiments of the present application.
[0049] The memory 212, as a non-transitory computer readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules of the adjusting liquid crystal driving method provided in the embodiments of the present application. The processor 211 can implement the adjusting liquid crystal driving method in any one of the method embodiments by running the non-transitory software programs, instructions and modules stored in the memory 212. Specifically, the memory 212 can include a high-speed random access memory, and can also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state memory device. In some embodiments, the memory 212 can also include a memory remotely arranged with respect to the processor 211, and these remote memories can be connected to the processor 211 through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0050] Therefore, the liquid crystal display device of the embodiment of the present application can adjust the refresh frequency of the liquid crystal display module 10 by adjusting the liquid crystal driving device 20, thereby improving the performance and working reliability of the liquid crystal display module 10.
[0051] In addition, the output port of the driving controller 21 in the liquid crystal driving device 20 is connected with the external clock input port, so that the external crystal oscillator is not needed to generate the clock, thereby saving the external crystal oscillator and further reducing the circuit cost while improving the performance of the liquid crystal display module 10.
[0052] The embodiment of the present application provides a method for adjusting liquid crystal driving, please refer to Figure 3 , Figure 3 The flowchart of the method for adjusting liquid crystal driving provided by the embodiment of the present application is shown in the figure, and the method S100 includes but is not limited to the following steps:
[0053] S10: determining the frequency of the PWM signal according to the preset refresh frequency of the liquid crystal;
[0054] The preset refresh frequency is the set refresh frequency, which can be set according to different liquid crystal screens, and the set refresh frequencies of different liquid crystal screens can be different. Preferably, the preset refresh frequency is the optimal refresh frequency of the liquid crystal display picture.
[0055] The frequency of the PWM signal is determined according to the preset refresh frequency. Generally, the frequency of the PWM signal is the corresponding clock frequency of the preset refresh frequency of the liquid crystal, for example: generally, the liquid crystal driver obtains the refresh frequency of 64 Hz through the external crystal oscillator of 32.768 KHZ, and the corresponding external crystal oscillator is 32.768 KHZ. Now the refresh frequency of the liquid crystal is obtained through the PWM signal, so the frequency of the PWM signal is also 32.768 KHZ, and then if the preset refresh frequency is 128 Hz, the frequency of the PWM signal is about 65.57 KHZ.
[0056] That is, the corresponding clock frequency of the preset refresh frequency of the liquid crystal is determined, and then the frequency of the PWM signal is determined according to the corresponding clock frequency of the preset refresh frequency. Specifically, the clock frequency corresponding to the preset refresh frequency can be used as the frequency of the PWM signal. After determining the frequency of the PWM signal, the corresponding PWM signal is generated subsequently.
[0057] S20: configuring the parameters of the PWM register of the driving controller according to the frequency of the PWM signal;
[0058] The drive controller can obtain the corresponding PWM signal by configuring the parameters of the PWM register. If the PWM signal of the frequency is needed, the corresponding parameters of the PWM register are deduced reversely. For example, the PWM enable register, the PWM clock selection register, the PWM pre-frequency division register, the PWM frequency division register, the PWM polarity selection register and the PWM control register are configured, and the parameters of each register are configured to set the PWM clock source, the PWM period, the PWM flip point, the specific output port of the PWM and the permission to start the PWM.
[0059] S30: generating the PWM signal based on the parameters of the PWM register;
[0060] S40: outputting the PWM signal through the output port of the drive controller when the output port of the drive controller is enabled;
[0061] The drive controller includes a plurality of output ports, which can be general input and output ports, and can also be special output ports, and the corresponding output port can be selected to work according to the need. Specifically, the drive controller determines the specific output port according to the frequency of the PWM signal, and enables the port to allow it to output the PWM signal.
[0062] Since the output port is electrically connected with the external clock input port, the PWM signal acts on the clock input port of the drive controller, so that the drive controller further processes the frequency of the PWM signal based on the clock input port.
[0063] S50: adjusting the refresh frequency of the liquid crystal based on the external clock input port and the frequency of the PWM signal.
[0064] The drive controller processes the frequency of the PWM signal based on the external clock input port. Generally, the frequency of the PWM signal is processed according to the relationship between the preset refresh frequency and the corresponding clock frequency to obtain the actual refresh frequency, and then the refresh frequency of the liquid crystal is adjusted according to the actual refresh frequency to reach the preset refresh frequency of the liquid crystal. For example, based on the external clock input port, the frequency of the PWM signal is doubled, and then the refresh frequency of the liquid crystal is adjusted according to the frequency of the doubled PWM signal to reach the preset refresh frequency of the liquid crystal.
[0065] In summary, the method for adjusting the liquid crystal driving first determines the frequency of the PWM signal according to the preset refresh frequency of the liquid crystal, then configures the PWM register parameter of the driving controller according to the frequency of the PWM signal, so that the driving controller generates the corresponding PWM signal based on the PWM register parameter, and then outputs the PWM signal through the output port of the driving controller when the output port of the driving controller is enabled. Since the output port of the driving controller is electrically connected with the external clock input port of the driving controller, the PWM signal acts on the external clock input port. Finally, the driving controller processes the frequency of the PWM signal based on the external clock input port, and then adjusts the refresh frequency of the liquid crystal according to the frequency of the processed PWM signal. Therefore, the method can arbitrarily adjust the refresh frequency of the liquid crystal to make it reach the preset refresh frequency, so as to make the screen display clearer, and thus improve the performance and working reliability of the liquid crystal.
[0066] In some embodiments, referring to Figure 4 , Figure 4 is a flowchart of step S20 provided by the embodiments of the present application, as shown in Figure 4 , step S20 includes:
[0067] S21: configure the PWM unit to an independent working mode, and set the clock of the PWM unit, wherein the PWM unit is a module of the driving controller for generating the PWM signal;
[0068] S22: determine the period of the PWM signal based on the frequency of the PWM signal;
[0069] S23: calculate and configure the parameter of the period setting register of the PWM unit by the following formula:
[0070] Tpwm=(PWMPD[11:0]+1) / PWM 时钟频率 ;
[0071] wherein Tpwm is the period of the PWM signal, PWMPD[11:0] is the parameter of the period setting register of the PWM unit, and PWM 时钟频率 is the clock frequency of the PWM unit.
[0072] Different driving controller chips may have different register types and parameter values. For example, if the driving controller is an SC95F815 chip and the frequency of the PWM signal is 65.57KHZ, first, PWMMD[1:0] is configured as 0x to configure the PWM unit to an independent working mode, and then PWMCLK[1:0] register is configured as 00 to set the clock frequency of the PWM unit as the system clock frequency f SYS , wherein the system clock frequency f SYSThe PWMCLK[1:0] register can be configured as 01, indicating that the clock frequency of the PWM unit is set to f SYS The system clock frequency f SYS The system clock frequency f HRC The system clock frequency f SYS The system clock frequency f HRC The system clock frequency f HRC The system clock frequency f HRC The system clock frequency f HRC The system clock frequency f SYS The system clock frequency f SYS The system clock frequency f
[0073] Then, according to the formula Tpwm=(PWMPD[11:0]+1) / PWM 时钟频率 , the parameter of the PWMPD[11:0] register is 487, and the value of the PWMPD[11:0] register is set to 487. The PWMPD[11:0] is the period setting register of the PWM unit, and its value represents the period of the PWM signal generated by the PWM unit. Finally, the ENPWM register is set to 1 to enable the corresponding output port to start the PWM unit and generate the corresponding PWM signal, and then output a 65.57K PWM signal at the output port of the drive controller.
[0074] Therefore, by configuring the corresponding parameters of the PWM register, a PWM signal with a corresponding frequency can be obtained for subsequent use and processing.
[0075] In some embodiments, after obtaining the PWM signal, the frequency of the PWM signal is processed based on the external clock input port to obtain the actual refresh frequency of the liquid crystal. Ideally, the actual refresh frequency of the liquid crystal is the same as the preset refresh frequency, and then the refresh frequency of the liquid crystal is adjusted according to the actual refresh frequency of the liquid crystal, so that the refresh frequency of the liquid crystal reaches the preset refresh frequency.
[0076] The output port of the drive controller includes multiple types of ports, such as a general input / output port and a PWM port, and the type of the output port outputting the PWM signal can be selected according to the size of the preset refresh frequency. Specifically, in some embodiments, when the preset refresh frequency of the liquid crystal is greater than a preset frequency threshold, if the general input / output port is used to output the PWM signal, the frequency of the PWM signal will be processed subsequently, and the interrupt will be frequently used, thereby affecting the running efficiency of the drive controller, and therefore the PWM port is used to output the PWM signal. In other embodiments, when the preset refresh frequency of the liquid crystal is less than or equal to the preset frequency threshold, the PWM port or the general input / output port is used to output the PWM signal.
[0077] In summary, the method can adjust the refresh frequency of the liquid crystal arbitrarily, so that the refresh frequency reaches the preset refresh frequency, the screen display is more clear, and the performance and working reliability of the liquid crystal are improved.
[0078] It should be noted that in the above various embodiments, there is no certain sequence between the above steps, and those skilled in the art can understand from the description of the embodiments of the present application that the above steps can have different execution sequences in different embodiments, that is, the above steps can be executed in parallel, can be exchanged, and the like.
[0079] As another aspect of the embodiments of the present application, the embodiments of the present application provide a device for adjusting liquid crystal driving. The device for adjusting liquid crystal driving can be a software module, and the software module includes a plurality of instructions stored in a memory in an electronic device, and a processor can access the memory and call the instructions to execute to complete the method for adjusting liquid crystal driving described in the above various embodiments.
[0080] In some embodiments, the device for adjusting liquid crystal driving can also be built by hardware devices, for example, the device for adjusting liquid crystal driving can be built by one or more chips, and each chip can work in coordination with each other to complete the method for adjusting liquid crystal driving described in the above various embodiments. For another example, the device for adjusting liquid crystal driving can also be built by various logic devices, such as a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine), or other programmable logic devices, discrete gates or transistor logic, discrete hardware components, or any combination of these components.
[0081] Please refer to Figure 5 , Figure 5The embodiment of the present application provides an adjusting liquid crystal driving device 500, which comprises a determining module 51, a configuring module 52, a generating module 53, an outputting module 54 and an adjusting module 55.
[0082] The determining module 51 is used for determining the frequency of a PWM signal according to a preset refresh frequency of a liquid crystal.
[0083] The configuring module 52 is used for configuring the parameters of a PWM register of the driving controller according to the frequency of the PWM signal.
[0084] The generating module 53 is used for generating the PWM signal based on the parameters of the PWM register.
[0085] The outputting module 54 is used for outputting the PWM signal through the output port of the driving controller when the output port of the driving controller is enabled.
[0086] The adjusting module 55 is used for adjusting the refresh frequency of the liquid crystal according to the frequency of the PWM signal based on the external clock input port.
[0087] Therefore, the adjusting liquid crystal driving device 500 can arbitrarily adjust the refresh frequency of the liquid crystal, so that the refresh frequency reaches the preset refresh frequency, and the screen display is clearer, and the performance and working reliability of the liquid crystal are improved.
[0088] In some embodiments, the determining module 51 is specifically used for determining the clock frequency corresponding to the preset refresh frequency according to the preset refresh frequency of the liquid crystal, and determining the frequency of the PWM signal according to the clock frequency corresponding to the preset refresh frequency.
[0089] In some embodiments, the configuring module 52 is specifically used for configuring a PWM unit as an independent working mode, and setting the clock of the PWM unit, wherein the PWM unit is a module used by the driving controller for generating the PWM signal.
[0090] The period of the PWM signal is determined based on the frequency of the PWM signal.
[0091] The parameters of a period setting register of the PWM unit are calculated and configured by the following formula:
[0092] Tpwm=(PWMPD[11:0]+1) / PWM 时钟频率 ;
[0093] Wherein, Tpwm is the period of the PWM signal, PWMPD[11:0] is the parameters of the period setting register of the PWM unit, PWM 时钟频率 is the clock frequency of the PWM unit.
[0094] In some embodiments, when the preset refresh frequency of the liquid crystal is greater than the preset frequency threshold, the output port of the drive controller is a PWM port.
[0095] In some embodiments, when the preset refresh frequency of the liquid crystal is less than or equal to the preset frequency threshold, the output port of the drive controller is the PWM port or a general input and output port.
[0096] It should be noted that, since the device 500 for adjusting liquid crystal driving and the method for adjusting liquid crystal driving in the above embodiments are based on the same inventive concept, the corresponding contents in the method embodiments are also applicable to the device embodiments, which will not be described in detail here.
[0097] The embodiments of the present application also provide a non-transitory computer readable storage medium storing computer executable instructions, which, when executed by one or more processors, such as a processor 211 in the electronic device 200, can enable the one or more processors to perform the method for adjusting liquid crystal driving in any of the above method embodiments. Figure 2
[0098] The embodiments of the present application also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, which, when executed by a drive controller, cause the drive controller to perform the method for adjusting liquid crystal driving of any of the above method embodiments.
[0099] In summary, the device for adjusting liquid crystal driving first determines the frequency of the PWM signal according to the preset refresh frequency of the liquid crystal, then configures the PWM register parameters of the drive controller according to the frequency of the PWM signal, so that the drive controller generates the corresponding PWM signal based on the PWM register parameters, and then outputs the PWM signal through the output port of the drive controller when the output port of the drive controller is enabled. Since the output port of the drive controller is electrically connected to the external clock input port of the drive controller, the PWM signal acts on the external clock input port. Finally, the drive controller processes the frequency of the PWM signal based on the external clock input port, and then adjusts the refresh frequency of the liquid crystal according to the frequency of the processed PWM signal. Therefore, the device can arbitrarily adjust the refresh frequency of the liquid crystal to make it reach the preset refresh frequency, thereby making the screen display clearer, and thereby improving the performance and working reliability of the liquid crystal.
[0100] The device or equipment embodiments described above are merely illustrative, wherein the unit modules described as separate components can or can not be physically separated, and the components shown as module units can or can not be physical units, i.e., can be located in one place or distributed on multiple network module units. Part or all of the modules can be selected according to actual needs to achieve the purposes of the embodiment solutions.
[0101] Through the above description of the embodiments, those skilled in the art can clearly understand that the embodiments can be implemented by means of software plus a general hardware platform, and of course, can also be implemented by hardware. Based on such understanding, the above technical solutions, essentially or in terms of related art, can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods of adjusting liquid crystal driving described in each embodiment or some parts of the embodiments.
[0102] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; under the idea of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes of different aspects of the present application as described above. In order to be brief, they are not provided in details; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method of adjusting liquid crystal driving, applied to a driving controller, characterized in that, The output port of the drive controller is electrically connected with an external clock input port of the drive controller, and the method comprises: determining the frequency of the PWM signal according to a preset refresh frequency of the liquid crystal; configuring parameters of a PWM register of the drive controller according to the frequency of the PWM signal; generating the PWM signal based on the parameters of the PWM register; outputting the PWM signal through the output port of the drive controller when the output port of the drive controller is enabled; adjusting the refresh frequency of the liquid crystal according to the frequency of the PWM signal based on the external clock input port; the determining the frequency of the PWM signal according to a preset refresh frequency of the liquid crystal comprises: determining a clock frequency corresponding to the preset refresh frequency of the liquid crystal according to the preset refresh frequency of the liquid crystal; determining the frequency of the PWM signal according to the clock frequency corresponding to the preset refresh frequency.
2. The method of adjusting liquid crystal driving according to claim 1, wherein, the configuring parameters of a PWM register of the drive controller according to the frequency of the PWM signal comprises: configuring a PWM unit as an independent working mode, and setting a clock of the PWM unit, wherein the PWM unit is a module of the drive controller for generating the PWM signal; determining a period of the PWM signal based on the frequency of the PWM signal; calculating and configuring parameters of a period setting register of the PWM unit through the following formula: Tpwm = (PWMPD[11:0] + 1) / PWM 时钟频率 ; wherein Tpwm is a period of the PWM signal, PWMPD[11:0] is a parameter of a period setting register of the PWM unit, PWM 时钟频率 is a clock frequency of the PWM unit.
3. The method of claim 2, wherein, the clock of the PWM unit is a system clock.
4. The method according to any one of claims 1 to 3, characterized in that, when the preset refresh frequency of the liquid crystal is greater than a preset frequency threshold, the output port of the drive controller is a PWM port.
5. The method of claim 4, wherein, when the preset refresh frequency of the liquid crystal is less than or equal to the preset frequency threshold, the output port of the drive controller is the PWM port or a general input and output port.
6. A drive controller characterized by comprising: the output port of the drive controller is electrically connected with an external clock input port of the drive controller, and the drive controller comprises at least one processor and a memory in communication connection with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for adjusting liquid crystal driving according to any one of claims 1-5.
7. A device for adjusting liquid crystal driving, characterized in that, the device for adjusting liquid crystal driving comprises the drive controller according to claim 6.
8. A liquid crystal display device, characterized by comprising: the liquid crystal display device comprises a liquid crystal display module and the device for adjusting liquid crystal driving according to claim 7, the device for adjusting liquid crystal driving is electrically connected with the liquid crystal display module, and the liquid crystal display module is used for displaying a picture.
9. A non-transitory computer readable storage medium storing computer executable instructions for causing a device for adjusting liquid crystal driving to execute the method for adjusting liquid crystal driving according to any one of claims 1-5.
Citation Information
Patent Citations
High resolution pulse width modulation (pwm) frequency control using tunable oscillator
CN102326456A
Apparatus and method for controlling inverter pulse width modulation frequency in LCD
CN1571007A