CIRCUIT ARRANGEMENT AND METHOD FOR DETERMINING A SIGNAL REPRESENTING A CURRENT VALUE
Patent Information
- Application Number
- DE502018015253
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2018-03-20
- Filing Date
- 2018-07-09
- Publication Date
- 2024-11-14
- Estimated Expiration
- 2038-07-09
AI Technical Summary
Current lighting technologies face challenges in precisely controlling the electrical current of light-emitting diodes (LEDs) over a wide dynamic range to maintain accurate color temperature and illuminance, especially during dimming, which is essential for user well-being and productivity, but existing solutions are inefficient and costly due to the need for numerous converters.
A circuit arrangement that uses two amplifier circuits with different amplification factors to generate a weighted combination of the measured current, allowing for precise determination and control of the electrical current through LEDs, enabling accurate regulation of light output and color temperature across a wide dimming range.
This solution provides highly precise control of LED current and light output over a wide dimming range, ensuring stable color temperature and illuminance, while reducing the need for multiple converters and associated costs.
Description
[0001] The invention is in the field of operating devices for lighting devices, in particular for light-emitting diodes.
[0002] The invention particularly relates to a circuit arrangement for determining an actual current value, as well as a corresponding method and a control device. A circuit arrangement is proposed that enables precise current determination over a wide dynamic range with a continuous transition between current measurement ranges. Furthermore, an operating device for lighting devices with a corresponding current determination and corresponding control of the load current via the lighting devices is included.
[0003] Both the color temperature and illuminance of artificially generated light, especially with light-emitting diodes (LEDs), have a significant impact on a user's well-being. Appropriately designed lighting solutions can also promote concentration and productivity in offices, product-specific and seasonally adjusted lighting in retail spaces, or therapeutic support in retail spaces.
[0004] In lighting technology, for example, luminaires are used that can simulate daylight and adapt to the individual needs of the user.
[0005] The color temperature of the light emitted by the lamp is adjustable. This can be achieved using two light channels: one emitting a cool white light and another emitting a warm white light. Both channels can be controlled individually. Light-emitting diodes (LEDs) are typically used as light-emitting elements in both channels.
[0006] The illuminance of the emitted light can be dimmed for corresponding lighting solutions in a range of typically 10% or 15% up to 100%.
[0007] In order to be able to control the illuminance of the emitted light over a wide range (dimming) while maintaining a highly precise color temperature of the emitted light, a highly accurate measurement of the electrical current through the LEDs is required to be able to regulate the luminaire, especially the converter circuit that generates the respective LED current, accordingly. At the same time, converters are required in large quantities for such lighting solutions and thus represent a significant cost factor.
[0008] US 2013 / 027022 A1 discloses a system for measuring current, comprising a current monitoring system with a current sensor. The current sensor is configured to detect a first current flowing through a conductor. The current monitoring system further comprises a voltage conversion device coupled to the current sensor and configured to receive a second current from the current sensor and convert the second current into a first voltage. A first scaling circuit is coupled to the voltage conversion device and configured to convert the first voltage into a second voltage proportional to the first current based on a first scaling factor.A second scaling circuit is coupled to the voltage conversion device and configured to convert the first voltage to a third voltage proportional to the first current based on a second scaling factor, wherein the second scaling factor is different from the first scaling factor.
[0009] US 7,573,209 B2 discloses a method and system for controlling the chromaticity and luminous flux of a digitally controlled luminaire. The luminaire comprises one or more light-emitting elements and one or more light sensors capable of providing optical feedback, which optical feedback is filtered to remove unwanted frequencies. The method and system includes a control system capable of sampling the filtered signals from the light sensors according to a predetermined feedback sampling frequency scheme, which scheme is specifically configured to provide sufficient iterations of the feedback loop performed to adjust the color and luminous flux output of the light-emitting elements without perceptible visual flickering or momentary color shifts.
[0010] US 2005 / 134490 A1 discloses a power line measuring device having first input channels for AC signals with DC values of approximately zero. A second input channel has an analog output with a predetermined non-zero DC bias value. A plurality of biasing and scaling circuits input the AC signals and output corresponding analog outputs. A plurality of analog-to-digital converters receive the corresponding analog signals and output corresponding digital values. A serial output circuit serially transmits the corresponding digital values for a first set of A / D conversions before serially transmitting digital values for a subsequent second set of conversions, without providing synchronization of the corresponding digital values for both the first and second sets of conversions.A serial input circuit receives the serially transmitted digital values and stores them in memory. A processor averages the digital values for the channels and determines whether only the average associated with the second channel has the DC bias value.
[0011] US 2007 / 152864 A1 discloses an optical receiver for generating a signal representing an actual current value, comprising a first and a second current measurement path. The signals from both current measurement paths are fed to analog-to-digital converters, and a controller is configured to select between the digital signals from the first or second current measurement paths based on the comparison of the signal value with a predetermined threshold.
[0012] The technical task to be solved is to find precise and at the same time efficiently implementable devices and methods for the exact determination of an electrical current and a precise control of the output current of an operating device.
[0013] A first aspect of the invention is defined in claim 1. A second aspect of the invention is defined in the corresponding method claim.
[0014] The circuit arrangement according to the invention for generating a signal representing an actual current value according to claim 1 comprises: detection means for detecting a measured variable representative of the current, a first current measuring path with a first amplifier circuit for amplifying the detected measured variable with a first amplification factor, a second current measuring path with a second amplifier circuit for amplifying the detected measured variable with a second amplification factor different from the first amplification factor, combination means designed to generate a combined signal and output means for outputting the combined signal of the actual current value.The circuit arrangement is characterized in that the combination means is designed to generate the combined signal as a weighted combination of the first amplified measured variable with the second amplified measured variable using a weighting function for the weighted combination of the first amplified measured variable with the second amplified measured variable, wherein the weighting function specifies weighting factors for the first and second current measuring paths according to a current value. The current value is a target value for the current to be determined or a dimming value. The combination means is configured to use only the measured variable amplified with the first amplification factor for current values smaller than a first threshold value, wherein the second amplification factor is smaller than the first amplification factor. The combined signal can either be reused directly since it clearly reflects the current.Alternatively, the current can also be determined from the combined signal, and this value can then be used for further processing. According to the invention, a value directly representing the current to be measured is available in two differently amplified versions. The signals obtained by varying the amplification of the measured value are then combined in a weighted manner, for example, each multiplied by the respective weighting factors and added together.
[0015] This allows the measured variable to be precisely recorded and processed according to the respective magnitude of a current value of the electrical current to be measured, across a wide range of possible current values, i.e., across a large dynamic range. The current measurement procedure according to the invention is thus characterized by inherently high current measurement accuracy across a wide dynamic range. In the simplest case, the entire range is divided into two subranges, with a sudden switch between the measurement paths when transitioning from one range to the other.
[0016] The generated signal is representative of the actual current value, ie the actual current value to be determined can be clearly determined from the signal value.
[0017] Thus, for example, a cold white and a warm white channel of a tunable white light lamp can be controlled using the circuit arrangement according to the invention for current measurement over a wide dimming range with high requirements for a constant color temperature.
[0018] The circuit arrangement comprises the combining means designed to use a weighting function for the weighted combination of the first amplified measured variable with the second amplified measured variable.
[0019] The weighting function can thus be set according to an expected current value and a measuring range with an associated measuring accuracy can be set according to an expected measured value for the current.
[0020] The circuit arrangement is characterized in that the weighting function specifies the weighting factors for the respective current measuring path according to a current value, wherein the current value is a setpoint value for the current to be measured or a dimming value.
[0021] With a setpoint for the current to be measured, particularly as a reference variable in a control loop for regulating the current, or a specified current value for the current to be measured, information about the expected measured current value is available, which contains essential information for specifying and selecting a weighting function and thus for selecting a measuring range for the current measurement circuit. The current can therefore be measured or determined precisely based on the combined signal.
[0022] The circuit arrangement has the combining means designed to use only the current amplified by the first amplification factor for current values smaller than a first threshold value, wherein the second amplification factor is smaller than the first amplification factor.
[0023] Amplification with the first, larger gain factor offers the advantage that the operational amplifier used as the measuring amplifier is significantly more sensitive to small changes in current, especially compared to the second current measurement path with the lower second gain factor. This makes the amplified current measurement meaningful and accurate even for small values of the current to be measured.
[0024] The combination means of a preferred embodiment is configured to use, for current values greater than a first threshold value and less than a second threshold value, the weighted combination of the current amplified with the second gain factor with the current amplified with the first gain factor. The second gain factor is smaller than the first gain factor, a first weighting factor of the current amplified with the first gain factor
[0025] current with increasing current value is reduced, in particular linearly reduced, and a second weighting factor of the current amplified with the second amplification factor is increased with increasing current value, in particular linearly increased.
[0026] Establishing a transition region in which the weighting of the strongly amplified first current measuring path is gradually reduced with increasing electrical current and, in counteracting this, the weighting of the weakly amplified second current measuring path is increased, is particularly advantageous because hard switching between current measuring paths, and thus between measuring ranges, is avoided.
[0027] The circuit arrangement according to one embodiment has the combination means designed to use only the measured variable amplified with the second amplification factor for current values above a second threshold value, wherein the second amplification factor is smaller than the first amplification factor.
[0028] If no transition area is to be created between the two ranges, the two threshold values can be identical. As already explained above, this creates a sudden transition between the two ranges.
[0029] Amplification with the second, smaller gain factor offers the advantage that the operational amplifier used as the measuring amplifier saturates much more slowly at high currents, especially compared to the first current measurement path with the higher first gain factor. This makes the amplified measured value meaningful even for high electrical current values.
[0030] An advantageous circuit arrangement is used to determine the combined signal for an electrical current via at least one light-emitting diode, wherein the actual current value determined from the combined signal is used in a control loop for constant control of the current as a controlled variable via the light-emitting diode to a predetermined setpoint value (reference variable).
[0031] The invention enables highly precise control of the current through the LED, which determines the light output, over a wide dimming range. This allows precise control of the LED's light output, particularly when dimmed to below 1% of the LED's light output.
[0032] A particularly advantageous use of the circuit arrangement according to one embodiment determines a first current in a first channel of a two-channel system and a second current in a second channel of a two-channel system. The first channel comprises at least one light-emitting diode with a cool white color temperature of an emitted light, and the second channel comprises at least one light-emitting diode with a warm white color temperature of an emitted light.
[0033] If the currents through the cool white LED and the warm white LED are each determined using the circuit arrangement according to the invention, precise control of the current through the LEDs and thus exact control of the light output of the individual LEDs is possible over a wide dimming range of the light output. A desired color temperature of the emitted light is thus also possible over a wide dimming range. This makes it possible to realize dimmable luminaires with tunable white light, for example, between 1500 K and 6500 K, with favorable and stable properties.
[0034] One embodiment of the circuit arrangement forms the first amplifier circuit and the second amplifier circuit as separate discrete components.
[0035] Integrated commercially available solutions already exist for the use of two discrete operational amplifiers, which feature two operational amplifiers in a common housing powered by a single supply voltage V CC. This allows for a simple and cost-effective implementation of the invention using existing solutions, with advantageous cost structures, and with minimal development risks.
[0036] A particularly advantageous embodiment of the circuit arrangement is characterized in that the first amplifier circuit and the second amplifier circuit are arranged in a common component housing.
[0037] Since both operational amplifiers are housed in a common module housing, the two operational amplifiers will exhibit corresponding temperature behavior during operation. The influence of ambient temperature on the current measurement according to the invention is thus advantageously reduced.
[0038] The second aspect of the invention relates to a method for determining the signal with the following steps: detecting a measured variable representative of the current, amplifying the measured variable in a first current measuring path with a first amplification factor and amplifying the measured variable in a second current measuring path with a second amplification factor, generating a combined signal and outputting the combined signal as the basis for determining the actual current value. The method is characterized in that a combined signal is generated by means of weighted combining the first amplified measured variable with the second amplified measured variable with a weighting function for the weighted combination of the first amplified measured variable with the second amplified measured variable, wherein the weighting function specifies weighting factors for the first and second current measuring paths according to a current value.The current value is a setpoint for the current to be determined or a dimming value. Generating a combined signal for current values less than a first threshold uses only the measured value amplified by the first gain factor, with the second gain factor being smaller than the first gain factor.
[0039] The following examples and embodiments are not in accordance with the invention and are intended merely to illustrate the invention defined in the claims.
[0040] A method for controlling an output current of a converter circuit for operating at least one lighting device according to one example shows the converter circuit having at least one clocked switch and a coil. In an intermittent operating mode of the converter circuit, the output current is controlled by controlling a switch-on time of the switch after a dead time. The method first comprises a step of determining a nominal dead time and a nominal peak current. Subsequently, an array of counter readings for a coil current is generated across the coil of the buck converter. A new dead time for a nominal value of the coil current closest to the determined nominal dead time is then determined from the generated array of counter readings.A compensation value for the peak current to keep the load current constant is determined, and a corrected peak current is generated from the nominal peak current using the determined compensation value. The corrected peak current and the new dead time are then output to control the output current of the converter circuit.
[0041] The method enables targeted control of the switch-on time of the controlled switch of a clocked converter in intermittent operation ("valley switching") without the need for highly accurate current measurement for very small current values. This advantageously reduces the circuit complexity for current measurement. The solution utilizes the control circuitry present in a clocked converter, typically a microcontroller with analog / digital converter inputs and counters, to determine the restart time from a minimum load current. Load current jumps when changing the restart time due to a change in the selected current minimum across the array of counter readings can be advantageously prevented by the correction value for the peak current.
[0042] The method according to a further example is characterized in that the load current is controlled based on the peak current and the dead time in a first control range of the converter circuit for high dimming values of the load current.
[0043] The method according to another example regulates the load current based on the peak current and with a constant dead time in a second control range of the converter circuit for low dimming values of the load current.
[0044] The minima of the load current are easy to detect for high load currents, while for low load currents the control of the load current is advantageously carried out directly by means of the determined dead time.
[0045] One embodiment of the method is characterized in that a new dead time for a minimum value of the coil current closest to the determined nominal dead time is selected from the generated field with a hysteresis,
[0046] Selecting the dead time from the field of counter readings taking into account a hysteresis avoids a rapid change of the counter readings for the minimum of the coil current and leads to a stable control behavior of the load current without any visible fluctuations of a light intensity being noticeable.
[0047] An advantageous example of the method selects a new dead time from the array of counter readings stored in a ring buffer. Designing the dead time determination from an array of counter readings via a ring buffer enables a simple, known data structure and efficient memory design, reducing the implementation effort of the method according to the invention.
[0048] An integrated control device is designed in particular with a microcontroller for carrying out the method steps according to one of the embodiments presented above.
[0049] In particular, the amplified measured value of the first and second current measurement paths can be converted into a digital signal after the first and second amplifier circuits, respectively, and the subsequent signal processing can be performed in digital form, preferably using software. This allows existing integrated circuits (ICs) and processors to be used, for example, microprocessors of a converter module for controlling one or more LED modules.
[0050] An operating device for lighting means may comprise at least one of the circuit arrangements described above and / or at least one control device designed to carry out the method steps according to one of the method claims described above.
[0051] The control gear is advantageous, for example, for the multi-channel and at the same time highly precise control of lamps with different color temperatures for the emission of light of constant color temperature over a wide range of dimming levels.
[0052] Likewise, a method for controlling the operating device for lamps can comprise the corresponding method steps according to one of the methods defined above.
[0053] In the following, exemplary embodiments of the invention are illustrated by means of the figures. Fig. 1 shows a circuit arrangement according to an embodiment, Fig. 2 shows a circuit example for implementing an embodiment, Fig. 3 shows a possible design of the current measuring ranges and a weighting function for a possible implementation, Fig. 4 shows a simple flowchart of an embodiment of the method, and Fig. 5 shows an embodiment in a two-channel lighting arrangement for generating adjustable white light. Fig. 6 shows an operating device for lamps with its essential functional blocks, Fig. 7 shows a step-down converter circuit for operating LEDs, Fig. 8 shows examples of signal waveforms of the step-down converter circuit according to Fig. 7, Fig. 9 a buck converter circuit for operating LEDs with means for detecting the signals used to control the buck converter circuit, Fig. 10 measured typical signal waveforms of the buck converter circuit, Fig. 11 an overview of switching regions for controlling the buck converter circuit in intermittent operation with switching control at the current minimum, Fig. 12 an overview of the functional blocks for a control method for the buck converter circuit, Fig. 13 a signal sequence for controlling the buck converter circuit when setting a changed dimming value when controlling an LED, Fig. 14 a time sequence for determining a field of minima for determining a switch-on time of the switch of the buck converter, Fig. 15 a memory structure for use in determining a minimum for determining a switch-on time of the switch of the buck converter, Fig.Fig. 16 shows an approximation method for use in a control method for the buck converter circuit, Fig. 17 shows a further approximation method for use in a control method for the buck converter circuit, and Fig. 18 shows a function block for determining a new current peak value for controlling the buck converter circuit when setting a changed dimming level.
[0054] In the figures, identical reference symbols designate identical or corresponding elements. Where deemed unnecessary, descriptions of identical reference symbols in different figures have been omitted for the sake of conciseness.
[0055] Fig. 1 shows a circuit arrangement 1 according to an embodiment with typical functional blocks.
[0056] Measuring a current using a measuring resistor R MESS 2 (also: shunt resistor R SHUNT ) in a first function block 3 is known per se. For example, a load current I LED via an LED can be measured using the voltage drop across the measuring resistor R MESS 2 . The magnitude of the voltage drop across the measuring resistor R MESS 2 corresponds to a current intensity of the load current I LED . Thus, a measured value representative of the current intensity of the current I LED (actual current value) is generated using the measuring resistor R MESS 2 .
[0057] The measured variable is then fed to a first current measurement path 4 and a second current measurement path 5. The first current measurement path 4 comprises a first operational amplifier 6. The second current measurement path 5 comprises a second operational amplifier 7. The first operational amplifier 6 amplifies the measured variable present at its input with a first amplification factor. The second operational amplifier 7 amplifies the measured variable also present at its input with a second amplification factor. The first amplification factor and the second amplification factor are different. In particular, the first amplification factor is greater than the second amplification factor.
[0058] The first operational amplifier 6 and the second operational amplifier 7 are typically designed as non-inverting operational amplifiers and implemented as separate discrete components. The second functional block 8 with the first operational amplifier 6 and the second operational amplifier 7 is advantageously implemented as separate discrete semiconductor components in a common component package with a common power supply for both operational amplifiers 6, 7. Suitable semiconductor components are available under the designations LM2904, LM358 / LM358A, LM258 / LM258A, MCP6002, TLV2333, etc. The use of an available dual operational amplifier integrated in a common package with a voltage supply V CC is advantageous because, on the one hand, the costs are only incurred for adapting the operational amplifier circuit to the specific application.Furthermore, a corresponding temperature dependence of the first operational amplifier 6 and the second operational amplifier 7 can be assumed.
[0059] The first amplified measured variable and the second amplified measured variable are then fed to a third functional block 9. The third functional block 9 is advantageously implemented in the form of software modules. Alternatively, a complete or partial implementation in hardware is possible.
[0060] The third functional block 9 comprises, on the one hand, a separate signal processing of the first current measuring path 4 and the second current measuring path 5. Furthermore, in the third functional block 9, Fig. 1 the first amplified measured value and the second amplified measured value are combined in a weighted manner and output as a combined signal for the current intensity of the load current I LED to be measured at the output.
[0061] For this purpose, in the third function block 9 in the first current measurement path 4, the measured variable amplified with the first gain factor is sampled and fed to a first A / D converter 10 and converted into a digital signal, for example, with a resolution of 12 bits. The digital signal in the first current measurement path 4 can be sampled by oversampling, for example, with a factor of 2 6< to improve resolution, reduce noise, and avoid phase distortions. In the first current measurement path, the digital signal can be further adjusted by adding a first offset in a first adder 12 and multiplying it by a first signal gain in a first multiplier 13.
[0062] Accordingly, in the third function block 9 in the second current measurement path 5, the measured variable amplified by the second gain factor is sampled and fed to a second A / D converter 16 and converted into a second digital signal, for example, with a resolution of 12 bits. The second digital signal in the second current measurement path 5 can be sampled by oversampling. In the second current measurement path, the second digital signal can be further adjusted by adding a second offset in a second adder 17 and multiplying it by a second signal gain in a second multiplier 18.
[0063] Subsequently, in the third functional block 9, after the signal preprocessing steps described above, the first amplified measured variable and the second amplified measured variable, or the signals obtained therefrom as described above, are combined in a weighted manner. For simplicity, however, the processing of the first or second amplified measured variable will continue to be used for explanation, since the intermediate processing, in particular, can also be carried out in a different way or at least largely not be carried out. The combination is shown in Fig. 1by dividing the first amplified measured variable in the first current measurement path 4 by an arbitrary value x in a first divider 14 and then multiplying it by a first weighting factor WFH in a first multiplier 15. Accordingly, in the second current measurement path 5, the second amplified measured variable is divided by an arbitrary value x in a second divider 19 and then multiplied by a second weighting factor WFL in a second multiplier 20. The value x of the first divider 14 and the second divider 19 can be the same or different.
[0064] The first weighted measured variable and the second weighted measured variable are fed to an adder 21 and added together to generate the combined signal. The combined signal is then output as the basis for determining the load current I LED . The respective amplification, weighting, and combination of the first and second amplified measured variables are determined with reference to Fig. 3 explained in more detail below.
[0065] Fig. 2 shows a circuit example of parts of a possible implementation of the invention. Fig. 2 Circuit examples implemented in analogue technology for the first and second function blocks 3, 8 according to Fig. 1 shown.
[0066] The first operational amplifier 6 and the second operational amplifier 7 are implemented as a discrete integrated circuit in an electronic component. The measured variable is fed to the first operational amplifier 6 and the second operational amplifier 7. The measured variable is generated by the measuring resistor R MESS 2, which is Fig. 2 realized by the discrete resistors R196, R196A, and R196B. The measured variable is then smoothed using an RC element as a low-pass filter, which is constructed using the resistor R194 and the capacitor C187. The filtered measured variable is then applied to the non-inverting input of the first operational amplifier 6 and the second operational amplifier 7, respectively.
[0067] The first gain of the first operational amplifier and the second gain of the second operational amplifier are set differently. This is done via resistors R192 and R193, as well as R190 and R191.
[0068] By means of a voltage divider comprising the resistor R195 and the resistors R194, R196, R196A, R196B, the non-inverting inputs of the first operational amplifier 6 and the second operational amplifier 7 are set to a suitable potential in order to compensate for a deviation of an input-side offset voltage of the first and second operational amplifiers 6, 7.
[0069] A noise component of the first amplified measured variable at the output of the first operational amplifier 6 is reduced or suppressed by capacitor C185, which is connected between the output of the first operational amplifier and ground. Similarly, a noise component of the second amplified measured variable at the output of the second operational amplifier 7 is reduced or suppressed by capacitor C184, which is connected between the output of the second operational amplifier and ground.
[0070] The circuit design according to Fig. 2 represents only one possible of a multitude of conceivable implementation possibilities of the first and second functional blocks 3, 8 of the circuit arrangement 1 according to the invention.
[0071] Fig. 3 shows a possible design of the current measuring ranges and a design of the weighting function for a possible implementation of the circuit arrangement 1 according to the invention.
[0072] In the upper part of Figure 3, a load current I LED (actual current value) is plotted on the abscissa. The lower part of Figure 3 also shows the load current I LED on the abscissa, corresponding to the upper part of Figure 3.
[0073] The upper part of Figure 3 plots an output voltage of the first and second operational amplifiers 6, 7 on the ordinate. The upper part of Figure 3 shows, in a first curve, the profile 30 of the output voltage U OUT1 of the first operational amplifier 6 as a function of the load current I LED as the current to be measured or determined on the basis of the signal generated according to the invention. The output voltage of the first operational amplifier 6 increases linearly from a current value I LED = 0 with a constant first amplification factor until a saturation voltage is reached, in the case shown at U OUT1 = 3.3 V. The second curve 31 in the upper part of Figure 3 shows the profile of the output voltage U OUT2 of the second operational amplifier 7 as a function of the load current I LED as the current to be measured.The output voltage U OUT2 of the second operational amplifier 7 increases linearly with a constant second gain factor starting from a current to be measured I LED = 0 until the saturation voltage is reached at U OUT2 = 3.3 V. This applies to the flatter second curve 31 only for a significantly higher value of the load current I LED than for the first curve 30.
[0074] A comparison of the first curve 30 with the second curve 31 in the upper part of Figure 3 shows that the first gain factor of the first operational amplifier 6 is greater than the second gain factor of the second operational amplifier 7. While the output signal of the first operational amplifier 6 is significantly more sensitive to small changes in the current to be measured and thus in the measured variable, the output signal of the second operational amplifier 7 can follow significantly larger values of the current to be measured or the measured variable without saturating.
[0075] The lower part of Figure 3 now shows the course of a weighting function for the combination of the first amplified measured variable and the second amplified measured variable. The weighting function of the lower part of Figure 3 comprises a first weighting function for weighting the first amplified measured variable and a second weighting function for weighting the second amplified measured variable. The weighting function can be based on the Fig. 1 The example shown with a first weighting factor WFH and a second weighting factor WFL can take values between 0 and 1024.
[0076] The first weighting function 33 runs horizontally in a first range with a constant weighting factor of 1024. The second weighting function 35 runs constant in this first range with a value of 0. The first range thus defines a lower measuring range for measuring the load current I LED , in which only the first amplified measured variable is used. Thus, for small values of the current to be determined, only the first current measuring path 4 with the higher first amplification factor is relevant, which has a higher measurement sensitivity for small current changes.
[0077] In a second range, which immediately follows the first range for currents I LED greater than a first threshold value 35, the first weighting function 33 decreases linearly for increasing currents. At the same time, the second weighting function 34 increases constantly in this second range, starting from a value of 0 up to 1024. The second range in the lower part of Figure 3 thus determines a transition range (transition measuring range) for measuring the load current I LED, in which the first amplified measured variable is used with a decreasing proportion, while the second amplified measured variable is used with an increasing proportion to determine the combined signal. This transition range ends for a value of the load current I LED at which the first weighting function 33 has decreased to a first weighting factor of 0 and the second weighting function 34 has increased to a weighting factor of 1024 in the case shown.
[0078] For currents above a second threshold value 36, the first weighting function runs horizontally in a third range (upper measuring range) with a constant weighting factor of 0. The second weighting function runs horizontally in this first range with a value of 1024. The third range thus defines an upper measuring range for measuring the load current I LED , in which only the second amplified measured variable is used. Thus, for large values of the current to be measured, only the second current measuring path 5 with the lower second amplification factor is relevant, which saturates less quickly for large current values.
[0079] The lower threshold value 35 between the lower measuring range and the transition range, and the upper threshold value 35 between the transition range and the upper measuring range both lie in a range of the measured variable in which neither the first operational amplifier 6 nor the second operational amplifier 7 goes into saturation.
[0080] Based on Fig. 3 A piecewise linear weighting function is used for the weighted combination of the first amplified measured variable and the second amplified measured variable, which has three ranges separated by a first threshold value 35 and a second threshold value 36 for the magnitude of a current, here the load current I LED . The invention is also applicable to a first threshold value 35 and a second threshold value 36, which are described as dimming values for a light to be emitted.
[0081] Likewise, an implementation of the invention can dispense with a transition region between an upper measurement range and an upper measurement range. In this case, the first threshold value and the second threshold value are equal.
[0082] Alternatively, weighting functions defined in sections with more than three sections can also be used within the scope of the invention.
[0083] Furthermore, the weighting function is not limited to piecewise linear weighting functions, as in Fig. 3 used for simple representation, limited.
[0084] In Fig. 4 a simple flow diagram of an embodiment of the method according to the invention is shown.
[0085] In a step S1, a measured value representative of an electrical current is recorded.
[0086] In a step S2, this detected measured variable is fed to a first current measuring path 4 and amplified in the first current measuring path 4 in a first amplifier circuit, for example a first discrete operational amplifier 6 with a first amplification factor.
[0087] In a step S3, the detected measured variable is fed to a second current measuring path 5 and amplified in the second current measuring path 5 in a second amplifier circuit, for example a second, discrete operational amplifier 7 with a second amplification factor.
[0088] The first gain factor is greater than the second gain factor.
[0089] Steps S2 and S3 can be executed simultaneously and in parallel. Sequential execution of steps S2 and S3 is also possible.
[0090] The measured variable amplified with the first gain factor in step S2 and the measured variable amplified with a second gain factor are then combined with each other in a weighted manner in a step S4 by means of a weighting function in order to generate a combined signal.
[0091] In Figure 4 Not shown is a step for reading in a setpoint for the electrical current to be determined. Alternatively or additionally, a dimming value can be read in, for example, via an interface, such as a DALI interface 37, to a control unit for a lighting system.
[0092] In step S5, the setpoint value of the current to be measured is compared with a first threshold value 35 for the current. If the setpoint value of the current to be measured is less than the first threshold value 35, the method continues with step S6.
[0093] In step S6, the output signal of the first signal path 4, i.e. the measured variable amplified with the larger first gain factor, is selected and set as the combined signal for the current value to be measured.
[0094] However, if in step S5, when comparing the setpoint value of the current to be measured with the first threshold value 35 for the current, it is determined that the setpoint value of the current to be measured is greater than or equal to the first threshold value 35, the method continues with step S7.
[0095] In step S7, the setpoint value of the current to be measured is compared with a second threshold value 36 for the current. If the setpoint value of the current to be measured is greater than the second threshold value 36, the method continues with step S8.
[0096] In step S8, the output signal of the second signal path, i.e. the measured variable amplified with the smaller second gain factor, is selected and set as the combined signal for the current value to be measured.
[0097] However, if in step S7, when comparing the setpoint value of the current to be measured with a second threshold value 36 for the current, it is determined that the setpoint value of the current to be measured is less than or equal to the second threshold value 35, the method continues with step S9.
[0098] In step S9, the weighted combination of the measured variable amplified with the first gain factor and the measured variable amplified with the second gain factor is then selected as the weighted representative signal and set as the combined signal for the current value to be measured.
[0099] In a step S10 following steps S6, S8 or S9, the combined signal is then output for further processing. The modified weighted representative signal can, for example, be used as a controlled variable in a control loop for regulating an electric current to a setpoint for the electric current. In particular, the electric current I LED can be controlled via a light-emitting diode and thus the intensity of the light emitted by the light-emitting diode. It is therefore not necessary to first determine the actual current value from the combined signal. However, outputting the actual current value may be advantageous for further processing. This determination can be made, for example, using a lookup table that assigns a current value to each value of the combined signal.
[0100] In Fig. 5An embodiment of the circuit arrangement 1 according to the invention is used in a two-channel illumination arrangement for generating adjustable white light.
[0101] The two-channel lighting arrangement comprises at least one first light-emitting diode 38 in a first channel 43, configured, for example, to emit white light with a cool white color temperature. The color temperature of the emitted cool white light can, for example, be in a range above 3300 K, in particular above 5300 K.
[0102] The two-channel lighting arrangement further comprises at least one second light-emitting diode 39 in a second channel 44, configured, for example, to emit white light with a warm white color temperature. The color temperature of the emitted warm white light can, for example, be in a range below 3300 K.
[0103] By controlling the ratio of the luminous intensity of the light emitted by the first light-emitting diode 38 and the second light-emitting diode 39, a color temperature of the light emitted by the entire luminaire arrangement comprising the first light-emitting diode 38 and the second light-emitting diode 39 can be adjusted.
[0104] Furthermore, by adjusting the intensity of the light emitted by the first LED 38 and the second LED 39, the total light intensity of the lighting arrangement can be Fig. 5 adjustable.
[0105] The intensity of the emitted light of the first light-emitting diode 38 is adjusted via the first electrical current delivered to the first light-emitting diode 38 by a first converter circuit 40.
[0106] The intensity of the emitted light of the second light-emitting diode 39 is adjusted via the second electrical current supplied to the second light-emitting diode by a second converter circuit 41.
[0107] The first current is generated by the first converter circuit 40 under the control of a first current control circuit 42. For this purpose, a setpoint value for the first current and a representative value for the actual first current determined according to the invention, i.e., a combined signal generated according to the invention, are supplied to the first current control circuit 42. Based on the setpoint value for the first current and the combined signal for the first current determined according to the invention, the first current control circuit 42 generates a control signal for the first converter circuit 40 in order to regulate the load current via the first LED 39 as a reference variable for the first LED 39 in accordance with the setpoint value for the first current.
[0108] Corresponding to the first channel 43, a second current is generated for the second channel 44 by the second converter circuit 41, controlled by a second current control circuit 45. For this purpose, a setpoint value for the second current and a representative value for the actual second current, determined according to the invention, i.e., likewise a corresponding combined signal, are fed to the second current control circuit 45. Based on the setpoint value for the second current and the combined signal for the second current determined according to the invention, the second current control circuit 45 generates a control signal for the second converter circuit 41 in order to regulate the load current as a reference variable for the second LED 39 in accordance with the setpoint value for the second current.
[0109] The lighting arrangement according to Fig. 5receives an external signal 46 via an interface 37 with information as a specification for a color temperature of the light to be emitted and a luminous intensity of the light to be emitted, for example via a user input, a light control switch or a bus system for light control according to a standard such as DALI ™< .
[0110] The specified luminous intensity may, for example, comprise a form of a dimming value in a range from less than 1% to 100%.
[0111] The specified light color can, for example, include a color temperature specification for the light to be emitted in a range of 1500 to 6500 K.
[0112] The interface 37 converts the received external signal 46 into first control information for the first channel 43 and second control information for the second channel 44. The first control information and the second control information are then transmitted from the interface to a dimming and color temperature controller 47. The dimming and color temperature controller 47 generates the setpoint for the first current from the first control information and the setpoint for the second current from the second control information. The setpoint for the first current is transmitted to the first current control circuit 42. The setpoint for the second current is transmitted to the second current control circuit 45.
[0113] Out of Fig. 5It can further be seen that the elements first converter circuit 40, second converter circuit 41, first current measuring resistor 48, second current measuring resistor 49, first light-emitting diode 38, second light-emitting diode 39 as well as first amplifier circuit 50 and second amplifier circuit 51 are advantageously to be implemented in the form of hardware modules for the first channel 43 and for the second channel 44.
[0114] The functions of the interface 37, dimming and color temperature control 47, and sections of the first current measurement path 4, 4.1, 4.2 and the second current measurement path 5, 5.1, 5.2 are to be implemented in hardware, or alternatively partially or completely as software 52. This can also include the weighted combination 53, 54 of the outputs of the first current measurement path 4, 4.1, 4.2 and the second current measurement path 5, 5.1, 5.2 for the first channel 43 and the second channel 44, respectively. The software 52 can run on one or more integrated circuits, in particular on one or more microprocessors.
[0115] The use of the circuit arrangement 1 according to the invention for current measurement in a two-channel lighting arrangement for emitting dimmable white light with adjustable color temperature is a particularly advantageous application. The invention can also be used with equal advantage in any dimmable luminaire with adjustable color temperature. In principle, the invention can be used in other arrangements requiring precise current measurement over a wide dynamic range, within the scope of the appended claims.
[0116] The invention is applied in the context of an operating device for lamps, which is described below with reference to the Figures 6 to 21 is explained.
[0117] Fig. 6shows an operating device 53, in particular for lamps, with its essential functional blocks. The lamps can, for example, comprise one or more light-emitting diodes (LEDs) 38, 39 in series and / or serial connection. Shown in Fig. 6 are two LEDs 38, 39, which are supplied with a current (load current) by the first converter circuit 40 and the second converter circuit 41, respectively.
[0118] In Fig. 6The detection of the load current by means of a first current measuring resistor 48 and a second current measuring resistor 49 is not shown in the drawing. The control of the load currents through the first LED 38 and the second LED 39 takes place in a control circuit 54, which can advantageously be designed as a microcontroller. The control circuit 54 is itself controlled by a second control circuit 57 and receives, via this circuit, in particular, control signals that control the first LED 38 and the second LED 39 according to external specifications, for example, a dimming value specification or a switching state, for example, "light on," "light off," or a desired color temperature of the light to be emitted by the first LED 38 and the second LED 39.The second control circuit 57 can read in corresponding external specifications via a dimmer, a switch 58, or alternatively or additionally via an interface 59, for example via a DALI ™< interface.
[0119] The operating device 53 according to Fig. 6 It also has an interface to a mains power supply, via which a mains input signal, for example, an AC power supply, is fed to a circuit with a mains input filter (EMI filter) and rectifier 60. The rectified and filtered signal is then further processed in a power factor correction element 61. The power factor correction element 61 (abbreviated to PFC) increases the power factor, for example, to a legally prescribed range, and can be implemented as a boost converter. For this purpose, a switch of the boost converter is controlled in a clocked manner by a control circuit, for example, a PFC control circuit 62.
[0120] The power factor correction element 61 provides a DC voltage to the first converter circuit 40 and the second converter circuit 41. The DC voltage at the output of the power factor correction element 61 is also supplied to an input of a low-voltage 12V power supply 64.
[0121] The Fig. 6 The illustration of the operating device 53 shown represents only one of many possible structures and divisions into functional blocks. The inventive determination of an actual current value is arranged in the functional blocks of the first converter circuit 40, the second converter circuit 41, the first LED 38, the second LED 39, and the control circuit 54.
[0122] For the voltage supply of the PFC control circuit 62, the control circuit 54 and the further control circuit 57, in the embodiment according to Fig. 6a low voltage power supply 3V 63 and the low voltage power supply 12V 64 are shown.
[0123] In Fig. 7 A step-down converter circuit for operating light-emitting diodes 38, 39 is shown, such as can be used, for example, in the first and second converter circuits 40, 41. It should be noted that other circuit structures for switched-mode power supplies, such as boost converters, buck converters, etc., can also be used. The step-down converter circuit is supplied with a DC voltage UV from a DC voltage source 65. The DC voltage source 65 is modeled in Fig. 7 thus the output of the power factor correction element 61 to Fig. 6 after.
[0124] The step-down converter provides an output voltage and an output current for operating the LEDs 38, 39. The output voltage corresponds to a load voltage U LED across the LEDs 38, 39. The output current corresponds to a load current I LED for the LED module 3. The invention can also be implemented with other clocked converters.
[0125] A switch 66, usually as a transistor is periodically switched on and off by the control circuit 54 with a switch control signal 71. Typically, several hundred to several million switching cycles per second are possible. As a result, electrical energy is transferred from the voltage source 65 connected to the input side to the LED 38, 39 connected to the output of the down converter circuit as load The two reactive switching elements coil ( Inductance) L BUCK 67 and output capacitance (output capacitor) C BUCK 68 allow the supply of the LED 38, 39 with electrical energy during the time phases in which the switch 66 is open. Inductance The coil L BUCK 67 separates a high input voltage UV from the light-emitting diode 38, 39. The output current I LED can be adjusted by appropriately controlling a switch-on time t ON and a switch-off time t OFF of the switch 66. This adjustment is usually performed in a control loop to regulate the output voltage U LED and / or output current I LED to a desired value.
[0126] During a switch-on time t ON of the switch 66, the output current I LED flows through the coil L BUCK 67 and through the load; the diodeD BUCK 69 is blocked. During the off-time t OFF of switch 66, the energy stored in the inductance of coil L BUCK 67 is dissipated: the output current I LED continues to flow through the output of the converter circuit, but now through the diode D BUCK 69 and from the electrical energy stored in the capacitor C BUCK 68.
[0127] The inductor L BUCK 67 and the capacitor C BUCK 68 form a second-order low-pass filter. The step-down conversion is effectively achieved by filtering out the DC component from the square wave voltage. The magnitude of this remaining DC component can be adjusted by the duty cycle of switch 66, specified by the switch control signal 71 of the control circuit 54.
[0128] In one continuous operation type of buck converter ( EnglishContinuous Current Mode (CCM) the current through the coil L BUCK 67 never falls to zero during the entire switching period, because the switch 66 is closed again before the magnetic energy stored in the coil L BUCK 67 has been completely dissipated. In contrast, in a intermittent operation ( English In discontinuous current mode (DCM for short), the current through coil L BUCK 67 regularly drops to zero during each switching period. The switching period now includes a third phase: In addition to the phases of energy storage with switch 66 closed on the one hand and energy release with switch 66 open on the other hand, which also occur in continuous operation, there is a third phase without current flow through coil L BUCK 67, in which the LED 38, 39 is powered exclusively from capacitor C BUCK 68.
[0129] Whether continuous or intermittent operation exists depends on Inductance , Switching frequency , input voltage, output voltage U LED , and the flowing output current I LED . Since these parameters can sometimes change rapidly, the transition between the two operating modes must generally be considered or avoided when designing the circuit, especially a control loop. The two operating modes differ with regard to a control characteristic, i.e., the dependence of the output voltage U LED on a duty cycle of the switch control in the switch control signal 71.
[0130] The output current I LED is controlled as a controlled variable in a control loop. The value of the output current I LED is measured by a measuring device. In particular, a value representative of the current I LED can be measured via a measuring resistor R MESS 70 (shunt resistor) arranged in series with the LEDs 38, 39. This representative value is used by a controller to generate the switch control signal 71 for the switch 66.
[0131] In continuous operating mode (non-intermittent operation) and in limiting operation, dimming of the LED 38, 39 or a change in the output power of the buck converter circuit can occur by changing the threshold value of the current I LED via the coil I Buck 67, at which the switch 66 is turned off. However, lowering the turn-off threshold for very low dimming levels or low output currents in limiting operation is often not arbitrarily possible, since small threshold values can lead to problems with detecting and processing the low current value. For low load currents I LED, a large coil L BUCK 67 is also required for the continuous operating mode, which makes the buck converter circuit expensive and increases the space required for the buck converter circuit.
[0132] In discontinuous operation, dimming of the LED 38, 39 or setting of a desired output power of the buck converter circuit is therefore at least also achieved by reducing or increasing a dead time t tot . The dead time t tot is the period from the time at which the current IL via the coil I Buck 67 has dropped to zero until the switch 66 is switched on again. A disadvantage of discontinuous operation is that after the switch 66 is switched off, when the current I LED drops to zero, oscillations (damped oscillation) of the voltage across the switch occur. These oscillations arise from an oscillating circuit formed by the coil inductance L BUCK 67 and the parasitic capacitances of the coil 67, the diode 69 and the transistor used as switch 66.
[0133] In order to avoid switching losses of switch 66, such oscillations should be taken into account when selecting the restart time or the restart time should be selected such that an electrical voltage across switch 66 is at a minimum at the restart time. This means, however, that switch 66 should not be switched on again at an arbitrary time, but only at discrete time intervals, in particular when the voltage oscillation across switch 66 is at a minimum. If, however, switch 66 is not switched on again at the time corresponding to the power to be delivered, but rather, for example, delayed at the next voltage minimum, an actual value of the power delivered by the step-down converter circuit deviates from the specified output power (target value).
[0134] Fig. 8 shows typical signal waveforms of the buck converter circuit Fig. 7over time t. A switch period t period includes the on-time t ON , the off-time t OFF and the dead time t DEAD. During the on-time t ON , the switch 66 is conductive ("1") and the diode D BUCK 69 is blocked ("0"). During the off-time t OFF , the switch 66 is blocked ("0") and the diode D BUCK 69 is conductive ("1"). In the lower part of the figure Fig. 8 The load current I LED is plotted against time. During the dead time t TOT, the load current exhibits the oscillations mentioned above.
[0135] The average current I average delivered to the LED 38, 39 is I mittel = I ^ peak / 2 * t EIN + t AUS / t EIN + t AUS + t TOT with the peak value Îpeak of the current I LED , the switch-on time t ON , the switch-off time t OFF and the dead time t TOT . During the switch-on time t ON a current I LED , ON with I LED ,EIN = U V + U LED / L BUCK ; with the input supply voltage UV of the step-down converter circuit, the output voltage U LED , which is supplied to the LED 38, 39, and the value of the inductance L BUCK 67. During the turn-off time t OFF, a current I LED , OFF flows with I LED ,AUS = − U LED / L BUCK ; with the output voltage U LED , which is delivered to the light-emitting diode 38, 39 and the value of the inductance L BUCK 67. During the dead time t TOT a current IL oscillates through the inductance L BUCK 67 with an oscillation frequency f OSZ of f osz = 1 2 π L BUCK C FET + C SNUBBER with the value of the inductance L BUCK 67, a parasitic capacitance C FET of the switch 66 (FET) and a parasitic capacitance C SNUBBER of a snubber diode.
[0136] Fig. 9 shows an embodiment of a step-down converter circuit for the operation of light-emitting diodes 38, 39 with means for detecting signals for controlling the step-down converter circuit. The step-down converter circuit in Fig. 9comprises a field-effect transistor Q1 as switch 66. The diode D1 of the illustrated embodiment could also be implemented using a further switch. Backup capacitors C1 and C2 are arranged in parallel with a supply voltage input Vbus and the load voltage output ULED. A coil L of the buck converter circuit has, in addition to a primary winding L11, an additional secondary winding L12. The secondary winding L12 is connected to the base of a transistor T2 via a resistor R10. A supply voltage Vdd is applied to a collector of the transistor T2 via a resistor R11. The emitter of the transistor T2 is connected to ground (device ground) and additionally fed back to the base via a diode D4. A voltage induced in the secondary winding L12 enables an unfiltered signal to be detected at a pin Zcd for determining zero crossings of the current IBUCK through the primary winding L11 of the coil.This detected zero-crossing signal is fed to the control circuit 54. The zero-crossing signal is fed, for example, to an analog input of the control circuit 54 and converted into a digital signal, for example, with a resolution of 12 bits, in the control circuit 54 in an A / D converter connected downstream of the analog input. Corresponding processing using A / D conversion is also possible for the input signals of the control circuit 54 mentioned below.
[0137] At a pin ADC_Vbus, a signal representing the supply voltage UV at Vbus is detected by means of a voltage divider with resistors R1 and R2 and fed to an input of the control circuit 54. At a pin ADC_Vled, a signal representing the load voltage U LED is detected via a voltage divider with resistors R5 and R6 and fed to another input of the control circuit 54. Using the signal detected at a pin Comp_LED, a peak current I peak is detected via the coil L. In the case shown, this is achieved by comparison in a comparator circuit K 1 with a reference signal. The reference signal can, for example, be generated by the control circuit 54 and output to the pin DAC via a D / A converter of the control circuit 54.The DAC pin is connected via a low-pass filter to the inverting input of an operational amplifier of the comparator K1, whose non-inverting input is connected to the Comp_LED pin.
[0138] At a pin ZCD_filterd of the buck converter circuit, a signal is detected by means of diodes D2 and D3, which corresponds to a first zero crossing of the coil current I BUCK and thus also of the load current I LED . The first zero crossing is the first zero crossing of the coil current I BUCK after switching the field-effect transistor Q1 (switch 66) from the conducting state (switch closed) to the non-conducting state (switch open). In the embodiment shown, this is Fig. 9 by outputting the signal to the pin ZCD_filtered_out by the control circuit 54, so that further minima of the coil current I BUCK after a first minimum do not lead to further switching operations in a filtered signal applied to the pin ZCD_filterd.
[0139] In the Fig. 9 The exemplary embodiment shown further includes a detection circuit 73 for detecting an average load current I LED . This detection circuit 73 enables the detection of a signal representing the average load current I LED for a range of higher load currents at a pin ADC_Iled_hc and a range of lower load currents at a pin ADC_Iled. In an example not encompassed by the invention defined in the claims, this detection circuit is not required for controlling the step-down converter circuit according to the control method presented below. The method presented therefore enables particularly cost-effective control of the step-down converter circuit, since the outlay in terms of the number of components, the space required for this purpose, and the associated unit costs can be reduced by omitting the detection circuit 73.
[0140] This is made possible by appropriate use of the counter components present in the control circuit 54 and a corresponding control method. A typical microcontroller for use as the control circuit 54 is, for example, the integrated circuit STM32F071RB.
[0141] Based on four Fig. 10 In the typical measured signal waveforms of the down converter circuit shown, individual counters of an advantageous implementation of the method over one period of the clocked down converter circuit are presented.
[0142] The second signal waveform is a measured waveform of the current I L_BUCK through coil 67 of the buck converter circuit. At a time 74, the current I L_BUCK through coil 67 has decayed to zero, and the signal t tot _trigger input at an input of the control circuit 54 shows a rising edge, corresponding to the first curve, for a transition from logic zero to logic one. Upon a rising edge of the signal t tot _trigger input, the control circuit 54 starts a first counter t tot- counter . The third signal goes to a level corresponding to logic one while the first counter t tot- counter is counting.
[0143] While the third signal in Fig. 10 shows the value logical one, at each falling edge 76 of the minimum detection signal, the fourth signal shown in Fig. 10The respective counter reading of the first counter t tot- counter is written to a memory. When the first counter t tot- counter reaches a final value corresponding to the dead time t tot, the signal t tot output from the control circuit 54 returns to logic zero.
[0144] In Fig. 11 An overview of different control modes for different dimming levels of a buck converter circuit is presented. The different dimming levels are plotted on the abscissa on a logarithmic scale. The dead time t tot is plotted along the ordinate.
[0145] The minima of the current IL, BUCK can only be measured for larger current values of the current IL, BUCK. Therefore, for higher dimming levels, the load current I LED is controlled using a valley switch mode, in which the load current I LED is controlled by determining suitable minima of the oscillating load current I LED for re-switching, in order to close the switch 66 at a correspondingly selected minimum and restart the switch-on time t ON in the switch period. This range is shown as the third range in Fig. 11 for high dimming levels with nominal values between 10 and 100.
[0146] For low dimming levels and correspondingly low values of the average load current I LED , the minima of the current IL, BUCK cannot be measured due to the decaying oscillations. In this first, in Fig. 11In the area located on the left, the closing of switch 66 occurs directly at the calculated value of the dead time t tot to start the switch-on time t ON of the new switching period. This first area for low dimming levels is in Fig. 11 for nominal values of the dimming level between 0.1 and 1.
[0147] Between the first and third ranges, the second range is a transition region in which the dead time t tot increases to control the desired dimming level for lower dimming levels until the dead time t tot reaches ranges in which no minimum values of the current IL, BUCK are measurable. This third range is shown for dimming levels from 1 to 10.
[0148] A regulation of the load current I LED by corresponding regulation of the peak current I peak by the control circuit 54 can be achieved via all Fig. 11 shown ranges for all dimming levels shown.
[0149] In Fig. 12An overview of functional blocks for controlling the buck converter circuit in a control method for execution in the control circuit 54 is shown. Reference is made to the Fig. 9 The starting point is the setting of a new dimming level, which is set by controlling switch 66 via a new switching time by switching at the minimum of the coil current I L_BUCK. A regulation of the average current I average can be omitted in the Fig. 12 The methods shown can advantageously be dispensed with.
[0150] The modules presented below are to be implemented, in whole or in part, in software for execution on a microprocessor, the control circuit 54. However, a discrete implementation using suitable electronic circuits is also possible.
[0151] In a first module 77, a nominal dead time t tot_nom is first determined. To do this, the first module 77 reads in a nominal current value I nom of the load current I LED , a value for the load voltage U LED , and a value for the supply voltage UV. From these read values, the corresponding values for the nominal dead time t tot_nom , for the nominal peak current I peak_nom , and a calculation variable B are calculated. The calculation of these variables takes place in the first module 77 outside the actual control loop. The calculation variable B and its determination are explained below.
[0152] In the following, individual subtasks of the first module 77 are briefly presented.
[0153] First, the first module 77 determines the nominal switch-on time t ON_nom and t OFF _nom for the switch 66 from the relationship: I peak = t EIN ⋅ U V − U LED L BUCK = t EIN ⋅ U LED L BUCK ; t EIN_nom = I peak ⋅ L BUCK U V − U LED ; t AUS_nom = I peak ⋅ L BUCK U LED ;
[0154] The nominal dead time t tot_nom is then determined: I mittel = I peak ⋅ t EIN + t AUS 2 ⋅ t periode ; ⇒ t periode = I peak ⋅ t EIN + t AUS 2 ⋅ I mittel ; ⇒ t tot_nom = I peak ⋅ t EIN + t AUS 2 ⋅ I mittel − t EIN − t AUS ;
[0155] From (10) with (6) and (7) and taking into account I nom = I mittel the nominal dead time t tot_nom is to be calculated ⇒ t tot_nom = I peak 2 I nom − 1 ⋅ t EIN + t AUS = I peak 2 I nom − 1 ⋅ I peak ⋅ L BUCK ⋅ U V U LED ⋅ U V − U LED ; to be determined. The nominal dead time t tot_nom thus determined is then transferred to the selection section 80. Based on the determined nominal dead time t tot_nom, the selection section 80 selects the temporally closest minimum of the current I L_BUCK in order to suitably control the switch 66 with a corresponding switch control signal 71, in particular to switch it on.
[0156] In a second module 78, a sub-module 79 determines an array of counter readings for minimum values for the coil current I L_BUCK according to the reference to Fig. 10 The array of counter readings is stored, for example, in a memory structure according to Fig. 15, a ring buffer 100. An update rate of the ring buffer 100, or for an array of counter readings for minima of the coil current I L_BUCK stored in the ring buffer 100, is at least greater than a control rate for controlling the switch 66 in the switch control signal 71.
[0157] The selection section 80 (second module 80) selects from the stored array of counter readings the one with the shortest time difference to the determined nominal dead time t tot_nom . It is self-explanatory that times and counter readings can be compared and converted into one another, since a counter increment corresponds to a minimum time interval.
[0158] If the determined nominal dead time t tot_nom is greater than the largest counter reading, the determined nominal value for the dead time t tot_nom is used instead of the stored counter reading closest to the nominal dead time t tot_nom. The control process is continued instead with the determined nominal value for the dead time t tot_nom. The control of the emitted light output, or the average load current I LED_mittel, now takes place in the first, left switching range after Fig. 11 , the fixed t tot switching range. Therefore, no selection of a temporally closest minimum of the current I L_BUCK via coil 67 is performed for re-switching.
[0159] In the Fig. 11Within the minimum switching range shown on the right, the selection section 80 outputs the selected dead time t tot_nom, corresponding to the closest counter reading, as the new dead time t tot_neu. Based on the new dead time t tot_neu, the control circuit 54 determines the switch-on time of the switch 66 of the step-down converter circuit for the new dimming level.
[0160] In a second switching range (transition range) located between the first switching range (t dead time switching range) and the third switching range (minima switching range), control can be carried out with increasing consideration of the dead time t dead time_new. Different weighting methods are possible and can be selected according to the desired control behavior.
[0161] The selection section 80 further outputs the dead time t tot selected for the read-in dead time t tot_nom , which is closest in time, to a compensation module 82 for compensating the peak current I peak.
[0162] The selection section 80 selects the temporally nearest minimum of the current I L_BUCK based on the determined nominal dead time t tot_nom .
[0163] Additionally, a filter 81, in particular designed as a low-pass filter, for compensating an RC element for the peak current I peak can be arranged between the selection section 80 and the compensation module 82. The RC element is arranged after a digital-to-analog converter (D / A converter) for converting the digitally determined peak value I peak, which is then converted into an analog current value. The RC element leads to a time delay. The filter 81 can be designed as a low-pass filter with a transfer function t tot n = 1 ∝ t tot n + t tot_nom 1 + ∝ ; Where α is a filter constant and t tot n is the determined dead time for a discrete time n. t tot_nom is the nominal dead time.
[0164] The compensation module 82 (third module 82) for compensating the peak current I peak reads a value for the average current I L_average , as well as the value for B determined in the selection section 80. The compensation module 82 determines a compensation value I peak_add for the peak value I peak_nom from the values for the selected dead time t tot , the average current I L_average , and B. The compensation value I peak_add for the peak value I peak_nom is designed to adjust the peak current I peak in order to keep the load current I LED constant at a minimum of the coil current I L_BUCK , even during control of the buck converter circuit, in particular its switch 66.
[0165] The following describes the determination of the compensation value I peak_add for the current I peak_nom in the third module 82. The compensation value I peak_add for the current I peak_nom serves, in particular, to compensate for an error due to the discrete temporal minima of the current I L_BUCK in order to keep the load current I LED delivered to the lighting device 38, 39 as smooth as possible and with only minor deviations from a predetermined target value, despite a discretely changing switching time for turning on the switch 66.
[0166] An algorithm suitable for the compensation module 82 can be created using the following relationships and run accordingly, where (13) has a same average current I average for different periods t period of a switching cycle of the buck converter circuit: I mittel = I peak1 ⋅ t EIN1 + t AUS1 2 ⋅ t periode1 = I peak2 ⋅ t EIN2 + t AUS2 2 ⋅ t periode2 ;
[0167] In (13), the index "1" denotes a first period with the period duration t period1 and the index "2" denotes a second period with the period duration t period2 of the buck converter circuit.
[0168] A general time t ON_OFF comprising the switch-on time t ON of the switch 66 and the switch-off time t OFF of the switch 66 until the current I L_BUCK decays to zero for the first time results from formulas (6) and (7) as ⇒ t EIN_AUS = t EIN + t AUS = I peak ⋅ L BUCK U V − U LED + I peak ⋅ L BUCK U LED = I peak ⋅ L BUCK ⋅ U V U V − U LED ⋅ U LED ;
[0169] If formula (14) is used in formula (8) for the general average current I through the buck converter circuit, one obtains ⇒ I mittel = I peak ⋅ t EIN_AUS 2 ⋅ t periode ; ⇒ I mittel = I peak 2 ⋅ t periode I peak ⋅ L BUCK U V − U LED + I peak ⋅ L BUCK U LED ; ⇒ I mittel = I peak 2 ⋅ t periode I peak ⋅ L BUCK ⋅ U V U LED ⋅ U V − U LED ;
[0170] Taking into account formula (14), one obtains from (17): ⇒ I mittel = I peak 2 ⋅ L BUCK ⋅ U V 2 ⋅ t per ⋅ U LED ⋅ U V − U LED = I peak 2 ⋅ L BUCK ⋅ U V 2 ⋅ U LED ⋅ U V − U LED ⋅ 1 I peak ⋅ L BUCK ⋅ U V U V − U LED ⋅ U LED + t tot ;
[0171] If equation (18) is transformed in several steps ⇒ 1 I mittel = 2 ⋅ t periode ⋅ U LED ⋅ U V − U LED I peak 2 ⋅ L BUCK ⋅ U V = 2 ⋅ U LED ⋅ U V − U LED I peak 2 ⋅ L BUCK ⋅ ⋅ I peak ⋅ L BUCK ⋅ U V U V − U LED ⋅ U LED + t tot ⇒ I peak 2 ⋅ L BUCK ⋅ U V I mittel ⋅ 2 ⋅ U LED ⋅ U V − U LED = I peak ⋅ L BUCK ⋅ U V U V − U LED ⋅ U LED + t tot ;
[0172] This gives a quadratic equation for the peak current I peak ⇒ I peak 2 ⋅ L BUCK ⋅ U V 2 ⋅ I mittel ⋅ U LED ⋅ U V − U LED − I peak ⋅ L BUCK ⋅ U V U V − U LED ⋅ U LED − t tot = 0 ;
[0173] Equation (21) can be written in the form A ⋅ I peak 2 + B ⋅ I peak + C = 0 ; with A = L BUCK ⋅ U V 2 ⋅ I mittel ⋅ U LED ⋅ U V − U LED ; B = − L BUCK ⋅ U V U V − U LED ⋅ U LED ; C = − t tot ; This introduces the calculation value B to be determined in the first module 77. The solution of the quadratic equation (22) is in general form ⇒ I peak = − B ± B 2 − 4 A C 2 A ;
[0174] This results in the definitions from (23) ⇒ I peak = L BUCK ⋅ U V U V − U LED ⋅ U LED ± L BUCK ⋅ U V U V − U LED ⋅ U LED 2 + 2 ⋅ L BUCK ⋅ U V ⋅ t tot I mittel ⋅ U LED ⋅ U V − U LED L BUCK ⋅ U V I mittel ⋅ U LED ⋅ U V − U LED ; ⇒ I peak I mittel = L BUCK ⋅ U V U V − U LED ⋅ U LED ± L BUCK ⋅ U V U V − V LED ⋅ U LED 2 + 2 ⋅ L BUCK ⋅ U V ⋅ t tot I mittel ⋅ U LED ⋅ U V − U LED L BUCK ⋅ U V U LED ⋅ U V − U LED ;
[0175] The sign is chosen here with "+": ⇒ I peak = B + B 2 − 2 ⋅ B ⋅ t tot I mittel B ⋅ I mittel ;
[0176] Now the parameter B can be determined as a function of t ON_OFF and the peak current I peak: t EIN_AUS = t EIN + t AUS = I peak ⋅ L BUCK U V − U LED + I peak ⋅ L BUCK U LED = I peak ⋅ L BUCK ⋅ U V U V − U LED ⋅ U LED ; B = − L BUCK ⋅ U V U V − U LED ⋅ U LED ⇒ B t EIN_AUS I peak = − t EIN_AUS I peak ;
[0177] This determines the calculation value B to be determined in the first module 77. The calculation of the peak current I peak according to equation (29) is optimized: ⇒ I peak = I mittel + I mittel 2 − 2 ⋅ I mittel ⋅ t tot B ⇒ I peak = I mittel + I mittel 1 − 2 ⋅ t tot B ⋅ I mittel ;
[0178] Because of (29), B depends only on the constant values L BUCK , UV and U LED and can therefore be determined immediately: B t EIN_AUS I peak = − t EIN_AUS I peak ;
[0179] A constant current I average for different periods 1 and 2 of the switch 66 means: I mittel = I peak 1 ⋅ t EIN 1 + t AUS 1 2 ⋅ t periode 1 = I peak 2 ⋅ t EIN 2 + t AUS 2 2 ⋅ t periode 2 ; ⇒ I peak1 = I mittel ⋅ 2 ⋅ t periode1 t EIN1 + t AUS1 ; ⇒ I peak2 = I mittel ⋅ 2 ⋅ t periode2 t EIN2 + t AUS2
[0180] Thus, the difference value of the peak currents I peak1 and I peak2 for the switching periods 1 and 2 is ⇒ I peak 2 − I peak 1 = I mittel ⋅ 2 ⋅ t periode 2 t EIN 2 + t AUS 2 − I mittel ⋅ 2 ⋅ t periode 1 t EIN 1 + t AUS 1 ; Using equation (29) we get ⇒ I peak2 − I peak1 = I mittel + I mittel 1 − 2 ⋅ t tot2 B ⋅ I mittel − I mittel + I mittel 1 − 2 ⋅ t tot1 B ⋅ I mittel ; ⇒ I peak2 − I peak1 = I mittel 1 − 2 ⋅ t tot2 B ⋅ I mittel − I mittel 1 − 2 ⋅ t tot1 B ⋅ I mittel
[0181] Now a compensation value I peak_add for the current I peak can be determined: I peak_add = konst . + I mittel 1 − 2 ⋅ t tot B ⋅ I mittel ;
[0182] The value of the average current I average can be dimmed to minimum values during control. To compensate for this, the constant const in (39) can be set to I average: I peak _ add = I mittel + I mittel 1 − 2 ⋅ t tot B ⋅ I mittel ;
[0183] This determined compensation value, I peak_add, is then passed to module 83 to determine the new peak value of the current, I peak_new. Module 83 reads the determined compensation value, I peak_add, and the value, I peak_nom, to determine the new peak value, I peak_new. The fourth module 83 then outputs the new peak value, I peak_new, for the current, I L_BUCK.
[0184] Based on the new dead time t tot_neu, the control circuit 54 determines the new peak value I peak_neu for the current I L_BUCK and thus the switch-on time of the switch 66 of the buck converter circuit for the new dimming level.
[0185] The timing of the process for controlling the down converter circuit by means of the Fig. 12 shown modules, in particular the first module 77, the second module 80, the third module 82 and the fourth module 83 is described with reference to Fig. 13 explained taking into account the timing. Fig. 13shows a signal sequence for controlling the step-down converter circuit when setting a changed dimming level when controlling an LED 38, 39.
[0186] The control is started by setting a new target value for the load current I LED . First, a new nominal value I nom is set based on the new target value for the load current I LED . The control circuit 54 now begins a calculation phase 87. In the calculation phase 87, the values for the control parameters are recalculated based on the new value for the nominal current I nom . This can preferably be done with the reference to Fig. 12After calculating the new values of the control parameters, the activation time 88 is simultaneously activated after the completion of the calculation phase 87. Starting at the activation time 88, the new values of the control parameters for controlling the load current I LED are set, and the step-down converter circuit is controlled accordingly by the control circuit 54 to the new target value of the load current I LED.
[0187] In particular, the control is carried out in such a way that the control circuit 54 starts the calculation phase 87 after setting the new nominal value I nom. In the calculation phase 87, a new target value for the peak current I peak_target is selected on the basis of the new nominal value I nom. The target value for the peak current I peak_target is a function of the nominal value I nom . Starting from the new target value I peak_target, a new value for the dead time t tot is then calculated. This takes place at a first time 85 in the calculation phase 87. Starting from the new dead time t tot, the next minimum of the current I L_BUCK is selected. The time of the next minimum of the current I L_BUCK, selected at a second time 86, is t tot_Minimum . The compensation value i peak_add for the peak current value I peak is then determined.
[0188] The new control parameters i nom , t tot_Minimum , and i peak_add determined by control circuit 54 are activated simultaneously in a block at the subsequent activation time 88 after completion of calculation phase 87. The buck converter circuit is then controlled using the new target values and the new control parameters. Control circuit 54 executes the control at a loop renewal rate at times 84. Calculation phase 87 is preferably selected such that the calculation phase is completed within one period of the loop renewal rate.
[0189] Fig. 14 shows a timing diagram for counters of the control circuit 54, which cause the determination of a minimum for determining a switch-on time of the switch 66 of the buck converter circuit. With reference to Fig. 14A suitable method for generating an array of counter values for minima of the current I L_BUCK is presented. A corresponding method is described in module 79 of the function blocks according to Fig. 12 implemented.
[0190] A counter_1 goes to a logical value 1 and maintains the value 1 at its output in a first time signal as long as switch 66 of the buck converter circuit is closed. The counter_1 is at the logical value 1 for the time period t ON. The time period t ON can vary and reaches a maximum value of t ON_max . The length of the time period t ON can depend in particular on a set peak value I peak of the current I L_BUCK. While switch 66 is closed, i.e. while counter 1 holds the logical value 1, a voltage U MESS falling across the measuring resistor R MESS 70 increases linearly. The voltage U MESS is proportional to the load current I LED . The load current I LED increases until it reaches the value of the peak current I peak.This peak current I peak is applied to one input of the comparator K1 via the output of a D / A converter and a subsequent RC element comprising the resistor R9 and the capacitor C3, while the measurement voltage U MEAS is fed to the other input of the comparator K1. This generates an output signal Comp_1_ off at the output of the comparator K1, which goes from 1 to 0 for a predetermined time when the peak current I peak is reached by I LED. The signal Comp_1_ is set to prevent zero crossings of the measurement signal U MEAS in the voltage U ZCD at the pin ZCD_filtered from occurring during the time t ON. For this purpose, the voltage U medium is reduced to 0 for the time t ON, starting with the falling edge of the comparator output signal Comp_1_ off, and is raised again to the value of the supply voltage U DD with the rising edge of the zero crossing signal U ZCD.
[0191] When counter 1 drops from 1 to the logical value 0, control circuit 54 opens switch 66. The current I LED is now driven by the energy stored in coil 67 (magnetic field energy) and decreases linearly. Accordingly, after switch 66 is opened, the voltage U MESS drops from a peak value U peak until the voltage U MESS passes through 0. The rising edge of the filtered zero-crossing signal U ZCD occurs as soon as the falling measurement voltage U MESS reaches the value zero.
[0192] When the filtered zero crossing signal U ZCD changes from 0 to 1, the second time signal is started by a second counter, i.e. the second time signal changes from 0 to 1. The second time signal generates the inverted signal for suppressing the zero crossings for the zero crossing signal U ZCD_filtered .
[0193] When the filtered zero crossing signal U ZCD_filtered changes from 0 to 1, a third counter is started with a third time signal, i.e. the third time signal changes from 0 to 1. The third time signal is used to generate the dead time t tot.
[0194] When the filtered zero-crossing signal U ZCD changes from 0 to 1, a fourth counter for a fourth time signal is started, i.e., the fourth time signal changes from 0 to 1. The fourth time signal is used in conjunction with the counter signal to generate an array of counter readings for minima of the measurement signal U MESS. The fourth time signal changes value for each zero crossing of the zero-crossing signal U ZCD, i.e., it switches from the logical value 0 to 1 when the zero-crossing signal U ZCD changes from a positive value to a negative value. When the zero-crossing signal U ZCD changes from a negative value to a positive value, the fourth time signal switches from the logical value 1 to 0.
[0195] The counter signal is started with a counter value of 0 on the rising edge of the fourth time signal and counts linearly until the counter signal is reset to 0. The counter signal is reset to 0, for example, by a falling edge of the third time signal.
[0196] At each rising edge of the fourth time signal, the current counter value is written into a memory 100. This is done by the Fig. 14 shown sequence of time signals by means of the storage processes 90.1, 90.2, 90.3, 90.4 and 90.5 generates an array of counter readings in the memory 100, which represent a temporal sequence of minima of the measuring voltage U MESS and thus a temporal sequence of minima of the current I L_BUCK.
[0197] Fig. 15shows a memory structure for use in determining the temporal position of a minimum for determining the switch-on time of the switch 66 of the buck converter circuit. The memory structure can be designed in the form of a ring buffer 100 (ring buffer memory). Fig. 15 The ring buffer 100 is designed with a memory size of 20 memory elements. The individual memory elements 103 can be accessed using a memory index with index values from 0 to 19. Fig. 15A pointer 101 is shown, which points to a memory element 103 with the memory index value 1. The value "308" is stored in the memory element 103 shown with the memory index value 102. The ring buffer 100 is advantageously used for storing counter values of the counter signal at times 90.1, 90.2, 90.3, 90.4, ... The memory elements 103 then contain counter values of the counter signal that correspond to the time of a minimum of the current I L_BUCK. A counter value can be written to the memory element 103 with a "DMAwrite" memory command. The value of the memory element 103 can be read with a "DMAread" memory command.
[0198] The module 79 can determine a starting value of the field of minima and an end value of the field of minima of the current I L_BUCK, for example, using the following procedure. The procedure is based on the Fig. 15 shown example. First, the current value of the DMA index is determined.
[0199] If the current index value of the ring buffer 100 is greater than 10, the ring buffer is accessed starting with the memory index 102 with the index value 0. The memory element 103 for the memory index 102 with the value 0 is read. The memory index 102 is incremented by 1 and the memory element 103 for the memory index with the value 1 is read. If the value of the memory element 103 for the memory index 101 with the value 1 is less than the value of the memory element 101 with the value 0, a memory element 101 with a decreasing value is found and the starting index of the counter reading field in the ring buffer 100 is determined to be 1.If the value of memory element 103 with memory index 101 with the value 1 is greater than or equal to the value of memory element 101 with the value 0, no memory element 101 with a decreasing value has been found yet, and the search continues with memory element 102 with a value of memory index 102 increased by 1 to 2 until a decreasing value of the memory element is found. This determines the starting index of the stored field of counter values in ring buffer 100.
[0200] The index of the final value of the counter reading field in the ring buffer 100 is then determined. The ring buffer 100 is accessed starting with the memory index 102 with the index value of the start value. The memory element 103 for the memory index 102 with the start value is read. The memory index 102 is incremented by 1, and the memory element 103 for the memory index for the value start value + 1 is read. If the value of the memory element 103 for the memory index 101 with the value start value + 1 is less than the value of the memory element 101 with the start value as the memory index, a memory element 101 with a decreasing value is found, and the final index of the minimum value field in the ring buffer 100 is determined to be start value + 1.If the value of memory element 103 for memory index 101 with the value 1 is greater than or equal to the value of memory element 101 with the start value as the memory index, no memory element 101 with a decreasing value has been found yet, and the search continues with memory element 102 with a value of memory index 102 increased by 1 to start value + 2. This process continues until a decreasing value of memory element 103 is found. This determines the end index of the counter reading array in ring buffer 100.
[0201] In the numerical example shown according to Fig. 15 Starting from a current memory index of the ring buffer 100 with the value 11, the start index of the field of counter readings is determined to be 2 and the end index of the field of counter readings is determined to be 5.
[0202] If the current index value of the ring buffer 100 is less than or equal to 10, the ring buffer is accessed starting with the memory index 102 with the current index value. The memory element 103 for the memory index 102 with the current index value is read. The memory index 102 is incremented by 1, and the memory element 103 for the memory index for the current index value + 1 is read. If the value of the memory element 103 for the memory index 101 with the current index value + 1 is less than the value of the memory element 101 with the current index value, a memory element 101 with a decreasing value is found, and the starting index of the counter reading field in the ring buffer 100 is determined with the current index value + 1.If the value of memory element 103 for memory index 101 with the current index value + 1 is greater than or equal to the value of memory element 101 with the current index value, no memory element 101 with a decreasing value has been found yet, and the search continues with memory element 102 with a value of memory index 102 increased by 1 to the current index value + 2, until a decreasing value of memory element 103 is found. This determines the starting index of the field of minima in ring buffer 100.
[0203] The index of the final value of the counter reading field for minimums in the ring buffer 100 is then determined. The ring buffer 100 is accessed starting with the memory index 102 with the determined index value of the start value. The memory element 103 for the memory index 102 with the start value is read. The memory index 102 is incremented by 1 to start value+1, and the memory element 103 for the memory index for the value start value+1 is read. If the value of the memory element 103 for the memory index 101 with the value start value+1 is less than the value of the memory element 101 with the start value as the memory index, a memory element 101 with a decreasing value is found, and the final index of the counter reading field in the ring buffer 100 is determined to be start value+1.If the value of memory element 103 for memory index 101 with the value 1 is greater than or equal to the value of memory element 101 with the start value as the memory index, no memory element 101 with a decreasing value has been found yet, and the search continues with memory element 102 with a value of memory index 102 increased by 1 to the start value + 2. This process continues until a decreasing value of the memory element is found. This determines the end index of the counter reading array in ring buffer 100.
[0204] In the numerical example shown according to Fig. 15 Starting from a current memory index of the ring buffer 100 with the value 5, the start index of the field of minima is determined to be 6 and the end index of the field of counter values is determined to be 9.
[0205] In order to suppress frequent switching between different minima of the load current I LED for rapidly successive points in time, the selection of the minimum of the load current I LED or the index value of a minimum is particularly advantageously implemented with a hysteresis.
[0206] The solution of a quadratic equation required in the third module 82 to compensate for the dead time t tot is advantageously accelerated by using approximation methods. In Fig. 16 the curve 104 is shown for a typical approximation method for the solution of a quadratic equation, which shows a low relative error curve 105 and thus good results in a number range between 0.5 and 2.
[0207] In Fig. 17 is an alternative to Fig. 16a flow chart of another approximation method is shown, which is known under the English name "Fast Integer Square Root".
[0208] In Fig. 18 Finally, a possible implementation of the fourth module 83 for determining the compensation value I peak_add is then passed to the module 83 for determining the new peak value of the current I peak_neu of the current I L_BUCK. The fourth module 83 reads the determined compensation value I peak_add and the value I peak_nom to determine the new peak value I peak_neu. The new peak value I peak:neu can be determined in a summing element 108 as the sum of the compensation value I peak_add and the nominal current I nom multiplied by a gain G in an amplifier 107.
[0209] The fourth module 83 then outputs the new peak value I peak_new for the current I L_BUCK.
[0210] The above-shown embodiment of an operating device 53 with a corresponding control method for controlling the switch 66 by the control circuit 54 represents a particularly advantageous embodiment of the invention using a step-down converter circuit. In particular, the method according to the invention for determining an actual LED current value can also be advantageously used in conjunction with other circuit topologies for switched power supplies.
Claims
1. Circuit arrangement for generating a combined signal representing an actual current value, the circuit arrangement comprising detection means (2) for detecting a measurement variable which is representative of the current, a first current measurement path (4) having a first amplifier circuit (6) for amplifying the measurement variable by a first amplification factor, a second current measurement path (5) having a second amplifier circuit (7) for amplifying the measurement variable by a second amplification factor which is different from the first amplification factor, a combining means (14, 15, 19, 20, 21) designed to generate the combined signal, output means for outputting the combined signal, characterized in that the combining means (14, 15, 19, 20, 21) is designed to generate the combined signal as a combination of the first weighted amplified measurement variable and the second weighted amplified measurement variable by means of a first weighting function and a second weighting function, the first weighting function (33) specifying a first weighting factor for the first amplified measurement variable in accordance with a predetermined current value, and the second weighting function specifying a second weighting factor for the second amplified measurement variable in accordance with the predetermined current value, and the predetermined current value being a target value for the current to be determined or a dimming value, and the combining means (14, 15, 19, 20, 21) being designed to output only the measurement variable amplified by the first amplification factor as the combined signal if the predetermined current value is less than a first threshold value (35), the second amplification factor being smaller than the first amplification factor.
2. Circuit arrangement according to claim 1, characterized in that the combining means (14, 15, 19, 20, 21) is designed to output the combination of the weighted measurement variable amplified by the second amplification factor with the weighted measurement variable amplified by the first amplification factor as the combined signal if the predetermined current value is greater than or equal to the first threshold value (35) and less than or equal to a second threshold value (36), the first weighting factor being reduced as the predetermined current value increases, in particular being reduced linearly, and the second weighting factor being increased as the predetermined current value increases, in particular being increased linearly.
3. Circuit arrangement according to claim 2, characterized in that the combining means (14, 15, 19, 20, 21) is designed to output only the measurement variable amplified by the second amplification factor as the combined signal if the predetermined current value is greater than the second threshold value (36).
4. Circuit arrangement according to any of claims 1 to 3, characterized in that the circuit arrangement is designed to determine the actual current value through at least one light-emitting diode (38, 39), and is further designed to output the actual current value determined therefrom to a control loop for constant control of the current through the at least one light-emitting diode (38, 39) to a predetermined target value.
5. Circuit arrangement according to any of claims 1 to 4, characterized in that the circuit arrangement is designed to determine a first combined signal for a first channel (43) of a dual channel system and a second combined signal for a second channel (44) of a dual channel system, the first channel (43) comprising at least one light-emitting diode (38) having a cold white color temperature of an emitted light, and the second channel (44) comprising at least one light-emitting diode (39) having a warm white color temperature of an emitted light.
6. Circuit arrangement according to any of claims 1 to 5, characterized in that the first amplifier circuit (6) and the second amplifier circuit (7) are designed as separate discrete components.
7. Method for determining a combined signal representing an actual current value, comprising the steps of: detecting a measurement value which is representative of the current (S1), amplifying the measurement variable in a first current measurement path (4) by a first amplification factor (S2), amplifying the measurement variable in a second current measurement path (5) by a second amplification factor (S3), generating the combined signal (S4), and outputting the combined signal (S10), and characterized in that a combined signal is generated by combining a first weighted amplified measurement variable and a second weighted amplified measurement variable (S4), a first weighting function (33) specifying a first weighting factor for the first amplified measurement variable in accordance with a predetermined current value, and a second weighting function (34) specifying a second weighting factor for the second amplified measurement variable in accordance with the predetermined current value, and the predetermined current value being a target value for the current to be determined or a dimming value, and a combined signal being generated using only the measurement variable amplified by the first amplification factor if the predetermined current value is less than a first threshold value (35), the second amplification factor being less than the first amplification factor.
