This application claims priority from Italian Application for Patent No. 102015000038443 filed Jul. 27, 2015, the disclosure of which is incorporated by reference.
The present invention relates to an integrated device for adjusting dimming of LEDs and to the control method.
As is known, the use of LEDs in lighting apparatuses is increasing, at the expense of traditional lighting techniques based upon incandescent, fluorescent, or halogen lamps, by virtue of the possibility of availing arrays of diodes arranged side-by-side and able to supply a high brightness at a high efficiency. LED lighting apparatuses thus have increasingly wider application both in the automotive field, for position lamps and headlights, and in civil engineering, for outdoor and indoor lighting lamps.
Control of brightness of LED arrays is not, however, simple. In fact, the human eye has a response of a logarithmic type to the variation rate of the light. Consequently, to obtain a variation of brightness perceived as linear by the human eye, the LEDs are driven with a signal that follows an exponential law.
Currently, control of brightness is obtained by pulse-width modulation (PWM). Consequently, to obtain a brightness variation that is perceived by the human eye as constant in time, the diodes or arrays of diodes are driven with control pulses having an exponentially increasing duration.
In practice, to this end, current adjustment devices comprise a stage that stores the exponential conversion law and outputs each instant the duration value (or duty cycle) of the control signal.
With the same technique, in order to enable different adjustment profiles that provide non-linear effects of blinking, sleeping, or dimming, the control laws are stored in the adjustment device.
The general diagram of a dimmer that uses the technique described above is shown, for example, in
The dimmer of
The dimming block 15 stores the desired conversion law and outputs a control signal Ton, of a digital type, supplied to a driving circuit 18, in turn driving a diode or an array of diodes 19.
The dimming block 15 comprises a conversion element 20, implemented as a look-up table, a counter 21, and a plurality of comparators 23.1, 23.2, . . . 23.n, one for each channel C1-Cn.
In detail, the conversion unit 20 is coupled to the memory stage 14, here implemented as block of channel registers 14, one for each channel C1-Cn, designated also as 14.1, 14.2, . . . 14.n. In particular, the conversion unit 20 has a plurality of inputs, each connected to a respective channel register 14, 14.1, 14.2, . . . 14.n and has a plurality of outputs, each connected to a respective comparator 23.1, 23.2, . . . 23.n. The counter 21 receives the clock signal CLK and outputs a count signal supplied to the comparators 23.1, 23.2, . . . 23.n, the outputs whereof supply control signals Ton.1, Ton.2, . . . Ton.n.
In practice, at each cycle, on the basis also of the control signals from the control unit 13, the conversion unit 20 outputs a plurality of values of pulse duration, one for each channel C1, C2, Cn, supplied to the comparators 23.1, 23.2, . . . 23.n, together with the count signal. At the start of each cycle, each comparator 23.1, 23.2, . . . 23.n generates, on the respective output, a switching edge (for example, a rising edge) and then switches in an opposite way (for example, via a falling edge) as soon as the count value supplied by the counter 21 becomes equal to the value supplied by the conversion unit 20. Thus a pulse is generated, the duration whereof is determined by the conversion values stored in the memory locations of the look-up table 20, on the basis of the addresses specified by the channel registers 14.
In this way, even though all the channels use one and the same ON law (for example, an exponential law, perceived by the human eye as a linear law), the individual channels can independently and proportionally modulate the obtainable brightness.
If it is desired to implement more than one conversion law, for example for generating animations that require fast variations of brightness of the diodes or LED arrays according to preset patterns, it is possible to program the conversion unit 20 to store different conversion laws. In this case, the dimmer 10 may include a plurality of registers that encode in a binary way the conversion law to be used each time, as represented in
For example, the component PCA9622 produced by NXP Semiconductors, which uses a scheme similar to the one described above, enables driving of 16-bit LEDs for implementing a law of a linear type. If it is desired to implement more than one conversion law, the above component enables implementation of more complex laws, but this requires extra area for implementation of the desired functions.
With the dimmer 10 of
In fact, for a dimmer 10 having the following parameters:
and naming:
which is more than proportional to the parameters to be modified.
Each variation of dimensions, of the conversion laws to be implemented, and/or of the channels thus entails a high increase of the complexity of the adjustment device of
In fact, the look-up table is currently implemented in a wired way via diffusions within a silicon substrate, and each modification requires a new design step, with modification of a large number of the diffusion masks (up to thirty) and execution of a complete qualification step, an operation that is costly and involves a non-negligible length of time.
In addition, with the described solution, the implementation of more than one law at a time would require a very extensive area in so far as it would involve multiple look-up tables as well as creation of a combinational logic for decoding the information from the tables.
There is a need in the art to provide a dimmer that overcomes the drawbacks of the prior art.
In an embodiment, an integrated device for adjusting dimming of LEDs and an adjustment method are provided.
In practice, the present dimmer replaces the operations of counting of clock pulses at a constant rate and of comparing the results of the count with various values stored for each channel for driving the LEDs or strings of LEDs with generation and counting of pulses of a non-constant clock, which is variable on the basis of the stored control law. In this way, the width of the driving pulses does not depend any longer upon counting a variable number of clock pulses at a fixed frequency, but depends upon counting the pulses of a non-constant clock, in particular having a variable frequency. The clock parameters, which vary according to the switching law be implemented, are stored in a non-volatile memory (ROM), which can be easily updated on the basis of the requests of the user.
It follows that the time processing is shared by all the LED channels. The use of a ROM moreover enables easy implementation of and switching between various laws, according to the dimensions of the chosen ROM. Moreover, adaptation of the design of the device to various driving laws can be obtained simply by modifying only a final mask in the manufacturing process.
In an embodiment, an integrated device for adjusting dimming of LEDs comprises: a law memory configured to store at least one switching control law for the LEDs; a modulated-clock generator coupled to an output of the law memory and configured to generate a modulated-clock signal having a parameter varying according to the stored switching control law; a counting circuit coupled to an output of the modulated-clock generator and configured to generate a variable-frequency count signal; and a comparator having an input coupled to an output of the counting circuit and configured to compare the count signal with a set value and to generate a control signal for an LED channel, said control signal switching when the count signal reaches the set value.
In an embodiment, a control method for adjusting dimming of LEDs, comprising the steps of: storing in a memory a switching control law for LEDs; generating a modulated-clock signal having a parameter that varies according to the stored switching control law; generating a counting signal of the modulated-clock signal; comparing the counting signal with a set value; and generating a switching control signal when the counting signal reaches the set value.
In an embodiment, an integrated device comprises: a modulated-clock generator configured to generate a modulated-clock signal having a frequency that varies according to a switching control law; a counting circuit configured to generate a variable-frequency count signal in response to the modulated-clock signal; a comparator having an input coupled to an output of the counting circuit and configured to compare the variable-frequency count signal with a set value and to generate a control signal that switches when the count signal reaches the set value; and a driver circuit operating in response to the control signal to drive a string of light emitting diodes (LEDs).
For a better understanding of the present invention preferred embodiments thereof are now described, purely by way of non-limiting example, with reference to the attached drawings, wherein:
The dimmer 30 comprises a control unit 35; a dimming block 31; a block of channel registers 32; a block of law-selection registers 33; and a clock 34.
The control unit 35, also here a finite-state machine FSM, the block of law-selection registers 33, and the clock 34 are similar to the components 13, 25, and 16 of the dimmer 10 of
The dimming block 31 comprises a memory 40, for example a ROM, which has inputs coupled to the block of law-selection registers 33 and to a pointer 41, and an output coupled to a first counter 42. The first counter 42 receives the clock signal CLK generated by the clock 34 and outputs a modulated-clock signal CLKmod which is supplied to a block of second counters 43. The block of second counters 43 comprises a plurality of second counters 43.1, 43.2, . . . 43.n, one for each channel C1, C2, . . . Cn, all whereof receive a same modulated-clock signal CLKmod. Moreover, the second counters 43.1, 43.2, . . . 43.n have a respective output connected to a respective first input of a block of comparators 44, one for each channel C1, C2, . . . Cn, which are also designated as comparators 44.1, 44.2, . . . 44.n. The output of each comparator 44.1, 44.2, . . . 44.n, which supplies a respective control signal Ton.1, Ton.2, . . . Ton.n, is coupled to a respective channel C1, C2, . . . Cn.
In detail, the memory 40, typically a ROM, stores the parameters used by the first counter 42 for generating the modulated-clock signal CLKmod for each brightness-variation law, selected on the basis of the information stored in the law-selection registers 33. Specifically, for each cycle of the control signals Ton.1, Ton.2, . . . Ton.n, and according to the stored law, as specified by the block of law-selection registers 33, the memory 40 supplies a sequence of values representing the number of pulses of the clock signal CLK at which the first counter 42 has to generate a pulse (pulse of the modulated-clock signal CLKmod), which represents the end-of-count or timeout signal for the first counter 42. In practice, the first counter 42 generates a pulse of the modulated-clock signal CLKmod after it has counted the number of clock pulses CLK specified each time by the memory 40.
Upon reception of each pulse of the modulated-clock signal CLKmod, the pointer 41 generates an addressing signal ADD, which is supplied to the memory 44. Upon reception of each pulse of the modulated-clock signal CLKmod, the pointer 41 increments the value of the addressing signal ADD, thus causing reading of the next position in the memory 40 and sending, to the first counter 42, a next duration value, thus determining progressive reading of the values stored in the memory 40. After reading the last value stored for the selected law, the pointers 41 are again initialized in an iterative way, so as to point to the start of the values sequence for the considered law, and a new driving cycle is thus activated.
The pulses of the modulated-clock signal CLKmod are counted by the second counters 43.1, 43.2, . . . 43.n, and the corresponding count signals L1, . . . Ln are supplied to the respective comparators 44.1, . . . 44.n. These compare the count signals L1, . . . Ln with the respective setting values supplied by the respective channel registers 32 and generate the control signals Ton.1, Ton.2, . . . Ton.n, which switch when the respective count signal L1, . . . Ln is equal to the setting value. For example, the control signals Ton.1, Ton.2, . . . Ton.n switch to high at the start of each period (when the count signals L1, . . . Ln go to zero) and switch to low when the respective count signal L1, . . . Ln reaches the respective setting value.
An example of variation of the signals of the dimmer 30 for controlling the channels C1-Cn with control signals Ton.1, Ton.2, Ton.n having a duration increasing according to an exponential law (which can be perceived by the human eye as linear variation of brightness) is shown in
Here, the memory 40 supplies a sequence of increasing numbers of clock pulses (not shown). Consequently, as may be noted in the enlarged detail of
It follows that also the count signal Li generated by the second counter 43.i has an exponentially decreasing count frequency, thus determining control pulses Ton.i that are progressively longer.
Obviously, the sequences of modification of the duration of the ON pulses of the channels depends upon the law stored in the memory 40 and activated at that moment by the law-selection registers 33.
With the described dimmer 30, it is possible to easily implement numerous control laws, with reduced complexity and reduction in the adaptation operations of the device in order to adapt to new laws.
In fact, adopting the same terminology used above, and, namely:
C113 S=┌ log2(Δpwm_step)┐
LAWset[FF]=┌ log2(NL)┐
ROM_S=(2PWM
ROM_P=PWMres+LAWsei
C2_S=n·PWMres
R_S=n·PWMres
COMP_S=n·PWMres
For example, devices produced by the present applicant that implemented four different control laws for twelve channels C1-Cn used an integration area that was one third of the area necessary with the scheme of
Moreover, by implementing the memory 40 as a ROM, the dimmer of
Thus, adaptation of the dimmer 30 for implementing various control laws does not require modification of diffusion masks in the silicon and thus not even performing the burdensome qualification step.
If it is desired to implement a dimmer where each channel C1-Cn can be controlled via a different control law, it is possible to use the scheme of
In detail, the dimmer 50 of
In practice, in this case, the law-selection registers 33 can supply the memory 40 with the addresses corresponding to m laws (where 1≦m≦n). At each instant, on the basis of the location pointed by the pointer 41, the memory 40 supplies, on n outputs, n count values, and each first counter 42.1, 42.2, . . . 42.n generates a respective modulated-clock signal CLKmod.1, CLKmod.2, CLKmod.n, which can thus be generated at different times and give rise to pulses of different duration of the control signals Ton.1, Ton.2, Ton.n.
Finally, it is clear that modifications and variations may be made to the device and to the method described and illustrated herein, without thereby departing from the scope of the present invention, as defined in the attached claims. For example, by introducing simple delay elements between the first counter 42 and the second counters 43.1, 43.2, . . . 43.n (or, in the embodiment of
For example, the first counter could generate a signal, that, instead of having variable frequency, has a variable duration which is measured in some way by the second counter. In this case, the modulated-clock signal CLKmod could have an amplitude that is variable stepwise.
Moreover, the pointer could generate successive decreasing addresses, instead of increasing ones.
Number | Date | Country | Kind |
---|---|---|---|
102015000038443 | Jul 2015 | IT | national |