CALIBRATION APPARATUS AND METHOD THEREOF, MULTI-CHANNEL DRIVING CIRCUIT AND CURRENT BALANCING METHOD

Information

  • Patent Application
  • 20110248699
  • Publication Number
    20110248699
  • Date Filed
    December 15, 2010
    13 years ago
  • Date Published
    October 13, 2011
    13 years ago
Abstract
A calibration method for adjusting an offset voltage of a unit is proposed. The unit, capable of operating in a calibration mode or a normal mode, includes a first input terminal, a second input terminal and an output terminal. The calibration method includes: operating the unit in a calibration mode; providing a programmable voltage to the first input terminal; providing a constant voltage to the second input terminal; adjusting the programmable voltage monotonously when an output status of the output terminal is not changed; latching the programmable voltage when the output status toggles; and operating the unit in a normal mode after the output status toggles.
Description
BACKGROUND OF THE INVENTION

1. Field of the Invention


The present invention is related to a calibration apparatus and method thereof.


2. Description of the Prior Art


Current balance is an important specification for an LED (Light Emitting Diode) driving circuit driving chains of LEDs. In conventional specification, the uniformity for the chains of LEDs is required to be within 1%. However, due to the variation in process parameters during manufacturing, the electronic components of the LED driving circuit may not be able to meet the specification of current balance.



FIG. 1 is a diagram illustrating conventional multi-channel LED driving circuit 100. Using power switch M1 and booster 11, input voltage Vin is boosted to the voltage level required for driving LED chains 13 and 14. Multi-channel driving circuit 12 is configured to control the channel current of transistors M3 and M4 using current driving circuits 15 and 16, respectively. Each of current driving circuits 15 and 16 compares the voltage signal fed back from corresponding resistors R1 and R2 with reference voltage VREF, thereby dynamically controlling the corresponding channel current and further stabilizing the current flowing through resistors R1 and R2. Ideally, if the resistance of resistor R1 equals to that of resistor R2, the current flowing through LED chains 13 and 14 may be equalized for achieving current balance.


However, error amplifiers OPA1 and OPA2 of multi-channel LED driving circuit 100 may not have ideal characteristics. Due to process variations, error amplifiers OPA1 and OPA2 may exhibit unmatched offset voltages, the difference between which is likely to hinder multi-channel LED driving circuit 100 from meeting the specification of current balance.


SUMMARY OF THE INVENTION

The present invention provides a calibration method for adjusting an offset voltage of a unit under calibration. The unit under calibration, having a first input terminal, a second input terminal and an output terminal, is configured to operate in a calibration mode or a normal mode. The calibration method includes operating the unit under calibration in the calibration mode, providing a programmable voltage to the first input terminal, providing a constant voltage to the second input terminal, adjusting the programmable voltage monotonously when an output status of the output terminal remains unchanged, latching the programmable voltage when the output status toggles, and operating the unit under calibration in the normal mode after the output status toggles.


The present invention further provides a calibration apparatus for compensating an offset voltage of a comparator which includes a first input terminal, a second input terminal and an output terminal. The calibration apparatus includes a counter configured to adjust a digital signal monotonously, a programmable voltage generating unit configured to generate a programmable voltage on the first terminal according to a first input voltage and the digital signal, and a latch circuit configured to generate a latched digital signal by latching the digital signal when an output status of the output terminal changes, thereby preventing the programmable voltage from being interfered by the counter. A second input voltage is supplied to the second input terminal and the difference between the first and second input voltages is a constant value.


The present invention further provides a multi-channel driving circuit which provides current balancing. The multi-channel driving circuit includes a plurality of current driving circuits each configured to control a corresponding channel current according to a channel current control voltage. Each current driving circuit includes a comparator having a first input terminal, a second input terminal and an output terminal for controlling the corresponding channel current; a latch circuit configured to provide a latched digital signal; and a compensation voltage generator configured to generate a compensation voltage according to the latched digital signal. A sum of the compensation voltage and a first input voltage is supplied to one input terminal among the first and second input terminals. A second input voltage is supplied to the other input terminal among the first and second input terminals. One input voltage among the first and second input voltages corresponds to the channel current. The other input voltage among the first and second input voltages corresponds to the channel current control voltage.


The present invention further provides a current balancing method for driving multiple channels. The current balancing method includes adjusting a digital signal monotonously and, for each corresponding channel, adjusting a compensation voltage according to the digital signal, providing a sum of the compensation voltage and a first input voltage to a first input terminal of a comparator, providing a second input voltage to a second input terminal of the comparator, generating a latched digital signal by latching the digital signal when an output status of an output terminal of the comparator changes, and controlling the comparator according to the latched digital signal, a channel current control voltage and a corresponding feedback voltage for driving the corresponding channel. A difference between the first and second input voltages is a constant value, and the corresponding feedback voltage is associated with a current flowing through the corresponding channel.


These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a diagram illustrating a conventional multi-channel LED driving circuit.



FIG. 2 is a diagram illustrating a multi-channel LED driving circuit according to an embodiment of the present invention.



FIG. 3 is a detailed diagram illustrating a calibration apparatus according to an embodiment of the present invention.



FIG. 4 is a flowchart illustrating a calibration method according to the present invention.





DETAILED DESCRIPTION


FIG. 2 is a diagram illustrating multi-channel LED driving circuit 200 according to an embodiment of the present invention. Multi-channel LED driving circuit 200 also includes booster 11 and LED chains 13 and 14, which may be implemented as depicted in FIG. 1, or may adopt other devices having similar function as well known to those skilled in the art. As shown in FIG. 2, multi-channel LED driving circuit 200 further includes current driving circuits 201 and 202, counter 203 and mode control unit 204. Current driving circuit 201, including calibration circuit 211 and switch S1, is configured to adjust a unit under calibration (such as error amplifier OPA3). So is current driving circuit 202. Mode control unit 204 switches driving circuits 201 and 202 to a calibration mode or a normal mode. Since both current driving circuits 201 and 202 operate in the same manner, only the operation of current driving circuit 201 is described in subsequent paragraphs.


In the normal mode when switch S1 is turned on (short-circuited), calibration circuit 211 may provide level shift to reference voltage VREF, feedback voltage V3 (the voltage signal fed from resistor R3), or both. Calibration circuit 211 converts reference voltage VREF and feedback voltage V3 into two input voltages Vi1 and Vi2, based on which error amplifier OPA3 may control the control terminal of transistor switch M5, thereby regulating the current flowing through resistor R3. Therefore, calibration circuit 211 and error amplifier OPA3 together function as equivalent error amplifier OPAX, to which reference voltage VREF and feedback voltage V3 are supplied as the two input signals. Reference voltage VREF may be viewed as a channel current control voltage. The amount of constant level shift provided by calibration circuit 211 is determined in the calibration mode.


In the calibration mode, switch S1 is turned off (open-circuited) . In one embodiment, calibration circuit 211 provides two input voltages Vi1 and Vi2 to error amplifier OPA3 by commonly shifting reference voltage VREF. In one embodiment, voltage shift Vshift1, the difference between reference voltage VREF and input voltages Vi1 varies with the output of counter 203, while voltage shift Vshift2, the difference between reference voltage VREF and input voltages Vi2, is constant. After entering the calibration mode, output of counter 204 increases or decreases monotonously, and voltage shift Vshift1 provided by calibration circuit 211 increases or decreases with the output of counter 203 accordingly. After the offset voltage of error amplifier OPAX reaches a predetermined value, output VTR1 of error amplifier OPA3 toggles. After then, calibration circuit 211 is configured to latch voltage shift Vshift1 so as to prevent interference associated with the output of counter 203. As counter 203 continues to vary, the voltage shifts of other calibration circuits (such as that of calibration circuit 222) may be adjusted until the voltage shift provided by each calibration circuit has been latched. Latched voltage shift Vshift1 and constant voltage shift Vshift2 may thus be used in the normal mode. Under such circumstance, the voltage shift of the equivalent error amplifier in each current driving circuit may be maintained within a range defined by the same predetermined value, which allows multi-channel LED driving circuit 200 to meet the specification of current balance.



FIG. 3 is a detailed diagram illustrating an embodiment of current driving circuit 201 and related peripheral devices. Compared to ideal error amplifier IOPA1, non-ideal error amplifier OPA3 exhibits offset voltage VOS1 which may occur on any input terminal. For ease of illustration, it is assumed that offset voltage VOS1 occurs on first input terminal I1 of error amplifier OPA3.


In the calibration mode when switch S1 disconnects non-ideal error amplifier OPA3 from X3, reference voltage VREF is supplied to the control terminal of transistor M8 via switch S9, and feedback voltage V3 (the voltage signal fed from resistor R3) is isolated from the control terminal of transistor M8.


Transistor M8 and adder 305 are configured to shift reference voltage VREF, thereby generating corresponding input voltage Vi2 (on second input terminal In2 of error amplifier OPA3). Voltage shift Vshift2 may be obtained as follows:






V
shift2
=V
th8
+I
f
*R
R6 - - -   (1)


In equation (1), Vth8 represents the threshold voltage of transistor M8, If the current flowing through resistor R6, and RR6 the resistance of resistor R6. In this embodiment, voltage shift Vshift2 has a constant value since Vth8, M8 and If are all constants.


Digital-to-analog converter (DAC) 31 is configured to supply analog signal current I (LD)) to resistor R5 by selecting one current source or a combination of current sources from current sources I1-I5 according to digital signal LD. Similar to the operation of transistor Mg and adder 305, voltage shift Vshift2 between input voltage Vi1 (on first input terminal IN1 of error amplifier OPA3) and reference voltage VREF may be obtained as follows:






V
shift1
=V
th7
+I(LD)*RR5 - - -   (2)


In equation (2), Vth7 represents the threshold voltage of transistor M7, and RR5 the resistance of resistor R5. In this embodiment, input voltage Vi1 is a programmable voltage since the current flowing through resistor R5 may be programmed according to digital signal LD.


Upon entering the calibration mode, latch circuit 301 does not function, and digital signals LD and SD both increase or decrease monotonously with counter 203. As digital signal LD varies, voltage shift Vshift1 and input voltage Vi1 also change accordingly. Once the difference between input voltages Vi1 and Vi2 exceeds a specific value, error amplifier OPA3 changes its output signal VTR1, which in turn triggers latch circuit 301. When latch circuit 301 is functioning, digital signal LD is latched at a constant value and no longer varies with digital signal SD. Therefore, digital signal LD may be viewed as a latched digital signal.


In the normal mode, digital signal LD remained latched and is not influenced by output signal VTR1. Switch S1 shorts output Out1 to X3, and feedback voltage V3 (the voltage signal fed from resistor R3) is supplied to the control terminal of transistor M8 via switch S9.


In FIG. 3, it is assumed that offset voltage Vos1 of error amplifier OPA3 is 0.03V, voltage shift Vshift1 is (0.8+LD*0.001)V, voltage shift Vshift2 is 0.85V, counter 203 outputs 5-bit digital signal (count values between 0 and 32), and reference voltage VREF is 0.5V.


A calibration method using calibration circuit 211 is provided so that those skilled the art may practice the present invention from the disclosure. FIG. 4 is a flowchart illustrating the calibration method according to the present invention. In FIG. 4, the calibration method begins with step 401, then followed by step 402 in which mode control unit 204 operates switches S1 and S9 so that the unit under calibration OPA3 in current driving circuit 201 operates in a calibration mode.


In step 403, input voltage Vi1 supplied to first terminal In1 is (VREF+Vshift1), whose value, (1.3+LD*0.001)V, may be programmed by digital signal LD; input voltage Vi2 supplied to second terminal In2 is (VREF+Vshift2), which has a constant value of 1.35V. Since the initial value of counter 203 is 0, currently input voltage Vi1 is 1.3V and the voltage difference between the positive and negative input terminals of ideal error amplifier IOPA1 is −0.02V (=1.3V+0.03V−1.35V), thereby generating logic 0 as output signal VTR1.


In step 404 when counter 203 is increased monotonously by 1, digital signals SD and LD become 1, input voltage Vi1 increases by 0.001V and becomes 1.301V, the voltage difference between the positive and negative input terminals of ideal error amplifier IOPA1 becomes −0.019V, and output signal VTR1 remains at logic 0.


In step 405, it is determined whether the status of the output terminal changes. If output signal VTR1 remains at logic 0, the calibration method goes back to step 404 after step 405 for increasing counter 203 further by 1. Therefore, the voltage difference between the positive and negative input terminals of ideal error amplifier IOPA1 increases by 0.001V after each time step 404 is executed. After looping back to step 404 subsequent to step 405 several times, digital signal SD may be increased to 21, and the voltage difference between the positive and negative input terminals of ideal error amplifier IOPA1 may reach 0.001V. As a result, output signal VTR1 switches to logic 1. Since the status of the output terminal has been changed, step 406 is executed after step 405 instead of looping back to step 404.


In step 406, latch circuit 301 latches the current value of digital signal LD (=21) and the states of switches SW1-SW5, thereby latching input voltage Vi1 equivalently. After that, digital signal LD in current driving circuit 201 remains constant even if counter 203 continues to increase. Under such circumstance, voltage shift Vshift1 of current driving circuit 201 is fixed to 0.821V (=0.8+21*0.001), voltage shift Vshift2 is still 0.85V, and the voltage difference between the two input terminals of equivalent error amplifier OPAx is about 0.001V (=Vshift1+Vos1−Vshift2=0.821+0.03−0.85).


In step 407, mode control unit 204 operates switches SW1 and SW9 so that the unit under calibration OPA3 may return to the same state as those of current driving circuits 15 and 16 in FIG. 1, thereby operating current driving circuit 201 in a normal mode.


The calibration method ends in step 408. When operating a current driving circuit according to the flowchart in FIG. 4, the voltage difference between the two input terminals of the equivalent error amplifier is nearly zero (between 0 and 0.001V), thereby capable of achieving current balance.


In the embodiment illustrated in FIG. 3, the programmable voltage shift is provided to the positive input terminal of error amplifier OPA3. In another embodiment, the programmable voltage shift may be provided to the negative input terminal of error amplifier OPA3.


In the embodiment illustrated in FIG. 3, reference voltage VREF and feedback voltage V3 are respectively coupled to the positive and negative input terminals of error amplifier OPA3. In another embodiment, feedback voltage V3 and reference voltage VREF may be respectively coupled to the positive and negative input terminals of error amplifier OPA3.


In the embodiment illustrated in FIG. 3, reference voltage VREF is supplied to the control terminals of both transistors M7 and M8. In another embodiment, two different reference voltages may be supplied to the control terminals of transistors M7 and M8 as long as the difference between these two reference voltages remains substantially constant.


Normally, a driving circuit is able to execute a soft-start procedure. When multi-channel LED driving circuit 200 in FIG. 2 executes a soft-start procedure, for example, voltage Vout is gradually raised to the working voltage required for driving LED chains 13 and 14. During the period when the soft-start procedure is executed, LED chains 13 and 14 does not light, and the calibration mode illustrated in FIG. 4 may be operable while executing the soft-start procedure.


Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention.

Claims
  • 1. A calibration method for adjusting an offset voltage of a unit under calibration, wherein the unit under calibration having a first input terminal, a second input terminal and an output terminal is configured to operate in a calibration mode or a normal mode, the calibration method comprising: operating the unit under calibration in the calibration mode;providing a programmable voltage to the first input terminal;providing a constant voltage to the second input terminal;adjusting the programmable voltage monotonously when an output status of the output terminal remains unchanged;latching the programmable voltage when the output status toggles; andoperating the unit under calibration in the normal mode after the output status toggles.
  • 2. The calibration method of claim 1 wherein adjusting the programmable voltage monotonously comprises: providing a digital signal;gradually decreasing or increasing the digital signal; andconverting the digital signal into the programmable voltage.
  • 3. The calibration method of claim 2 wherein latching the programmable voltage comprises: generating a latched digital signal by latching the digital signal so as to prevent the programmable voltage from being interfered by the digital signal.
  • 4. The calibration method of claim 1 further comprising executing a soft-start procedure for raising a supply voltage of a load gradually to a working voltage, wherein the unit under calibration operates in the calibration mode during a period when the soft-start procedure is executed.
  • 5. The calibration method of claim 4 wherein the load comprises a plurality of light-emitting units.
  • 6. A calibration apparatus for compensating an offset voltage of a comparator which includes a first input terminal, a second input terminal and an output terminal, the calibration apparatus comprising: a counter configured to adjust a digital signal monotonously;a programmable voltage generating unit configured to generate a programmable voltage on the first terminal according to a first input voltage and the digital signal; anda latch circuit configured to generate a latched digital signal by latching the digital signal when an output status of the output terminal changes, thereby preventing the programmable voltage from being interfered by the counter;wherein a second input voltage is supplied to the second input terminal and a difference between the first and second input voltages is a constant value.
  • 7. The calibration apparatus of claim 6 wherein the second input voltage equals to the first input voltage.
  • 8. The calibration apparatus of claim 6 wherein the programmable voltage generating unit comprises: a digital-to-analog converter (DAC) configured to generate a corresponding analog signal according to the digital signal; andan adder configured to generate the programmable voltage by summing the corresponding analog signal and the first input voltage.
  • 9. The calibration apparatus of claim 8 wherein the DAC is configured to convert the digital signal into a current signal and the adder includes a resistor through which the current signal flows.
  • 10. A multi-channel driving circuit which provides current balancing, comprising: a plurality of current driving circuits each configured to control a corresponding channel current according to a channel current control voltage, each current driving circuit comprising: a comparator having a first input terminal, a second input terminal and an output terminal for controlling the corresponding channel current;a latch circuit configured to provide a latched digital signal; anda compensation voltage generator configured to generate a compensation voltage according to the latched digital signal, wherein: a sum of the compensation voltage and a first input voltage is supplied to one input terminal among the first and second input terminals;a second input voltage is supplied to the other input terminal among the first and second input terminals;one input voltage among the first and second input voltages corresponds to the channel current; andthe other input voltage among the first and second input voltages corresponds to the channel current control voltage.
  • 11. The multi-channel driving circuit of claim 10 further comprising: a counter configured to adjusting a digital signal monotonously; wherein in each driving circuit when an output status of the output terminal of the comparator changes, the latch circuit generates a latched digital signal by latching the digital signal.
  • 12. The multi-channel driving circuit of claim 10 wherein each driving circuit is configured to drive at least one corresponding light-emitting unit, and comprises: a resistor for detecting a current flowing through the corresponding light-emitting unit.
  • 13. The multi-channel driving circuit of claim 10 wherein the compensation voltage generator comprises: a digital-to-analog converter (DAC) configured to generate a corresponding analog signal according to the digital signal; andan adder configured to generate the compensation voltage by summing the corresponding analog signal and the first input voltage.
  • 14. The multi-channel driving circuit of claim 10 wherein the DAC is configured to convert the digital signal into a current signal and the adder includes a resistor through which the current signal flows.
  • 15. A current balancing method for driving multiple channels, comprising: adjusting a digital signal monotonously; andfor each corresponding channel: adjusting a compensation voltage according to the digital signal;providing a sum of the compensation voltage and a first input voltage to a first input terminal of a comparator;providing a second input voltage to a second input terminal of the comparator, wherein a difference between the first and second input voltages is a constant value;generating a latched digital signal by latching the digital signal when an output status of an output terminal of the comparator changes; andcontrolling the comparator according to the latched digital signal, a channel current control voltage and a corresponding feedback voltage for driving the corresponding channel, wherein the corresponding feedback voltage is associated with a current flowing through the corresponding channel.
Priority Claims (1)
Number Date Country Kind
099111357 Apr 2010 TW national