WO2017101273A1 - Lattice backlight source driving method, device and system - Google Patents
Lattice backlight source driving method, device and system Download PDFInfo
- Publication number
- WO2017101273A1 WO2017101273A1 PCT/CN2016/084824 CN2016084824W WO2017101273A1 WO 2017101273 A1 WO2017101273 A1 WO 2017101273A1 CN 2016084824 W CN2016084824 W CN 2016084824W WO 2017101273 A1 WO2017101273 A1 WO 2017101273A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- pwm data
- current
- driving
- dot matrix
- power
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
- G09G3/3406—Control of illumination source
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
- G09G3/36—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals
Definitions
- the present invention relates to the field of dot matrix backlight driving technology, and in particular, to a dot matrix backlight driving method, device and system.
- liquid crystal display has rapidly replaced the traditional cathode ray tube display technology in many fields, making LCD (Liquid Crystal Display) display screen become the leading product in the home appliance market.
- LCD Liquid Crystal Display
- LED dot matrix backlight has the advantages of good color reproduction, power saving and long life, and gradually replaces the traditional side-by-side or double-light strip-type side-entry light source.
- the whole machine screen of the TV set not only has high brightness but uniform light perception, and solves the traditional side-entry light source multiple times. Defects in light guiding, insufficient brightness, and uneven light perception.
- PWM Pulse-Width Modulation
- the existing method for adjusting the power of the backlight is mainly realized by adjusting the duty ratio of each LED lamp, and uniformly adjusting the current value of all the LED lamps in the backlight, or uniformly adjusting the LEDs by region by region division. The current value of the lamp is realized.
- the optimal brightness and image quality of the backlight can be achieved.
- the power is large, and the output power of the power source is required to be high, which wastes energy.
- the current of all the LEDs in the backlight can be adjusted to half of the rated current.
- the image quality effect is not bright enough, even if the duty ratio of the bright portion of the screen is 100% by adjusting the duty ratio of the LED lamp, it is limited by the same current value, the contrast is small, and the bright portion is dark and dark. Part of the picture difference is not strong, resulting in poor picture effect, and the current of the LED in the dark part is wasted.
- a method of driving a LED dot matrix light source is driven by a method of driving sixteen, that is, an integrated circuit (IC) is used to simultaneously control sixteen LED lights. Since the current values of the sixteen LED lamps controlled by the same driver IC are the same, only the local control of the backlight can be realized, and the image quality effect still cannot achieve the ideal viewing effect of the user.
- IC integrated circuit
- the main object of the present invention is to provide a dot matrix backlight driving method, device and system, which aim to solve the technical problem that the current dot matrix backlight causes high power consumption and waste of energy in order to ensure picture quality.
- the present invention provides a dot matrix backlight driving method, and the dot matrix backlight driving method includes the following steps:
- the LED lights are independently controlled according to the PWM data and the current parameters to drive the dot matrix backlight.
- the present invention further provides a dot matrix backlight driving device, and the dot matrix backlight driving device includes:
- the image processing module is configured to obtain a brightness value of each LED light according to the brightness signal in the input television signal, and calculate a pulse width modulation PWM of each LED light in the control dot matrix backlight according to the brightness value of each LED lamp. data;
- a driving management module configured to generate a statistical histogram according to the PWM data, and calculate a current parameter for controlling each LED light according to the statistical histogram calculation;
- a driving circuit module configured to independently control the LED lights according to the PWM data and the current parameter to drive the dot matrix backlight.
- the present invention further provides a dot matrix backlight driving system, which includes a television video image processing MEMC module, a light emitting diode LED lamp driving control management module, and an LED lamp driving circuit module. ,among them:
- the television video image processing MEMC module is configured to acquire, according to a brightness signal in the input television signal, a brightness value of each LED light, and calculate, according to the brightness value of each LED light, each LED light of the control dot matrix backlight.
- Pulse width modulation PWM data transmitting the PWM data to the LED lamp drive control management module;
- the LED lamp driving control management module is configured to receive the PWM data sent by the TV video image processing MEMC module; generate a statistical histogram according to the PWM data, and calculate the control according to the statistical histogram Current parameters of each LED lamp; transmitting the PWM data and the current parameter to the LED lamp driving circuit module.
- the LED lamp driving circuit module is configured to receive the PWM data and the current sent by the LED lamp driving control management module; independently control the LED lights according to the PWM data and the current parameter, and drive the driving The dot matrix backlight.
- a method, device and system for driving a dot matrix backlight according to an input television signal, calculating pulse width modulation PWM data of each LED light of a control dot matrix backlight; and then, according to PWM Data, make a statistical histogram, and calculate the current parameters of each LED light according to the statistical histogram calculation; then, independently control each LED light according to the PWM data and current parameters, and drive the dot matrix backlight.
- the invention realizes that the currents of all the LED lights in the dot matrix backlight are allocated as needed, and the overall display effect of the television picture is achieved while reducing the power consumption, thereby avoiding power loss and energy waste.
- FIG. 1 is a schematic flow chart of a first embodiment of a method for driving a dot matrix backlight according to the present invention
- FIG. 2 is a schematic diagram of a circuit of a dot matrix backlight LED driving IC according to an embodiment of the invention
- FIG. 3 is a schematic diagram of a statistical histogram and a current line according to an embodiment of the present invention.
- FIG. 4 is a schematic diagram of functional modules of a first embodiment of a dot matrix backlight driving device according to the present invention.
- FIG. 5 is a schematic block diagram of a first embodiment of a dot matrix backlight source driving system according to the present invention.
- FIG. 6 is a schematic block diagram of a second embodiment of a dot matrix backlight driving system of the present invention.
- the main solution of the embodiment of the present invention is: calculating pulse width modulation PWM data of each LED light of the LED in the control dot matrix backlight according to the input television signal; and generating a statistical histogram according to the PWM data, and according to the PWM data
- the statistical histogram calculation obtains current parameters for controlling the LED lights; independently controls the LED lights according to the PWM data and the current parameters to drive the dot matrix backlight.
- the invention provides a solution for separately performing PWM control and current control on each LED lamp in the dot back backlight, and distributing current according to the actual content of the television picture, and utilizing the LED light source and the power source with maximum efficiency. It realizes the reduction of the power consumption of the dot back backlight while ensuring the TV picture effect.
- a first embodiment of a dot matrix backlight driving method of the present invention provides a dot matrix backlight driving method, and the dot matrix backlight driving method includes:
- Step S10 Calculate pulse width modulation PWM data of each LED of the LED in the control dot matrix backlight according to the input television signal.
- the embodiment of the invention is mainly applied to the driving of the dot matrix backlight, and the power required for the power supply is reduced. At the same time, the quality of the displayed picture is guaranteed.
- the embodiment can be applied to an LED (Light Emitting Diode) LED (Light Emitting Diode) LED dot matrix backlight driving, and can also be used for dot matrix backlight driving of other displays.
- the dot matrix backlight driving method proposed by the invention can ensure that the screen brightness of the television meets the requirement of high image quality, and is not significantly affected by the drastic reduction of the power supply.
- the invention not only meets the requirements of energy saving and environmental protection, but also ensures that the brightness of the screen of the television reaches the best quality, that is, the embodiment of the invention can greatly improve the picture quality under the same power output power configuration.
- This embodiment is illustrated by an LED dot matrix backlight power supply of a television set.
- the television video processor front end that is, the video processing image processing MEMC (Motion Estimate and Motion Compensation) module of the central processing unit CPU dynamically acquires the television.
- the TV signal of each frame of the TV screen input by the signal source.
- the TV video image processing MEMC module divides the television picture in the frame buffer into picture blocks corresponding to the number of LED lights in the LED dot matrix light source according to the number of LED dot matrix light sources.
- the luminance value of each picture block is obtained.
- the brightness of each picture block is counted, and a luminance histogram is generated, and the average brightness of each picture block is calculated according to the brightness histogram, and the obtained average brightness is used as the brightness of the LED light corresponding to each picture block. value.
- PWM Pulse-Width Modulation
- the TV video image processing MEMC module outputs the obtained PWM data to the driving board of the LED dot matrix light source for controlling the brightness of the corresponding LED lamp.
- the data sending module is started immediately.
- the data to be sent is encoded and packaged, and then the data is sent to the LED dot matrix through the SPI (Serial Peripheral Interface) bus.
- the drive board of the light source is started immediately.
- the driving board of the LED dot matrix light source obtains PWM data for controlling each LED lamp.
- the obtained PWM data is a duty ratio.
- the on-time of the LED lamp power supply circuit is defined, and the ratio of the on-time and the off-time is called the duty ratio, for example, 80%, 60%, and the like.
- the on-time of the power supply circuit of each LED lamp can be independently controlled according to the duty ratio of each LED lamp, and local backlight adjustment can be performed.
- Step S20 Create a statistical histogram according to the PWM data, and calculate a current parameter for controlling each LED lamp according to the statistical histogram.
- the driver board of the LED dot matrix light source is managed by the LED lamp drive control management module.
- the LED lamp drive control management module includes an SPI receive data buffer, an SPI bus data receiving unit, a PWM data conversion calculation processing unit, a central CPU processing unit, an SPI transmit data buffer, and an SPI bus data transmitting unit.
- the central CPU processing unit on the LED dot matrix light source driving board controls the SPI bus data receiving unit to receive the data sent from the upper computer, and after data analysis, obtains the PWM data of each LED lamp sorted by the order. The resulting PWM data is then stored in the SPI receive data buffer.
- the LED lamp driving control management module After obtaining the PWM data of each LED lamp in the dot matrix backlight power supply, the LED lamp driving control management module generates a statistical histogram according to the obtained PWM data, and calculates a control dot matrix backlight source. The current parameter of each LED lamp.
- the central CPU processing unit of the LED lamp driving control management module inputs the PWM data to the PWM data conversion calculation processing unit, and the PWM data conversion calculation processing unit converts and calculates the driving current parameter of each LED lamp according to the obtained PWM data.
- the PWM data conversion calculation processing unit calculates the average current value of the LED lamp in the dot matrix backlight according to the preset total power of the dot matrix backlight, and the rated power supply voltage and the PWM data, and the average current is obtained. The value is taken as the initial current value of each LED lamp. Then, the PWM data conversion calculation processing unit creates a statistical histogram based on the obtained PWM data.
- the maximum value and the minimum value in the PWM data calculate the interval value of the PWM data; then, obtain the number of PWM data groups according to the preset group distance and the interval value of the PWM data, complete the grouping of the PWM data; or according to the pre- Set the number of groups and the interval value of the PWM data to obtain the group distance of the PWM data, and complete the grouping of the PWM data; then, the value of the PWM data, that is, the duty ratio as the abscissa, the number of occurrences of the PWM data, that is, the LED The number of lamps is plotted on the ordinate to obtain a statistical histogram.
- the statistical histogram includes a histogram of each PWM data set, and each histogram contains the number of occurrences of the PWM data and the corresponding PWM value in the current PWM data set.
- the statistical histogram includes a histogram of each PWM data set, and each histogram represents the numerical range and number of occurrences of the PWM data in the current PWM data set. Then, in the statistical histogram, a current straight line is made based on the average current value. Each PWM data corresponds to a current parameter in the current line. Then, according to the preset rule, the center balance point of the statistical histogram is selected in the current straight line.
- the current line is rotated counterclockwise in a single step, so that the LED lamp with a larger PWM value obtains a larger current value, and the LED lamp with a smaller PWM value obtains a smaller current value to enhance the picture.
- the PWM data conversion calculation processing unit calculates the current parameters corresponding to the respective PWM data according to the current straight line after each single-step rotation, thereby obtaining current parameters of the respective LED lamps. Then, based on the obtained current parameters of the LED lamps, the power consumed when controlling all the LED lamps in the dot matrix backlight is calculated. When the consumed power satisfies the total power of the pre-configured dot matrix backlight, the rotation current straight line is stopped, and each current parameter corresponding to the current straight line at this time is used as a current parameter for controlling each LED light in the dot matrix backlight. It should be noted that when the rotation current is straight, the step size per rotation is a preset threshold, which can be flexibly set according to actual needs.
- the threshold of the rotation step can be set larger; if the control current is not required to rotate linearly Speed, for precise control, the threshold of the rotation step can be set smaller.
- the PWM data conversion calculation processing unit obtains current parameters for each LED lamp in the control dot matrix backlight.
- the obtained current parameter is the current value.
- the PWM data conversion calculation processing unit stores the current parameters of each of the LED lamps in the SPI transmission data buffer.
- the central CPU processing unit controls the SPI bus data transmitting unit to transmit the stored PWM data and current parameters to the driving circuit module of each LED lamp.
- all the PWM data is sent to the PWM data conversion calculation processing unit by acquiring the PWM data of the display picture of each frame, and the PWM data conversion calculation processing unit is calculated according to the PWM data according to the dot matrix backlight driving method provided by the present invention.
- the central CPU processing unit outputs the LED light of the PWM data conversion module.
- the current data is refreshed to the corresponding current control circuit of each LED lamp through the SPI bus to control the current value of each LED lamp.
- the central CPU processing unit refreshes the PWM data to the corresponding PWM switching circuit of each LED lamp through the SPI bus, and accurately writes the PWM data to the driving PWM register of each LED lamp according to the address mapping table of the LED lamp for adjusting
- the circuit switching time of each LED lamp is such that the PWM pulse width duty ratio and the on current of each LED lamp can be freely set.
- Step S30 independently controlling the LED lights according to the PWM data and the current parameter to drive the dot matrix backlight.
- the driving circuit module of the LED lamp receives the PWM data and current parameters of each LED lamp in the dot matrix backlight, independently controls each LED lamp, and drives the dot matrix backlight.
- each LED light in the dot matrix backlight is configured with an independent PWM switching circuit and a current control circuit.
- an internal design of an integrated circuit (IC) can be adopted.
- the driving circuit module of the LED lamp performs PWM control on each LED lamp through the PWM switching circuit of each LED lamp according to the acquired PWM data of each LED lamp, and controls the pulse width duty ratio of each LED lamp.
- the driving circuit module of the LED lamp performs current control on each LED lamp through the current control circuit of each LED lamp according to the obtained current parameters of each LED lamp.
- the driving circuit module of the LED lamp realizes driving of the dot matrix backlight and displays the current television picture.
- each frame of the television is acquired in real time, and dynamic data analysis and calculation are performed in real time, thereby ensuring continuity and high image quality of the television picture.
- the current parameters of the LED lights corresponding to the PWM data are adjusted, and the currents of all the LED lights in the dot matrix backlight are allocated as needed, and the power consumption is guaranteed.
- the TV screen as a whole can achieve the best display effect, avoiding power loss and energy waste.
- a second embodiment of the dot matrix backlight driving method of the present invention provides a dot matrix backlight driving method.
- the PWM data corresponds to the dot matrix.
- Each PWM data of each LED light in the backlight, the step S20 includes:
- Step S21 Calculate an average current of each LED lamp in the dot matrix backlight according to the PWM data and the pre-configured dot matrix backlight total power and rated voltage.
- the central CPU processing unit of the LED lamp driving control management module After acquiring the PWM data of each LED lamp in the dot matrix backlight power supply, the central CPU processing unit of the LED lamp driving control management module inputs the PWM data to the PWM data conversion calculation processing unit, and the PWM data conversion calculation processing unit according to the obtained PWM data. The conversion calculates the drive current parameters for each LED lamp.
- the PWM data conversion calculation processing unit calculates the average current value of the LED lamp in the dot matrix backlight according to the pre-configured total dot matrix backlight power, the rated power supply voltage, and the PWM data, and uses the average current value as The initial current value of each LED lamp.
- the average value of the PWM data is calculated based on the PWM data.
- the PWM values of each LED lamp are PWM1, PWM2, PWM3, ... PWMn.
- the maximum allowable average current value of the current dot matrix backlight is calculated.
- the average value of PWM data is PWM avg
- Step S22 Create a statistical histogram according to each PWM data corresponding to each LED lamp in the dot matrix backlight.
- the PWM data conversion calculation processing unit creates a statistical histogram based on the obtained PWM data.
- the maximum value PWMmax and the minimum value PWMmin in the PWM data are acquired, and the interval value of the PWM data is calculated.
- the interval value can be obtained according to the formula PWMmax-PWMmin.
- the number of PWM data is obtained, and the grouping of the PWM data is completed; or the group distance of the PWM data is obtained according to the preset number of groups and the interval value of the PWM data, and the pair is completed.
- Grouping of PWM data is created by taking the value of the PWM data, that is, the duty ratio as the abscissa, and the number of occurrences of the PWM data, that is, the number of LED lamps as the ordinate.
- the statistical histogram includes a histogram of each PWM data set, and each histogram represents the numerical range and number of occurrences of the PWM data in the current PWM data set.
- Step S23 according to the average current, a current straight line is formed in the statistical histogram, and each PWM data in the statistical histogram corresponds to a current parameter on the current straight line.
- a current straight line is created based on the average current value.
- Each PWM data corresponds to a current parameter in the current line.
- the virtual coordinate axis is obtained by using the current value corresponding to the PWM value as the virtual ordinate according to the abscissa indicating the PWM value. Then, with the average current value as the ordinate value, the maximum value PWMmax and the minimum value PWMmin in the PWM data are the abscissa, respectively, and point A and point B are obtained, and the point A and the point B are connected to obtain a current straight line AB.
- the average current value is an initial current value corresponding to each PWM data, that is, an initial current value of each LED lamp.
- the current straight line can also be set as a curve according to actual needs, for example, a 2.2 gamma curve to achieve better picture performance.
- the current straight line referred to in this embodiment can be flexibly set according to actual needs.
- Step S24 stepping the current straight line counterclockwise, and calculating a current parameter for controlling each LED lamp according to the linear line after the rotation.
- the current is linearly rotated, and the current parameter of each LED lamp in the control dot matrix backlight is calculated according to the linear line after the rotation.
- a center balance point of a statistical histogram is acquired on a current straight line according to a preset rule. Then, with this central equilibrium point as the center, the current line is rotated counterclockwise in a single step, so that the LED lamp with a larger PWM value obtains a larger current value, and the LED lamp with a smaller PWM value obtains a smaller current value to enhance the picture.
- the rotation step of each rotation of the current straight line is a preset threshold.
- the PWM data conversion calculation processing unit calculates the current parameters corresponding to the respective PWM data according to the current straight line after each single-step rotation, thereby obtaining current parameters of the respective LED lamps. Then, according to the obtained current parameters of each LED lamp, calculate all the LEDs in the backlight of the driving matrix The power consumed by the lamp. When the consumed power satisfies the total power of the pre-configured dot matrix backlight, the rotation current straight line is stopped, and each current parameter corresponding to the current straight line at this time is used as the current parameter of the corresponding PWM data, that is, in the control dot matrix backlight. Current parameters of each LED light.
- the PWM data conversion calculation processing unit obtains current parameters for each LED lamp in the control dot matrix backlight.
- the obtained current parameter is the current value
- the dot matrix backlight driving device writes the current value of each LED lamp into its corresponding current control register.
- the PWM data conversion calculation processing unit stores the current parameters of each of the LED lamps in the SPI transmission data buffer.
- the central CPU processing unit controls the SPI bus data transmitting unit to transmit the stored PWM data and current parameters to the driving circuit module of each LED lamp.
- the initial current of each LED is determined by the average current of each LED lamp in the dot matrix backlight; then, the current parameter corresponding to each LED lamp is functionalized by a straight line to facilitate regulation; when the current is counterclockwise, the PWM is made. Larger LED lamps obtain larger current values and are brighter. LED lamps with smaller PWM values obtain smaller current values and lower brightness; linearly adjust the current parameters of the corresponding LED lamps by rotating current, thereby The power consumed by each LED is made to satisfy the preset total power. Therefore, the present embodiment satisfies the preset total power, ensures the quality of the television picture, realizes the goal of energy saving and emission reduction, is green and environmentally friendly, and at the same time ensures the picture effect and improves the user experience.
- the third embodiment of the dot matrix backlight driving method of the present invention provides a dot matrix backlight driving method.
- the step S24 includes:
- Step S241 Select a center balance point of the statistical histogram on the current straight line according to a preset rule.
- the current is linearly rotated, and the current parameter of each LED lamp in the control dot matrix backlight is calculated according to the linear line after the rotation.
- the central equilibrium point of the statistical histogram is obtained on the current line according to a preset rule.
- the number of PWM data in each PWM data group in the statistical histogram is calculated as a percentage of the total amount of PWM data of all the LED lamps.
- the number of occurrences of the PWM data in each PWM data group is the number of PWM data in the data group.
- one PWM data in this data set is selected according to a preset rule.
- the selection rule of the PWM data may be the intermediate value of the PWM data in the data group to which it belongs, or the maximum value of the PWM data, or other values of the data group to which it belongs.
- the current value of the selected PWM data is set to the average current to obtain a point C corresponding to the current line.
- the abscissa of point C is the selected PWM value and the ordinate is the average current.
- Point C is the central equilibrium point obtained. Thereafter, the coordinate value of point C remains unchanged.
- a 2 equal point of the line segment between the point A and the point B on the current line may be selected as the center balance point. It is also possible to select any point on the line segment AB as the center balance point according to the PWM data.
- the obtained PWM value of the center balance point is the abscissa and the average current is the ordinate. Thereafter, the coordinate values of the center balance point remain unchanged.
- Step S242 rotating the current straight line counterclockwise by using the center balance point as a rotation center point, and the rotation step length is a preset threshold.
- the rotation step of each rotation of the current straight line is a preset threshold, and the rotation step length can be flexibly set according to the requirement of the processing speed. For example, if the processing speed needs to be increased, the threshold of the rotation step can be set larger; if the processing precision needs to be improved, the threshold of the rotation step can be set smaller. Since the initial state of the current line is parallel to the abscissa axis, counterclockwise rotation causes a larger PWM value to correspond to a larger current value, and a smaller PWM value corresponds to a smaller current value. Thereby, it is possible to obtain a larger current value for the LED lamp having a larger PWM value, and a smaller current value for the LED lamp having a smaller PWM value to enhance the contrast between the bright portion and the dark portion of the picture.
- Step S243 Calculate a maximum current parameter of each LED lamp according to a preset rated current, and control a current parameter corresponding to each PWM data not to exceed the maximum current parameter and not less than a preset minimum current parameter.
- the maximum current parameter and the minimum current parameter are set to ensure that the current is linearly rotated.
- the current parameter makes the brightness of the LED light within a reasonable range. Specifically, as an implementation manner, first, a maximum current parameter of each LED lamp is calculated according to a preset rated current. Take the rated current as I rated, the maximum value of PWM data is PWMmax, and the maximum current of LED light is Imax, according to the formula:
- Imax I rated ⁇ PWMmax, calculate the maximum current value of each LED lamp, that is, the maximum current parameter.
- the maximum value of the current parameter corresponding to the PWM data corresponding to each LED lamp is Imax.
- the minimum current parameter Imin of each LED lamp is pre-set, thereby obtaining the PWM data corresponding to each LED lamp, and the minimum current parameter corresponding to the current line is Imin.
- the maximum current parameter and the minimum current parameter corresponding to each PWM data are obtained.
- the current parameter corresponding to the maximum PWM value is less than or equal to the maximum current parameter, so that the current parameter corresponding to each PWM data does not exceed the maximum current parameter; the current parameter corresponding to the minimum PWM value is greater than or equal to the minimum current.
- the parameter can realize that the current parameter corresponding to each PWM data is not lower than the minimum current parameter.
- Step S244 calculating a current parameter for controlling each of the LED lamps according to the linear line after the rotation.
- the PWM data conversion calculation processing unit calculates the current parameters corresponding to the respective PWM data according to the current straight line after each single-step rotation, thereby obtaining the current parameters of the respective LED lamps. Then, based on the obtained current parameters of the LED lamps, the power consumed when driving all of the LED lamps in the dot matrix backlight is calculated. When the consumed power satisfies the total power of the pre-configured dot matrix backlight, the rotation current straight line is stopped, and each current parameter corresponding to the current straight line at this time is used as the current parameter of the corresponding PWM data, that is, in the control dot matrix backlight. Current parameters of each LED light.
- the PWM data conversion calculation processing unit obtains current parameters for each LED lamp in the control dot matrix backlight. Then, the dot matrix backlight driving device writes the current value of each LED lamp into its corresponding current control register. Then, the PWM data conversion calculation processing unit stores the current parameters of each of the LED lamps in the SPI transmission data buffer.
- the central CPU processing unit controls the SPI bus data transmitting unit to transmit the stored PWM data and current parameters to the driving circuit module of each LED lamp.
- the center balance point is rotated as a rotation axis, and the counterclockwise step is single step.
- the linearity of the rotating current makes the bright part of the picture brighter, the dark part is gray, enhances the contrast, and ensures that the brightness of the LED light is within a reasonable range.
- Driving each LED lamp according to the obtained current parameter not only satisfies the pre-configured total power, but also improves the picture quality.
- the fourth embodiment of the dot matrix backlight driving method of the present invention provides a dot matrix backlight driving method.
- the step S244 includes:
- step S2441 the current parameter corresponding to each PWM data is calculated according to the linear line after the rotation.
- the PWM data conversion calculation processing unit calculates the current parameters corresponding to the respective PWM data according to the current straight line after each single-step rotation, thereby obtaining the current parameters of the respective LED lamps.
- a straight line z representing a mean current value is represented by a straight line z in a statistical histogram. After a straight line z is rotated counterclockwise by one step, a straight line AB is obtained, and the current value corresponding to the maximum value of the PWM data on the line AB does not exceed the maximum current value, and the current value corresponding to the minimum value of the PWM data on the line AB is not lower than the minimum current value.
- the abscissa is the selected PWM value
- the ordinate is the average current
- Step S2442 calculating that the driving power of each of the LED lamps is controlled according to the PWM data and the corresponding current parameter.
- the power consumed when driving all the LED lights in the dot matrix backlight is calculated according to the obtained current parameters of the LED lamps.
- a total of n LED lights are used in the current dot matrix backlight, and the PWM values of the LED lights are PWM1, PWM2, PWM3, ... PWMn, and the current parameters are I1, I2, I3, ...
- the driving power P1 when driving the dot matrix backlight is calculated according to the following formula:
- Step S2443 determining whether the driving power reaches the total power.
- the total power configured in advance may be set according to actual requirements.
- the preset power interval is taken, and the power value in the power interval is the power value reaching the total power. For example, if the power interval is 90% to 100% of the total power, the power value in this range reaches the total power, and the power value greater than 100% of the total power or less than 90% of the total power does not reach the total power.
- Step S2444 if the driving power does not reach the total power, returning to the step of: rotating the current straight line counterclockwise with the center balance point as a rotation center point; if the driving power reaches the total For power, the current parameter corresponding to each PWM data is used as a current parameter for controlling each LED lamp and the current parameter is stored.
- the control current continues to rotate with the center balance point as the center of rotation, and rotates counterclockwise in a single step. After the rotation, it is determined whether the obtained driving TV satisfies the total power. If the driving power reaches the total power, the rotation current straight line is stopped, and each current parameter corresponding to the current straight line at this time is used as the current parameter of the corresponding PWM data, that is, the current parameter of each LED lamp in the dot matrix backlight is controlled.
- the PWM data conversion calculation processing unit obtains current parameters for each LED lamp in the control dot matrix backlight. Then, the dot matrix backlight driving device writes the current value of each LED lamp into its corresponding current control register. Then, the PWM data conversion calculation processing unit stores the current parameters of each of the LED lamps in the SPI transmission data buffer.
- the central CPU processing unit controls the SPI bus data transmitting unit to transmit the stored PWM data and current parameters to the driving circuit module of each LED lamp.
- the current parameter is the optimal current configuration, which realizes the optimal configuration of the power consumption of each LED lamp, avoids waste of energy, and ensures the high image quality of the TV picture.
- a first embodiment of a dot matrix backlight driving device of the present invention provides a dot matrix backlight driving device, and the dot matrix backlight driving device includes:
- the image processing module 100 is configured to calculate, according to the input television signal, pulse width modulation PWM data of each LED light of the LED in the control dot matrix backlight.
- the driving management module 200 is configured to generate a statistical histogram according to the PWM data, and calculate a current parameter for controlling each LED lamp according to the statistical histogram.
- the driving circuit module 300 is configured to independently control the LED lights according to the PWM data and the current parameter to drive the dot matrix backlight.
- the current parameters of the LED lights corresponding to the PWM data are adjusted, and the currents of all the LED lights in the dot matrix backlight are allocated as needed, and the power consumption is guaranteed.
- the TV screen as a whole can achieve the best display effect, avoiding power loss and energy waste.
- a second embodiment of the dot matrix backlight driving device of the present invention provides a dot matrix backlight driving device.
- the PWM data corresponds to the dot matrix.
- the drive management module 200 includes:
- a current averaging unit configured to calculate an average current of each of the LED lights in the dot matrix backlight according to the PWM data and the pre-configured dot matrix backlight total power and rated voltage.
- a histogram making unit for each PWM corresponding to each LED light in the dot matrix backlight Data, making a statistical histogram.
- a current straight line unit configured to create a current straight line in the statistical histogram according to the average current, wherein each PWM data in the statistical histogram corresponds to a current parameter on the current straight line.
- the single-step rotation unit is configured to rotate the current straight line counterclockwise, and calculate a current parameter for controlling each of the LED lamps according to the linear line after the rotation.
- the initial current of each LED is determined by the average current of each LED lamp in the dot matrix backlight; then, the current parameter corresponding to each LED lamp is functionalized by a straight line to facilitate regulation; when the current is reversed by a counterclockwise rotation, LED lamps with larger PWM values obtain larger current values and are brighter. LED lamps with smaller PWM values obtain smaller current values and lower brightness; linearly adjust the current parameters of the corresponding LED lamps by rotating current.
- the power consumed by each LED satisfies the total power set in advance. Therefore, the present embodiment satisfies the preset total power, ensures the quality of the television picture, realizes the goal of energy saving and emission reduction, is green and environmentally friendly, and at the same time ensures the picture effect and improves the user experience.
- the third embodiment of the dot matrix backlight driving device of the present invention provides a dot matrix backlight driving device.
- the single-step rotating unit includes:
- the central point subunit is configured to select a center balance point of the statistical histogram on the current straight line according to a preset rule.
- the rotating subunit is configured to rotate the current straight line counterclockwise by using the center balance point as a rotation center point, and the rotation step length is a preset threshold.
- a boundary subunit configured to calculate a maximum current parameter of each LED lamp according to a preset rated current, and control a current parameter corresponding to each PWM data not to exceed the maximum current parameter and not less than a preset minimum Current parameters.
- the calculating subunit is configured to calculate a current parameter for controlling each of the LED lamps according to the linear line of the current after the rotation.
- the center balance point is rotated as the rotation axis, and the current straight line is rotated counterclockwise, so that the bright part of the picture is brighter, the gray part is dark, the contrast is enhanced, and the brightness of the LED lamp is ensured at a reasonable level.
- Driving each LED lamp according to the obtained current parameter not only satisfies the pre-configured total power, but also improves the picture quality.
- the fourth embodiment of the dot matrix backlight driving device of the present invention provides a dot matrix backlight driving device.
- the calculating subunit includes:
- the first calculating subunit is configured to calculate a current parameter corresponding to each of the PWM data according to the linear line after the rotation.
- the second power subunit is configured to calculate, according to the rated voltage, the PWM data and the corresponding current parameter, driving power of each LED lamp according to the PWM data and a corresponding current parameter.
- the third determining subunit is configured to determine whether the driving power reaches the total power.
- a fourth obtaining subunit configured to: if the driving power reaches the total power, The current parameter corresponding to the PWM data is used as a current parameter for controlling the LED lamps and stores the current parameter.
- the rotating subunit is further configured to rotate the current straight line counterclockwise by using the center balance point as a rotation center point if the driving power does not satisfy the total power.
- the current parameter is the optimal current configuration, which realizes the optimal configuration of the power consumption of each LED lamp, avoids waste of energy, and ensures the high image quality of the TV picture.
- a first embodiment of a dot matrix backlight driving system of the present invention provides a dot matrix backlight driving system, and the dot matrix backlight source driving system includes a television video image processing MEMC module A, and an LED light source driving control management.
- Module B and LED lamp drive circuit module C where:
- the television video image processing MEMC module A is configured to calculate, according to the input television signal, pulse width modulation PWM data of each LED LED lamp in the control dot matrix backlight; and send the PWM data to the LED lamp Drive Control Management Module B.
- the LED lamp driving control management module B is configured to receive the PWM data sent by the television video image processing MEMC module A; generate a statistical histogram according to the PWM data, and calculate and control according to the statistical histogram Current parameters of the LED lamps; transmitting the PWM data and the current parameters to the LED lamp driving circuit module C.
- the LED lamp drive control management module B is located on the driving board of the LED dot matrix light source for receiving the PWM data sent by the TV video image processing MEMC module A, performing analysis and calculation, and obtaining the optimal current of each LED lamp in the dot matrix backlight source. The parameters are controlled and the PWM data and current parameters are sent to the LED lamp drive circuit module C.
- the LED lamp drive control management module B When the LED lamp drive control management module B receives and parses the PWM data sent by the host computer, the data is used and processed in two parts. The first part is to directly write each PWM data to the drive PWM register of each LED lamp according to the corresponding address mapping table of the LED lamp to determine the switching time of each LED lamp; the other part is used to calculate the LED lights.
- the current parameter that is, the current value, then writes the current value of each LED lamp into its corresponding current control register.
- the current value of each LED lamp matching its PWM duty ratio is calculated, and then the 288 current values are obtained.
- the current value method not only improves the picture effect but also avoids power loss and energy waste.
- the LED lamp driving control management module B converts the PWM data into corresponding current parameters of the respective LED lamps. Then, the LED lamp driving control management module B refreshes the obtained LED lamp current parameters to the current driving circuit corresponding to each LED lamp through the SPI bus, and controls the current value of each LED lamp.
- the LED lamp drive control management module B directly refreshes the received PWM data to the PWM switch control circuit corresponding to each LED lamp through the SPI bus, and is used to adjust the circuit switching time of each LED lamp.
- the LED lamp driving control management module B converts the PWM data into a corresponding specific calculation process of the current parameters of each LED lamp, and configures a dot matrix backlight source of 288 LED lamps for illustration.
- the TV is configured to work with all LED lights on the LED dot matrix backlight driver board.
- the power supply power is 420W, that is, the total power configured is 420W.
- the maximum current that can be used for all LED lamps to work normally is 420/9 ⁇ 47A.
- the current of the lamp is also very high in configuration, causing unnecessary waste. Since the maximum rated current of each LED lamp can be up to 340 mA, and the bright place is not large enough because the current is limited, the brightness of the light source is not fully utilized.
- the LED lamp driving control management module B establishes a statistical histogram, the abscissa, of the received PWM data of each LED lamp.
- PWM data ie duty cycle
- the ordinate is the number of LED lights.
- a large current is distributed, so that these LED lamps emit the strongest light, for example, 100% is allocated to a maximum of 340 mA, and a low current value is assigned to a low duty ratio, so that these LED lamps are matched.
- the content of the screen is dimly lit, and so on.
- the LED lamp driving circuit module C is configured to receive the PWM data and the current sent by the LED lamp driving control management module B; and independently control the LED lights according to the PWM data and the current parameter, Driving the dot matrix backlight.
- the driving circuit module C of the LED lamp receives the PWM data and current parameters of each LED lamp in the dot matrix backlight sent by the LED lamp driving control management module B, independently controls each LED lamp, and drives the dot matrix backlight source.
- each LED light in the dot matrix backlight is configured with an independent PWM switching circuit and a current control circuit.
- an internal design of an integrated circuit (IC) can be adopted. Improved implementation, or implementation of external circuit design in the driver IC.
- the driving circuit module C of the LED lamp performs PWM control on each LED lamp through the PWM switching circuit of each LED lamp according to the acquired PWM data of each LED lamp, and controls the pulse width duty ratio of each LED lamp. At the same time, the driving circuit module C of the LED lamp controls the current of each LED lamp through the current control circuit of each LED lamp according to the obtained current parameters of each LED lamp.
- the driving circuit module C of the LED lamp realizes driving of the dot matrix backlight and displays the current television picture.
- each frame of the television is acquired in real time, and dynamic data analysis and calculation are performed in real time, thereby ensuring continuity and high image quality of the television picture.
- the embodiment realizes independent control of each LED light in the dot matrix backlight, and cooperates with the television picture
- the actual content is distributed on demand, and the maximum efficiency utilizes the LED source and power supply.
- the LED lamp driving control management module B includes a serial peripheral interface.
- the SPI bus data receiving unit B1 is configured to receive PWM data sent by the TV video image processing MEMC module A.
- the LED lamp drive control management module B is located on the driving board of the LED dot matrix light source, and passes through the SPI (Serial Peripheral Interface) bus and the TV video image processing MEMC module A and the LED lamp driving circuit. Module C interacts.
- SPI Serial Peripheral Interface
- the SPI bus data receiving unit B1 receives the PWM data sent by the TV video image processing MEMC module A. package.
- the central CPU processing unit B3 analyzes the obtained PWM data packet to obtain each PWM data in the PWM data packet.
- the SPI receives a data buffer B2 for storing the PWM data.
- the SPI receiving data buffer B2 After obtaining the PWM data sent by the TV video image processing MEMC module A, the SPI receiving data buffer B2 stores the obtained PWM data for subsequent data analysis processing.
- the central CPU processing unit B3 is configured to control and coordinate the processing of the PWM data.
- the central CPU processing unit B3 is used to control and coordinate the operations of the units in the LED lamp drive control management module B.
- the central CPU processing unit B3 controls the SPI bus data receiving unit B1 to receive the PWM data packet transmitted by the television video image processing MEMC module A.
- the central CPU processing unit B3 parses the PWM data packet to obtain each sorted PWM data, and stores each PWM data in the SPI receive data buffer B2.
- the central CPU processing unit B3 sends each PWM data to the PWM data conversion calculation processing unit B4, and the PWM data conversion calculation processing unit B4 processes and calculates the current parameters of each LED lamp, and stores the obtained LED lamp current parameters.
- the SPI sends a data buffer.
- the central CPU processing unit controls the SPI bus data transmitting unit B6 to transmit the stored PWM data and current parameters to the driving circuit module C of each LED lamp to control the respective LED lamps.
- the PWM data conversion calculation processing unit B4 is configured to generate a statistical histogram according to the PWM data, and calculate a current parameter for controlling each LED lamp according to the statistical histogram.
- the PWM data conversion calculation processing unit B4 After acquiring the PWM data corresponding to the LED lamp sent by the central CPU processing unit B3, the PWM data conversion calculation processing unit B4 creates a statistical histogram and calculates a corresponding current parameter for controlling each LED lamp.
- the PWM data conversion calculation processing unit B4 calculates an average current of each LED lamp in the dot matrix backlight according to each PWM data and a preset total dot matrix backlight power and rated voltage.
- the PWM data conversion calculation processing unit B4 creates a current straight line in the statistical histogram according to the average current of each LED lamp, and counts the current parameters on the current line corresponding to each PWM data in the histogram.
- the center equilibrium point of the statistical histogram is selected on the current line, and the coordinates of the center balance point are known and remain unchanged.
- the current straight line is rotated counterclockwise, and the rotation step is a preset threshold.
- the current is rotated linearly so that the larger PWM value corresponds to a larger current parameter, and the smaller PWM value corresponds to a smaller current parameter, so that the bright portion of the television picture is brighter, the gray portion is darker, and the contrast is enhanced.
- the boundary value of the current parameter corresponding to the PWM value is controlled so that the current parameter corresponding to each PWM data does not exceed the maximum current value, and is not lower than the minimum current value, thereby ensuring that the brightness of the picture is within a reasonable range.
- the current parameters for controlling the respective LED lamps are calculated. And according to the obtained current parameter, it is judged whether the power consumed when driving the dot matrix backlight according to the obtained current parameter satisfies the preset total power.
- the current is continuously rotated; if the consumed power meets the preset total power, the current parameter obtained at this time is used as the current parameter of each LED lamp, and The current parameter is sent to the SPI Transmit Data Buffer B5.
- the SPI transmits a data buffer B5 for storing the current parameter.
- the SPI transmission data buffer B5 receives the current parameters corresponding to the LED lamps transmitted by the PWM data conversion calculation processing unit B4, and stores them.
- the SPI bus data transmitting unit B6 is configured to send the PWM data and the current parameter to the LED lamp driving circuit module C.
- the SPI bus data transmitting unit B6 transmits the stored PWM data and current parameters to the corresponding LED lamps, respectively.
- the SPI bus data transmitting unit B6 accurately writes each PWM data into the driving PWM register of each LED lamp according to the address mapping relationship table of each LED lamp to determine the switching time of each LED lamp.
- the SPI bus data transmitting unit B6 writes the current value of each LED lamp into its corresponding current control register.
- the dot matrix backlight driving method provided by the present invention calculates the current value of each LED lamp and its PWM data, that is, the duty ratio, and then starts the SPI bus data.
- Transmitting unit B6 writes the 288 current values into the current control registers of the corresponding 288 LED lamps so that each lamp has a current control value.
- This embodiment changes the prior art to make all the LED lights or the same group of LED lights in the local area use the same current value, and realizes that the currents of all the LED lights in the dot matrix backlight are allocated as needed, and are guaranteed. Under the condition of power consumption, the TV screen as a whole can achieve the best display effect, avoiding power loss and energy waste.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Crystallography & Structural Chemistry (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
- Liquid Crystal Display Device Control (AREA)
Abstract
A lattice backlight source driving method and device. The method comprises: on the basis of input television signals, calculating the pulse width modulation (PWM) data controlling each light emitting diode (LED) lamp in the lattice backlight source (S10); on the basis of the PWM data, creating a statistical histogram, and on the basis of the statistical histogram, calculating the current parameter controlling each LED lamp (S20); and according to the PWM data and the current parameters, independently controlling each LED lamp and driving the lattice backlight source (S30). The invention achieves on-demand current distribution to all the LED lamps of the lattice backlight source, thereby reducing power consumption while optimizing the whole display effect, and avoiding power loss and energy waste.
Description
本发明涉及点阵背光源驱动技术领域,尤其涉及一种点阵背光源驱动方法、装置和系统。The present invention relates to the field of dot matrix backlight driving technology, and in particular, to a dot matrix backlight driving method, device and system.
随着用户的需求和背光技术的发展,液晶显示已在众多领域取迅速代了传统的阴极射线管显示技术,使得LCD(Liquid Crystal Display,液晶显示)显示屏成为了家电市场的主导产品。With the development of users and the development of backlight technology, liquid crystal display has rapidly replaced the traditional cathode ray tube display technology in many fields, making LCD (Liquid Crystal Display) display screen become the leading product in the home appliance market.
目前的LCD平板电视很多都采用LED(Light Emitting Diode,发光二极管)点阵光源。LED点阵背光源具有色彩还原好、省电、寿命长等优点,逐渐取代了传统的单边或双边灯条式部署的侧入式光源。对不同尺寸的电视机,通过合理数量的点阵光源LED灯的部署和方案设计,使所述电视机的整机画面不仅亮度高而且画面光感均匀,解决了传统侧入式光源需要多次导光、亮度不足和光感不均匀的缺陷。Many of the current LCD flat panel TVs use LED (Light Emitting Diode) dot matrix light sources. The LED dot matrix backlight has the advantages of good color reproduction, power saving and long life, and gradually replaces the traditional side-by-side or double-light strip-type side-entry light source. For different size TV sets, through the deployment and design of a reasonable number of dot matrix light source LED lights, the whole machine screen of the TV set not only has high brightness but uniform light perception, and solves the traditional side-entry light source multiple times. Defects in light guiding, insufficient brightness, and uneven light perception.
对于LED点阵光源的亮度调控,目前主要有两种途径:一个是调节LED灯的驱动电流大小;另一个是调节LED灯的驱动电路开关时间,也即控制LED灯供电电路的导通时间和关断时间,通常称之为PWM(Pulse-Width Modulation,脉冲宽度调制),LED灯供电电路的导通时间占导通时间和关断时间之和的比值称为占空比。通过LED灯的驱动电流和占空比,可以控制每个LED灯的发光亮度和消耗功率,从而调整和控制电视机的整机画面亮度大小,和电视机整机消耗的功率大小。For the brightness control of LED dot matrix light source, there are currently two main ways: one is to adjust the driving current of the LED lamp; the other is to adjust the switching time of the driving circuit of the LED lamp, that is, to control the conduction time of the LED lamp power supply circuit and The turn-off time, commonly referred to as PWM (Pulse-Width Modulation), is the ratio of the on-time of the LED lamp power supply circuit to the sum of the on-time and the off-time. Through the driving current and duty ratio of the LED lamp, the brightness and power consumption of each LED lamp can be controlled, thereby adjusting and controlling the brightness of the whole screen of the television and the power consumption of the whole machine.
由于LCD平板电视消耗的电源功率,大部分为背光源消耗的,其他部件的消耗较少,因此,主要通过控制背光源的功率达到节能减排的环保要求。现有的调节背光源的功率的方法,主要通过调节每个LED灯的占空比,和统一调节背光源中所有LED灯的电流值大小实现,或通过区域划分,以区域为单位统一调节LED灯的电流值大小实现。Due to the power consumption of the LCD flat panel TV, most of the backlight is consumed, and other components are consumed less. Therefore, the power of the backlight is controlled to meet the environmental protection requirements of energy saving and emission reduction. The existing method for adjusting the power of the backlight is mainly realized by adjusting the duty ratio of each LED lamp, and uniformly adjusting the current value of all the LED lamps in the backlight, or uniformly adjusting the LEDs by region by region division. The current value of the lamp is realized.
例如,使用额定电流时能够达到背光源的最佳亮度和画质效果,此时功率较大,对电源的输出功率要求较高,浪费能源。For example, when the rated current is used, the optimal brightness and image quality of the backlight can be achieved. At this time, the power is large, and the output power of the power source is required to be high, which wastes energy.
为降低背光源的功率,将背光源的功率降低一半时,可以将背光源中所有LED的电流调整为额定电流的一半来实现。此时,由于画质效果不够亮丽,即使通过调节LED灯的占空比,使画面中明亮的部分画面占空比达到100%,但受限于相同的电流值,对比度小,明亮部分与灰暗部分的画面差异性不强烈,造成画面效果差,且灰暗部分的LED的电流浪费。In order to reduce the power of the backlight, when the power of the backlight is reduced by half, the current of all the LEDs in the backlight can be adjusted to half of the rated current. At this time, since the image quality effect is not bright enough, even if the duty ratio of the bright portion of the screen is 100% by adjusting the duty ratio of the LED lamp, it is limited by the same current value, the contrast is small, and the bright portion is dark and dark. Part of the picture difference is not strong, resulting in poor picture effect, and the current of the LED in the dark part is wasted.
或者,当前部分背光源中采用一拖十六的方法驱动LED点阵光源,也即由一个驱动IC(integrated circuit,集成电路),同时控制十六个LED灯。由于同一个驱动IC控制的十六个LED灯的电流值相同,只能实现背光源的局部控制,画质效果依然不能达到用户的理想观看效果。
Or, in the current part of the backlight, a method of driving a LED dot matrix light source is driven by a method of driving sixteen, that is, an integrated circuit (IC) is used to simultaneously control sixteen LED lights. Since the current values of the sixteen LED lamps controlled by the same driver IC are the same, only the local control of the backlight can be realized, and the image quality effect still cannot achieve the ideal viewing effect of the user.
由此,可以看出,现有技术虽然能够对点阵背光源中每个LED灯进行PWM调控,但是由于电流的统一控制,如果保障画面亮度,则会造成功率消耗高,能源大量浪费;而降低功率时,电视画面质量差,影响用户的观看体验。Therefore, it can be seen that although the prior art can perform PWM regulation on each LED lamp in the dot matrix backlight, due to the unified control of the current, if the brightness of the screen is ensured, power consumption is high and energy is wasted; When the power is reduced, the quality of the TV picture is poor, which affects the user's viewing experience.
发明内容Summary of the invention
本发明的主要目的在于提供一种点阵背光源驱动方法、装置和系统,旨在解决当前点阵背光源为保证画面质量而导致功率消耗高、能源浪费的技术问题。The main object of the present invention is to provide a dot matrix backlight driving method, device and system, which aim to solve the technical problem that the current dot matrix backlight causes high power consumption and waste of energy in order to ensure picture quality.
为实现上述目的,本发明提供一种点阵背光源驱动方法,所述点阵背光源驱动方法包括以下步骤:To achieve the above object, the present invention provides a dot matrix backlight driving method, and the dot matrix backlight driving method includes the following steps:
根据输入的电视信号中的亮度信号,获取各LED灯的亮度值,根据各LED灯的亮度值计算得到控制点阵背光源中每个发光二极管LED灯的脉冲宽度调制PWM数据;Obtaining a brightness value of each LED lamp according to the brightness signal in the input television signal, and calculating pulse width modulation PWM data of each LED light source in the control dot matrix backlight according to the brightness value of each LED lamp;
根据所述PWM数据,制作统计直方图,并根据所述统计直方图计算得到控制所述各LED灯的电流参数;Generating a statistical histogram according to the PWM data, and calculating a current parameter for controlling each LED lamp according to the statistical histogram;
根据所述PWM数据和所述电流参数独立控制所述各LED灯,驱动所述点阵背光源。The LED lights are independently controlled according to the PWM data and the current parameters to drive the dot matrix backlight.
此外,为实现上述目的,本发明还提供一种点阵背光源驱动装置,所述点阵背光源驱动装置包括:In addition, in order to achieve the above object, the present invention further provides a dot matrix backlight driving device, and the dot matrix backlight driving device includes:
图像处理模块,用于根据输入的电视信号中的亮度信号,获取各LED灯的亮度值,根据各LED灯的亮度值计算得到控制点阵背光源中每个发光二极管LED灯的脉冲宽度调制PWM数据;The image processing module is configured to obtain a brightness value of each LED light according to the brightness signal in the input television signal, and calculate a pulse width modulation PWM of each LED light in the control dot matrix backlight according to the brightness value of each LED lamp. data;
驱动管理模块,用于根据所述PWM数据,制作统计直方图,并根据所述统计直方图计算得到控制所述各LED灯的电流参数;a driving management module, configured to generate a statistical histogram according to the PWM data, and calculate a current parameter for controlling each LED light according to the statistical histogram calculation;
驱动电路模块,用于根据所述PWM数据和所述电流参数独立控制所述各LED灯,驱动所述点阵背光源。And a driving circuit module, configured to independently control the LED lights according to the PWM data and the current parameter to drive the dot matrix backlight.
此外,为实现上述目的,本发明还提供一种点阵背光源驱动系统,所述点阵背光源驱动系统包括电视视频图像处理MEMC模块、发光二极管LED灯驱动控制管理模块和LED灯驱动电路模块,其中:In addition, in order to achieve the above object, the present invention further provides a dot matrix backlight driving system, which includes a television video image processing MEMC module, a light emitting diode LED lamp driving control management module, and an LED lamp driving circuit module. ,among them:
所述电视视频图像处理MEMC模块,用于根据输入的电视信号中的亮度信号,获取各LED灯的亮度值,根据各LED灯的亮度值计算得到控制点阵背光源中每个发光二极管LED灯的脉冲宽度调制PWM数据;将所述PWM数据发送给所述LED灯驱动控制管理模块;The television video image processing MEMC module is configured to acquire, according to a brightness signal in the input television signal, a brightness value of each LED light, and calculate, according to the brightness value of each LED light, each LED light of the control dot matrix backlight. Pulse width modulation PWM data; transmitting the PWM data to the LED lamp drive control management module;
所述LED灯驱动控制管理模块,用于接收所述电视视频图像处理MEMC模块发送的所述PWM数据;根据所述PWM数据,制作统计直方图,并根据所述统计直方图计算得到控制所述各LED灯的电流参数;将所述PWM数据和所述电流参数发送给所述LED灯驱动电路模块。The LED lamp driving control management module is configured to receive the PWM data sent by the TV video image processing MEMC module; generate a statistical histogram according to the PWM data, and calculate the control according to the statistical histogram Current parameters of each LED lamp; transmitting the PWM data and the current parameter to the LED lamp driving circuit module.
所述LED灯驱动电路模块,用于接收所述LED灯驱动控制管理模块发送的所述PWM数据和所述电流;根据所述PWM数据和所述电流参数独立控制所述各LED灯,驱动所述点阵背光源。
The LED lamp driving circuit module is configured to receive the PWM data and the current sent by the LED lamp driving control management module; independently control the LED lights according to the PWM data and the current parameter, and drive the driving The dot matrix backlight.
本发明实施例提出的一种点阵背光源驱动方法、装置和系统,根据输入的电视信号,计算得到控制点阵背光源中每个发光二极管LED灯的脉冲宽度调制PWM数据;然后,根据PWM数据,制作统计直方图,并根据统计直方图计算得到控制各LED灯的电流参数;然后,根据PWM数据和电流参数独立控制各LED灯,驱动点阵背光源。本发明实现了对点阵背光源中所有LED灯的电流都按需分配,在降低功耗的同时,使电视画面整体达到最佳显示效果,避免了功率损耗和能源浪费。A method, device and system for driving a dot matrix backlight according to an embodiment of the present invention, according to an input television signal, calculating pulse width modulation PWM data of each LED light of a control dot matrix backlight; and then, according to PWM Data, make a statistical histogram, and calculate the current parameters of each LED light according to the statistical histogram calculation; then, independently control each LED light according to the PWM data and current parameters, and drive the dot matrix backlight. The invention realizes that the currents of all the LED lights in the dot matrix backlight are allocated as needed, and the overall display effect of the television picture is achieved while reducing the power consumption, thereby avoiding power loss and energy waste.
图1为本发明点阵背光源驱动方法第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of a method for driving a dot matrix backlight according to the present invention;
图2为本发明实施例的一种点阵背光源LED驱动IC电路示意图;2 is a schematic diagram of a circuit of a dot matrix backlight LED driving IC according to an embodiment of the invention;
图3为本发明实施例的一种统计直方图和电流直线示意图;3 is a schematic diagram of a statistical histogram and a current line according to an embodiment of the present invention;
图4为本发明点阵背光源驱动装置第一实施例的功能模块示意图;4 is a schematic diagram of functional modules of a first embodiment of a dot matrix backlight driving device according to the present invention;
图5为本发明点阵背光源驱动系统第一实施例的模块示意图;5 is a schematic block diagram of a first embodiment of a dot matrix backlight source driving system according to the present invention;
图6为本发明点阵背光源驱动系统第二实施例的模块示意图。6 is a schematic block diagram of a second embodiment of a dot matrix backlight driving system of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例的主要解决方案是:根据输入的电视信号,计算得到控制点阵背光源中每个发光二极管LED灯的脉冲宽度调制PWM数据;根据所述PWM数据,制作统计直方图,并根据所述统计直方图计算得到控制所述各LED灯的电流参数;根据所述PWM数据和所述电流参数独立控制所述各LED灯,驱动所述点阵背光源。The main solution of the embodiment of the present invention is: calculating pulse width modulation PWM data of each LED light of the LED in the control dot matrix backlight according to the input television signal; and generating a statistical histogram according to the PWM data, and according to the PWM data The statistical histogram calculation obtains current parameters for controlling the LED lights; independently controls the LED lights according to the PWM data and the current parameters to drive the dot matrix backlight.
由于现有技术由于电流的统一控制,如果保障画面亮度,则会造成功率消耗高,能源大量浪费;而降低功率时,电视画面质量差,影响用户的观看体验。Due to the unified control of the current in the prior art, if the brightness of the screen is ensured, the power consumption is high and the energy is largely wasted; when the power is reduced, the quality of the television picture is poor, which affects the viewing experience of the user.
本发明提供一种解决方案,单独对点背背光源中每个LED灯进行PWM控制和电流控制,配合电视画面的实际内容按需分配电流,最大效率的利用了LED光源和电源功率。实现了降低点背背光源消耗功率的同时,保证电视画面效果。The invention provides a solution for separately performing PWM control and current control on each LED lamp in the dot back backlight, and distributing current according to the actual content of the television picture, and utilizing the LED light source and the power source with maximum efficiency. It realizes the reduction of the power consumption of the dot back backlight while ensuring the TV picture effect.
参照图1,本发明点阵背光源驱动方法第一实施例提供一种点阵背光源驱动方法,所述点阵背光源驱动方法包括:Referring to FIG. 1 , a first embodiment of a dot matrix backlight driving method of the present invention provides a dot matrix backlight driving method, and the dot matrix backlight driving method includes:
步骤S10、根据输入的电视信号,计算得到控制点阵背光源中每个发光二极管LED灯的脉冲宽度调制PWM数据。Step S10: Calculate pulse width modulation PWM data of each LED of the LED in the control dot matrix backlight according to the input television signal.
本发明实施例主要应用于点阵背光源的驱动,在降低对电源配置功率需
求的同时,保证显示的画面画质。The embodiment of the invention is mainly applied to the driving of the dot matrix backlight, and the power required for the power supply is reduced.
At the same time, the quality of the displayed picture is guaranteed.
本实施例可以应用于LCD(Liquid Crystal Display,液晶显示)平板电视的LED(Light Emitting Diode,发光二极管)点阵光源点阵背光源驱动,也可以用于其他显示器的点阵背光源驱动,可根据实际需要灵活设置。通过本发明提出的点阵背光源驱动方法,可以保证电视机的画面亮度满足高画质的需求,同时不会因为电源功率的大幅降低而受到明显影响。实现了既满足了节能环保减排的需求,同时又保证了电视机的画面亮度达到最佳品质,也即,本发明实施例在相同的电源输出功率配置下可以大幅提高画面质量。The embodiment can be applied to an LED (Light Emitting Diode) LED (Light Emitting Diode) LED dot matrix backlight driving, and can also be used for dot matrix backlight driving of other displays. Flexible settings according to actual needs. The dot matrix backlight driving method proposed by the invention can ensure that the screen brightness of the television meets the requirement of high image quality, and is not significantly affected by the drastic reduction of the power supply. The invention not only meets the requirements of energy saving and environmental protection, but also ensures that the brightness of the screen of the television reaches the best quality, that is, the embodiment of the invention can greatly improve the picture quality under the same power output power configuration.
本实施例以电视机的LED点阵背光电源驱动进行举例说明。This embodiment is illustrated by an LED dot matrix backlight power supply of a television set.
具体的,作为一种实施方式,当电视机启动后,电视视频处理器前端,也即中央处理器CPU的电视视频图像处理MEMC(Motion Estimate and Motion Compensation,运动估计和运动补偿)模块动态获取电视信号源输入的每帧电视画面的电视信号。然后,电视视频图像处理MEMC模块根据LED点阵光源的数量将帧缓存中的电视画面分割成与LED点阵光源中的LED灯数量相等、一一对应的画面区块。然后,根据输入的电视信号中的亮度信号,获取每一个画面区块的亮度值。统计每一个画面区块的亮度,并制作亮度直方图,再根据此亮度直方图算出所述每一个画面区块的平均亮度,并将得到的平均亮度作为各画面区块对应的LED灯的亮度值。然后,根据各LED灯的亮度值计算得到控制各LED灯的PWM(Pulse-Width Modulation,脉冲宽度调制)数据。然后,电视视频图像处理MEMC模块将得到的PWM数据输出到LED点阵光源的驱动板,用于控制对应的LED灯的发光亮度。当所有LED灯的PWM数据计算完毕,立即启动数据发送模块,作为上位机,先将要发送的数据编码打包,然后通过SPI(Serial Peripheral Interface,串行外设接口)总线将数据发送到LED点阵光源的驱动板。Specifically, as an implementation manner, when the television is started, the television video processor front end, that is, the video processing image processing MEMC (Motion Estimate and Motion Compensation) module of the central processing unit CPU dynamically acquires the television. The TV signal of each frame of the TV screen input by the signal source. Then, the TV video image processing MEMC module divides the television picture in the frame buffer into picture blocks corresponding to the number of LED lights in the LED dot matrix light source according to the number of LED dot matrix light sources. Then, according to the luminance signal in the input television signal, the luminance value of each picture block is obtained. The brightness of each picture block is counted, and a luminance histogram is generated, and the average brightness of each picture block is calculated according to the brightness histogram, and the obtained average brightness is used as the brightness of the LED light corresponding to each picture block. value. Then, PWM (Pulse-Width Modulation) data for controlling each LED lamp is calculated based on the luminance values of the respective LED lamps. Then, the TV video image processing MEMC module outputs the obtained PWM data to the driving board of the LED dot matrix light source for controlling the brightness of the corresponding LED lamp. When the PWM data of all the LED lights is calculated, the data sending module is started immediately. As the upper computer, the data to be sent is encoded and packaged, and then the data is sent to the LED dot matrix through the SPI (Serial Peripheral Interface) bus. The drive board of the light source.
由此,LED点阵光源的驱动板得到控制各LED灯的PWM数据。Thereby, the driving board of the LED dot matrix light source obtains PWM data for controlling each LED lamp.
PWM数据的数值越大,也就表示此PWM数据对应的画面越明亮;PWM数据的数值越小,也就表示此PWM数据对应的画面越暗。本实施例中,得到的PWM数据为占空比。在本实施例中定义LED灯供电电路的导通时间,占导通时间和关断时间之和的比值,称为占空比,例如80%、60%等。可以根据每个LED灯的占空比,独立控制每个LED灯的供电电路导通时间,进行局部背光调节。The larger the value of the PWM data, the brighter the picture corresponding to the PWM data; the smaller the value of the PWM data, the darker the picture corresponding to the PWM data. In this embodiment, the obtained PWM data is a duty ratio. In this embodiment, the on-time of the LED lamp power supply circuit is defined, and the ratio of the on-time and the off-time is called the duty ratio, for example, 80%, 60%, and the like. The on-time of the power supply circuit of each LED lamp can be independently controlled according to the duty ratio of each LED lamp, and local backlight adjustment can be performed.
步骤S20、根据所述PWM数据,制作统计直方图,并根据所述统计直方图计算得到控制所述各LED灯的电流参数。Step S20: Create a statistical histogram according to the PWM data, and calculate a current parameter for controlling each LED lamp according to the statistical histogram.
LED点阵光源的驱动板通过LED灯驱动控制管理模块进行管理。其中,LED灯驱动控制管理模块包括SPI接收数据缓存器、SPI总线数据接收单元、PWM数据转换计算处理单元、中央CPU处理单元、SPI发送数据缓存器和SPI总线数据发送单元。LED点阵光源驱动板上的中央CPU处理单元控制SPI总线数据接收单元接收到上位机发来的数据后,经过数据解析得到按顺位排序的每个LED灯的PWM数据。然后,将得到的PWM数据存入SPI接收数据缓存器。在获取点阵背光电源中各LED灯的PWM数据后,LED灯驱动控制管理模块根据得到的PWM数据,制作统计直方图,并计算控制点阵背光源
中每个LED灯的电流参数。The driver board of the LED dot matrix light source is managed by the LED lamp drive control management module. The LED lamp drive control management module includes an SPI receive data buffer, an SPI bus data receiving unit, a PWM data conversion calculation processing unit, a central CPU processing unit, an SPI transmit data buffer, and an SPI bus data transmitting unit. The central CPU processing unit on the LED dot matrix light source driving board controls the SPI bus data receiving unit to receive the data sent from the upper computer, and after data analysis, obtains the PWM data of each LED lamp sorted by the order. The resulting PWM data is then stored in the SPI receive data buffer. After obtaining the PWM data of each LED lamp in the dot matrix backlight power supply, the LED lamp driving control management module generates a statistical histogram according to the obtained PWM data, and calculates a control dot matrix backlight source.
The current parameter of each LED lamp.
具体的,LED灯驱动控制管理模块的中央CPU处理单元将PWM数据输入给PWM数据转换计算处理单元,PWM数据转换计算处理单元根据得到的PWM数据,转换计算出每个LED灯的驱动电流参数。Specifically, the central CPU processing unit of the LED lamp driving control management module inputs the PWM data to the PWM data conversion calculation processing unit, and the PWM data conversion calculation processing unit converts and calculates the driving current parameter of each LED lamp according to the obtained PWM data.
作为一种实施方式,首先,PWM数据转换计算处理单元根据预先配置的点阵背光源总功率,和额定电源电压、PWM数据,计算得到点阵背光源中LED灯的平均电流值,将平均电流值作为各LED灯的初始电流值。然后,PWM数据转换计算处理单元根据得到的PWM数据,制作统计直方图。获取PWM数据中的最大值和最小值,计算得到PWM数据的区间值;然后,根据预设的组距和PWM数据的区间值得到PWM数据的组数,完成对PWM数据的分组;或者根据预设的组数和PWM数据的区间值得到PWM数据的组距,完成对PWM数据分组;然后,以PWM数据的数值,也即占空比作为横坐标,以PWM数据的出现次数,也即LED灯的数量作为纵坐标,制作得到统计直方图。统计直方图中包括各PWM数据组的柱状图,每个柱状图包含当前PWM数据组内,PWM数据的出现次数和对应的PWM数值。统计直方图中包括各PWM数据组的柱状图,每个柱状图表示当前PWM数据组内,PWM数据的数值范围和出现次数。然后,在统计直方图中,根据平均电流值制作电流直线。各PWM数据对应电流直线中的电流参数。然后,根据预设的规则,在电流直线中选取统计直方图的中心平衡点。然后,以此中心平衡点作为中心,逆时针单步旋转电流直线,使PWM数值较大的LED灯获得更大的电流值,PWM数值较小的LED灯获得更小的电流值,以增强画面中明亮部分和灰暗部分的对比度。As an implementation manner, first, the PWM data conversion calculation processing unit calculates the average current value of the LED lamp in the dot matrix backlight according to the preset total power of the dot matrix backlight, and the rated power supply voltage and the PWM data, and the average current is obtained. The value is taken as the initial current value of each LED lamp. Then, the PWM data conversion calculation processing unit creates a statistical histogram based on the obtained PWM data. Obtain the maximum value and the minimum value in the PWM data, calculate the interval value of the PWM data; then, obtain the number of PWM data groups according to the preset group distance and the interval value of the PWM data, complete the grouping of the PWM data; or according to the pre- Set the number of groups and the interval value of the PWM data to obtain the group distance of the PWM data, and complete the grouping of the PWM data; then, the value of the PWM data, that is, the duty ratio as the abscissa, the number of occurrences of the PWM data, that is, the LED The number of lamps is plotted on the ordinate to obtain a statistical histogram. The statistical histogram includes a histogram of each PWM data set, and each histogram contains the number of occurrences of the PWM data and the corresponding PWM value in the current PWM data set. The statistical histogram includes a histogram of each PWM data set, and each histogram represents the numerical range and number of occurrences of the PWM data in the current PWM data set. Then, in the statistical histogram, a current straight line is made based on the average current value. Each PWM data corresponds to a current parameter in the current line. Then, according to the preset rule, the center balance point of the statistical histogram is selected in the current straight line. Then, with this central equilibrium point as the center, the current line is rotated counterclockwise in a single step, so that the LED lamp with a larger PWM value obtains a larger current value, and the LED lamp with a smaller PWM value obtains a smaller current value to enhance the picture. The contrast between the bright part and the dark part.
在电流直线旋转过程中,PWM数据转换计算处理单元根据每次单步旋转后的电流直线,计算得到各PWM数据对应的电流参数,从而得到各LED灯的电流参数。然后,根据获得的各LED灯的电流参数,计算控制点阵背光源中所有的LED灯时消耗的功率。在消耗的功率满足预先配置的点阵背光源总功率时,停止旋转电流直线,并以此时电流直线对应的各电流参数,作为控制点阵背光源中每个LED灯的电流参数。需要说明的是,旋转电流直线时,每旋转一次的步长为预设的阈值,可根据实际需要灵活设置。例如,若需要加快电流直线的旋转速度,使计算得到的消耗功率快速达到预先配置的点阵背光源总功率,则可以将旋转步长的阈值设置的较大;若不要求控制电流直线的旋转速度,为了进行精准调控,可以将旋转步长的阈值设置的较小。During the linear rotation of the current, the PWM data conversion calculation processing unit calculates the current parameters corresponding to the respective PWM data according to the current straight line after each single-step rotation, thereby obtaining current parameters of the respective LED lamps. Then, based on the obtained current parameters of the LED lamps, the power consumed when controlling all the LED lamps in the dot matrix backlight is calculated. When the consumed power satisfies the total power of the pre-configured dot matrix backlight, the rotation current straight line is stopped, and each current parameter corresponding to the current straight line at this time is used as a current parameter for controlling each LED light in the dot matrix backlight. It should be noted that when the rotation current is straight, the step size per rotation is a preset threshold, which can be flexibly set according to actual needs. For example, if it is necessary to speed up the linear rotation speed of the current, and the calculated power consumption can quickly reach the total power of the pre-configured dot matrix backlight, the threshold of the rotation step can be set larger; if the control current is not required to rotate linearly Speed, for precise control, the threshold of the rotation step can be set smaller.
由此,PWM数据转换计算处理单元得到控制点阵背光源中每个LED灯的电流参数。在本实施例中,得到的电流参数即为电流值。然后,PWM数据转换计算处理单元将每个LED灯的电流参数存入SPI发送数据缓存器。中央CPU处理单元控制SPI总线数据发送单元将存储的PWM数据和电流参数发送给各LED灯的驱动电路模块。Thus, the PWM data conversion calculation processing unit obtains current parameters for each LED lamp in the control dot matrix backlight. In the present embodiment, the obtained current parameter is the current value. Then, the PWM data conversion calculation processing unit stores the current parameters of each of the LED lamps in the SPI transmission data buffer. The central CPU processing unit controls the SPI bus data transmitting unit to transmit the stored PWM data and current parameters to the driving circuit module of each LED lamp.
本实施例通过获取每帧显示画面的PWM数据,将所有的PWM数据送入PWM数据转换计算处理单元,PWM数据转换计算处理单元根据本发明提供的点阵背光源驱动方法,根据PWM数据计算得到对应每个LED灯的有效控制电流数据。然后,中央CPU处理单元将PWM数据转换模块输出的LED灯
电流数据通过SPI总线,刷新到对应的每个LED灯的电流控制电路,用以控制每个LED灯的电流值大小。中央CPU处理单元将PWM数据通过SPI总线刷新到对应的每个LED灯的PWM开关电路,将此PWM数据按照LED灯的地址映射关系表准确写入每个LED灯的驱动PWM寄存器,用以调节每个LED灯的电路开关时间,这样让每个LED灯的PWM脉宽占空比和导通电流均可自由设定。In this embodiment, all the PWM data is sent to the PWM data conversion calculation processing unit by acquiring the PWM data of the display picture of each frame, and the PWM data conversion calculation processing unit is calculated according to the PWM data according to the dot matrix backlight driving method provided by the present invention. Corresponding to the effective control current data of each LED lamp. Then, the central CPU processing unit outputs the LED light of the PWM data conversion module.
The current data is refreshed to the corresponding current control circuit of each LED lamp through the SPI bus to control the current value of each LED lamp. The central CPU processing unit refreshes the PWM data to the corresponding PWM switching circuit of each LED lamp through the SPI bus, and accurately writes the PWM data to the driving PWM register of each LED lamp according to the address mapping table of the LED lamp for adjusting The circuit switching time of each LED lamp is such that the PWM pulse width duty ratio and the on current of each LED lamp can be freely set.
步骤S30、根据所述PWM数据和所述电流参数独立控制所述各LED灯,驱动所述点阵背光源。Step S30, independently controlling the LED lights according to the PWM data and the current parameter to drive the dot matrix backlight.
LED灯的驱动电路模块接收点阵背光源中每个LED灯的PWM数据和电流参数,独立控制各LED灯,驱动点阵背光源。The driving circuit module of the LED lamp receives the PWM data and current parameters of each LED lamp in the dot matrix backlight, independently controls each LED lamp, and drives the dot matrix backlight.
具体的,作为一种实施方式,点阵背光源中的每个LED灯均配置有独立的PWM开关电路和电流控制电路,参照图2,可以通过驱动IC(integrated circuit,集成电路)的内部设计改进实现,或在驱动IC的外部电路设计实现。LED灯的驱动电路模块根据获取的各LED灯的PWM数据,通过各LED灯的PWM开关电路,分别对各LED灯进行PWM控制,控制各LED灯的脉宽占空比。同时,LED灯的驱动电路模块根据获取的各LED灯的电流参数,通过各LED灯的电流控制电路,分别对各LED灯进行电流控制。由此,LED灯的驱动电路模块实现对点阵背光源的驱动,显示当前的电视画面。在本实施例中,通过实时获取电视的每一帧画面,并实时进行动态的数据分析和计算,从而保证电视画面的连续性和高画质。Specifically, as an implementation manner, each LED light in the dot matrix backlight is configured with an independent PWM switching circuit and a current control circuit. Referring to FIG. 2, an internal design of an integrated circuit (IC) can be adopted. Improved implementation, or implementation of external circuit design in the driver IC. The driving circuit module of the LED lamp performs PWM control on each LED lamp through the PWM switching circuit of each LED lamp according to the acquired PWM data of each LED lamp, and controls the pulse width duty ratio of each LED lamp. At the same time, the driving circuit module of the LED lamp performs current control on each LED lamp through the current control circuit of each LED lamp according to the obtained current parameters of each LED lamp. Thereby, the driving circuit module of the LED lamp realizes driving of the dot matrix backlight and displays the current television picture. In this embodiment, each frame of the television is acquired in real time, and dynamic data analysis and calculation are performed in real time, thereby ensuring continuity and high image quality of the television picture.
本实施例通过根据获取的PWM数据制作统计直方图,从而调整各PWM数据对应的LED灯的电流参数,实现了对点阵背光源中所有LED灯的电流都按需分配,在保证功耗的条件下,使电视画面整体达到最佳显示效果,避免了功率损耗和能源浪费。In this embodiment, by preparing a statistical histogram according to the acquired PWM data, the current parameters of the LED lights corresponding to the PWM data are adjusted, and the currents of all the LED lights in the dot matrix backlight are allocated as needed, and the power consumption is guaranteed. Under the conditions, the TV screen as a whole can achieve the best display effect, avoiding power loss and energy waste.
进一步的,本发明点阵背光源驱动方法第二实施例提供一种点阵背光源驱动方法,基于上述本发明点阵背光源驱动方法第一实施例,所述PWM数据为对应所述点阵背光源中的各LED灯的各PWM数据,所述步骤S20包括:Further, a second embodiment of the dot matrix backlight driving method of the present invention provides a dot matrix backlight driving method. Based on the first embodiment of the dot matrix backlight driving method of the present invention, the PWM data corresponds to the dot matrix. Each PWM data of each LED light in the backlight, the step S20 includes:
步骤S21、根据所述PWM数据和预先配置的点阵背光源总功率、额定电压,计算点阵背光源中每个LED灯的平均电流。Step S21: Calculate an average current of each LED lamp in the dot matrix backlight according to the PWM data and the pre-configured dot matrix backlight total power and rated voltage.
在获取点阵背光电源中各LED灯的PWM数据后,LED灯驱动控制管理模块的中央CPU处理单元将PWM数据输入给PWM数据转换计算处理单元,PWM数据转换计算处理单元根据得到的PWM数据,转换计算出每个LED灯的驱动电流参数。After acquiring the PWM data of each LED lamp in the dot matrix backlight power supply, the central CPU processing unit of the LED lamp driving control management module inputs the PWM data to the PWM data conversion calculation processing unit, and the PWM data conversion calculation processing unit according to the obtained PWM data. The conversion calculates the drive current parameters for each LED lamp.
作为一种实施方式,PWM数据转换计算处理单元根据预先配置的点阵背光源总功率,和额定电源电压、PWM数据,计算得到点阵背光源中LED灯的平均电流值,将平均电流值作为各LED灯的初始电流值。As an implementation manner, the PWM data conversion calculation processing unit calculates the average current value of the LED lamp in the dot matrix backlight according to the pre-configured total dot matrix backlight power, the rated power supply voltage, and the PWM data, and uses the average current value as The initial current value of each LED lamp.
具体计算过程如下:The specific calculation process is as follows:
首先,根据PWM数据计算PWM数据的平均值。First, the average value of the PWM data is calculated based on the PWM data.
取当前点阵背光源中共有n个LED灯,各LED灯的PWM数值为PWM1、PWM2、PWM3……PWMn,PWM数据的平均值为PWMavg,则根据公式PWMavg=(PWM1+PWM2+PWM3+…+PWMn)/n计算得到PWMavg。
There are a total of n LED lights in the current dot matrix backlight. The PWM values of each LED lamp are PWM1, PWM2, PWM3, ... PWMn. The average value of the PWM data is PWM avg , according to the formula PWM avg = (PWM1+PWM2+PWM3+ ...+PWMn)/n calculates the PWM avg .
然后,根据预先配置的点阵背光源总功率,和额定电源电压、PWM数据的平均值,计算当前点阵背光源最大允许的平均电流值。Then, based on the pre-configured dot matrix backlight total power, and the rated power supply voltage and the average value of the PWM data, the maximum allowable average current value of the current dot matrix backlight is calculated.
取总功率为P,额定电源电压为V,PWM数据的平均值为PWMavg,平均电流值为Iavg,则根据公式Iavg=P/(V×PWMavg)计算得到Iavg。To take the total power is P, the rated supply voltage is V, the average value of PWM data is PWM avg, value is the average current I avg, according to the formula I avg = P / (V × PWM avg) calculated I avg.
由此,得到点阵背光源中LED灯的平均电流值。Thereby, the average current value of the LED lamp in the dot matrix backlight is obtained.
步骤S22、根据对应所述点阵背光源中的各LED灯的各PWM数据,制作统计直方图。Step S22: Create a statistical histogram according to each PWM data corresponding to each LED lamp in the dot matrix backlight.
PWM数据转换计算处理单元根据得到的PWM数据,制作统计直方图。The PWM data conversion calculation processing unit creates a statistical histogram based on the obtained PWM data.
首先,获取PWM数据中的最大值PWMmax和最小值PWMmin,计算得到PWM数据的区间值。可根据公式PWMmax—PWMmin得到区间值。First, the maximum value PWMmax and the minimum value PWMmin in the PWM data are acquired, and the interval value of the PWM data is calculated. The interval value can be obtained according to the formula PWMmax-PWMmin.
然后,根据预设的组距和PWM数据的区间值得到PWM数据的组数,完成对PWM数据的分组;或者根据预设的组数和PWM数据的区间值得到PWM数据的组距,完成对PWM数据的分组。然后,以PWM数据的数值,也即占空比作为横坐标,以PWM数据的出现次数,也即LED灯的数量作为纵坐标,制作得到统计直方图。统计直方图中包括各PWM数据组的柱状图,每个柱状图表示当前PWM数据组内,PWM数据的数值范围和出现次数。Then, according to the preset group distance and the interval value of the PWM data, the number of PWM data is obtained, and the grouping of the PWM data is completed; or the group distance of the PWM data is obtained according to the preset number of groups and the interval value of the PWM data, and the pair is completed. Grouping of PWM data. Then, the statistical histogram is created by taking the value of the PWM data, that is, the duty ratio as the abscissa, and the number of occurrences of the PWM data, that is, the number of LED lamps as the ordinate. The statistical histogram includes a histogram of each PWM data set, and each histogram represents the numerical range and number of occurrences of the PWM data in the current PWM data set.
步骤S23、根据所述平均电流,在所述统计直方图中制作电流直线,所述统计直方图中各PWM数据对应所述电流直线上的电流参数。Step S23, according to the average current, a current straight line is formed in the statistical histogram, and each PWM data in the statistical histogram corresponds to a current parameter on the current straight line.
在得到统计直方图后,在统计直方图中,根据平均电流值制作电流直线。各PWM数据对应电流直线中的电流参数。After the statistical histogram is obtained, in the statistical histogram, a current straight line is created based on the average current value. Each PWM data corresponds to a current parameter in the current line.
具体的,作为一种实施方式,在统计直方图中,根据表示PWM数值的横坐标,以PWM数值对应的电流值为虚拟纵坐标,得到虚拟坐标轴。然后,以平均电流值为纵坐标值,PWM数据中的最大值PWMmax和最小值PWMmin分别为横坐标,得到点A和点B,连接点A和点B,得到电流直线AB。此时,平均电流值为各PWM数据所对应的初始电流值,也即各LED灯的初始电流值。Specifically, as an embodiment, in the statistical histogram, the virtual coordinate axis is obtained by using the current value corresponding to the PWM value as the virtual ordinate according to the abscissa indicating the PWM value. Then, with the average current value as the ordinate value, the maximum value PWMmax and the minimum value PWMmin in the PWM data are the abscissa, respectively, and point A and point B are obtained, and the point A and the point B are connected to obtain a current straight line AB. At this time, the average current value is an initial current value corresponding to each PWM data, that is, an initial current value of each LED lamp.
作为另一种实施方式,电流直线也可根据实际需要,设置为曲线,例如2.2Gamma(伽马)曲线,实现更好的画面表现效果。本实施例所指的电流直线,可根据实际需要灵活设置。As another implementation manner, the current straight line can also be set as a curve according to actual needs, for example, a 2.2 gamma curve to achieve better picture performance. The current straight line referred to in this embodiment can be flexibly set according to actual needs.
步骤S24、逆时针单步旋转所述电流直线,并根据旋转后的电流直线,计算得到控制所述各LED灯的电流参数。Step S24, stepping the current straight line counterclockwise, and calculating a current parameter for controlling each LED lamp according to the linear line after the rotation.
在获取电流直线后,旋转电流直线,并根据旋转后的电流直线,计算得到控制点阵背光源中每个LED灯的电流参数。After the current line is obtained, the current is linearly rotated, and the current parameter of each LED lamp in the control dot matrix backlight is calculated according to the linear line after the rotation.
具体的,作为一种实施方式,首先,按预设的规则,在电流直线上获取统计直方图的中心平衡点。然后,以此中心平衡点作为中心,逆时针单步旋转电流直线,使PWM数值较大的LED灯获得更大的电流值,PWM数值较小的LED灯获得更小的电流值,以增强画面中明亮部分和灰暗部分的对比度。需要说明的是,电流直线每一次进行旋转的旋转步长为预设的阈值。在电流直线旋转过程中,PWM数据转换计算处理单元根据每次单步旋转后的电流直线,计算得到各PWM数据对应的电流参数,从而得到各LED灯的电流参数。然后,根据获得的各LED灯的电流参数,计算驱动点阵背光源中所有的LED
灯时消耗的功率。在消耗的功率满足预先配置的点阵背光源总功率时,停止旋转电流直线,并以此时电流直线对应的各电流参数,作为对应的PWM数据的电流参数,也即控制点阵背光源中每个LED灯的电流参数。Specifically, as an implementation manner, first, a center balance point of a statistical histogram is acquired on a current straight line according to a preset rule. Then, with this central equilibrium point as the center, the current line is rotated counterclockwise in a single step, so that the LED lamp with a larger PWM value obtains a larger current value, and the LED lamp with a smaller PWM value obtains a smaller current value to enhance the picture. The contrast between the bright part and the dark part. It should be noted that the rotation step of each rotation of the current straight line is a preset threshold. During the linear rotation of the current, the PWM data conversion calculation processing unit calculates the current parameters corresponding to the respective PWM data according to the current straight line after each single-step rotation, thereby obtaining current parameters of the respective LED lamps. Then, according to the obtained current parameters of each LED lamp, calculate all the LEDs in the backlight of the driving matrix
The power consumed by the lamp. When the consumed power satisfies the total power of the pre-configured dot matrix backlight, the rotation current straight line is stopped, and each current parameter corresponding to the current straight line at this time is used as the current parameter of the corresponding PWM data, that is, in the control dot matrix backlight. Current parameters of each LED light.
由此,PWM数据转换计算处理单元得到控制点阵背光源中每个LED灯的电流参数。在本实施例中,得到的电流参数即为电流值,点阵背光源驱动装置将每个LED灯的电流值写入到与其对应的电流控制寄存器中。Thus, the PWM data conversion calculation processing unit obtains current parameters for each LED lamp in the control dot matrix backlight. In the present embodiment, the obtained current parameter is the current value, and the dot matrix backlight driving device writes the current value of each LED lamp into its corresponding current control register.
然后,PWM数据转换计算处理单元将每个LED灯的电流参数存入SPI发送数据缓存器。中央CPU处理单元控制SPI总线数据发送单元将存储的PWM数据和电流参数发送给各LED灯的驱动电路模块。Then, the PWM data conversion calculation processing unit stores the current parameters of each of the LED lamps in the SPI transmission data buffer. The central CPU processing unit controls the SPI bus data transmitting unit to transmit the stored PWM data and current parameters to the driving circuit module of each LED lamp.
实施例通过点阵背光源中各LED灯的平均电流,确定各LED的初始电流;然后,通过电流直线将各LED灯对应的电流参数函数化,便于调控;逆时针旋转电流直线时,使PWM数值较大的LED灯获得更大的电流值,更为明亮,PWM数值较小的LED灯获得更小的电流值,亮度更低;通过旋转电流直线调整对应的各LED灯的电流参数,从而使各LED消耗的功率满足预先设置的总功率。由此,本实施例在满足预设的总功率的同时,保证了电视画面的质量,实现了节能减排的目标,绿色环保且同时保证画面效果,提升了用户体验。In the embodiment, the initial current of each LED is determined by the average current of each LED lamp in the dot matrix backlight; then, the current parameter corresponding to each LED lamp is functionalized by a straight line to facilitate regulation; when the current is counterclockwise, the PWM is made. Larger LED lamps obtain larger current values and are brighter. LED lamps with smaller PWM values obtain smaller current values and lower brightness; linearly adjust the current parameters of the corresponding LED lamps by rotating current, thereby The power consumed by each LED is made to satisfy the preset total power. Therefore, the present embodiment satisfies the preset total power, ensures the quality of the television picture, realizes the goal of energy saving and emission reduction, is green and environmentally friendly, and at the same time ensures the picture effect and improves the user experience.
进一步的,本发明点阵背光源驱动方法第三实施例提供一种点阵背光源驱动方法,基于上述本发明点阵背光源驱动方法第二实施例,所述步骤S24包括:Further, the third embodiment of the dot matrix backlight driving method of the present invention provides a dot matrix backlight driving method. Based on the second embodiment of the dot matrix backlight driving method of the present invention, the step S24 includes:
步骤S241、根据预设的规则,在所述电流直线上选取所述统计直方图的中心平衡点。Step S241: Select a center balance point of the statistical histogram on the current straight line according to a preset rule.
在获取电流直线后,旋转电流直线,并根据旋转后的电流直线,计算得到控制点阵背光源中每个LED灯的电流参数。After the current line is obtained, the current is linearly rotated, and the current parameter of each LED lamp in the control dot matrix backlight is calculated according to the linear line after the rotation.
首先,按预设的规则,在电流直线上获取统计直方图的中心平衡点。具体的,作为一种实施方式,计算统计直方图中,各PWM数据组中PWM数据的数量,占全部LED灯的PWM数据总量的百分比。其中,各PWM数据组中PWM数据的出现次数即为数据组中PWM数据的数量。得到占比最高的PWM数据组后,根据预设规则选取此数据组中的一个PWM数据。PWM数据的选取规则可以是其所属数据组中,PWM数据的中间值,或PWM数据的最大值,也可以是其所属数据组的其他数值。然后,将选取的PWM数据的电流值设置为平均电流,得到电流直线上对应的点C。点C的横坐标为选取的PWM数值,纵坐标为平均电流。点C即为获得的中心平衡点。此后,点C的坐标值保持不变。First, the central equilibrium point of the statistical histogram is obtained on the current line according to a preset rule. Specifically, as an implementation manner, the number of PWM data in each PWM data group in the statistical histogram is calculated as a percentage of the total amount of PWM data of all the LED lamps. The number of occurrences of the PWM data in each PWM data group is the number of PWM data in the data group. After obtaining the highest proportion of PWM data sets, one PWM data in this data set is selected according to a preset rule. The selection rule of the PWM data may be the intermediate value of the PWM data in the data group to which it belongs, or the maximum value of the PWM data, or other values of the data group to which it belongs. Then, the current value of the selected PWM data is set to the average current to obtain a point C corresponding to the current line. The abscissa of point C is the selected PWM value and the ordinate is the average current. Point C is the central equilibrium point obtained. Thereafter, the coordinate value of point C remains unchanged.
作为另一种实施方式,可以选取电流直线上,点A和点B之间线段的2等分点,作为中心平衡点。也可以根据PWM数据情况,选取线段AB上的任意一点,作为中心平衡点。得到的中心平衡点对应的PWM数值为横坐标,平均电流为纵坐标。此后,中心平衡点的坐标值保持不变。As another embodiment, a 2 equal point of the line segment between the point A and the point B on the current line may be selected as the center balance point. It is also possible to select any point on the line segment AB as the center balance point according to the PWM data. The obtained PWM value of the center balance point is the abscissa and the average current is the ordinate. Thereafter, the coordinate values of the center balance point remain unchanged.
步骤S242、以所述中心平衡点为旋转中心点,逆时针单步旋转所述电流直线,旋转步长为预设的阈值。Step S242: rotating the current straight line counterclockwise by using the center balance point as a rotation center point, and the rotation step length is a preset threshold.
在得到中心平衡点后,以此中心平衡点作为旋转中心,逆时针单步旋转
电流直线。需要说明的是,电流直线每一次旋转的旋转步长为预设的阈值,旋转步长可根据处理速度的需求进行灵活设置。例如,若需要提升处理速度,可将旋转步长的阈值设置的较大;若需要提高处理精度,可将旋转步长的阈值设置的较小。由于电流直线的初始状态为与横坐标轴平行,因此逆时针旋转使得较大的PWM数值对应更大的电流值,较小的PWM数值对应更小的电流值。由此,能够使PWM数值较大的LED灯获得更大的电流值,PWM数值较小的LED灯获得更小的电流值,以增强画面中明亮部分和灰暗部分的对比度。After getting the center balance point, use this center balance point as the center of rotation and rotate counterclockwise in one step.
The current is straight. It should be noted that the rotation step of each rotation of the current straight line is a preset threshold, and the rotation step length can be flexibly set according to the requirement of the processing speed. For example, if the processing speed needs to be increased, the threshold of the rotation step can be set larger; if the processing precision needs to be improved, the threshold of the rotation step can be set smaller. Since the initial state of the current line is parallel to the abscissa axis, counterclockwise rotation causes a larger PWM value to correspond to a larger current value, and a smaller PWM value corresponds to a smaller current value. Thereby, it is possible to obtain a larger current value for the LED lamp having a larger PWM value, and a smaller current value for the LED lamp having a smaller PWM value to enhance the contrast between the bright portion and the dark portion of the picture.
步骤S243、根据预设的额定电流,计算得到所述各LED灯的最大电流参数,并控制所述各PWM数据对应的电流参数不超过所述最大电流参数且不小于预设的最小电流参数。Step S243: Calculate a maximum current parameter of each LED lamp according to a preset rated current, and control a current parameter corresponding to each PWM data not to exceed the maximum current parameter and not less than a preset minimum current parameter.
在电流直线进行旋转时,为保证根据得到的各PWM数值对应的电流驱动各LED灯时,LED灯过于明亮或过于灰暗,因此设置有最大电流参数和最小电流参数,保证电流直线旋转时,得到的电流参数使LED灯的亮度在合理范围内。具体的,作为一种实施方式,首先,根据预设的额定电流,计算得到各LED灯的最大电流参数。取额定电流为I额定,PWM数据的最大值为PWMmax,LED灯的最大电流为Imax,则根据公式:When the current is linearly rotated, the LED lamp is too bright or too dark to ensure that the LED lamp is too bright or too dark according to the current corresponding to each PWM value obtained. Therefore, the maximum current parameter and the minimum current parameter are set to ensure that the current is linearly rotated. The current parameter makes the brightness of the LED light within a reasonable range. Specifically, as an implementation manner, first, a maximum current parameter of each LED lamp is calculated according to a preset rated current. Take the rated current as I rated, the maximum value of PWM data is PWMmax, and the maximum current of LED light is Imax, according to the formula:
Imax=I额定×PWMmax,计算可得各LED灯的最大电流值,也即最大电流参数。Imax=I rated × PWMmax, calculate the maximum current value of each LED lamp, that is, the maximum current parameter.
因此,与各LED灯对应的PWM数据,在电流直线上对应的电流参数最大值为Imax。为保证各LED灯的亮度不过于灰暗,预设有各LED灯的最小电流参数Imin,由此可得各LED灯对应的PWM数据,在电流直线上对应的电流参数最小值为Imin。由此,得到各PWM数据对应的最大电流参数和最小电流参数。在电流直线旋转时,控制最大PWM数值对应的电流参数小于或等于最大电流参数,即可实现各PWM数据对应的电流参数不超过最大电流参数;控制最小PWM数值对应的电流参数大于或等于最小电流参数,即可实现各PWM数据对应的电流参数不低于最小电流参数。Therefore, the maximum value of the current parameter corresponding to the PWM data corresponding to each LED lamp is Imax. In order to ensure that the brightness of each LED lamp is not too dark, the minimum current parameter Imin of each LED lamp is pre-set, thereby obtaining the PWM data corresponding to each LED lamp, and the minimum current parameter corresponding to the current line is Imin. Thereby, the maximum current parameter and the minimum current parameter corresponding to each PWM data are obtained. When the current is linearly rotated, the current parameter corresponding to the maximum PWM value is less than or equal to the maximum current parameter, so that the current parameter corresponding to each PWM data does not exceed the maximum current parameter; the current parameter corresponding to the minimum PWM value is greater than or equal to the minimum current. The parameter can realize that the current parameter corresponding to each PWM data is not lower than the minimum current parameter.
步骤S244、根据旋转后的电流直线,计算得到控制所述各LED灯的电流参数。Step S244, calculating a current parameter for controlling each of the LED lamps according to the linear line after the rotation.
在电流直线每次进行单步旋转后,PWM数据转换计算处理单元根据每次单步旋转后的电流直线,计算得到各PWM数据对应的电流参数,从而得到各LED灯的电流参数。然后,根据获得的各LED灯的电流参数,计算驱动点阵背光源中所有的LED灯时消耗的功率。在消耗的功率满足预先配置的点阵背光源总功率时,停止旋转电流直线,并以此时电流直线对应的各电流参数,作为对应的PWM数据的电流参数,也即控制点阵背光源中每个LED灯的电流参数。由此,PWM数据转换计算处理单元得到控制点阵背光源中每个LED灯的电流参数。然后,点阵背光源驱动装置将每个LED灯的电流值写入到与其对应的电流控制寄存器中。然后,PWM数据转换计算处理单元将每个LED灯的电流参数存入SPI发送数据缓存器。中央CPU处理单元控制SPI总线数据发送单元将存储的PWM数据和电流参数发送给各LED灯的驱动电路模块。After each step of the current straight line is performed, the PWM data conversion calculation processing unit calculates the current parameters corresponding to the respective PWM data according to the current straight line after each single-step rotation, thereby obtaining the current parameters of the respective LED lamps. Then, based on the obtained current parameters of the LED lamps, the power consumed when driving all of the LED lamps in the dot matrix backlight is calculated. When the consumed power satisfies the total power of the pre-configured dot matrix backlight, the rotation current straight line is stopped, and each current parameter corresponding to the current straight line at this time is used as the current parameter of the corresponding PWM data, that is, in the control dot matrix backlight. Current parameters of each LED light. Thus, the PWM data conversion calculation processing unit obtains current parameters for each LED lamp in the control dot matrix backlight. Then, the dot matrix backlight driving device writes the current value of each LED lamp into its corresponding current control register. Then, the PWM data conversion calculation processing unit stores the current parameters of each of the LED lamps in the SPI transmission data buffer. The central CPU processing unit controls the SPI bus data transmitting unit to transmit the stored PWM data and current parameters to the driving circuit module of each LED lamp.
本实施例通过选取中心平衡点,以中心平衡点旋转为转轴,逆时针单步
旋转电流直线,使画面明亮的部分更明亮,灰暗的部分灰暗,增强对比度,同时保证LED灯的亮度在合理的范围内。根据得到的电流参数驱动各LED灯,既满足了预先配置的总功率,又提高了画面质量。In this embodiment, by selecting the center balance point, the center balance point is rotated as a rotation axis, and the counterclockwise step is single step.
The linearity of the rotating current makes the bright part of the picture brighter, the dark part is gray, enhances the contrast, and ensures that the brightness of the LED light is within a reasonable range. Driving each LED lamp according to the obtained current parameter not only satisfies the pre-configured total power, but also improves the picture quality.
进一步的,本发明点阵背光源驱动方法第四实施例提供一种点阵背光源驱动方法,基于上述本发明点阵背光源驱动方法第三实施例,所述步骤S244包括:Further, the fourth embodiment of the dot matrix backlight driving method of the present invention provides a dot matrix backlight driving method. Based on the third embodiment of the dot matrix backlight driving method of the present invention, the step S244 includes:
步骤S2441、根据旋转后的电流直线,计算得到所述各PWM数据对应的电流参数。In step S2441, the current parameter corresponding to each PWM data is calculated according to the linear line after the rotation.
在电流直线每次进行单步旋转后,PWM数据转换计算处理单元根据每次单步旋转后的电流直线,计算得到各PWM数据对应的电流参数,从而得到各LED灯的电流参数。After each step of the current straight line is performed, the PWM data conversion calculation processing unit calculates the current parameters corresponding to the respective PWM data according to the current straight line after each single-step rotation, thereby obtaining the current parameters of the respective LED lamps.
具体的,作为一种实施方式,参照图3,以统计直方图中的直线z表示平均电流值的电流直线。直线z经过一次逆时针单步旋转后,得到直线AB,直线AB上对应PWM数据最大值的电流值未超过最大电流值,直线AB上对应PWM数据最小值的电流值未低于最小电流值。Specifically, as an embodiment, referring to FIG. 3, a straight line z representing a mean current value is represented by a straight line z in a statistical histogram. After a straight line z is rotated counterclockwise by one step, a straight line AB is obtained, and the current value corresponding to the maximum value of the PWM data on the line AB does not exceed the maximum current value, and the current value corresponding to the minimum value of the PWM data on the line AB is not lower than the minimum current value.
取直线AB的函数为y=kx+b,x为PWM数值,y为x对应的电流参数。The function of taking the straight line AB is y=kx+b, x is the PWM value, and y is the current parameter corresponding to x.
由于中心平衡点为点C,横坐标为选取的PWM数值,纵坐标为平均电流,则直线AB上的点C坐标值已知。由于直线z旋转至直线AB的旋转角度为预设值,则可以计算得到k的值。进而,将点C的坐标值代入直线AB的函数计算,可以得到b的值。然后,由于函数y=kx+b中的k值和b值已知,将各PWM数值作为x值代入函数计算,可得到对应的y值,也即电流参数。由此,得到统计直方图中各PWM数据对应的电流参数,也即各LED灯的电流参数。Since the center balance point is point C, the abscissa is the selected PWM value, and the ordinate is the average current, the point C coordinate value on the line AB is known. Since the rotation angle of the straight line z to the straight line AB is a preset value, the value of k can be calculated. Further, by calculating the coordinate value of the point C into the function of the straight line AB, the value of b can be obtained. Then, since the k value and the b value in the function y=kx+b are known, the PWM values are substituted into the function as the value of x, and the corresponding y value, that is, the current parameter, can be obtained. Thereby, the current parameters corresponding to the respective PWM data in the statistical histogram, that is, the current parameters of the respective LED lamps, are obtained.
步骤S2442、计算得到根据所述各PWM数据和对应的电流参数控制所述各LED灯的驱动功率。Step S2442, calculating that the driving power of each of the LED lamps is controlled according to the PWM data and the corresponding current parameter.
在得到统计直方图中各PWM数据对应的电流参数后,根据获得的各LED灯的电流参数,计算驱动点阵背光源中所有的LED灯时消耗的功率。After obtaining the current parameters corresponding to the PWM data in the statistical histogram, the power consumed when driving all the LED lights in the dot matrix backlight is calculated according to the obtained current parameters of the LED lamps.
具体的,作为一种实施方式,取当前点阵背光源中共有n个LED灯,各LED灯的PWM数值为PWM1、PWM2、PWM3……PWMn,电流参数为I1、I2、I3……In,额定电压为V,则根据如下公式计算驱动点阵背光源时的驱动功率P1:Specifically, as an implementation manner, a total of n LED lights are used in the current dot matrix backlight, and the PWM values of the LED lights are PWM1, PWM2, PWM3, ... PWMn, and the current parameters are I1, I2, I3, ... In, When the rated voltage is V, the driving power P1 when driving the dot matrix backlight is calculated according to the following formula:
P1=I1×V×PWM1+I2×V×PWM2+I3×V×PWM3+……In×V×PWMn。P1 = I1 × V × PWM1 + I2 × V × PWM2 + I3 × V × PWM3 + ... In × V × PWMn.
由此,得到根据各PWM数据和对应的电流参数控制点阵背光源中各LED灯时的驱动功率。Thereby, the driving power at the time of controlling each LED lamp in the dot matrix backlight according to each PWM data and the corresponding current parameter is obtained.
步骤S2443、判断所述驱动功率是否达到总功率。Step S2443, determining whether the driving power reaches the total power.
在得到驱动点阵背光源中各LED灯的驱动功率后,判断当前的驱动功率是否达到预先配置的总功率。具体的,作为一种实施方式,预先配置的总功率可根据实际需求进行设置。根据总功率的值,取预设的功率区间,功率区间内的功率值为达到总功率的功率值。例如,取功率区间为总功率的90%至100%,则在此范围内的功率值达到总功率,大于100%总功率或小于90%总功率的功率值均未达到总功率。根据得到的驱动功率值,判断驱动功率是否
达到总功率。若驱动功率值位于预设的功率区间之内,则判定驱动功率达到总功率;若驱动功率位于预设的功率区间之外,则判定驱动功率没有达到总功率。由此,得到判定结果。After the driving power of each LED lamp in the backlight of the dot matrix is obtained, it is determined whether the current driving power reaches the pre-configured total power. Specifically, as an implementation manner, the total power configured in advance may be set according to actual requirements. According to the value of the total power, the preset power interval is taken, and the power value in the power interval is the power value reaching the total power. For example, if the power interval is 90% to 100% of the total power, the power value in this range reaches the total power, and the power value greater than 100% of the total power or less than 90% of the total power does not reach the total power. Determine whether the driving power is based on the obtained driving power value
Total power is reached. If the driving power value is within the preset power interval, it is determined that the driving power reaches the total power; if the driving power is outside the preset power interval, it is determined that the driving power does not reach the total power. Thereby, the determination result is obtained.
步骤S2444、若所述驱动功率没有达到所述总功率,则返回执行步骤:以所述中心平衡点为旋转中心点,逆时针单步旋转所述电流直线;若所述驱动功率达到所述总功率,则将所述各PWM数据对应的电流参数,作为控制所述各LED灯的电流参数并存储所述电流参数。Step S2444, if the driving power does not reach the total power, returning to the step of: rotating the current straight line counterclockwise with the center balance point as a rotation center point; if the driving power reaches the total For power, the current parameter corresponding to each PWM data is used as a current parameter for controlling each LED lamp and the current parameter is stored.
在得到判定结果后,若驱动功率没有达到总功率,则控制电流直线继续以中心平衡点为旋转中心,逆时针单步旋转,在旋转后,重新判定得到的驱动电视是否满足总功率。若驱动功率达到总功率,则停止旋转电流直线,并以此时电流直线对应的各电流参数,作为对应的PWM数据的电流参数,也即控制点阵背光源中每个LED灯的电流参数。由此,PWM数据转换计算处理单元得到控制点阵背光源中每个LED灯的电流参数。然后,点阵背光源驱动装置将每个LED灯的电流值写入到与其对应的电流控制寄存器中。然后,PWM数据转换计算处理单元将每个LED灯的电流参数存入SPI发送数据缓存器。中央CPU处理单元控制SPI总线数据发送单元将存储的PWM数据和电流参数发送给各LED灯的驱动电路模块。After the determination result is obtained, if the driving power does not reach the total power, the control current continues to rotate with the center balance point as the center of rotation, and rotates counterclockwise in a single step. After the rotation, it is determined whether the obtained driving TV satisfies the total power. If the driving power reaches the total power, the rotation current straight line is stopped, and each current parameter corresponding to the current straight line at this time is used as the current parameter of the corresponding PWM data, that is, the current parameter of each LED lamp in the dot matrix backlight is controlled. Thus, the PWM data conversion calculation processing unit obtains current parameters for each LED lamp in the control dot matrix backlight. Then, the dot matrix backlight driving device writes the current value of each LED lamp into its corresponding current control register. Then, the PWM data conversion calculation processing unit stores the current parameters of each of the LED lamps in the SPI transmission data buffer. The central CPU processing unit controls the SPI bus data transmitting unit to transmit the stored PWM data and current parameters to the driving circuit module of each LED lamp.
本实施例通过计算得到各LED灯的驱动功率后,判定是否满足总功率,不满足则继续调整各LED灯的电流参数,直至根据得到的电流参数配置的驱动功率满足配置的总功率,此时的电流参数为最佳的电流配置,实现了各LED灯功耗的最优化配置,避免能源的浪费,同时也保证了电视画面的高画质。In this embodiment, after the driving power of each LED lamp is calculated, it is determined whether the total power is satisfied. If the power is not satisfied, the current parameters of each LED lamp are continuously adjusted until the driving power configured according to the obtained current parameter satisfies the configured total power. The current parameter is the optimal current configuration, which realizes the optimal configuration of the power consumption of each LED lamp, avoids waste of energy, and ensures the high image quality of the TV picture.
参照图4,本发明点阵背光源驱动装置第一实施例提供一种点阵背光源驱动装置,所述点阵背光源驱动装置包括:Referring to FIG. 4, a first embodiment of a dot matrix backlight driving device of the present invention provides a dot matrix backlight driving device, and the dot matrix backlight driving device includes:
图像处理模块100,用于根据输入的电视信号,计算得到控制点阵背光源中每个发光二极管LED灯的脉冲宽度调制PWM数据。The image processing module 100 is configured to calculate, according to the input television signal, pulse width modulation PWM data of each LED light of the LED in the control dot matrix backlight.
驱动管理模块200,用于根据所述PWM数据,制作统计直方图,并根据所述统计直方图计算得到控制所述各LED灯的电流参数。The driving management module 200 is configured to generate a statistical histogram according to the PWM data, and calculate a current parameter for controlling each LED lamp according to the statistical histogram.
驱动电路模块300,用于根据所述PWM数据和所述电流参数独立控制所述各LED灯,驱动所述点阵背光源。The driving circuit module 300 is configured to independently control the LED lights according to the PWM data and the current parameter to drive the dot matrix backlight.
具体实施方式请参照本发明点阵背光源驱动方法第一实施例。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Please refer to the first embodiment of the dot matrix backlight driving method of the present invention.
本实施例通过根据获取的PWM数据制作统计直方图,从而调整各PWM数据对应的LED灯的电流参数,实现了对点阵背光源中所有LED灯的电流都按需分配,在保证功耗的条件下,使电视画面整体达到最佳显示效果,避免了功率损耗和能源浪费。In this embodiment, by preparing a statistical histogram according to the acquired PWM data, the current parameters of the LED lights corresponding to the PWM data are adjusted, and the currents of all the LED lights in the dot matrix backlight are allocated as needed, and the power consumption is guaranteed. Under the conditions, the TV screen as a whole can achieve the best display effect, avoiding power loss and energy waste.
进一步的,本发明点阵背光源驱动装置第二实施例提供一种点阵背光源驱动装置,基于上述本发明点阵背光源驱动装置第一实施例,所述PWM数据为对应所述点阵背光源中的各LED灯的各PWM数据,所述驱动管理模块200包括:Further, a second embodiment of the dot matrix backlight driving device of the present invention provides a dot matrix backlight driving device. According to the first embodiment of the dot matrix backlight driving device of the present invention, the PWM data corresponds to the dot matrix. Each PWM data of each LED light in the backlight, the drive management module 200 includes:
电流平均单元,用于根据所述PWM数据和预先配置的点阵背光源总功率、额定电压,计算点阵背光源中每个LED灯的平均电流。And a current averaging unit configured to calculate an average current of each of the LED lights in the dot matrix backlight according to the PWM data and the pre-configured dot matrix backlight total power and rated voltage.
直方图制作单元,用于根据对应所述点阵背光源中的各LED灯的各PWM
数据,制作统计直方图。a histogram making unit for each PWM corresponding to each LED light in the dot matrix backlight
Data, making a statistical histogram.
电流直线单元,用于根据所述平均电流,在所述统计直方图中制作电流直线,所述统计直方图中各PWM数据对应所述电流直线上的电流参数。And a current straight line unit configured to create a current straight line in the statistical histogram according to the average current, wherein each PWM data in the statistical histogram corresponds to a current parameter on the current straight line.
单步旋转单元,用于逆时针单步旋转所述电流直线,并根据旋转后的电流直线,计算得到控制所述各LED灯的电流参数。The single-step rotation unit is configured to rotate the current straight line counterclockwise, and calculate a current parameter for controlling each of the LED lamps according to the linear line after the rotation.
具体实施方式请参照本发明点阵背光源驱动方法第二实施例。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Please refer to the second embodiment of the dot matrix backlight driving method of the present invention.
本实施例通过点阵背光源中各LED灯的平均电流,确定各LED的初始电流;然后,通过电流直线将各LED灯对应的电流参数函数化,便于调控;逆时针旋转电流直线时,使PWM数值较大的LED灯获得更大的电流值,更为明亮,PWM数值较小的LED灯获得更小的电流值,亮度更低;通过旋转电流直线调整对应的各LED灯的电流参数,从而使各LED消耗的功率满足预先设置的总功率。由此,本实施例在满足预设的总功率的同时,保证了电视画面的质量,实现了节能减排的目标,绿色环保且同时保证画面效果,提升了用户体验。In this embodiment, the initial current of each LED is determined by the average current of each LED lamp in the dot matrix backlight; then, the current parameter corresponding to each LED lamp is functionalized by a straight line to facilitate regulation; when the current is reversed by a counterclockwise rotation, LED lamps with larger PWM values obtain larger current values and are brighter. LED lamps with smaller PWM values obtain smaller current values and lower brightness; linearly adjust the current parameters of the corresponding LED lamps by rotating current. Thereby, the power consumed by each LED satisfies the total power set in advance. Therefore, the present embodiment satisfies the preset total power, ensures the quality of the television picture, realizes the goal of energy saving and emission reduction, is green and environmentally friendly, and at the same time ensures the picture effect and improves the user experience.
进一步的,本发明点阵背光源驱动装置第三实施例提供一种点阵背光源驱动装置,基于上述本发明点阵背光源驱动装置第二实施例,所述单步旋转单元包括:Further, the third embodiment of the dot matrix backlight driving device of the present invention provides a dot matrix backlight driving device. According to the second embodiment of the dot matrix backlight driving device of the present invention, the single-step rotating unit includes:
中心点子单元,用于根据预设的规则,在所述电流直线上选取所述统计直方图的中心平衡点。The central point subunit is configured to select a center balance point of the statistical histogram on the current straight line according to a preset rule.
旋转子单元,用于以所述中心平衡点为旋转中心点,逆时针单步旋转所述电流直线,旋转步长为预设的阈值。The rotating subunit is configured to rotate the current straight line counterclockwise by using the center balance point as a rotation center point, and the rotation step length is a preset threshold.
边界子单元,用于根据预设的额定电流,计算得到所述各LED灯的最大电流参数,并控制所述各PWM数据对应的电流参数不超过所述最大电流参数且不小于预设的最小电流参数。a boundary subunit, configured to calculate a maximum current parameter of each LED lamp according to a preset rated current, and control a current parameter corresponding to each PWM data not to exceed the maximum current parameter and not less than a preset minimum Current parameters.
计算子单元,用于根据旋转后的电流直线,计算得到控制所述各LED灯的电流参数。The calculating subunit is configured to calculate a current parameter for controlling each of the LED lamps according to the linear line of the current after the rotation.
具体实施方式请参照本发明点阵背光源驱动方法第三实施例。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Please refer to the third embodiment of the dot matrix backlight driving method of the present invention.
本实施例通过选取中心平衡点,以中心平衡点旋转为转轴,逆时针单步旋转电流直线,使画面明亮的部分更明亮,灰暗的部分灰暗,增强对比度,同时保证LED灯的亮度在合理的范围内。根据得到的电流参数驱动各LED灯,既满足了预先配置的总功率,又提高了画面质量。In this embodiment, by selecting the center balance point, the center balance point is rotated as the rotation axis, and the current straight line is rotated counterclockwise, so that the bright part of the picture is brighter, the gray part is dark, the contrast is enhanced, and the brightness of the LED lamp is ensured at a reasonable level. Within the scope. Driving each LED lamp according to the obtained current parameter not only satisfies the pre-configured total power, but also improves the picture quality.
进一步的,本发明点阵背光源驱动装置第四实施例提供一种点阵背光源驱动装置,基于上述本发明点阵背光源驱动装置第三实施例,所述计算子单元包括:Further, the fourth embodiment of the dot matrix backlight driving device of the present invention provides a dot matrix backlight driving device. According to the third embodiment of the dot matrix backlight driving device of the present invention, the calculating subunit includes:
第一计算子单元,用于根据旋转后的电流直线,计算得到所述各PWM数据对应的电流参数。The first calculating subunit is configured to calculate a current parameter corresponding to each of the PWM data according to the linear line after the rotation.
第二功率子单元,用于根据所述额定电压、所述各PWM数据和对应的电流参数,计算得到根据所述各PWM数据和对应的电流参数控制所述各LED灯的驱动功率。The second power subunit is configured to calculate, according to the rated voltage, the PWM data and the corresponding current parameter, driving power of each LED lamp according to the PWM data and a corresponding current parameter.
第三判断子单元,用于判断所述驱动功率是否达到所述总功率。The third determining subunit is configured to determine whether the driving power reaches the total power.
第四获取子单元,用于若所述驱动功率达到所述总功率,则将所述各
PWM数据对应的电流参数,作为控制所述各LED灯的电流参数并存储所述电流参数。a fourth obtaining subunit, configured to: if the driving power reaches the total power,
The current parameter corresponding to the PWM data is used as a current parameter for controlling the LED lamps and stores the current parameter.
所述旋转子单元,还用于若所述驱动功率不满足所述总功率,则以所述中心平衡点为旋转中心点,逆时针单步旋转所述电流直线。The rotating subunit is further configured to rotate the current straight line counterclockwise by using the center balance point as a rotation center point if the driving power does not satisfy the total power.
具体实施方式请参照本发明点阵背光源驱动方法第四实施例。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Please refer to the fourth embodiment of the dot matrix backlight driving method of the present invention.
本实施例通过计算得到各LED灯的驱动功率后,判定是否满足总功率,不满足则继续调整各LED灯的电流参数,直至根据得到的电流参数配置的驱动功率满足配置的总功率,此时的电流参数为最佳的电流配置,实现了各LED灯功耗的最优化配置,避免能源的浪费,同时也保证了电视画面的高画质。In this embodiment, after the driving power of each LED lamp is calculated, it is determined whether the total power is satisfied. If the power is not satisfied, the current parameters of each LED lamp are continuously adjusted until the driving power configured according to the obtained current parameter satisfies the configured total power. The current parameter is the optimal current configuration, which realizes the optimal configuration of the power consumption of each LED lamp, avoids waste of energy, and ensures the high image quality of the TV picture.
参照图5,本发明点阵背光源驱动系统第一实施例提供一种点阵背光源驱动系统,所述点阵背光源驱动系统包括电视视频图像处理MEMC模块A、发光二极管LED灯驱动控制管理模块B和LED灯驱动电路模块C,其中:Referring to FIG. 5, a first embodiment of a dot matrix backlight driving system of the present invention provides a dot matrix backlight driving system, and the dot matrix backlight source driving system includes a television video image processing MEMC module A, and an LED light source driving control management. Module B and LED lamp drive circuit module C, where:
所述电视视频图像处理MEMC模块A,用于根据输入的电视信号,计算得到控制点阵背光源中每个发光二极管LED灯的脉冲宽度调制PWM数据;将所述PWM数据发送给所述LED灯驱动控制管理模块B。The television video image processing MEMC module A is configured to calculate, according to the input television signal, pulse width modulation PWM data of each LED LED lamp in the control dot matrix backlight; and send the PWM data to the LED lamp Drive Control Management Module B.
所述LED灯驱动控制管理模块B,用于接收所述电视视频图像处理MEMC模块A发送的所述PWM数据;根据所述PWM数据,制作统计直方图,并根据所述统计直方图计算得到控制所述各LED灯的电流参数;将所述PWM数据和所述电流参数发送给所述LED灯驱动电路模块C。The LED lamp driving control management module B is configured to receive the PWM data sent by the television video image processing MEMC module A; generate a statistical histogram according to the PWM data, and calculate and control according to the statistical histogram Current parameters of the LED lamps; transmitting the PWM data and the current parameters to the LED lamp driving circuit module C.
LED灯驱动控制管理模块B位于LED点阵光源的驱动板,用于接收电视视频图像处理MEMC模块A发送的PWM数据,进行分析和计算,得到点阵背光源中每个LED灯的最佳电流控制参数,并将PWM数据和电流参数发送到LED灯驱动电路模块C。The LED lamp drive control management module B is located on the driving board of the LED dot matrix light source for receiving the PWM data sent by the TV video image processing MEMC module A, performing analysis and calculation, and obtaining the optimal current of each LED lamp in the dot matrix backlight source. The parameters are controlled and the PWM data and current parameters are sent to the LED lamp drive circuit module C.
当LED灯驱动控制管理模块B接收解析出上位机发过来的各PWM数据后,分为两个部分使用和处理该数据。第一部分是直接将各PWM数据按照对应的LED灯的地址映射关系表准确写入各LED灯的驱动PWM寄存器,以决定各LED灯的开关时间;另一部分则是用来计算出各LED灯的电流参数,也即电流值,然后将各LED灯的电流值写入到与其对应的电流控制寄存器中。When the LED lamp drive control management module B receives and parses the PWM data sent by the host computer, the data is used and processed in two parts. The first part is to directly write each PWM data to the drive PWM register of each LED lamp according to the corresponding address mapping table of the LED lamp to determine the switching time of each LED lamp; the other part is used to calculate the LED lights. The current parameter, that is, the current value, then writes the current value of each LED lamp into its corresponding current control register.
例如,对于配置288颗LED灯的点阵背光源,通过本发明的点阵背光源驱动方法实施例,计算出每个LED灯与其PWM占空比匹配的电流值,然后将这288个电流值写入到对应的288个LED灯的电流控制寄存器中,使每个LED灯都有一个电流控制值,从而改变了现有技术让所有的LED灯或者局部区域的同组LED灯都使用同一个电流值的做法,不仅提升了画面效果而且还避免了功率损耗和能源浪费。For example, for a dot matrix backlight configured with 288 LED lamps, by the embodiment of the dot matrix backlight driving method of the present invention, the current value of each LED lamp matching its PWM duty ratio is calculated, and then the 288 current values are obtained. Write to the corresponding 288 LED lamp current control registers, so that each LED lamp has a current control value, thus changing the prior art to make all LED lights or the same group of LED lights in the local area use the same The current value method not only improves the picture effect but also avoids power loss and energy waste.
具体的,作为一种实施方式,首先,LED灯驱动控制管理模块B将PWM数据转换成对应的各LED灯的电流参数。然后LED灯驱动控制管理模块B将得到的各LED灯电流参数通过SPI总线刷新到各LED灯对应的电流驱动电路,用以控制各LED灯的电流值大小。Specifically, as an implementation manner, first, the LED lamp driving control management module B converts the PWM data into corresponding current parameters of the respective LED lamps. Then, the LED lamp driving control management module B refreshes the obtained LED lamp current parameters to the current driving circuit corresponding to each LED lamp through the SPI bus, and controls the current value of each LED lamp.
同时,LED灯驱动控制管理模块B直接将所接收到的PWM数据通过SPI总线刷新到各LED灯对应的PWM开关控制电路,用以调节各LED灯的电路开关时间。
At the same time, the LED lamp drive control management module B directly refreshes the received PWM data to the PWM switch control circuit corresponding to each LED lamp through the SPI bus, and is used to adjust the circuit switching time of each LED lamp.
这样,让每个LED灯的PWM占空比和导通电流均可自由设定。In this way, the PWM duty cycle and the on current of each LED lamp can be freely set.
其中,LED灯驱动控制管理模块B将PWM数据转换成对应的各LED灯的电流参数具体计算过程,以配置288颗LED灯的点阵背光源,进行举例说明。The LED lamp driving control management module B converts the PWM data into a corresponding specific calculation process of the current parameters of each LED lamp, and configures a dot matrix backlight source of 288 LED lamps for illustration.
电视机配置给LED点阵背光源驱动板上所有LED灯的工作可使用的电源功率为420W,也即配置的总功率为420W。The TV is configured to work with all LED lights on the LED dot matrix backlight driver board. The power supply power is 420W, that is, the total power configured is 420W.
由于LED灯加上导线的供电电压是9V,也即额定电压为9V,则所有LED灯正常工作可使用的最大电流是420/9≈47A。Since the supply voltage of the LED lamp plus the wire is 9V, that is, the rated voltage is 9V, the maximum current that can be used for all LED lamps to work normally is 420/9≈47A.
对于所有LED灯的PWM数据都是100%占空比的情况,每个LED灯的设定电流不能超过47A/288*100%=163mA,否则会使整个点阵背光源驱动板的使用功率超过配给。而对于一幅内容丰富的自然画面,不是所有的PWM数据都是100%,而是各种成分的都有,这时如果还是采用统一电流配置方式,则会使画面有明亮的地方不够亮、该暗的地方不够暗的普遍情况。尤其暗画面的区域,灯的电流也是配置很高,造成不必要的浪费。由于每个LED灯的最大额定电流可以到340mA,而明亮的地方由于电流被限定而不够大,使光源亮度没有被充分使用。For the PWM data of all LED lamps is 100% duty cycle, the set current of each LED lamp can not exceed 47A/288*100%=163mA, otherwise the power of the entire dot matrix backlight driver board will exceed rationing. For a rich natural picture, not all PWM data is 100%, but various components. If you use a uniform current configuration, the bright area of the picture will not be bright enough. The dark place is not dark enough for the general situation. Especially in the dark picture area, the current of the lamp is also very high in configuration, causing unnecessary waste. Since the maximum rated current of each LED lamp can be up to 340 mA, and the bright place is not large enough because the current is limited, the brightness of the light source is not fully utilized.
在驱动功率不超过总功率的情况下,为了能够使每个LED灯分配到最佳电流值,LED灯驱动控制管理模块B将接收到的各LED灯的PWM数据建立一个统计直方图,横坐标为PWM数据,也即占空比,纵坐标为LED灯的数量。对于高占空比的LED灯分配较大的电流,使这些LED灯发光最强,例如100%的分配到最大为340mA,对于低占空比的分配较低的电流值,使这些LED灯配合画面内容发光较暗,以此类推,在驱动功率不超过配置的总功率的情况下,计算出所有的LED灯的电流值,从而完成配合画面实际内容按需分配电流,从而最大效率的利用了LED光源和电源功率。In the case that the driving power does not exceed the total power, in order to enable each LED lamp to be assigned an optimum current value, the LED lamp driving control management module B establishes a statistical histogram, the abscissa, of the received PWM data of each LED lamp. For PWM data, ie duty cycle, the ordinate is the number of LED lights. For high duty-cycle LED lamps, a large current is distributed, so that these LED lamps emit the strongest light, for example, 100% is allocated to a maximum of 340 mA, and a low current value is assigned to a low duty ratio, so that these LED lamps are matched. The content of the screen is dimly lit, and so on. When the driving power does not exceed the total power of the configuration, the current values of all the LED lamps are calculated, thereby completing the current distribution of the actual content of the screen, thereby maximizing the efficiency. LED light source and power supply.
所述LED灯驱动电路模块C,用于接收所述LED灯驱动控制管理模块B发送的所述PWM数据和所述电流;根据所述PWM数据和所述电流参数独立控制所述各LED灯,驱动所述点阵背光源。The LED lamp driving circuit module C is configured to receive the PWM data and the current sent by the LED lamp driving control management module B; and independently control the LED lights according to the PWM data and the current parameter, Driving the dot matrix backlight.
LED灯的驱动电路模块C接收LED灯驱动控制管理模块B发送的点阵背光源中每个LED灯的PWM数据和电流参数,独立控制各LED灯,驱动点阵背光源。The driving circuit module C of the LED lamp receives the PWM data and current parameters of each LED lamp in the dot matrix backlight sent by the LED lamp driving control management module B, independently controls each LED lamp, and drives the dot matrix backlight source.
具体的,作为一种实施方式,点阵背光源中的每个LED灯均配置有独立的PWM开关电路和电流控制电路,参照图2,可以通过驱动IC(integrated circuit,集成电路)的内部设计改进实现,或在驱动IC的外部电路设计实现。Specifically, as an implementation manner, each LED light in the dot matrix backlight is configured with an independent PWM switching circuit and a current control circuit. Referring to FIG. 2, an internal design of an integrated circuit (IC) can be adopted. Improved implementation, or implementation of external circuit design in the driver IC.
LED灯的驱动电路模块C根据获取的各LED灯的PWM数据,通过各LED灯的PWM开关电路,分别对各LED灯进行PWM控制,控制各LED灯的脉宽占空比。同时,LED灯的驱动电路模块C根据获取的各LED灯的电流参数,通过各LED灯的电流控制电路,分别对各LED灯进行电流控制。The driving circuit module C of the LED lamp performs PWM control on each LED lamp through the PWM switching circuit of each LED lamp according to the acquired PWM data of each LED lamp, and controls the pulse width duty ratio of each LED lamp. At the same time, the driving circuit module C of the LED lamp controls the current of each LED lamp through the current control circuit of each LED lamp according to the obtained current parameters of each LED lamp.
由此,LED灯的驱动电路模块C实现对点阵背光源的驱动,显示当前的电视画面。在本实施例中,通过实时获取电视的每一帧画面,并实时进行动态的数据分析和计算,从而保证电视画面的连续性和高画质。Thereby, the driving circuit module C of the LED lamp realizes driving of the dot matrix backlight and displays the current television picture. In this embodiment, each frame of the television is acquired in real time, and dynamic data analysis and calculation are performed in real time, thereby ensuring continuity and high image quality of the television picture.
本实施例实现了对点阵背光源中各LED灯的独立控制,配合电视画面的
实际内容按需分配电流,最大效率的利用了LED光源和电源功率。The embodiment realizes independent control of each LED light in the dot matrix backlight, and cooperates with the television picture
The actual content is distributed on demand, and the maximum efficiency utilizes the LED source and power supply.
进一步的,参照图6,本发明背光源驱动系统第二实施例提供一种背光源驱动系统,基于上述图5所示的实施例,所述LED灯驱动控制管理模块B包括串行外设接口SPI总线数据接收单元B1、SPI接收数据缓存器B2、中央CPU处理单元B3、PWM数据转换计算处理单元B4、SPI发送数据缓存器B5和SPI总线数据发送单元B6,其中:Further, referring to FIG. 6, a second embodiment of the backlight driving system of the present invention provides a backlight driving system. According to the embodiment shown in FIG. 5, the LED lamp driving control management module B includes a serial peripheral interface. The SPI bus data receiving unit B1, the SPI receiving data buffer B2, the central CPU processing unit B3, the PWM data conversion calculation processing unit B4, the SPI transmission data buffer B5, and the SPI bus data transmitting unit B6, wherein:
所述SPI总线数据接收单元B1,用于接收所述电视视频图像处理MEMC模块A发送的PWM数据。The SPI bus data receiving unit B1 is configured to receive PWM data sent by the TV video image processing MEMC module A.
在本实施例中,LED灯驱动控制管理模块B位于LED点阵光源的驱动板上,通过SPI(Serial Peripheral Interface,串行外设接口)总线与电视视频图像处理MEMC模块A和LED灯驱动电路模块C进行交互。In this embodiment, the LED lamp drive control management module B is located on the driving board of the LED dot matrix light source, and passes through the SPI (Serial Peripheral Interface) bus and the TV video image processing MEMC module A and the LED lamp driving circuit. Module C interacts.
在电视视频图像处理MEMC模块A计算出PWM数据,将PWM数据打包并通过SPI总线发送给LED点阵光源的驱动板后,SPI总线数据接收单元B1接收电视视频图像处理MEMC模块A发送的PWM数据包。After the TV video image processing MEMC module A calculates the PWM data, and the PWM data is packaged and sent to the driving board of the LED dot matrix light source through the SPI bus, the SPI bus data receiving unit B1 receives the PWM data sent by the TV video image processing MEMC module A. package.
中央CPU处理单元B3解析得到的PWM数据包,得到PWM数据包中的各PWM数据。The central CPU processing unit B3 analyzes the obtained PWM data packet to obtain each PWM data in the PWM data packet.
所述SPI接收数据缓存器B2,用于存储所述PWM数据。The SPI receives a data buffer B2 for storing the PWM data.
在得到电视视频图像处理MEMC模块A发送的PWM数据后,SPI接收数据缓存器B2存储得到的PWM数据,用于后续的数据分析处理。After obtaining the PWM data sent by the TV video image processing MEMC module A, the SPI receiving data buffer B2 stores the obtained PWM data for subsequent data analysis processing.
所述中央CPU处理单元B3,用于控制、协调所述PWM数据的处理。The central CPU processing unit B3 is configured to control and coordinate the processing of the PWM data.
中央CPU处理单元B3用于控制、协调LED灯驱动控制管理模块B中各单元的工作。The central CPU processing unit B3 is used to control and coordinate the operations of the units in the LED lamp drive control management module B.
具体的,中央CPU处理单元B3控制SPI总线数据接收单元B1接收电视视频图像处理MEMC模块A发送的PWM数据包。Specifically, the central CPU processing unit B3 controls the SPI bus data receiving unit B1 to receive the PWM data packet transmitted by the television video image processing MEMC module A.
然后,中央CPU处理单元B3解析PWM数据包得到各按顺位排序的PWM数据,并将各PWM数据存入SPI接收数据缓存器B2。Then, the central CPU processing unit B3 parses the PWM data packet to obtain each sorted PWM data, and stores each PWM data in the SPI receive data buffer B2.
然后,中央CPU处理单元B3将各PWM数据发送给PWM数据转换计算处理单元B4,由PWM数据转换计算处理单元B4处理计算得到各LED灯的电流参数,并将得到的各LED灯电流参数存入SPI发送数据缓存器。Then, the central CPU processing unit B3 sends each PWM data to the PWM data conversion calculation processing unit B4, and the PWM data conversion calculation processing unit B4 processes and calculates the current parameters of each LED lamp, and stores the obtained LED lamp current parameters. The SPI sends a data buffer.
由此,得到控制各LED灯的PWM数据和电流参数。Thereby, PWM data and current parameters for controlling each LED lamp are obtained.
然后,中央CPU处理单元控制SPI总线数据发送单元B6将存储的PWM数据和电流参数发送给各LED灯的驱动电路模块C,以控制各LED灯。Then, the central CPU processing unit controls the SPI bus data transmitting unit B6 to transmit the stored PWM data and current parameters to the driving circuit module C of each LED lamp to control the respective LED lamps.
所述PWM数据转换计算处理单元B4,用于根据所述PWM数据,制作统计直方图,并根据所述统计直方图计算得到控制所述各LED灯的电流参数。The PWM data conversion calculation processing unit B4 is configured to generate a statistical histogram according to the PWM data, and calculate a current parameter for controlling each LED lamp according to the statistical histogram.
PWM数据转换计算处理单元B4在获取中央CPU处理单元B3发送的LED灯对应的PWM数据后,制作统计直方图,计算得到控制各LED灯的对应的电流参数。After acquiring the PWM data corresponding to the LED lamp sent by the central CPU processing unit B3, the PWM data conversion calculation processing unit B4 creates a statistical histogram and calculates a corresponding current parameter for controlling each LED lamp.
具体的,作为一种实施方式,首先,PWM数据转换计算处理单元B4根据各PWM数据和预先配置的点阵背光源总功率、额定电压,计算点阵背光源中每个LED灯的平均电流。Specifically, as an implementation manner, first, the PWM data conversion calculation processing unit B4 calculates an average current of each LED lamp in the dot matrix backlight according to each PWM data and a preset total dot matrix backlight power and rated voltage.
然后,根据对应点阵背光源中的各LED灯的各PWM数据,制作统计直
方图,得到PWM数据的分布情况。Then, according to the PWM data of each LED lamp in the corresponding dot matrix backlight, the statistics are straight.
The square graph gives the distribution of the PWM data.
然后,PWM数据转换计算处理单元B4根据各LED灯的平均电流,在统计直方图中制作电流直线,统计直方图中各PWM数据对应电流直线上的电流参数。Then, the PWM data conversion calculation processing unit B4 creates a current straight line in the statistical histogram according to the average current of each LED lamp, and counts the current parameters on the current line corresponding to each PWM data in the histogram.
然后,根据预设的规则,在电流直线上选取统计直方图的中心平衡点,此中心平衡点的坐标已知,并保持不变。Then, according to the preset rule, the center equilibrium point of the statistical histogram is selected on the current line, and the coordinates of the center balance point are known and remain unchanged.
然后,以选取的中心平衡点为旋转中心点,逆时针单步旋转电流直线,旋转步长为预设的阈值。旋转电流直线以使较大的PWM数值对应的电流参数更大,较小的PWM数值对应的电流参数更小,从而使电视画面明亮的部分更明亮,灰暗的部分更灰暗,增强对比度。Then, with the selected center balance point as the rotation center point, the current straight line is rotated counterclockwise, and the rotation step is a preset threshold. The current is rotated linearly so that the larger PWM value corresponds to a larger current parameter, and the smaller PWM value corresponds to a smaller current parameter, so that the bright portion of the television picture is brighter, the gray portion is darker, and the contrast is enhanced.
在旋转过程中,控制PWM数值对应的电流参数的边界值,以使各PWM数据对应的电流参数不超过最大电流值,不低于最小电流值,保证画面的亮度在合理范围内。During the rotation process, the boundary value of the current parameter corresponding to the PWM value is controlled so that the current parameter corresponding to each PWM data does not exceed the maximum current value, and is not lower than the minimum current value, thereby ensuring that the brightness of the picture is within a reasonable range.
然后,根据旋转后得到的电流直线,计算得到控制所述各LED灯的电流参数。并根据得到的电流参数,判断根据得到的电流参数驱动点阵背光源时消耗的功率是否满足预设的总功率。Then, based on the current straight line obtained after the rotation, the current parameters for controlling the respective LED lamps are calculated. And according to the obtained current parameter, it is judged whether the power consumed when driving the dot matrix backlight according to the obtained current parameter satisfies the preset total power.
若消耗的功率不满足预设的总功率,则继续旋转电流直线;若消耗的功率满足预设的总功率,则根据此时得到的电流参数,作为对应的各LED灯的电流参数,并将电流参数发送给SPI发送数据缓存器B5。If the consumed power does not satisfy the preset total power, the current is continuously rotated; if the consumed power meets the preset total power, the current parameter obtained at this time is used as the current parameter of each LED lamp, and The current parameter is sent to the SPI Transmit Data Buffer B5.
所述SPI发送数据缓存器B5,用于存储所述电流参数。The SPI transmits a data buffer B5 for storing the current parameter.
SPI发送数据缓存器B5接收PWM数据转换计算处理单元B4发送的各LED灯对应的电流参数,并进行存储。The SPI transmission data buffer B5 receives the current parameters corresponding to the LED lamps transmitted by the PWM data conversion calculation processing unit B4, and stores them.
所述SPI总线数据发送单元B6,用于将所述PWM数据和所述电流参数发送给所述LED灯驱动电路模块C。The SPI bus data transmitting unit B6 is configured to send the PWM data and the current parameter to the LED lamp driving circuit module C.
SPI总线数据发送单元B6将存储的PWM数据和电流参数分别发送给对应的各LED灯。The SPI bus data transmitting unit B6 transmits the stored PWM data and current parameters to the corresponding LED lamps, respectively.
具体的,作为一种实施方式,SPI总线数据发送单元B6按照各LED灯的地址映射关系表,将各PWM数据准确写入各LED灯的驱动PWM寄存器,以决定所述各LED灯的开关时间Specifically, as an implementation manner, the SPI bus data transmitting unit B6 accurately writes each PWM data into the driving PWM register of each LED lamp according to the address mapping relationship table of each LED lamp to determine the switching time of each LED lamp.
SPI总线数据发送单元B6将各LED灯的电流值写入到与其对应的电流控制寄存器中。例如:对于配置288个LED灯的点阵背光源,通过本发明提供的点阵背光源驱动方法计算出每个LED灯与其PWM数据,也即占空比匹配的电流值,然后启动SPI总线数据发送单元B6将这288个电流值写入到对应的288个LED灯的电流控制寄存器中,使每个灯都有一个电流控制值。The SPI bus data transmitting unit B6 writes the current value of each LED lamp into its corresponding current control register. For example, for a dot matrix backlight configured with 288 LED lamps, the dot matrix backlight driving method provided by the present invention calculates the current value of each LED lamp and its PWM data, that is, the duty ratio, and then starts the SPI bus data. Transmitting unit B6 writes the 288 current values into the current control registers of the corresponding 288 LED lamps so that each lamp has a current control value.
本实施例改变了现有技术让所有的LED灯或者局部区域的同组LED灯都使用同一个电流值的做法,实现了对点阵背光源中所有LED灯的电流都按需分配,在保证功耗的条件下,使电视画面整体达到最佳显示效果,避免了功率损耗和能源浪费。This embodiment changes the prior art to make all the LED lights or the same group of LED lights in the local area use the same current value, and realizes that the currents of all the LED lights in the dot matrix backlight are allocated as needed, and are guaranteed. Under the condition of power consumption, the TV screen as a whole can achieve the best display effect, avoiding power loss and energy waste.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
Claims (18)
- 一种点阵背光源驱动方法,其特征在于,所述点阵背光源驱动方法包括以下步骤:A dot matrix backlight driving method is characterized in that the dot matrix backlight driving method comprises the following steps:根据输入的电视信号中的亮度信号,获取各LED灯的亮度值,根据各LED灯的亮度值计算得到控制点阵背光源中每个发光二极管LED灯的脉冲宽度调制PWM数据;Obtaining a brightness value of each LED lamp according to the brightness signal in the input television signal, and calculating pulse width modulation PWM data of each LED light source in the control dot matrix backlight according to the brightness value of each LED lamp;根据所述PWM数据,制作统计直方图,并根据所述统计直方图计算得到控制所述各LED灯的电流参数;Generating a statistical histogram according to the PWM data, and calculating a current parameter for controlling each LED lamp according to the statistical histogram;根据所述PWM数据和所述电流参数独立控制所述各LED灯,驱动所述点阵背光源。The LED lights are independently controlled according to the PWM data and the current parameters to drive the dot matrix backlight.
- 如权利要求1所述的点阵背光源驱动方法,其特征在于,所述PWM数据为对应所述点阵背光源中的各LED灯的各PWM数据,所述根据所述PWM数据,制作统计直方图,并根据所述统计直方图计算得到控制所述各LED灯的电流参数的步骤包括:The method of driving a dot matrix backlight according to claim 1, wherein the PWM data is corresponding to each PWM data of each LED lamp in the dot matrix backlight, and the statistics are generated according to the PWM data. The histogram, and calculating the current parameters of the LED lights according to the statistical histogram calculation, includes:根据所述PWM数据和预先配置的点阵背光源总功率、额定电压,计算点阵背光源中每个LED灯的平均电流;Calculating an average current of each LED lamp in the dot matrix backlight according to the PWM data and a pre-configured dot matrix backlight total power and a rated voltage;根据对应所述点阵背光源中的各LED灯的各PWM数据,制作统计直方图;Generating a statistical histogram according to each PWM data corresponding to each LED lamp in the dot matrix backlight;根据所述平均电流,在所述统计直方图中制作电流直线,所述统计直方图中各PWM数据对应所述电流直线上的电流参数;Forming, according to the average current, a current straight line in the statistical histogram, wherein each PWM data in the statistical histogram corresponds to a current parameter on the current straight line;逆时针单步旋转所述电流直线,并根据旋转后的电流直线,计算得到控制所述各LED灯的电流参数。The current straight line is rotated stepwise in a counterclockwise manner, and the current parameters for controlling the respective LED lamps are calculated according to the linear line of the current after the rotation.
- 如权利要求2所述的点阵背光源驱动方法,其特征在于,所述逆时针单步旋转所述电流直线,并根据旋转后的电流直线,计算得到控制所述各LED灯的电流参数的步骤包括:The method of driving a dot matrix backlight according to claim 2, wherein the counterclockwise single-step rotation of the current straight line, and calculating the current parameter of each LED lamp according to the linear line after the rotation The steps include:根据预设的规则,在所述电流直线上选取所述统计直方图的中心平衡点;Selecting a center balance point of the statistical histogram on the current line according to a preset rule;以所述中心平衡点为旋转中心点,逆时针单步旋转所述电流直线,旋转步长为预设的阈值;Taking the center balance point as a rotation center point, and rotating the current straight line counterclockwise, the rotation step length is a preset threshold value;根据预设的额定电流,计算得到所述各LED灯的最大电流参数,并控制所述各PWM数据对应的电流参数不超过所述最大电流参数且不小于预设的最小电流参数;Calculating a maximum current parameter of each LED lamp according to a preset rated current, and controlling a current parameter corresponding to each PWM data not to exceed the maximum current parameter and not less than a preset minimum current parameter;根据旋转后的电流直线,计算得到控制所述各LED灯的电流参数。The current parameters for controlling the respective LED lamps are calculated based on the straight line of the current after the rotation.
- 如权利要求3所述的点阵背光源驱动方法,其特征在于,所述根据旋转后的电流直线,计算得到控制点阵背光源中每个LED灯的电流参数的步骤包括:The method of driving a dot matrix backlight according to claim 3, wherein the step of calculating a current parameter of each LED lamp in the backlight of the dot matrix according to the linear line of the current after the rotation comprises:根据旋转后的电流直线,计算得到所述各PWM数据对应的电流参数;Calculating current parameters corresponding to the respective PWM data according to the linear line of the current after the rotation;根据所述额定电压、所述各PWM数据和对应的电流参数,计算得到根据所述各PWM数据和对应的电流参数控制所述各LED灯的驱动功率;Calculating, according to the rated voltage, the PWM data and the corresponding current parameter, controlling driving power of each LED lamp according to each PWM data and a corresponding current parameter;判断所述驱动功率是否达到预先配置的总功率;Determining whether the driving power reaches a pre-configured total power;若所述驱动功率没有达到所述总功率,则返回执行步骤:以所述中心平衡点为旋转中心点,逆时针单步旋转所述电流直线,旋转步长为预设的阈值; If the driving power does not reach the total power, returning to the execution step: rotating the current straight line counterclockwise with the center balance point as a rotation center point, and the rotation step length is a preset threshold value;若所述驱动功率达到所述总功率,则将所述各PWM数据对应的电流参数,作为控制所述各LED灯的电流参数并存储所述电流参数。And if the driving power reaches the total power, the current parameter corresponding to each PWM data is used as a current parameter for controlling each LED lamp, and the current parameter is stored.
- 如权利要求2所述的点阵背光源驱动方法,其特征在于,所述根据对应所述点阵背光源中的各LED灯的各PWM数据,制作统计直方图的步骤包括:The method of driving a dot matrix backlight according to claim 2, wherein the step of creating a statistical histogram according to each PWM data corresponding to each of the LED lights in the dot matrix backlight comprises:获取所述PWM数据中的最大值和最小值,计算得到所述PWM数据的区间值;Obtaining a maximum value and a minimum value in the PWM data, and calculating an interval value of the PWM data;根据预设的组距和所述PWM数据的区间值得到PWM数据的组数,对所述PWM数据进行分组;或者根据预设的组数和所述PWM数据的区间值得到PWM数据的组距,对PWM数据进行分组;And determining, according to the preset group distance and the interval value of the PWM data, the PWM data, or grouping the PWM data according to the preset number of groups and the interval value of the PWM data. , grouping PWM data;以所述PWM数据的数值作为横坐标,以所述PWM数据的出现次数作为纵坐标,制作得到统计直方图。A statistical histogram is created by taking the value of the PWM data as the abscissa and the number of occurrences of the PWM data as the ordinate.
- 如权利要求4所述的点阵背光源驱动方法,其特征在于,所述根据对应所述点阵背光源中的各LED灯的各PWM数据,制作统计直方图的步骤包括:The method of driving a dot matrix backlight according to claim 4, wherein the step of creating a statistical histogram according to each PWM data corresponding to each of the LED lights in the dot matrix backlight comprises:获取所述PWM数据中的最大值和最小值,计算得到所述PWM数据的区间值;Obtaining a maximum value and a minimum value in the PWM data, and calculating an interval value of the PWM data;根据预设的组距和所述PWM数据的区间值得到PWM数据的组数,对所述PWM数据进行分组;或者根据预设的组数和所述PWM数据的区间值得到PWM数据的组距,对PWM数据进行分组;And determining, according to the preset group distance and the interval value of the PWM data, the PWM data, or grouping the PWM data according to the preset number of groups and the interval value of the PWM data. , grouping PWM data;以所述PWM数据的数值作为横坐标,以所述PWM数据的出现次数作为纵坐标,制作得到统计直方图。A statistical histogram is created by taking the value of the PWM data as the abscissa and the number of occurrences of the PWM data as the ordinate.
- 如权利要求4所述的点阵背光源驱动方法,其特征在于,所述判断所述驱动功率是否达到预先配置的总功率的步骤包括:The method of driving a dot matrix backlight according to claim 4, wherein the step of determining whether the driving power reaches a pre-configured total power comprises:根据所述总功率的值,取预设的功率区间,功率区间内的功率值为达到总功率的功率值;And determining, according to the value of the total power, a preset power interval, where the power value in the power interval is a power value that reaches a total power;若所述驱动功率值位于所述预设的功率区间之内,则判定所述驱动功率达到总功率;若所述驱动功率位于所述预设的功率区间之外,则判定所述驱动功率没有达到总功率。If the driving power value is within the preset power interval, determining that the driving power reaches a total power; if the driving power is outside the preset power interval, determining that the driving power is not Total power is reached.
- 如权利要求6所述的点阵背光源驱动方法,其特征在于,所述判断所述驱动功率是否达到预先配置的总功率的步骤包括:The method of driving a dot matrix backlight according to claim 6, wherein the step of determining whether the driving power reaches a pre-configured total power comprises:根据所述总功率的值,取预设的功率区间,功率区间内的功率值为达到总功率的功率值;And determining, according to the value of the total power, a preset power interval, where the power value in the power interval is a power value that reaches a total power;若所述驱动功率值位于所述预设的功率区间之内,则判定所述驱动功率达到总功率;若所述驱动功率位于所述预设的功率区间之外,则判定所述驱动功率没有达到总功率。If the driving power value is within the preset power interval, determining that the driving power reaches a total power; if the driving power is outside the preset power interval, determining that the driving power is not Total power is reached.
- 一种点阵背光源驱动装置,其特征在于,所述点阵背光源驱动装置包括:A dot matrix backlight driving device, wherein the dot matrix backlight driving device comprises:图像处理模块,用于根据输入的电视信号中的亮度信号,获取各LED灯的亮度值,根据各LED灯的亮度值计算得到控制点阵背光源中每个发光二极管LED灯的脉冲宽度调制PWM数据; The image processing module is configured to obtain a brightness value of each LED light according to the brightness signal in the input television signal, and calculate a pulse width modulation PWM of each LED light in the control dot matrix backlight according to the brightness value of each LED lamp. Data驱动管理模块,用于根据所述PWM数据,制作统计直方图,并根据所述统计直方图计算得到控制所述各LED灯的电流参数;a driving management module, configured to generate a statistical histogram according to the PWM data, and calculate a current parameter for controlling each LED light according to the statistical histogram calculation;驱动电路模块,用于根据所述PWM数据和所述电流参数独立控制所述各LED灯,驱动所述点阵背光源。And a driving circuit module, configured to independently control the LED lights according to the PWM data and the current parameter to drive the dot matrix backlight.
- 如权利要求9所述的点阵背光源驱动装置,其特征在于,所述PWM数据为对应所述点阵背光源中的各LED灯的各PWM数据,所述驱动管理模块包括:The dot matrix backlight driving device of claim 9, wherein the PWM data is corresponding to each PWM data of each of the LED backlights, and the driving management module comprises:电流平均单元,用于根据所述PWM数据和预先配置的点阵背光源总功率、额定电压,计算点阵背光源中每个LED灯的平均电流;a current averaging unit, configured to calculate an average current of each LED lamp in the dot matrix backlight according to the PWM data and a pre-configured dot matrix backlight total power and a rated voltage;直方图制作单元,用于根据对应所述点阵背光源中的各LED灯的各PWM数据,制作统计直方图;a histogram making unit, configured to generate a statistical histogram according to each PWM data corresponding to each LED light in the dot matrix backlight;电流直线单元,用于根据所述平均电流,在所述统计直方图中制作电流直线,所述统计直方图中各PWM数据对应所述电流直线上的电流参数;a current straight line unit, configured to create a current straight line in the statistical histogram according to the average current, wherein each PWM data in the statistical histogram corresponds to a current parameter on the current straight line;单步旋转单元,用于逆时针单步旋转所述电流直线,并根据旋转后的电流直线,计算得到控制所述各LED灯的电流参数。The single-step rotation unit is configured to rotate the current straight line counterclockwise, and calculate a current parameter for controlling each of the LED lamps according to the linear line after the rotation.
- 如权利要求10所述的点阵背光源驱动装置,其特征在于,所述单步旋转单元包括:The dot matrix backlight driving device of claim 10, wherein the single-step rotation unit comprises:中心点子单元,用于根据预设的规则,在所述电流直线上选取所述统计直方图的中心平衡点;a central point subunit, configured to select a center balance point of the statistical histogram on the current straight line according to a preset rule;旋转子单元,用于以所述中心平衡点为旋转中心点,逆时针单步旋转所述电流直线,旋转步长为预设的阈值;a rotating subunit, configured to rotate the current straight line counterclockwise by using the center balance point as a rotation center point, and the rotation step length is a preset threshold value;边界子单元,用于根据预设的额定电流,计算得到所述各LED灯的最大电流参数,并控制所述各PWM数据对应的电流参数不超过所述最大电流参数且不小于预设的最小电流参数;a boundary subunit, configured to calculate a maximum current parameter of each LED lamp according to a preset rated current, and control a current parameter corresponding to each PWM data not to exceed the maximum current parameter and not less than a preset minimum Current parameter计算子单元,用于根据旋转后的电流直线,计算得到控制所述各LED灯的电流参数。The calculating subunit is configured to calculate a current parameter for controlling each of the LED lamps according to the linear line of the current after the rotation.
- 如权利要求11所述的点阵背光源驱动装置,其特征在于,所述计算子单元包括:The dot matrix backlight driving device of claim 11, wherein the calculating subunit comprises:第一计算子单元,用于根据旋转后的电流直线,计算得到所述各PWM数据对应的电流参数;a first calculating subunit, configured to calculate, according to the rotated current line, a current parameter corresponding to each PWM data;第二功率子单元,用于根据所述额定电压、所述各PWM数据和对应的电流参数,计算得到根据所述各PWM数据和对应的电流参数控制所述各LED灯的驱动功率;a second power subunit, configured to calculate, according to the rated voltage, the PWM data and the corresponding current parameter, driving power of each LED lamp according to the PWM data and a corresponding current parameter;第三判断子单元,用于判断所述驱动功率是否达到预先配置的总功率;a third determining subunit, configured to determine whether the driving power reaches a pre-configured total power;第四获取子单元,用于若所述驱动功率达到所述总功率,则将所述各PWM数据对应的电流参数,作为控制所述各LED灯的电流参数并存储所述电流参数;a fourth acquiring subunit, configured to: if the driving power reaches the total power, use a current parameter corresponding to each PWM data as a current parameter for controlling each LED lamp and store the current parameter;所述旋转子单元,还用于若所述驱动功率没有达到所述总功率,则以所述中心平衡点为旋转中心点,逆时针单步旋转所述电流直线。The rotating subunit is further configured to rotate the current straight line counterclockwise by using the center balance point as a rotation center point if the driving power does not reach the total power.
- 如权利要求10所述的点阵背光源驱动方法,其特征在于,所述直方图制作单元还用于, The method of driving a dot matrix backlight according to claim 10, wherein the histogram making unit is further configured to:获取所述PWM数据中的最大值和最小值,计算得到所述PWM数据的区间值;Obtaining a maximum value and a minimum value in the PWM data, and calculating an interval value of the PWM data;根据预设的组距和所述PWM数据的区间值得到PWM数据的组数,对所述PWM数据进行分组;或者根据预设的组数和所述PWM数据的区间值得到PWM数据的组距,对PWM数据进行分组;And determining, according to the preset group distance and the interval value of the PWM data, the PWM data, or grouping the PWM data according to the preset number of groups and the interval value of the PWM data. , grouping PWM data;以所述PWM数据的数值作为横坐标,以所述PWM数据的出现次数作为纵坐标,制作得到统计直方图。A statistical histogram is created by taking the value of the PWM data as the abscissa and the number of occurrences of the PWM data as the ordinate.
- 如权利要求12所述的点阵背光源驱动方法,其特征在于,直方图制作单元还用于,The dot matrix backlight driving method according to claim 12, wherein the histogram making unit is further configured to:获取所述PWM数据中的最大值和最小值,计算得到所述PWM数据的区间值;Obtaining a maximum value and a minimum value in the PWM data, and calculating an interval value of the PWM data;根据预设的组距和所述PWM数据的区间值得到PWM数据的组数,对所述PWM数据进行分组;或者根据预设的组数和所述PWM数据的区间值得到PWM数据的组距,对PWM数据进行分组;And determining, according to the preset group distance and the interval value of the PWM data, the PWM data, or grouping the PWM data according to the preset number of groups and the interval value of the PWM data. , grouping PWM data;以所述PWM数据的数值作为横坐标,以所述PWM数据的出现次数作为纵坐标,制作得到统计直方图。A statistical histogram is created by taking the value of the PWM data as the abscissa and the number of occurrences of the PWM data as the ordinate.
- 如权利要求12所述的点阵背光源驱动方法,其特征在于,所述第三判断子单元还用于,The method of driving a dot matrix backlight according to claim 12, wherein the third determining subunit is further configured to:根据所述总功率的值,取预设的功率区间,功率区间内的功率值为达到总功率的功率值;And determining, according to the value of the total power, a preset power interval, where the power value in the power interval is a power value that reaches a total power;若所述驱动功率值位于所述预设的功率区间之内,则判定所述驱动功率达到总功率;若所述驱动功率位于所述预设的功率区间之外,则判定所述驱动功率没有达到总功率。If the driving power value is within the preset power interval, determining that the driving power reaches a total power; if the driving power is outside the preset power interval, determining that the driving power is not Total power is reached.
- 如权利要求14所述的点阵背光源驱动方法,其特征在于,所述第三判断子单元还用于,The method of driving a dot matrix backlight according to claim 14, wherein the third determining subunit is further configured to:根据所述总功率的值,取预设的功率区间,功率区间内的功率值为达到总功率的功率值;And determining, according to the value of the total power, a preset power interval, where the power value in the power interval is a power value that reaches a total power;若所述驱动功率值位于所述预设的功率区间之内,则判定所述驱动功率达到总功率;若所述驱动功率位于所述预设的功率区间之外,则判定所述驱动功率没有达到总功率。If the driving power value is within the preset power interval, determining that the driving power reaches a total power; if the driving power is outside the preset power interval, determining that the driving power is not Total power is reached.
- 一种点阵背光源驱动系统,其特征在于,所述点阵背光源驱动系统包括电视视频图像处理MEMC模块、发光二极管LED灯驱动控制管理模块和LED灯驱动电路模块,其中:A dot matrix backlight driving system is characterized in that: the dot matrix backlight driving system comprises a television video image processing MEMC module, a light emitting diode LED lamp driving control management module and an LED lamp driving circuit module, wherein:所述电视视频图像处理MEMC模块,用于根据输入的电视信号中的亮度信号,获取各LED灯的亮度值,根据各LED灯的亮度值计算得到控制点阵背光源中每个发光二极管LED灯的脉冲宽度调制PWM数据;将所述PWM数据发送给所述LED灯驱动控制管理模块;The television video image processing MEMC module is configured to acquire, according to a brightness signal in the input television signal, a brightness value of each LED light, and calculate, according to the brightness value of each LED light, each LED light of the control dot matrix backlight. Pulse width modulation PWM data; transmitting the PWM data to the LED lamp drive control management module;所述LED灯驱动控制管理模块,用于接收所述电视视频图像处理MEMC模块发送的所述PWM数据;根据所述PWM数据,制作统计直方图,并根据所述统计直方图计算得到控制所述各LED灯的电流参数;将所述PWM数据和所述电流参数发送给所述LED灯驱动电路模块。 The LED lamp driving control management module is configured to receive the PWM data sent by the TV video image processing MEMC module; generate a statistical histogram according to the PWM data, and calculate the control according to the statistical histogram Current parameters of each LED lamp; transmitting the PWM data and the current parameter to the LED lamp driving circuit module.所述LED灯驱动电路模块,用于接收所述LED灯驱动控制管理模块发送的所述PWM数据和所述电流;根据所述PWM数据和所述电流参数独立控制所述各LED灯,驱动所述点阵背光源。The LED lamp driving circuit module is configured to receive the PWM data and the current sent by the LED lamp driving control management module; independently control the LED lights according to the PWM data and the current parameter, and drive the driving The dot matrix backlight.
- 如权利要求17所述的背光源驱动系统,其特征在于,所述LED灯驱动控制管理模块包括串行外设接口SPI总线数据接收单元、SPI接收数据缓存器、中央CPU处理单元、PWM数据转换计算处理单元、SPI发送数据缓存器和SPI总线数据发送单元,其中:The backlight driving system of claim 17, wherein the LED lamp driving control management module comprises a serial peripheral interface SPI bus data receiving unit, an SPI receiving data buffer, a central CPU processing unit, and a PWM data conversion. The calculation processing unit, the SPI transmission data buffer, and the SPI bus data transmission unit, wherein:所述SPI总线数据接收单元,用于接收所述电视视频图像处理MEMC模块发送的PWM数据;The SPI bus data receiving unit is configured to receive PWM data sent by the TV video image processing MEMC module;所述SPI接收数据缓存器,用于存储所述PWM数据;The SPI receives a data buffer for storing the PWM data;所述中央CPU处理单元,用于控制、协调所述PWM数据的处理;The central CPU processing unit is configured to control and coordinate processing of the PWM data;所述PWM数据转换计算处理单元,用于根据所述PWM数据,制作统计直方图,并根据所述统计直方图计算得到控制所述各LED灯的电流参数;The PWM data conversion calculation processing unit is configured to generate a statistical histogram according to the PWM data, and calculate a current parameter for controlling each LED lamp according to the statistical histogram;所述SPI发送数据缓存器,用于存储所述电流参数;The SPI sends a data buffer for storing the current parameter;所述SPI总线数据发送单元,用于将所述PWM数据和所述电流参数发送给所述LED灯驱动电路模块。 The SPI bus data sending unit is configured to send the PWM data and the current parameter to the LED lamp driving circuit module.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510960759.9 | 2015-12-18 | ||
CN201510960759.9A CN105374323B (en) | 2015-12-18 | 2015-12-18 | Dot matrix backlight drive method, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017101273A1 true WO2017101273A1 (en) | 2017-06-22 |
Family
ID=55376461
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/084824 WO2017101273A1 (en) | 2015-12-18 | 2016-06-03 | Lattice backlight source driving method, device and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105374323B (en) |
WO (1) | WO2017101273A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105374323B (en) * | 2015-12-18 | 2018-02-13 | 深圳Tcl数字技术有限公司 | Dot matrix backlight drive method, device and system |
CN106448570A (en) * | 2016-09-14 | 2017-02-22 | 深圳创维-Rgb电子有限公司 | High-power area dimming control method, control device and television |
CN109036298B (en) * | 2018-10-23 | 2021-01-22 | 京东方科技集团股份有限公司 | Backlight driving method and device and display equipment |
CN110379375B (en) * | 2019-06-25 | 2021-05-07 | 深圳市金锐显数码科技有限公司 | Automatic switching method and automatic switching system for backlight current gears |
CN111883071A (en) * | 2020-08-12 | 2020-11-03 | 深圳创维-Rgb电子有限公司 | Backlight compensation method and device, display equipment and readable storage medium |
CN114023268A (en) * | 2021-10-11 | 2022-02-08 | 安徽康佳电子有限公司 | Backlight brightness adjusting method and computer readable storage medium |
CN114141194B (en) * | 2021-12-03 | 2023-04-07 | 浙江欧菲克斯交通科技有限公司 | Self-adaptive brightness adjustment method and system for outdoor LED display screen |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005079085A (en) * | 2003-08-29 | 2005-03-24 | Beyond Innovation Technology Co Ltd | Low noise light source operation circuit, and operation method of same |
CN101102437A (en) * | 2006-07-03 | 2008-01-09 | 深圳Tcl工业研究院有限公司 | Brightness adjusting method of LCD TV backlight |
CN101192376A (en) * | 2006-11-30 | 2008-06-04 | 株式会社东芝 | Backlight control apparatus, dislay device, and method for controlling backlight of display device |
CN101520988A (en) * | 2008-02-27 | 2009-09-02 | 株式会社日立显示器 | Display device |
CN101794542A (en) * | 2009-01-30 | 2010-08-04 | 日立民用电子株式会社 | Video display apparatus |
CN102117600A (en) * | 2010-01-04 | 2011-07-06 | 青岛海信电器股份有限公司 | Method for improving partitioned halation of LED (Light Emitting Diode) backlight source and control device thereof |
CN105374323A (en) * | 2015-12-18 | 2016-03-02 | 深圳Tcl数字技术有限公司 | Dot matrix backlight source drive method, device and system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005292804A (en) * | 2004-03-10 | 2005-10-20 | Canon Inc | Control device and image display device |
JP2006276677A (en) * | 2005-03-30 | 2006-10-12 | Toshiba Corp | Display device and driving method of display device |
CN101295467B (en) * | 2007-04-29 | 2011-06-01 | 瑞昱半导体股份有限公司 | Contrast control device and control method thereof |
US20090189842A1 (en) * | 2008-01-24 | 2009-07-30 | Industrial Technology Research Institute | Backlight control apparatus |
JP4668342B2 (en) * | 2009-08-31 | 2011-04-13 | シャープ株式会社 | Liquid crystal display device |
CN102376255B (en) * | 2010-08-06 | 2014-02-19 | 晨星软件研发(深圳)有限公司 | Backlight brightness control circuit and method |
-
2015
- 2015-12-18 CN CN201510960759.9A patent/CN105374323B/en active Active
-
2016
- 2016-06-03 WO PCT/CN2016/084824 patent/WO2017101273A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005079085A (en) * | 2003-08-29 | 2005-03-24 | Beyond Innovation Technology Co Ltd | Low noise light source operation circuit, and operation method of same |
CN101102437A (en) * | 2006-07-03 | 2008-01-09 | 深圳Tcl工业研究院有限公司 | Brightness adjusting method of LCD TV backlight |
CN101192376A (en) * | 2006-11-30 | 2008-06-04 | 株式会社东芝 | Backlight control apparatus, dislay device, and method for controlling backlight of display device |
CN101520988A (en) * | 2008-02-27 | 2009-09-02 | 株式会社日立显示器 | Display device |
CN101794542A (en) * | 2009-01-30 | 2010-08-04 | 日立民用电子株式会社 | Video display apparatus |
CN102117600A (en) * | 2010-01-04 | 2011-07-06 | 青岛海信电器股份有限公司 | Method for improving partitioned halation of LED (Light Emitting Diode) backlight source and control device thereof |
CN105374323A (en) * | 2015-12-18 | 2016-03-02 | 深圳Tcl数字技术有限公司 | Dot matrix backlight source drive method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN105374323A (en) | 2016-03-02 |
CN105374323B (en) | 2018-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017101273A1 (en) | Lattice backlight source driving method, device and system | |
CN103413539B (en) | A kind of backlight drive control method, control device and display device | |
CN101393724B (en) | Image display device and method capable of adjusting brightness | |
WO2017088420A1 (en) | Over-driving control method for local dimming and apparatus therefor | |
US20150294615A1 (en) | Light Source Driving Circuit of Light Emitting Semiconductor and Backlight Module | |
CN106101591B (en) | The method of adjustment of LCD TV and its backlight driving voltage, device | |
CN103430230B (en) | Video display devices | |
JP4898857B2 (en) | Color control for backlighting system | |
CN104900188A (en) | LED display screen uniformity correction method | |
CN102456324B (en) | Driving device and driving method of backlight module | |
CN104377971B (en) | A kind of flyback based on Voltage Feedback directly drives LED power circuit and television set | |
WO2019223602A1 (en) | Backlight driving circuit, method, and device, storage medium, and display device | |
CN204946513U (en) | A kind of display control circuit and household electrical appliance | |
CN108039152B (en) | Backlight driving control method, apparatus and computer-readable storage medium | |
CN103310740B (en) | The image treatment method of display device and display device thereof | |
CN110111735A (en) | Driving method, driving chip and the display device of OLED display panel | |
CN103096565B (en) | LED light device and lamp light control method thereof | |
US20170231046A1 (en) | Backlight, regulation method thereof, regulation device and display device | |
CN101295466B (en) | OLED display screen brightness regulation method and OLED display screen | |
CN102651205A (en) | Control method used for white light emitting diode (LED) direct type dynamic backlight | |
CN101083057A (en) | Light emitting device and method of controlling the same | |
JP5702825B2 (en) | Driver circuit for LED backlight of liquid crystal display device | |
GB2499684A (en) | PFM-based LED illuminator and light network | |
CN101329459B (en) | LCD device and apparatus for processing signals | |
CN111223427B (en) | Projection device and method for operating the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16874337 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28/09/18) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16874337 Country of ref document: EP Kind code of ref document: A1 |