CN110213855A - A kind of the index light-dimming method and system of light emitting diode - Google Patents
A kind of the index light-dimming method and system of light emitting diode Download PDFInfo
- Publication number
- CN110213855A CN110213855A CN201910433989.8A CN201910433989A CN110213855A CN 110213855 A CN110213855 A CN 110213855A CN 201910433989 A CN201910433989 A CN 201910433989A CN 110213855 A CN110213855 A CN 110213855A
- Authority
- CN
- China
- Prior art keywords
- coding
- code
- index
- emitting diode
- light emitting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/10—Controlling the intensity of the light
Abstract
The invention discloses the index light-dimming methods and system of a kind of light emitting diode, comprising: obtains the brightness adjustment control coding of Nbit;All numbers are judged, it is [(I that the i-th digital corresponding coefficient is obtained when the i-th number is 1max/Imin)^(1/codemax)] ^ (2^i), and obtaining corresponding coefficient when number is 0 is 1;According to formula IDac=IIt calculates* (the digital corresponding coefficient of N-1 number corresponding coefficient * * the 0th), is calculated adjusting electric current;Light emitting diode is dimmed according to electric current is adjusted.In conjunction with formula IDac=IIt calculates* (the digital corresponding coefficient of N-1 number corresponding coefficient * * the 0th) can obtain, for the brightness adjustment control coding of Nbit, adjusting electric current can be obtained by the multiplication calculating of n times coefficient, light-dimming method is more simple, and less hardware resource can be occupied, while guaranteeing that the precision for dimming electric current is higher.
Description
Technical field
The present invention relates to light regulating technology fields, more specifically, are related to a kind of index light-dimming method of light emitting diode
And system.
Background technique
With the popularization of LED (Light Emitting Diode, light emitting diode) illumination application, LED driving and light modulation
The development of technology is also maked rapid progress.At present in terms of LED backlight light modulation, compared to linearity light adjusting curve, more and more LED are driven
Dynamic chip uses index dimming curve, this is because it is more easypro that the brightness change of exponential curve can be such that human eye obtains in low-light level
Suitable experience and impression.Common index light-dimming method has simulation and digital two major classes, and analog circuit can pass through corresponding mould
Quasi- device such as diode realizes index light modulation, but the precision and stability of simulation light-dimming method can not show a candle to digital circuit.
Mainly have by the method that digital circuit LED index dims at present: look-up table, segmentation collimation method and iteration side
Method.LUT Method can taking human as setting light modulation luminance coding form set dimming curve;For example, making in index light modulation
The mapping mode of index can be used by taking the light modulation of 11bit resolution ratio as an example with LUT Method, brightness adjustment control volume will be represented
The 1 to 2047 of code is mapped as the calculated value of certain a^x function, in this way, artificially having produced an approximate index dimming curve.Point
Section linearly can use multistage linear and remove exponential curve of fit, realize index light modulation;Equally it is with the light modulation of 11bit resolution ratio
Example can make curve obtained increasingly approach and objective function curve using 256 sections of linear approximations.And alternative manner passes through one
A multiplier carries out the iteration multiplication of predetermined number of times to the truth of a matter, realizes index light modulation;Such as y=a^x function can as x=2
Y=a*a is calculated by multiplier, the multiplication of a cycle is needed to obtain result;As x=100, y=a is calculated by multiplier
^100 needs to obtain result by the multiplication in 99 periods.Existing LED index light-dimming method is complex.
Summary of the invention
In view of this, effectively being solved existing the present invention provides the index light-dimming method and system of a kind of light emitting diode
Technology there are the problem of.
To achieve the above object, technical solution provided by the invention is as follows:
A kind of index light-dimming method of light emitting diode, comprising:
Obtain the brightness adjustment control coding of Nbit, wherein the brightness adjustment control is encoded including tactic N-1 number extremely
0th is digital, and N is the integer not less than 2;
All numbers are judged, it is [(I that the described i-th digital corresponding coefficient is obtained when the i-th number is 1max/Imin)^
(1/codemax)] ^ (2^i), and obtaining corresponding coefficient when the number is 0 is 1, wherein ImaxFor the light emitting diode
Maximum drive current, IminFor the minimum drive current of the light emitting diode, codemaxFor the maximum decimal system of the Nbit
Value, i are the integer not less than 0 and no more than N-1;
According to formula IDac=IIt calculates* (the digital corresponding coefficient of N-1 number corresponding coefficient * * the 0th), is calculated
Adjust electric current, wherein IDacFor the adjusting electric current, IIt calculatesFor with reference to IminThe current value being calculated;
The light emitting diode is dimmed according to the adjusting electric current.
Optionally, the coefficient of the number is the coefficient coding prestored, wherein after obtaining the brightness adjustment control coding of Nbit
Include:
All numbers are judged, it is [(I that the described i-th digital corresponding coefficient is obtained when the i-th number is 1max/Imin)^
(1/codemax)] coefficient coding of ^ (2^i), and it is described it is digital be 0 when obtain the coefficient coding that corresponding coefficient is 1, wherein
ImaxFor the maximum drive current of the light emitting diode, IminFor the minimum drive current of the light emitting diode, codemaxFor
The maximum decimal value of the Nbit, i are the integer not less than 0 and no more than N-1;
According to formula Dac_code=IIt calculatesCoding * (N-1 number corresponding coefficient encodes the digital phase of * * the 0th
Answer coefficient coding), index transform coding is calculated, wherein Dac_code is the index transform coding, IIt calculates=(Imin/
IIt is fixed), IIt is fixedIt is fixed value by the minimum current source control of digital analog converter;
The index transform coding is converted into adjusting electric current by the digital analog converter, and according to the adjusting electric current
The light emitting diode is dimmed.
Optionally, the index transform coding that is calculated includes:
After judging a number and acquisition corresponding coefficient coding, according to formula Dac_code_j=Dac_code_j-1*
Jth number corresponding coefficient coding calculates jth time intermediate index transform coding, wherein Dac_code_j is that the jth time is intermediate
Index transform coding, Dac_code_j-1 is -1 intermediate index transform coding of jth, and first time intermediate index transform coding is
IIt calculatesCoding * initial decision number corresponding coefficient coding, j be greater than 1 and be not more than N integer;
Until index transform coding is calculated according to above-mentioned calculating rule in last coefficient coding.
Optionally, described pair of all numbers judge are as follows:
All numbers are judged according to default rule.
Optionally, the default rule is by the N-1 number to the described 0th digital sequence.
Correspondingly, the present invention also provides a kind of index light adjusting systems of light emitting diode, comprising:
Registration module, the registration module are used to obtain the brightness adjustment control coding of Nbit, wherein the brightness adjustment control coding
Including tactic N-1 number to the 0th number, N is the integer not less than 2;And all numbers are judged, i-th
Number obtains the described i-th digital corresponding coefficient when being 1 be [(Imax/Imin)^(1/codemax)] ^ (2^i), and be in the number
It is 1 that corresponding coefficient is obtained when 0, wherein ImaxFor the maximum drive current of the light emitting diode, IminFor the light emitting diode
Minimum drive current, codemaxFor the maximum decimal value of the Nbit, i is the integer not less than 0 and no more than N-1;
Computing module, the computing module is according to formula IDac=IIt calculates* (N-1 number corresponding coefficient * * the 0th
Digital corresponding coefficient), adjusting electric current is calculated, wherein IDacFor the adjusting electric current, IIt calculatesFor with reference to IminIt is calculated
Current value;
And light-adjusting module, the light-adjusting module dim the light emitting diode according to the adjusting electric current.
Optionally, the coefficient of the number is the coefficient coding being pre-stored in coefficient memory, wherein the registration module
Brightness adjustment control for obtaining Nbit encodes;And all numbers are judged, it is digital to obtain described i-th when the i-th number is 1
Corresponding coefficient is [(Imax/Imin)^(1/codemax)] coefficient coding of ^ (2^i), and it is described it is digital be 0 when obtain corresponding system
The coefficient coding that number is 1, wherein ImaxFor the maximum drive current of the light emitting diode, IminFor the light emitting diode
Minimum drive current, codemaxFor the maximum decimal value of the Nbit, i is the integer not less than 0 and no more than N-1;
The computing module is multiplier, and the multiplier is according to formula Dac_code=IIt calculatesCoding * (N-1 is digital
Corresponding coefficient encodes the digital corresponding coefficient coding of * * the 0th), index transform coding is calculated, wherein Dac_code
For the index transform coding, IIt calculates=(Imin/IIt is fixed), IIt is fixedIt is fixed value by the minimum current source control of digital analog converter;
The light-adjusting module is the digital analog converter, is converted the index transform coding by the digital analog converter
To adjust electric current, and the light emitting diode is dimmed according to the adjusting electric current.
Optionally, the registration module includes the first register and the second register;
After first register is used to obtain the brightness adjustment control coding of Nbit, all numbers are judged, wherein sentence
After a disconnected number and acquisition corresponding coefficient coding, control corresponding coefficient coding is exported to the multiplier;
The multiplier is encoded according to formula Dac_code_j=Dac_code_j-1* jth number corresponding coefficient, calculates the
J intermediate index transform coding and being transmitted in second register is deposited, wherein Dac_code_j is in the jth time
Between index transform coding, Dac_code_j-1 is that second register deposit is transmitted to -1 centre of jth of the multiplier
Index transform coding, and first time intermediate index transform coding is IIt calculatesCoding * initial decision number corresponding coefficient coding, directly
Extremely index transform coding is calculated according to above-mentioned calculating rule in last coefficient coding and is transmitted to second register
Middle deposit, j are greater than 1 and are not more than the integer of N.
Optionally, the calculating time that the index light adjusting system of the light emitting diode passes through multiplier described in counter controls
Number, and control second register and the index transform coding is transmitted to the digital analog converter.
Optionally, the registration module judges all numbers are as follows:
All numbers are judged according to default rule.
Compared to the prior art, technical solution provided by the invention has at least the following advantages:
The present invention provides the index light-dimming methods and system of a kind of light emitting diode, comprising: obtains the light modulation control of Nbit
System coding, wherein the brightness adjustment control coding includes tactic N-1 number to the 0th number, and N is whole not less than 2
Number;All numbers are judged, it is [(I that the described i-th digital corresponding coefficient is obtained when the i-th number is 1max/Imin)^(1/
codemax)] ^ (2^i), and obtaining corresponding coefficient when the number is 0 is 1, wherein ImaxMost for the light emitting diode
Large-drive-current, IminFor the minimum drive current of the light emitting diode, codemaxFor the maximum decimal value of the Nbit, i
For the integer not less than 0 and no more than N-1;According to formula IDac=IIt calculates* (the number of N-1 number corresponding coefficient * * the 0th
Code corresponding coefficient), adjusting electric current is calculated, wherein IDacFor the adjusting electric current, IIt calculatesFor with reference to IminThe electricity being calculated
Flow valuve;The light emitting diode is dimmed according to the adjusting electric current.
As shown in the above, in conjunction with formula IDac=IIt calculates* (the digital phase of N-1 number corresponding coefficient * * the 0th
Answer coefficient) it can obtain, technical solution provided by the invention, the brightness adjustment control of Nbit is encoded, only by multiplying for n times coefficient
Adjusting electric current can be obtained in method calculating, and then achievees the purpose that dimming light-emitting diode, and the light-dimming method is more simple, and
Less hardware resource can be occupied, while guaranteeing that the precision for dimming electric current is higher.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the index light-dimming method of light emitting diode provided by the embodiments of the present application;
Fig. 2 is the flow chart of the index light-dimming method of another light emitting diode provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of the index light adjusting system of light emitting diode provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram of the index light adjusting system of another light emitting diode provided by the embodiments of the present application.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
As described in background, mainly have by the method that digital circuit LED index dims at present: look-up table,
It is segmented collimation method and alternative manner.But existing LED index light-dimming method is complex.
Specifically, LUT Method needs more hardware resource for digital circuit, especially differentiated in light modulation
When rate requires higher and higher, hardware resource can also increase sharply, such as the light modulation of 11bit resolution ratio, share 2048 gears, right
These gear selections are answered, realize that circuit needs are constructed all look-up table datas by 11*2047 register, this may
Keep the cost of chip excessively high.Piecewise linearity can use multistage linear and remove exponential curve of fit;But segmentation is more, disadvantage is got over
Approach and LUT Method, when can expend more hardware resource, and be segmented less, the precision of index dimming curve can become very
Difference, therefore, reducing segmentation is the method for a compromise, but can not obtain ideal fitting effect.And alternative manner passes through
One multiplier carries out the iteration multiplication of predetermined number of times to the truth of a matter, realizes index light modulation;But when resolution ratio is higher, such as
11bit (i.e. brightness adjustment control group/cording quantity is 2047), carries out 2047 iteration when inputting brightness adjustment control and being encoded to 2047
Multiplication, this meeting or need high frequency to guarantee so that the reaction time of chip is too long.
Based on this, the embodiment of the present application provides the index light-dimming method and system of a kind of light emitting diode, effectively solves
Problem of the existing technology.To achieve the above object, technical solution provided by the embodiments of the present application is as follows, specifically combines Fig. 1
Technical solution provided by the embodiments of the present application is described in detail to Fig. 4.
Refering to what is shown in Fig. 1, be a kind of flow chart of the index light-dimming method of light emitting diode provided by the embodiments of the present application,
Wherein, the light-dimming method of light emitting diode includes:
S1, the brightness adjustment control coding for obtaining Nbit, wherein the brightness adjustment control coding includes tactic N-1 number
Code is to the 0th number, and brightness adjustment control is encoded to binary system, and N is the integer not less than 2;
S2, all numbers are judged, it is [(I that the described i-th digital corresponding coefficient is obtained when the i-th number is 1max/
Imin)^(1/codemax)] ^ (2^i), and obtaining corresponding coefficient when the number is 0 is 1, wherein ImaxIt is described luminous two
The maximum drive current of pole pipe, IminFor the minimum drive current of the light emitting diode, codemaxFor the maximum ten of the Nbit
Hex value, i are the integer not less than 0 and no more than N-1;
S3, according to formula IDac=IIt calculates* (the digital corresponding coefficient of N-1 number corresponding coefficient * * the 0th), calculates
It obtains adjusting electric current, wherein IDacFor the adjusting electric current, IIt calculatesFor with reference to IminThe current value being calculated;
S4, the light emitting diode is dimmed according to the adjusting electric current.
It should be understood that in conjunction with formula IDac=IIt calculates* (the digital corresponding system of N-1 number corresponding coefficient * * the 0th
Number) it can obtain, technical solution provided by the embodiments of the present application, the brightness adjustment control of Nbit is encoded, only by n times coefficient
Adjusting electric current can be obtained in multiplication calculating, and then achievees the purpose that dimming light-emitting diode, and the light-dimming method is more simple, and
And less hardware resource can be occupied, while guaranteeing that the precision for dimming electric current is higher.
In one embodiment of the application, due to being that adjusting electric current can be by digital circuit reality to brightness adjustment control code conversion
Existing, therefore, the coefficient etc. involved in conversion process is binary coded type.Refering to what is shown in Fig. 2, being the embodiment of the present application
The flow chart of the index light-dimming method of another light emitting diode of offer, wherein the coefficient of the number is the coefficient prestored
Coding, the index light-dimming method of light emitting diode provided by the embodiments of the present application include:
Include: after the brightness adjustment control of S1, acquisition Nbit encode
S2 ', all numbers are judged, it is [(I that the described i-th digital corresponding coefficient is obtained when the i-th number is 1max/
Imin)^(1/codemax)] coefficient coding of ^ (2^i), and it is described it is digital be 0 when obtain the coefficient coding that corresponding coefficient is 1
(i.e. so that result of product remains unchanged), wherein ImaxFor the maximum drive current of the light emitting diode, IminIt shines to be described
The minimum drive current of diode, codemaxFor the maximum decimal value of the Nbit, i is not less than 0 and whole no more than N-1
Number;
S3 ', according to formula Dac_code=IIt calculatesCoding * (N-1 number corresponding coefficient encode * * the 0th number
Code corresponding coefficient coding), index transform coding is calculated, wherein Dac_code is the index transform coding, IIt calculates=
(Imin/IIt is fixed), IIt is fixedIt is fixed value by the minimum current source control of digital analog converter;
S4 ', the index transform coding is converted to by adjusting electric current by the digital analog converter, and according to the adjusting
Electric current dims the light emitting diode.
The index light-dimming method of light emitting diode as shown in connection with fig. 2, to the original of index provided by the embodiments of the present application light modulation
Reason is further described, wherein specific value is stated in a manner of the decimal system below.In general, index dims formula by most
High current and minimum current determine, if expecting more fine and smooth dimming curve, the digit of brightness adjustment control coding code (is differentiated
Rate) it is as more as possible with regard to needing.For the light modulation formula of light emitting diode, it is however generally that have:
IDriving=Imin*a^code
Wherein, IminFor the minimum current of light emitting diode, a=(Imax/Imin)^(1/codemax)
Have for the mathematical principle and realization of index mapping:
For formula IDriving=Imin* a^code, due to the adjusting electric current that final output is simulation, so that
Dac_code*IIt is fixed=Imin*a^code
Conversion can obtain:
Dac_code=(Imin/IIt is fixed)*a^code
Due to IIt is fixedIt is fixed value for the minimum current source control of analog-digital converter.It is found that the core of mapping is a^code
Exponential function.
Finally, for the core algorithm of index mapping:
Brightness adjustment control encodes the binary number that code is Nbit, has
Code [N-1:0]=code [N-1], code [N-2], code [N-3], code [1], code [0] }
When brightness adjustment control coding code is converted to decimal system code, then have:
Decimal system code=code [N-1] * 2^ (N-1)+code [N-2] * 2^ (N-2) ++ code [1] * 2^1+
code[0]*2^0
To decimal system a^code, have:
A^code=a^ [code [N-1] * 2^ (N-1)] * a^ [code [N-2] * 2^ (N-2)] * * a^ (code
[1]*2^1)*a^(code[0]*2^0)
Notice that any one number code [i] is binary number in brightness adjustment control coding code, non-zero i.e. 1, the i of numerical value is
Integer not less than 0 and no more than N-1;Therefore, a^code can be obtained by most n times multiplication as a result, every time multiplied by be
Number is is followed successively by a^ [2^ (N-1)], a^ [2^ (N-2)], a^ (2^0).
In turn, it using index light-dimming method provided by the embodiments of the present application, can be calculated by the multiplication of n times coefficient coding
Obtain index transform coding.
(i.e. N is 11) are illustrated so that the digit of brightness adjustment control coding code is 11bit as an example below, and with light-emitting diodes
The index dimming curve I of pipeDrivingIllustrate the original of technical solution provided by the embodiments of the present application for=100*1.0028^code
Reason and implementation.Wherein, Imin=100uA, ImaxThe maximum c ode of=30.5mA, 11bitmax=2047.
Have for the mathematical principle and realization of index mapping:
For formula IDriving=100 × 1.0028^code, due to the adjusting electric current that final output is simulation, so that
Dac_code*IIt is fixed=100 × 1.0028^code
Conversion can obtain:
Dac_code=100/IIt is fixed×1.0028^code
Due to IIt is fixedIt is fixed value for the minimum current source control of analog-digital converter.It is found that the core of mapping is 1.0028
^code exponential function.
Finally, for the core algorithm of index mapping:
Brightness adjustment control encodes the binary number that code is 11bit, has
Code [10:0]=code [10], code [9], code [8], code [1], code [0] }
When brightness adjustment control coding code is converted to decimal system code, then have:
Decimal system code=code [10] * 2^10+code [9] * 2^9++code [1] * 2^1+code [0] * 2^0
To decimal system 1.0028^code, have
1.0028^code=1.0028^ (code [10] * 2^10) * 1.0028^ (code [9] * 2^9) * *
1.0028^(code[1]*2^1)*1.0028^(code[0]*2^0)
Notice that any one number code [i] is binary number in brightness adjustment control coding code, non-zero i.e. 1, the i of numerical value is
It is whole not less than 0 and no more than 10;Therefore, 1.0028^code can obtain result by most 11 multiplication;
Every time multiplied by coefficient be followed successively by 1.0028^ (2^10), 1.0028^ (2^9), 1.0028^ (2^0),
Real figure is as shown in table 1 below:
Table 1
In turn, using index light-dimming method provided by the embodiments of the present application, the multiplication that can be encoded by 1 ordered coefficients is calculated
Obtain index transform coding.
In one embodiment of the application, 1 or 0 numerical value judgement is being carried out and to coefficient coding progress multiplication meter to digital
When calculation, it can carry out a multiplication with the primary number of every judgement and after obtaining coefficient coding and calculate, multiply eventually by loop iteration
Method obtains final index transform coding, that is, index transform coding, which is calculated, described in provided by the embodiments of the present application includes:
After judging a number and acquisition corresponding coefficient coding, according to formula Dac_code_j=Dac_code_j-1*
Jth number corresponding coefficient coding calculates jth time intermediate index transform coding, wherein Dac_code_j is that the jth time is intermediate
Index transform coding, Dac_code_j-1 is -1 intermediate index transform coding of jth, and first time intermediate index transform coding is
IIt calculatesCoding * initial decision number corresponding coefficient coding, j be greater than 1 and be not more than N integer;
Until index transform coding is calculated according to above-mentioned calculating rule in last coefficient coding.
In one embodiment of the application, irregular it can judge when the application judges number.Further,
Digital judgement provided by the embodiments of the present application can be carried out by default rule, and then simplified control timing, wherein described to institute
There is number to be judged are as follows:
All numbers are judged according to default rule.
Optionally, the default rule provided by the embodiments of the present application is by the N-1 number to the 0th number
Sequence.
Correspondingly, the embodiment of the present application also provides a kind of index light adjusting systems of light emitting diode, refering to what is shown in Fig. 3,
For a kind of structural schematic diagram of the index light adjusting system of light emitting diode provided by the embodiments of the present application, wherein light emitting diode
Index light adjusting system include:
Registration module 100, the registration module 100 are used to obtain the brightness adjustment control coding of Nbit, wherein the light modulation control
System coding includes tactic N-1 number to the 0th number, and N is the integer not less than 2;And all numbers are sentenced
Disconnected, it is [(I that the described i-th digital corresponding coefficient is obtained when the i-th number is 1max/Imin)^(1/codemax)] ^ (2^i), and in institute
Stating and obtaining corresponding coefficient when number is 0 is 1, wherein ImaxFor the maximum drive current of the light emitting diode, IminFor the hair
The minimum drive current of optical diode, codemaxFor the maximum decimal value of the Nbit, i is not less than 0 and no more than N-1's
Integer;
Computing module 200, the computing module 200 is according to formula IDac=IIt calculates* (the digital corresponding system of N-1
The digital corresponding coefficient of number * * the 0th), adjusting electric current is calculated, wherein IDacFor the adjusting electric current, IIt calculatesFor reference
IminThe current value being calculated;
And light-adjusting module 300, the light-adjusting module adjust the light emitting diode according to the adjusting electric current
Light.
It should be understood that in conjunction with formula IDac=IIt calculates* (the digital corresponding system of N-1 number corresponding coefficient * * the 0th
Number) it can obtain, technical solution provided by the embodiments of the present application, the brightness adjustment control of Nbit is encoded, only by n times coefficient
Adjusting electric current can be obtained in multiplication calculating, and then achievees the purpose that dimming light-emitting diode, and the light-dimming method is more simple, and
And less hardware resource can be occupied.
In one embodiment of the application, due to being that adjusting electric current can be by digital circuit reality to brightness adjustment control code conversion
Existing, therefore, the coefficient etc. involved in conversion process is that binary coded type, i.e. registration module and computing module are digital
Circuit types.Refering to what is shown in Fig. 4, the structure of the index light adjusting system for another light emitting diode provided by the embodiments of the present application
Schematic diagram, wherein the coefficient of the number is the coefficient coding being pre-stored in coefficient memory 500, wherein the registration module
100 for obtaining the brightness adjustment control coding of Nbit;And all numbers are judged, described i-th is obtained when the i-th number is 1
Digital corresponding coefficient is [(Imax/Imin)^(1/codemax)] coefficient coding of ^ (2^i), and it is described it is digital be 0 when obtain phase
Answering coefficient is 1 coefficient coding, wherein ImaxFor the maximum drive current of the light emitting diode, IminFor the light-emitting diodes
The minimum drive current of pipe, codemaxFor the maximum decimal value of the Nbit, i is the integer not less than 0 and no more than N-1;
The computing module is multiplier 200, and the multiplier 200 is according to formula Dac_code=IIt calculatesCoding * (
N-1 number corresponding coefficient encodes the digital corresponding coefficient coding of * * the 0th), index transform coding is calculated, wherein
Dac_code is the index transform coding, IIt calculates=(Imin/IIt is fixed), IIt is fixedIt is solid by the minimum current source control of digital analog converter
Definite value;
The light-adjusting module is the digital analog converter DAC, converts the index by the digital analog converter DAC and compiles
Code is converted to adjusting electric current, and is dimmed according to the adjusting electric current to the light emitting diode.
In one embodiment of the application, 1 or 0 numerical value judgement is being carried out and to coefficient coding progress multiplication meter to digital
When calculation, it can carry out a multiplication with the primary number of every judgement and after obtaining coefficient coding and calculate, multiply eventually by loop iteration
Method obtains final index transform coding, that is, the registration module includes the first register 101 and the second register 102;
After first register 101 is used to obtain the brightness adjustment control coding of Nbit, all numbers are judged,
In, after judging a number and acquisition corresponding coefficient coding, control corresponding coefficient coding is exported to the multiplier 200;
The multiplier 200 is encoded according to formula Dac_code_j=Dac_code_j-1* jth number corresponding coefficient, meter
It calculates jth time intermediate index transform coding and is transmitted in second register 102 and deposit, wherein Dac_code_j is described
Jth time intermediate index transform coding, Dac_code_j-1 are that second register 102 deposit is transmitted to the of the multiplier
J-1 intermediate index transform coding, and first time intermediate index transform coding is IIt calculatesThe digital corresponding system of coding * initial decision
Number encoder, until index transform coding is calculated according to above-mentioned calculating rule in last coefficient coding and is transmitted to described the
It is deposited in two registers 102, j is greater than 1 and is not more than the integer of N.
Refering to what is shown in Fig. 4, the index light adjusting system of the light emitting diode provided by the embodiments of the present application passes through counter
400 carry out timing control, wherein counter 400 can control the calculation times of the multiplier 200, and control described second
The index transform coding is transmitted to the digital analog converter by register 102.
In one embodiment of the application, irregular it can judge when the application judges number.Further,
Digital judgement provided by the embodiments of the present application can be carried out by default rule, and then simplified control timing, wherein the deposit
Module judges all numbers are as follows:
All numbers are judged according to default rule.
Optionally, the default rule provided by the embodiments of the present application is by the N-1 number to the 0th number
Sequence, this application is not particularly limited.
The embodiment of the present application provides the index light-dimming method and system of a kind of light emitting diode, comprising: obtains Nbit's
Brightness adjustment control coding, wherein brightness adjustment control coding includes tactic N-1 number to the 0th number, N be not less than
2 integer;All numbers are judged, it is [(I that the described i-th digital corresponding coefficient is obtained when the i-th number is 1max/Imin)^
(1/codemax)] ^ (2^i), and obtaining corresponding coefficient when the number is 0 is 1, wherein ImaxFor the light emitting diode
Maximum drive current, IminFor the minimum drive current of the light emitting diode, codemaxFor the maximum decimal system of the Nbit
Value, i are the integer not less than 0 and no more than N-1;According to formula IDac=IIt calculates* (N-1 number corresponding coefficient * *
Zero digital corresponding coefficient), adjusting electric current is calculated, wherein IDacFor the adjusting electric current, IIt calculatesFor with reference to IminIt is calculated
Current value;The light emitting diode is dimmed according to the adjusting electric current.
As shown in the above, in conjunction with formula IDac=IIt calculates* (the digital phase of N-1 number corresponding coefficient * * the 0th
Answer coefficient) it can obtain, technical solution provided by the embodiments of the present application, the brightness adjustment control of Nbit is encoded, only by n times system
Adjusting electric current can be obtained in several multiplication calculating, and then achievees the purpose that dimming light-emitting diode, and the light-dimming method is more simple
It is single, and less hardware resource can be occupied, while guaranteeing that the precision for dimming electric current is higher.It is specific:
Compared to existing conventional method, technical solution provided by the embodiments of the present application only can pass through N by a multiplier
Secondary circulation multiplication can be realized, and circuit area and cost have apparent advantage, and hardware resource consumption is few.
In addition, by the multiplier of high bit number, it can be achieved that the very high index mapping of precision.It is obtained by emulation,
Under citing light modulation formula, index is provided using the embodiment of the present application and dims algorithm, realized by using the multiplier of 1 15*11
Index mapping circuit, the current value for exporting the Dac_code light modulation coding representative of 15bit only have with theoretical value mean error
0.03%;
In addition, comparing existing alternative manner, technical solution provided by the embodiments of the present application only needs at most N number of period to obtain
As a result, making arithmetic speed be greatly improved under conditions of being equally multiplexed using multiplier.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (10)
1. a kind of index light-dimming method of light emitting diode characterized by comprising
Obtain the brightness adjustment control coding of Nbit, wherein the brightness adjustment control coding includes tactic N-1 number to the 0th
Number, N are the integer not less than 2;
All numbers are judged, it is [(I that the described i-th digital corresponding coefficient is obtained when the i-th number is 1max/Imin)^(1/
codemax)] ^ (2^i), and obtaining corresponding coefficient when the number is 0 is 1, wherein ImaxMost for the light emitting diode
Large-drive-current, IminFor the minimum drive current of the light emitting diode, codemaxFor the maximum decimal value of the Nbit, i
For the integer not less than 0 and no more than N-1;
According to formula IDac=IIt calculates* (the digital corresponding coefficient of N-1 number corresponding coefficient * * the 0th), is calculated adjusting
Electric current, wherein IDacFor the adjusting electric current, IIt calculatesFor with reference to IminThe current value being calculated;
The light emitting diode is dimmed according to the adjusting electric current.
2. the index light-dimming method of the light emitting diode provided according to claim 1, which is characterized in that the coefficient of the number is
The coefficient coding prestored, wherein include: after the brightness adjustment control coding for obtaining Nbit
All numbers are judged, it is [(I that the described i-th digital corresponding coefficient is obtained when the i-th number is 1max/Imin)^(1/
codemax)] coefficient coding of ^ (2^i), and it is described it is digital be 0 when obtain the coefficient coding that corresponding coefficient is 1, wherein Imax
For the maximum drive current of the light emitting diode, IminFor the minimum drive current of the light emitting diode, codemaxIt is described
The maximum decimal value of Nbit, i are the integer not less than 0 and no more than N-1;
According to formula Dac_code=IIt calculatesCoding * (N-1 number corresponding coefficient encodes the digital corresponding system of * * the 0th
Number encoder), index transform coding is calculated, wherein Dac_code is the index transform coding, IIt calculates=(Imin/IIt is fixed),
IIt is fixedIt is fixed value by the minimum current source control of digital analog converter;
The index transform coding is converted into adjusting electric current by the digital analog converter, and according to the adjusting electric current to institute
Light emitting diode is stated to be dimmed.
3. according to the index light-dimming method for the light emitting diode that claim 2 provides, which is characterized in that described that index is calculated
Transform coding includes:
After judging a number and acquisition corresponding coefficient coding, according to formula Dac_code_j=Dac_code_j-1* jth number
Code corresponding coefficient coding, calculates jth time intermediate index transform coding, wherein Dac_code_j is that the jth time intermediate index turns
Coding is changed, Dac_code_j-1 is -1 intermediate index transform coding of jth, and first time intermediate index transform coding is IIt calculates's
* initial decision number corresponding coefficient coding is encoded, j is greater than 1 and is not more than the integer of N;
Until index transform coding is calculated according to above-mentioned calculating rule in last coefficient coding.
4. according to the index light-dimming method for the light emitting diode that claim 2 provides, which is characterized in that described pair it is all it is digital into
Row judgement are as follows:
All numbers are judged according to default rule.
5. according to the index light-dimming method for the light emitting diode that claim 4 provides, which is characterized in that the default rule is served as reasons
The N-1 number is to the described 0th digital sequence.
6. a kind of index light adjusting system of light emitting diode characterized by comprising
Registration module, the registration module are used to obtain the brightness adjustment control coding of Nbit, wherein the brightness adjustment control, which encodes, includes
For tactic N-1 number to the 0th number, N is the integer not less than 2;And all numbers are judged, in the i-th number
It is [(I that the described i-th digital corresponding coefficient is obtained when being 1max/Imin)^(1/codemax)] ^ (2^i), and when the number is 0
Obtaining corresponding coefficient is 1, wherein ImaxFor the maximum drive current of the light emitting diode, IminFor the light emitting diode
Minimum drive current, codemaxFor the maximum decimal value of the Nbit, i is the integer not less than 0 and no more than N-1;
Computing module, the computing module is according to formula IDac=IIt calculates* (N-1 number corresponding coefficient * * the 0th is digital
Corresponding coefficient), adjusting electric current is calculated, wherein IDacFor the adjusting electric current, IIt calculatesFor with reference to IminThe electric current being calculated
Value;
And light-adjusting module, the light-adjusting module dim the light emitting diode according to the adjusting electric current.
7. according to the index light adjusting system for the light emitting diode that claim 6 provides, which is characterized in that the coefficient of the number is
The coefficient coding being pre-stored in coefficient memory, wherein the registration module is used to obtain the brightness adjustment control coding of Nbit;And it is right
All numbers are judged that it is [(I that the described i-th digital corresponding coefficient is obtained when the i-th number is 1max/Imin)^(1/
codemax)] coefficient coding of ^ (2^i), and it is described it is digital be 0 when obtain the coefficient coding that corresponding coefficient is 1, wherein Imax
For the maximum drive current of the light emitting diode, IminFor the minimum drive current of the light emitting diode, codemaxIt is described
The maximum decimal value of Nbit, i are the integer not less than 0 and no more than N-1;
The computing module is multiplier, and the multiplier is according to formula Dac_code=IIt calculatesCoding * (N-1 is digital corresponding
The digital corresponding coefficient coding of coefficient coding * * the 0th), index transform coding is calculated, wherein Dac_code is institute
State index transform coding, IIt calculates=(Imin/IIt is fixed), IIt is fixedIt is fixed value by the minimum current source control of digital analog converter;
The light-adjusting module is the digital analog converter, and the index transform coding is converted to tune by the digital analog converter
Current, and the light emitting diode is dimmed according to the adjusting electric current.
8. according to the index light adjusting system for the light emitting diode that claim 7 provides, which is characterized in that the registration module includes
First register and the second register;
After first register is used to obtain the brightness adjustment control coding of Nbit, all numbers are judged, wherein judge one
After described digital and acquisition corresponding coefficient coding, control corresponding coefficient coding output to the multiplier;
The multiplier is encoded according to formula Dac_code_j=Dac_code_j-1* jth number corresponding coefficient, calculates jth time
Intermediate index transform coding and being transmitted in second register is deposited, wherein Dac_code_j, which is that the jth time is intermediate, to be referred to
Number transform coding, Dac_code_j-1 are -1 intermediate index of jth that second register deposit is transmitted to the multiplier
Transform coding, and first time intermediate index transform coding is IIt calculatesCoding * initial decision number corresponding coefficient coding, until will
Last coefficient coding is calculated index transform coding and is transmitted in second register and posts according to above-mentioned calculating rule
It deposits, j is greater than 1 and is not more than the integer of N.
9. according to the index light adjusting system for the light emitting diode that claim 8 provides, which is characterized in that the light emitting diode
Index light adjusting system passes through the calculation times of multiplier described in counter controls, and controls second register for the index
Transform coding is transmitted to the digital analog converter.
10. according to the index light adjusting system for the light emitting diode that claim 7 provides, which is characterized in that the registration module pair
All numbers are judged are as follows:
All numbers are judged according to default rule.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910433989.8A CN110213855B (en) | 2019-05-23 | 2019-05-23 | Exponential dimming method and system for light emitting diode |
PCT/CN2020/091486 WO2020233652A1 (en) | 2019-05-23 | 2020-05-21 | Exponential dimming method and system of light-emitting diode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910433989.8A CN110213855B (en) | 2019-05-23 | 2019-05-23 | Exponential dimming method and system for light emitting diode |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110213855A true CN110213855A (en) | 2019-09-06 |
CN110213855B CN110213855B (en) | 2021-05-04 |
Family
ID=67788283
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910433989.8A Active CN110213855B (en) | 2019-05-23 | 2019-05-23 | Exponential dimming method and system for light emitting diode |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110213855B (en) |
WO (1) | WO2020233652A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020233652A1 (en) * | 2019-05-23 | 2020-11-26 | 上海艾为电子技术股份有限公司 | Exponential dimming method and system of light-emitting diode |
CN113905476A (en) * | 2021-10-28 | 2022-01-07 | 上海艾为电子技术股份有限公司 | Exponential dimming method, mapping circuit, dimming circuit and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110193484A1 (en) * | 2010-05-04 | 2011-08-11 | Xicato, Inc. | Flexible Electrical Connection Of An LED-Based Illumination Device To A Light Fixture |
US20150189708A1 (en) * | 2011-03-17 | 2015-07-02 | Cree, Inc. | Methods for Combining Light Emitting Devices in a White Light Emitting Apparatus that Mimics Incandescent Dimming Characteristics and Solid State Lighting Apparatus for General Illumination that Mimic Incandescent Dimming Characteristics |
EP2894944A1 (en) * | 2014-01-14 | 2015-07-15 | Dialog Semiconductor GmbH | Method for improving the accuracy of an exponential current digital-to-analog (IDAC) using a binary-weighted MSB |
CN204598440U (en) * | 2015-06-02 | 2015-08-26 | 深圳市暗能量电源有限公司 | Novel index light adjusting circuit |
CN105163418A (en) * | 2015-07-01 | 2015-12-16 | 深圳天珑无线科技有限公司 | Linear light adjustment method and device |
CN208462113U (en) * | 2018-08-13 | 2019-02-01 | 上海艾为电子技术股份有限公司 | One line light adjusting circuit, chip and system |
CN109640464A (en) * | 2019-02-27 | 2019-04-16 | 上海客益电子有限公司 | A kind of pwm signal duty ratio control method and corresponding circuit and LED light |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI450637B (en) * | 2011-10-28 | 2014-08-21 | Univ Nat Chi Nan | Dimming device |
CN106875898B (en) * | 2017-01-17 | 2020-03-06 | 青岛海信电器股份有限公司 | Method and device for adjusting illumination brightness by backlight brightness and liquid crystal display device |
CN109379804B (en) * | 2018-10-15 | 2023-12-22 | 广东宝莱特医用科技股份有限公司 | Dimming system and dimming method for LED lamp |
CN110213855B (en) * | 2019-05-23 | 2021-05-04 | 上海艾为电子技术股份有限公司 | Exponential dimming method and system for light emitting diode |
-
2019
- 2019-05-23 CN CN201910433989.8A patent/CN110213855B/en active Active
-
2020
- 2020-05-21 WO PCT/CN2020/091486 patent/WO2020233652A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110193484A1 (en) * | 2010-05-04 | 2011-08-11 | Xicato, Inc. | Flexible Electrical Connection Of An LED-Based Illumination Device To A Light Fixture |
US20150189708A1 (en) * | 2011-03-17 | 2015-07-02 | Cree, Inc. | Methods for Combining Light Emitting Devices in a White Light Emitting Apparatus that Mimics Incandescent Dimming Characteristics and Solid State Lighting Apparatus for General Illumination that Mimic Incandescent Dimming Characteristics |
EP2894944A1 (en) * | 2014-01-14 | 2015-07-15 | Dialog Semiconductor GmbH | Method for improving the accuracy of an exponential current digital-to-analog (IDAC) using a binary-weighted MSB |
CN204598440U (en) * | 2015-06-02 | 2015-08-26 | 深圳市暗能量电源有限公司 | Novel index light adjusting circuit |
CN105163418A (en) * | 2015-07-01 | 2015-12-16 | 深圳天珑无线科技有限公司 | Linear light adjustment method and device |
CN208462113U (en) * | 2018-08-13 | 2019-02-01 | 上海艾为电子技术股份有限公司 | One line light adjusting circuit, chip and system |
CN109640464A (en) * | 2019-02-27 | 2019-04-16 | 上海客益电子有限公司 | A kind of pwm signal duty ratio control method and corresponding circuit and LED light |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020233652A1 (en) * | 2019-05-23 | 2020-11-26 | 上海艾为电子技术股份有限公司 | Exponential dimming method and system of light-emitting diode |
CN113905476A (en) * | 2021-10-28 | 2022-01-07 | 上海艾为电子技术股份有限公司 | Exponential dimming method, mapping circuit, dimming circuit and electronic equipment |
CN113905476B (en) * | 2021-10-28 | 2024-02-02 | 上海艾为电子技术股份有限公司 | Index dimming method, mapping circuit, dimming circuit and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2020233652A1 (en) | 2020-11-26 |
CN110213855B (en) | 2021-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101128979B (en) | High precision control apparatus and method for use with modulated light sources | |
CN102026446B (en) | System and method for non-linear dimming of a light source | |
CN104955235B (en) | LED illumination System and the control method with precision current control | |
US7551153B2 (en) | Combined exponential/linear RGB LED I-sink digital-to-analog converter | |
CN110213855A (en) | A kind of the index light-dimming method and system of light emitting diode | |
CN108174473A (en) | The improved adjusted pulsewidth modulation of accuracy(PWM)Curve calculates | |
CN110177410A (en) | A kind of LED light adjusting circuit, dimming device and light-dimming method | |
CN107347222A (en) | Dimming driving circuit and its control method | |
US9380668B2 (en) | PDM modulation of LED current | |
CN114126145A (en) | Method for adjusting linear perception of color temperature of lamp and application thereof | |
CN110191540A (en) | Light-dimming method, dimming device and the computer-readable medium of LED | |
CN109997414A (en) | Light source drive device | |
CN109379804A (en) | A kind of LED light light adjusting system and light-dimming method | |
CN110809346B (en) | Light adjusting method, light adjusting device and terminal equipment | |
CN112822817B (en) | Drive control circuit structure for realizing dimming function | |
RU2386993C1 (en) | Variable voltage controller | |
CN103079305A (en) | Light-emitting diode (LED) illuminating device and light regulation method thereof | |
CN109152136B (en) | Gray scale increasing method of LED lamp | |
CN109041340B (en) | A kind of electric current when LED multi-path dims distributes control method | |
CN116209113A (en) | Nonlinear compensation method and system applied to multichannel LED dimming | |
CN204069407U (en) | LED light modulating device | |
CN104582194A (en) | Single-power-key time delay state control PWM dimming circuit used for LED driver | |
CN111901938B (en) | LED driving signal processing method and circuit, LED driving device and lamp | |
CN107820346A (en) | A kind of biometrics multichannel Linear Control module, system and method | |
CN102957318A (en) | Light emitting module with light emitting diodes and voltage conversion device of light emitting module |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |