Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MEASUREMENT CIRCUIT FOR AN ELECTRONIC BALLAST HAVING COUPLED RESONANT INDUCTORS
Document Type and Number:
WIPO Patent Application WO/2010/027390
Kind Code:
A3
Abstract:
An electronic ballast for driving a gas discharge lamp comprises a measurement circuit (170) for measuring a lamp current flowing through the lamp and a lamp voltage produced across the lamp. The ballast comprises a first winding (260) magnetically coupled to a main transformer of an inverter circuit, and a second winding (262) magnetically coupled to a split or coupled resonant inductor (240) of a resonant tank circuit (150). The first and second windings (260, 262) are coupled in series electrical connection to generate a voltage representative of the magnitude of the lamp voltage. The ballast further comprises a current transformer (270) having primary windings coupled in series with the electrodes of the lamp. The measurement circuit (170) integrates the current conducted through secondary windings of the current transformer (270) only during every other half-cycle of the lamp voltage to generate a control signal representative of the magnitude of the lamp current that is in-phase with the lamp voltage.

Inventors:
TAIPALE MARK S (US)
NEWMAN ROBERT C JR (US)
RHODES SCOTT E (US)
Application Number:
PCT/US2009/003103
Publication Date:
April 29, 2010
Filing Date:
May 18, 2009
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
LUTRON ELECTRONICS CO (US)
TAIPALE MARK S (US)
NEWMAN ROBERT C JR (US)
RHODES SCOTT E (US)
International Classes:
H05B41/282; G01R15/18; G01R19/00; G01R19/06
Domestic Patent References:
WO2007138507A12007-12-06
Foreign References:
US6060843A2000-05-09
US5793196A1998-08-11
EP1022932A12000-07-26
US4700113A1987-10-13
EP0350104A21990-01-10
US6356035B12002-03-12
EP0855850A11998-07-29
EP0259603A11988-03-16
EP0078864A11983-05-18
FR2798246A12001-03-09
EP1056315A22000-11-29
Attorney, Agent or Firm:
DUJMICH, Louis C. et al. (New York, New York, US)
Download PDF:
Claims:

What is claimed is:

CLAIMS

1. An electronic ballast for driving a gas discharge lamp having first and second electrodes, such that a lamp current flows from the first electrode to the second electrode the lamp and a lamp voltage is produced across the lamp, the ballast comprising: an inverter circuit operable to convert a substantially DC bus voltage to a high-frequency AC voltage; a resonant tank circuit having an output and operable to couple the high-frequency AC voltage to the lamp; a current transformer having first and second primary windings, and first and second secondary windings magnetically coupled to the first and second primary windings, the first primary winding adapted to be coupled in series electrical connection between the output of the resonant tank circuit and the first electrode of the lamp, the second primary winding adapted to be coupled in series electrical connection between the output of the resonant tank circuit and the second electrode of the lamp, the first and second primary windings coupled such that differential-mode currents in the electrodes are added and common-mode currents in the electrodes are subtracted, the first and second secondary windings operable to conduct respective first and second currents representative of the lamp current; and a lamp current measurement circuit coupled to the first and second secondary windings of the current transformer, the lamp current measurement circuit comprising a capacitor coupled such that the first current of the first secondary winding of the current transformer flows into the capacitor when the magnitude of the lamp current is positive, and the second current of the second secondary winding of the current transformer flows out of the capacitor when the magnitude of the lamp current is negative, the capacitor only conducting the first and second currents of the first and second secondary windings during every other half-cycle of the lamp voltage; wherein a voltage produced across the capacitor is representative of the magnitude of the lamp current that is in-phase with the lamp voltage.

2. The ballast of claim 1, wherein the lamp current measurement circuit comprises a first semiconductor switch adapted to conduct the first current of the first secondary winding of the current transformer into the capacitor, and a second semiconductor switch adapted to conduct the second current of the second secondary winding of the current transformer from the capacitor.

3. The ballast of claim 2, wherein the lamp current measurement circuit comprises a third semiconductor switch coupled such that the first and second semiconductor switches are rendered conductive when the third semiconductor switch is conductive, the third semiconductor switch having a control input coupled to receive a first voltage having a magnitude representative of the lamp voltage.

4. The ballast of claim 3, wherein the lamp current measurement circuit comprises a first bipolar junction transistor having a base-emitter junction coupled across the first secondary winding of the current transformer, such that the first transistor is operable to be rendered conductive to conduct the first current through the first semiconductor switch into the capacitor when the magnitude of the lamp current is positive; and wherein the lamp current measurement circuit comprises a second bipolar junction transistor having a base-emitter junction coupled across the second secondary winding of the current transformer, such that the second transistor is operable to be rendered conductive to conduct the second current from the capacitor through the second semiconductor switch when the magnitude of the lamp current is negative.

5. The ballast of claim 4, further comprising: a first winding magnetically coupled to a primary winding of a main transformer of the inverter circuit; and a second winding magnetically coupled to a resonant inductor of the resonant tank circuit; wherein the first and second windings are coupled together to generate the first voltage representative of the lamp voltage.

6. The ballast of claim 4, wherein the third semiconductor switch is operable to become conductive during the positive half-cycles of the lamp voltage, such that the capacitor conducts the first and second currents of the first and second secondary windings only during the positive half-cycles of the lamp voltage.

7. A lamp current measurement circuit for an electronic ballast for driving a gas discharge lamp having first and second electrodes, such that a lamp current flows from the first electrode to the second electrode the lamp and a lamp voltage is produced across the lamp, the ballast comprising an inverter circuit operable to convert a substantially DC bus voltage to a high-frequency AC voltage, and a resonant tank circuit having an output and operable to couple the high-frequency AC voltage to the lamp, the lamp current measurement circuit comprising: a current transformer having first and second primary windings, and first and second secondary windings magnetically coupled to the first and second primary windings, the first primary winding adapted to be coupled in series electrical connection between the output of the resonant tank circuit and the first electrode of the lamp, the second primary winding adapted to be coupled in series electrical connection between the output of the resonant tank circuit and the second electrode of the lamp, the first and second primary windings coupled such that differential-mode currents in the electrodes are added and common-mode currents in the electrodes are subtracted, the first and second secondary windings operable to conduct respective first and second currents representative of the lamp current; and a capacitor coupled to conduct the first and second currents of the first and second secondary windings of the current transformer, such that the first current flows into the capacitor when the lamp current is positive, and the second current flows out of the capacitor when the lamp current is negative, the capacitor only conducting the first and second currents of the first and second secondary windings during every other half-cycle of the lamp voltage; wherein a voltage produced across the capacitor is representative of the magnitude of the lamp current that is in-phase with the lamp voltage.

8. The lamp current measurement circuit of claim 7, further comprising: a first semiconductor switch adapted to conduct the first current of the first secondary winding of the current transformer into the capacitor; and

a second semiconductor switch adapted to conduct the second current of the second secondary winding of the current transformer from the capacitor.

9. The lamp current measurement circuit of claim 8, further comprising: a third semiconductor switch coupled such that the first and second semiconductor switches are rendered conductive when the third semiconductor switch is conductive, the third semiconductor switch having a control input coupled to receive a first voltage having a magnitude representative of the lamp voltage.

10. The lamp current measurement circuit of claim 9, further comprising: a first bipolar junction transistor having a base-emitter junction coupled across the first secondary winding of the current transformer, such that the first transistor is operable to be rendered conductive to conduct the first current through the first semiconductor switch into the capacitor when the magnitude of the first current of the first secondary winding is positive; and a second bipolar junction transistor having a base-emitter junction coupled across the second secondary winding of the current transformer, such that the second transistor is operable to be rendered conductive to conduct the second current from the capacitor through the second semiconductor switch when the magnitude of the second current of the second secondary winding is negative.

11. The lamp current measurement circuit of claim 10, wherein the first, second, and third semiconductors switches comprise bipolar junction transistors; and wherein the bipolar junction transistors of the lamp current measurement circuit are prevented from operating in the saturation region.

12. The lamp current measurement circuit of claim 10, further comprising: a fourth semiconductor switch coupled to the first bipolar junction transistor to prevent the first bipolar junction transistor from operating in the saturation region when the first bipolar junction transistor begins to conduct the first current through the first semiconductor switch into the capacitor.

13. A method of measuring a lamp current in an electronic ballast for driving a 1! 1 1 1 : C. t, 1 1 „1 l^A *L ~ 1 „,,—«.,♦ (! *,, ,;„ „ tU*-m , πU +V, α l nmn

the method comprising the steps of: measuring a first current in the first electrode of the lamp; measuring a second current in the second electrode of the lamp; adding the first and second currents in such a way that differential-mode currents in the electrodes are added and common-mode currents in the electrodes are subtracted; and determining the lamp current in response to the step of adding the first and second currents, the lamp current not dependent upon the common-mode currents.

14. The method of claim 13, further comprising the step of: integrating the sum of the first and second currents to generate a lamp current control signal representative of the magnitude of the lamp current.

15. The method of claim 14, further comprising the step of: receiving a voltage representative of the magnitude of a lamp voltage measured across the lamp; wherein the step of integrating further comprises integrating the sum of the first and second currents during every other half-cycle of the lamp voltage.

16. The method of claim 15, wherein the step of integrating comprises steering the first current into a capacitor when the magnitude of the first current is positive, and steering the second current into the capacitor when the magnitude of the second current is negative.

17. An electronic ballast for driving a gas discharge lamp, said ballast comprising: a bus capacitor connected across a DC bus voltage; an inverter circuit for receiving said DC bus voltage and for generating a substantially square- wave voltage having a magnitude approximately twice said DC bus voltage, said inverter circuit comprising a transformer having a primary winding comprising first and second winding portions connected at a center tap and having first and second terminals, said bus capacitor being connected between a common point and said center tap, said inverter circuit further comprising first and second switches coupled between said common point and said respective first and second terminals of said primary winding, and a control circuit for controlling the conduction state of said first and second switches, said control circuit providing first and second control signals to control

inputs of said first and second switches, respectively, whereby said first and second switches are alternately rendered conductive to generate said substantially square wave voltage across said primary winding; a resonant tank circuit for receiving said square-wave voltage and generating a substantially sinusoidal voltage for driving said lamp; and a measurement circuit for determining the magnitude of the current flowing from said inverter circuit to said lamp; wherein said measurement circuit senses said lamp current during alternate half-cycles of said lamp current, thereby measuring only a real component of said lamp current and ignoring a reactive component.

18. The ballast of claim 17, wherein said measurement circuit includes an integrating circuit integrating said lamp current thereby integrating said reactive component of said lamp current to zero and measuring only said real component.

19. The ballast of claim 17, wherein said control circuit comprises: a circuit receiving an input from said measurement circuit for monitoring said lamp current to determine if there is an overcurrent condition; wherein said control circuit provides an override signal to said controller circuit to force said controller circuit to provide a predetermined safe output signal in the event of an overcurrent condition.

20. An electronic ballast for driving a gas discharge lamp, the ballast comprising: an inverter circuit operable to convert a substantially DC bus voltage to a high-frequency AC voltage provided at an output of the inverter circuit, the inverter circuit including a main transformer having a primary winding coupled across the output of the inverter circuit; a resonant tank circuit operable to couple the high-frequency AC voltage to the lamp, the resonant tank circuit including a resonant inductor adapted to be coupled between the output of the inverter circuit and the lamp; a first winding magnetically coupled to the primary winding of the main transformer

of the inverter circuit, the first winding operable to generate a first voltage representative of the magnitude of the high-frequency AC voltage at the output of the inverter circuit; and a second winding magnetically coupled to the resonant inductor of the resonant tank circuit, the second winding operable to generate a second voltage representative of the magnitude of a voltage across the resonant inductor; wherein the first and second windings are coupled in series to generate a third voltage representative of the lamp voltage measured across the lamp.

21. The electronic ballast of claim 20, further comprising: a lamp voltage measurement circuit coupled across the series combination of the first and second windings for receipt of the third voltage.

22. The electronic ballast of claim 21, wherein the lamp voltage measurement circuit is operable to generate a lamp voltage control signal representative of the third voltage.

23. A method of measuring a lamp voltage in an electronic ballast for driving a gas discharge lamp having first and second electrodes, the lamp voltage measured across the first and second electrodes of the lamp, the ballast comprising an inverter circuit operable to convert a substantially DC bus voltage to a high-frequency AC voltage provided across a primary winding of a transformer, and a resonant tank circuit operable to couple the high-frequency AC voltage to the lamp and including a resonant inductor adapted to be coupled between the primary winding of the transformer of the inverter circuit and the lamp, the method comprising the steps of: magnetically coupling a first winding to the primary winding of the transformer of the inverter circuit; magnetically coupling a second winding to the resonant inductor of the resonant tank circuit; generating a first voltage across the first winding, the first voltage representative of the magnitude of the high-frequency AC voltage of the inverter circuit; generating a second voltage across the second winding, the second voltage representative of the magnitude of a voltage across the resonant inductor; and electrically connecting the first and second windings so as to addthe first and second vnitflueς tn nrndiir.e a third vnitape renresentative of a lamn voltage measured across the lamo.

24. An electronic ballast for driving a gas discharge lamp, said ballast comprising: a bus capacitor connected across a DC bus voltage; an inverter circuit for receiving said DC bus voltage and for generating a substantially square- wave voltage having a magnitude approximately twice said DC bus voltage, said inverter circuit comprising a transformer having a primary winding comprising first and second winding portions connected at a center tap and having first and second terminals, said bus capacitor being connected between a common point and said center tap, said inverter circuit further comprising first and second switches coupled between said common point and said respective first and second terminals of said primary winding, and a control circuit for controlling the conduction state of said first and second switches, said control circuit providing first and second control signals to control the conduction of said first and second switches, respectively, whereby said first and second switches are alternately rendered conductive to generate said substantially square wave voltage across said primary winding; a resonant tank circuit for receiving said square-wave voltage and generating a substantially sinusoidal voltage for driving said lamp; and a measurement circuit for determining the magnitude of a lamp voltage across said lamp, said measurement circuit determining the magnitude of said lamp voltage by sensing said square- wave voltage and a voltage across said resonant inductor, and determining the magnitude of said lamp voltage as a difference between the magnitude of said square-wave voltage and the magnitude of said voltage across said resonant inductor.

25. The ballast of claim 24, wherein said transformer has an auxiliary winding for sensing the magnitude of said square-wave voltage, and said resonant inductor has an auxiliary winding for sensing said voltage across said resonant inductor, said measurement circuit being coupled to said auxiliary windings thereby to determine the magnitude of said lamp voltage across said lamp.

26. The ballast of claim 25, further comprising: a current sensing device for determining said lamp current coupled to said measurement circuit.

27. The ballast of claim 26, wherein said current sensing device comprises a current transformer coupled in series with said lamp.

28. The ballast of claim 27, wherein said current sensing device comprises a current transformer having first and second primary windings coupled in series with said lamp, said current transformer having first and second secondary windings coupled to said measurement circuit for providing a signal representative of said lamp current.

29. The ballast of claim 28, wherein said first and second primary windings of said current transformer are coupled to said lamp so that differential mode currents flowing in said lamp are added and common mode currents are canceled.

30. The ballast of claim 24, wherein said control circuit comprises: a circuit receiving an input from said measurement circuit and monitoring said lamp voltage and determining if there is an overvoltage condition; wherein said control circuit provides an override signal to said controller circuit to force said controller circuit to provide a predetermined safe output signal in the event of an overvoltage condition.

Description:

MEASUREMENT CIRCUIT FOR AN ELECTRONIC BALLAST

BACKGROUND OF THE INVENTION

Field of the Invention

[0001] The present invention relates to electronic ballasts for gas discharge lamps, such as fluorescent lamps. More specifically, the present invention relates to a two-wire electronic dimming ballast for powering and controlling the intensity of a fluorescent lamp in response to a phase-controlled voltage.

Description of the Related Art

[0002] The use of gas discharge lamps, such as fluorescent lamps, as replacements for conventional incandescent lamps, has increased greatly over the last several years. Fluorescent lamps typically are more efficient and provide a longer operational life when compared to incandescent lamps. In certain areas, such as California, for example, state law requires certain areas of new construction to be outfitted for the use of fluorescent lamps exclusively.

[0003] A gas discharge lamp must be driven by a ballast in order to illuminate properly. The ballast receives an alternating-current (AC) voltage from an AC power source and generates an appropriate high-frequency current for driving the fluorescent lamp. Dimming ballasts, which can

control the intensity of a connected fluorescent lamp, typically have at least three connections: to a switched-hot voltage from the AC power source, to a neutral side of the AC power source, and to a desired-intensity control signal, such as a phase-controlled voltage from a standard three-wire dimming circuit. Some electronic dimming ballasts, such as a fluorescent Tu- Wire dimmer circuit manufactured by Lutron Electronics Co., Inc., only require two connections, e.g., to the phase-controlled voltage from the dimmer circuit and to the neutral side of the AC power source.

[0004] Most prior art ballast circuits have typically been designed and intended for use in commercial applications. This has caused most prior art ballasts to be rather expensive and fairly difficult to install and service, and thus not suitable for residential installations. Thus, there is a need for a small, low-cost two-wire electronic dimming ballast, which can be used by the energy-conscious consumer in combination with a fluorescent lamp as a replacement for an incandescent lamp.

SUMMARY OF THE INVENTION

[0005] According to an embodiment of the present invention, a lamp current measurement circuit for an electronic ballast for driving a gas discharge lamp comprises a current transformer, which has first and second primary windings and first and second secondary windings magnetically coupled to the first and second primary windings, and a capacitor coupled to conduct first and second currents of the respective first and second secondary windings of the current transformer, such that a voltage produced across the capacitor is representative of the magnitude of lamp current through the lamp that is in-phase with lamp voltage across the lamp. The ballast comprises an inverter circuit operable to convert a substantially DC bus voltage to a high-frequency AC voltage, and a resonant tank circuit having an output and operable to couple the high-frequency AC voltage to the lamp. The first primary winding is adapted to be coupled in series electrical connection between the output of the resonant tank circuit of the ballast and a first electrode of the lamp, while the second primary winding is adapted to be coupled in series electrical connection between the output of the resonant tank circuit and a second electrode of the lamp. The first and second primary windings are coupled such that differential-mode currents in the electrodes are added and common- mode currents in the electrodes are subtracted. The first current of the first secondary winding of the

current transformer flows into the capacitor when the lamp current is positive, and the second current of the second secondary winding of the current transformer flows out of the capacitor when the lamp current is negative. The capacitor only conducts the first and second currents of the first and second secondary windings during every other half-cycle of the lamp voltage, such that the voltage produced across the capacitor is representative of the magnitude of the lamp current that is in-phase with the lamp voltage.

[0006] According to another embodiment of the present invention, an electronic ballast for driving a gas discharge lamp having first and second electrodes comprises an inverter circuit, a resonant tank circuit, a current transformer, and a lamp current measurement circuit. The inverter circuit converts a substantially DC bus voltage to a high frequency AC voltage, while the resonant tank couples the high-frequency AC voltage to the lamp. The current transformer has first and second primary windings, and first and second secondary windings magnetically coupled to the first and second primary windings. The first primary winding is adapted to be coupled in series electrical connection between the output of the resonant tank circuit and the first electrode of the lamp, while the second primary winding is adapted to be coupled in series electrical connection between the output of the resonant tank circuit and the second electrode of the lamp. The first and second primary windings are coupled such that differential-mode currents in the electrodes are added and common-mode currents in the electrodes are subtracted. The first and second secondary windings are both coupled to a lamp current measurement circuit and conduct respective first and second currents representative of a lamp current flowing from the first electrode to the second electrode the lamp. The lamp current measurement circuit comprises a capacitor coupled such that the first current of the first secondary winding of the current transformer flows into the capacitor when the lamp current is positive, and the second current of the second secondary winding of the current transformer flows out of the capacitor when the lamp current is negative. The capacitor only conducts the first and second currents of the first and second secondary windings during every other half-cycle of a lamp voltage produced across the lamp, such that a voltage produced across the capacitor is representative of the magnitude of the lamp current that is in-phase with the lamp voltage.

- A -

[0007] A method of measuring a lamp current in an electronic ballast for driving a gas discharge lamp having first and second electrodes is also described herein. The method comprising the steps of: (1) measuring a first current in the first electrode of the lamp; (2) measuring a second current in the second electrode of the lamp; (3) adding the first and second currents in such a way that differential-mode currents in the electrodes are added and common-mode currents in the electrodes are subtracted; and (4) determining the lamp current in response to the step of adding the first and second currents, the lamp current not dependent upon the common-mode currents.

[0008] According to another aspect of the present invention, an electronic ballast for driving a gas discharge lamp comprises an inverter circuit including a main transformer, a resonant tank including a resonant inductor, a first winding magnetically coupled to the primary winding of the main transformer of the inverter circuit, and a second winding magnetically coupled to the resonant inductor of the resonant tank circuit. The inverter circuit converts a substantially DC bus voltage to a high-frequency AC voltage, which is provided across a primary winding of the main transformer at an output of the inverter circuit. The resonant inductor is adapted to be coupled between the output of the inverter circuit and the lamp, such that the resonant tank circuit couples the high-frequency AC voltage to the lamp. The first winding generates a first voltage representative of the magnitude of the high-frequency AC voltage at the output of the inverter circuit, while the second winding generates a second voltage representative of the magnitude of a voltage across the resonant inductor. The first and second windings are coupled in series to generate a third voltage representative of a lamp voltage measured across the lamp.

[0009] According to another aspect of the present invention, an electronic ballast for driving a gas discharge lamp comprises an inverter circuit having a main transformer having a primary winding coupled across the output of the inverter circuit, a resonant tank circuit, a first winding magnetically coupled to the primary winding of the main transformer of the inverter circuit, and a second winding magnetically coupled to the resonant inductor of the resonant tank circuit. The inverter circuit converts a substantially DC bus voltage to a high-frequency AC voltage provided at an output of the inverter circuit. The resonant tank circuit couples the high-frequency AC voltage to the lamp, and includes a resonant inductor adapted to be coupled between the output of the inverter circuit and the lamp. The first winding generates a first voltage representative of the magnitude of

the high-frequency AC voltage at the output of the inverter circuit, while the second winding generates a second voltage representative of the magnitude of a voltage across the resonant inductor. The first and second windings are coupled in series to generate a third voltage representative of a lamp voltage measured across the lamp.

[0010] In addition, a method of measuring a lamp voltage in an electronic ballast for driving a gas discharge lamp is described herein. The ballast comprises an inverter circuit for converting a substantially DC bus voltage to a high-frequency AC voltage provided across a primary winding of a transformer, and a resonant tank circuit for coupling the high-frequency AC voltage to the lamp and including a resonant inductor adapted to be coupled between the primary winding of the transformer of the inverter circuit and the lamp. The method comprises the steps of: (1) magnetically coupling a first winding to the primary winding of the transformer of the inverter circuit; (2) magnetically coupling a second winding to the resonant inductor of the resonant tank circuit; (3) generating a first voltage across the first winding, the first voltage representative of the magnitude of the high- frequency AC voltage of the inverter circuit; (4) generating a second voltage across the second winding, the second voltage representative of the magnitude of a voltage across the resonant inductor; and (5) adding the first and second voltages to produce a third voltage representative of a lamp voltage measured across the lamp.

[0011] According to another embodiment of the present invention, an electronic ballast for driving a gas discharge lamp comprises a bus capacitor connected across a DC bus voltage, an inverter circuit for receiving the DC bus voltage and for generating a substantially square-wave voltage having a magnitude approximately twice the DC bus voltage, a resonant tank circuit for receiving the square-wave voltage and generating a sinusoidal voltage for driving the lamp, and a measurement circuit for determining the magnitude of a lamp voltage across the lamp. The inverter circuit comprises a transformer having a primary winding comprising first and second winding portions connected at a center tap and having first and second terminals. The bus capacitor is connected between a common point and the center tap. The inverter circuit further comprises first and second switches coupled between the common point and the respective first and second terminals of the primary winding, and a control circuit for controlling the conduction state of the first and second switches. The control circuit provides first and second control signals to control inputs

of the first and second switches, respectively, whereby the first and second switches are alternately rendered conductive to cause a current to flow from the bus capacitor through the first and second winding portions thereby generating the substantially square-wave voltage across the primary winding. The measurement circuit determines the magnitude of the lamp voltage by sensing the square-wave voltage and a voltage across the resonant inductor, and determining the magnitude of the lamp voltage as a difference between the magnitude of the square-wave voltage and the magnitude of the voltage across the resonant inductor.

[0012] Other features and advantages of the present invention will become apparent from the following description of the invention that refers to the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Fig. 1 is a simplified block diagram of a system including an electronic dimming ballast for driving a fluorescent lamp according to a first embodiment of the present invention;

[0014] Fig. 2 is a simplified block diagram showing the electronic dimming ballast of Fig. 1 in greater detail;

[0015] Fig. 3 is a simplified schematic diagram showing a bus capacitor, a sense resistor, an inverter circuit, and a resonant tank of the electronic dimming ballast of Fig. 2 in greater detail;

[0016] Fig. 4 is a simplified schematic diagram showing a current transformer of the resonant tank of Fig. 3 in greater detail;

[0017] Fig. 5 is a simplified schematic diagram showing in greater detail a push/pull converter, which includes the inverter circuit, the bus capacitor, and the sense resistor of Fig. 3;

[0018] Fig. 6 is a simplified diagram of waveforms showing the operation of the push/pull converter and the control circuit of the ballast of Fig. 2 during normal operation;

[0019] Fig. 7 is a simplified schematic diagram of a measurement circuit of the ballast of

Fig. 2 for measuring a lamp voltage and a lamp current of the fluorescent lamp;

[0020] Fig. 8 is a simplified diagram showing the lamp voltage, a real component of the lamp current, and a reactive component of the lamp current of the fluorescent lamp;

[0021] Fig. 9 is a simplified block diagram of a control circuit of the ballast of Fig. 2;

[0022] Figs. 1OA and 1OB are simplified schematic diagrams of the control circuit of Fig. 9;

[0023] Fig. 11 is a simplified flowchart of a target lamp current procedure executed periodically by a microcontroller of the control circuit of Fig. 9;

[0024] Fig. 12 is a simplified flowchart of a startup procedure executed by the microcontroller of the control circuit of Fig. 9;

[0025] Fig. 13 is a simplified block diagram of an electronic dimming ballast according to a second embodiment of the present invention;

[0026] Fig. 14 is a simplified schematic diagram showing a charge pump, an inverter circuit, and a resonant tank circuit of the ballast of Fig. 13 in greater detail; and

[0027] Fig. 15 is a simplified schematic diagram of a lamp current measurement circuit of the measurement circuit of Fig. 7 according to a third embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

[0028] The foregoing summary, as well as the following detailed description of the preferred embodiments, is better understood when read in conjunction with the appended drawings. For the purposes of illustrating the invention, there is shown in the drawings an embodiment that is presently preferred, in which like numerals represent similar parts throughout the several views of the drawings, it being understood, however, that the invention is not limited to the specific methods and instrumentalities disclosed.

[0029] Fig. 1 is a simplified block diagram of a system including an electronic dimming ballast 100 for driving a fluorescent lamp 102 according to a first embodiment of the present invention. The ballast 100 is coupled to the hot side of an alternating-current (AC) power

source 104 (e.g., 120 VA C . 60 Hz) through a conventional two-wire dimmer switch 106. The dimmer switch 106 typically includes a bidirectional semiconductor switch (not shown), such as, for example, a triac or two field-effect transistors (FETs) coupled in anti-series connection, for providing a phase-controlled voltage V PC (i.e., a dimmed-hot voltage) to the ballast 100. Using a standard forward phase-control dimming technique, the bidirectional semiconductor switch is rendered conductive at a specific time each half-cycle of the AC power source and remains conductive for a conduction period TC ON during each half-cycle. The dimmer switch 106 is operable to control the amount of power delivered to the ballast 100 by controlling the length of the conduction period TCON-

[0030] The ballast 100 of Fig. 1 only requires two connections: to the phase-controlled voltage Vpc from the dimmer switch 106 and to the neutral side of the AC power source 104. The ballast 100 is operable to control the lamp 102 on and off and to adjust the intensity of the lamp from a low-end (i.e., a minimum intensity) to a high-end (i.e., a maximum intensity) in response to the conduction period T CON of the phase-controlled voltage Vpc.

[0031] Fig. 2 is a simplified block diagram showing the electronic dimming ballast 100 in greater detail. The electronic ballast 100 comprises a "front-end" circuit 120 and a "back-end" circuit 130. The front-end circuit 120 includes a radio-frequency interference (RFI) filter 122 for minimizing the noise provided on the AC mains and a full-wave rectifier 124 for receiving the phase-controlled voltage Vpc and generating a rectified voltage V RECT - The rectified voltage V RECT is coupled to a bus capacitor C BUS through a diode D 126 for producing a substantially DC bus voltage V BUS across the bus capacitor C BUS - The negative terminal of the bus capacitor C BUS is coupled to a rectifier DC common connection (as shown in Fig. 2).

[0032] The ballast back-end circuit 130 includes a power converter, e.g., an inverter circuit 140, for converting the DC bus voltage V BUS to a high-frequency square- wave voltage V SQ . The high-frequency square-wave V SQ (i.e., a high-frequency AC voltage) is characterized by an operating frequency fop (and an operating period Top = 1/fop)- The ballast back-end circuit 130 further comprises an output circuit, e.g., a "symmetric" resonant tank circuit 150, for filtering the square-wave voltage V SQ to produce a substantially sinusoidal high-frequency AC voltage Vs 1N , which is couoled to the electrodes of the lamp 102. The inverter circuit 140 is coupled to the

negative input of the DC bus capacitor CBUS via a sense resistor R SENSE - A sense voltage V SE N SE (which is referenced to a circuit common connection as shown in Fig. 2) is produced across the sense resistor R SENSE in response to an inverter current IINV generated through bus capacitor C BUS during the operation of the inverter circuit 140. The sense resistor R SENSE is coupled between the rectifier DC common connection and the circuit common connection and has, for example, a resistance of 1 ω.

[0033] The ballast 100 further comprises a control circuit 160, which controls the operation of the inverter circuit 140 and thus the intensity of the lamp 102. A power supply 162 generates a DC supply voltage Vcc (e.g., 5 V DC ) for powering the control circuit 160 and other low-voltage circuitry of the ballast 100.

[0034] The control circuit 160 is operable to determine a desired lighting intensity for the lamp 102 (specifically, a target lamp current I TARGET ) in response to a zero-crossing detect circuit 164. The zero-crossing detect circuit 164 provides a zero-crossing control signal Vzc representative of the zero-crossings of the phase-controlled voltage Vpc to the control circuit 160. A zero-crossing is defined as the time at which the phase-controlled voltage Vpc changes from having a magnitude of substantially zero volts to having a magnitude greater than a predetermined zero-crossing threshold V JH - ZC (and vice versa) each half-cycle. Specifically, the zero-crossing detect circuit 164 compares the magnitude of the rectified voltage to the predetermined zero-crossing threshold V JH - ZC (e-g- > approximately 20 V), and drives the zero-crossing control signal Vzc high (i.e., to a logic high level, such as, approximately the DC supply voltage Vcc) when the magnitude of the rectified voltage V RECT is less than the predetermined zero-crossing threshold V JH - ZC - Further, the zero-crossing detect circuit 164 drives the zero-crossing control signal Vzc low (i.e., to a logic low level, such as, approximately circuit common) when the magnitude of the rectified voltage V RECT is greater than the predetermined zero-crossing threshold VJH- ZC -

[0035] The control circuit 160 is operable to determine the target lamp current I TARGET of the lamp 102 in response to the conduction period T CON of the phase-controlled voltage Vpc. The control circuit 160 is operable to control the peak value of the integral of the inverter current I^v flowing in the inverter circuit 140 to indirectly control the operating frequency fop of the high-

frequency square- wave voltage V SQ , and to thus control the intensity of the lamp 102 to the desired lighting intensity.

[0036] The ballast 100 further comprises a measurement circuit 170, which provides a lamp voltage control signal V LAMP _V L T and a lamp current control signal VL AMP _ CUR to the control circuit 160. The measurement circuit 170 is responsive to the inverter circuit 140 and the resonant tank circuit 150, such that the lamp voltage control signal V LAMP _ VLT is representative of the magnitude of a lamp voltage V LAMP measured across the electrodes of the lamp 102, while the lamp current control signal V LAMP CUR is representative of the magnitude of a lamp current I LAMP flowing through the lamp.

[0037] The control circuit 160 is operable to control the operation of the inverter circuit 140 in response to the sense voltage V SENS E produced across the sense resistor R SENSE , the zero-crossing control signal Vzc from the zero-crossing detect circuit 164, the lamp voltage control signal V L λMP_V LT , and the lamp current control signal V LAMP _ CU R- Specifically, the control circuit 160 controls the operation of the inverter circuit 140, in order to control the lamp current I LAMP towards the target lamp current I TA R G ET-

[0038] Fig. 3 is a simplified schematic diagram showing the inverter circuit 140 and the resonant tank circuit 150 in greater detail. As shown in Fig. 3, the inverter circuit 140, the bus capacitor C BUS , and the sense resistor R SENSE form a push/pull converter. However, the present invention is not limited to electronic dimming ballasts having only push/pull converters. The inverter circuit 140 comprises a main transformer 210 having a center-tapped primary winding that is coupled across an output of the inverter circuit 140. The high-frequency square-wave voltage V SQ of the inverter circuit 140 is generated across the primary winding of the main transformer 210. The center tap of the primary winding of the main transformer 210 is coupled to the DC bus voltage VBUS-

[0039] The inverter circuit 140 further comprises first and second semiconductor switches, e.g., field-effect transistors (FETs) Q220, Q230, which are coupled between the terminal ends of the primary winding of the main transformer 210 and circuit common. The FETs Q220, Q230 have control inputs (i.e., gates), which are coupled to first and second gate drive circuits 222, 232,

respectively, for rendering the FETs conductive and non-conductive. The gate drive circuits 222, 232 receive first and second FET drive signals V DRV _ FETI and V DRV _ FET2 from the control circuit 160, respectively. The gate drive circuits 222, 232 are also electrically coupled to respective drive windings 224, 234 that are magnetically coupled to the primary winding of the main transformer 210.

[0040] The push/pull converter of the ballast 100 exhibits a partially self-oscillating behavior since the gate drive circuits 222, 232 are operable to control the operation of the FETs Q220, Q230 in response to control signals received from both the control circuit 160 and the main transformer 210. Specifically, the gate drive circuits 222, 232 are operable to turn on (i.e., render conductive) the FETs Q220, Q230 in response to the control signals from the drive windings 224, 234 of the main transformer 210, and to turn off (i.e., render non-conductive) the FETs in response to the control signals (i.e., the first and second FET drive signals V DR V_ FETI and V DRV _ FET2 ) from the control circuit 160. The FETs Q220, Q230 may be rendered conductive on an alternate basis, i.e., such that the first FET Q220 is not conductive when the second FET Q230 is conductive, and vice versa.

[0041] When the first FET Q220 is conductive, the terminal end of the primary winding connected to the first FET Q220 is electrically coupled to circuit common. Accordingly, the DC bus voltage V BUS is provided across one-half of the primary winding of the main transformer 210, such that the high-frequency square-wave voltage V SQ at the output of the inverter circuit 140 (i.e., across the primary winding of the main transformer 210) has a magnitude of approximately twice the bus voltage (i.e., 2 V B us) with a positive voltage potential present from node B to node A as shown on Fig. 3. When the second FET Q230 is conductive and the first FET Q230 is not conductive, the terminal end of the primary winding connected to the second FET Q220 is electrically coupled to circuit common. The high-frequency square-wave voltage V SQ at the output of the inverter circuit 140 has an opposite polarity than when the first FET Q220 is conductive (i.e., a positive voltage potential is now present from node A to node B). Accordingly, the high-frequency square- wave voltage V SQ has a magnitude of twice the bus voltage V B us that changes polarity at the operating frequency of the inverter circuit (as shown in Fig. 6).

[0042] As shown in Fig. 3, the drive windings 224, 234 of the main transformer 210 are also coupled to the power supply 162, such that the power supply is operable to draw current to generate the DC supply voltage Vcc from the drive windings during normal operation of the ballast 110. When the ballast 100 is first powered up, the power supply 162 draws current from the output of the rectifier 124 through a high impedance path (e.g., approximately 50 kω) to generate an unregulated supply voltage V UNREG - The power supply 162 does not generate the DC supply voltage Vcc until the magnitude of the unregulated supply voltage VU NREG has increased to a predetermined level (e.g., 12 V) to allow the power supply to draw a small amount of current to charge properly during startup of the ballast 100. During normal operation of the ballast 100 (i.e., when the inverter circuit 140 is operating normally), the power supply 162 draws current to generate the unregulated supply voltage V UNREG and the DC supply voltage Vcc from the drive windings 224, 234 of the inverter circuit 140. The unregulated supply voltage V UNREG has a peak voltage of approximately 15 V and a ripple of approximately 3 V during normal operation. The power supply 162 also generates a second DC supply voltage Vcc2, which has a magnitude greater than the DC supply voltage Vcc (e.g., approximately 15 VQC)-

[0043] The high-frequency square-wave voltage V SQ is provided to the resonant tank circuit 150, which draws a tank current I TANK (Fig. 4) from the inverter circuit 140. The resonant tank circuit 150 includes a "split" resonant inductor 240, which has first and second windings that are magnetically coupled together around a common magnetic core (i.e., an inductor assemblage). The first winding is directly electrically coupled to node A at the output of the inverter circuit 140, while the second winding is directly electrically coupled to node B at the output of the inverter circuit. A "split" resonant capacitor, which is formed by the series combination of two capacitors C250A, C250B (i.e., a capacitor assemblage), is coupled between the first and second windings of the split resonant inductor 240. The junction of the two capacitors C250A, 250B is coupled to the bus voltage V BUS , i e., to the junction of the diode D126, the bus capacitor CB US , and the center tap of the transformer 210. The split resonant inductor 240 and the capacitors C250A, C250B operate to filter the high-frequency square-wave voltage V SQ to produce the substantially sinusoidal voltage Vsi N (between node X and node Y) for driving the lamp 102. The sinusoidal voltage V SIN is coupled to the lamp 102 through a DC-blocking capacitor C255, which prevents any DC lamp characteristics from adversely affecting the inverter.

[0044] The symmetric (or split) topology of the resonant tank circuit 150 minimizes the RFI noise produced at the electrodes of the lamp 102. The first and second windings of the split resonant inductor 240 are each characterized by parasitic capacitances coupled between the leads of the windings. These parasitic capacitances form capacitive dividers with the capacitors C250A, C250B, such that the RFI noise generated by the high-frequency square- wave voltage V SQ of the inverter circuit 140 is attenuated at the output of the resonant tank circuit 150, thereby improving the RFI performance of the ballast 100.

[0045] The first and second windings of the split resonant inductor 240 are also magnetically coupled to two filament windings 242, which are electrically coupled to the filaments of the lamp 102. Before the lamp 102 is turned on, the filaments of the lamp must be heated in order to extend the life of the lamp. Specifically, during a preheat mode before striking the lamp 102, the operating frequency fop of the inverter circuit 140 is controlled to a preheat frequency fp RE , such that the magnitude of the voltage generated across the first and second windings of the split resonant inductor 240 is substantially greater than the magnitude of the voltage produced across the capacitors C250A, C250B. Accordingly, at this time, the filament windings 242 provide filament voltages to the filaments of the lamp 102 for heating the filaments. After the filaments are heated appropriately, the operating frequency fop of the inverter circuit 140 is controlled such that the magnitude of the voltage across the capacitors C250A, C250B increases until the lamp 102 strikes and the lamp current I LAMP begins to flow through the lamp.

[0046] The measurement circuit 170 is electrically coupled to a first auxiliary winding 260

(which is magnetically coupled to the primary winding of the main transformer 210) and to a second auxiliary winding 262 (which is magnetically coupled to the first and second windings of the split resonant inductor 240). The voltage generated across the first auxiliary winding 260 is representative of the magnitude of the high-frequency square-wave voltage V SQ of the inverter circuit 140, while the voltage generated across the second auxiliary winding 262 is representative of the magnitude of the voltage across the first and second windings of the split resonant inductor 240. Since the magnitude of the lamp voltage V LAMP is approximately equal to the sum of the high- frequency square-wave voltage V SQ and the voltage across the first and second windings of the split

resonant inductor 240, the measurement circuit 170 is operable to generate the lamp voltage control signal V LAMP _ VLT in response to the voltages across the first and second auxiliary windings 260, 262.

[0047] The high-frequency sinusoidal voltage Vsm generated by the resonant tank circuit 150 is coupled to the electrodes of the lamp 102 via a current transformer 270. Specifically, the current transformer 270 has two primary windings which are coupled in series with each of the electrodes of the lamp 102. The current transformer 270 also has two secondary windings 270A, 270B that are magnetically coupled to the two primary windings, and electrically coupled to the measurement circuit 170. The measurement circuit 170 is operable to generate the lamp current I LAMP control signal in response to the currents generated through the secondary windings 270A, 270B of the current transformer 270.

[0048] Fig. 4 is a simplified schematic diagram showing the current transformer 270 and the connections of the current transformer to the components of the resonant tank circuit 150 and the electrodes of the lamp 102 in greater detail. The lamp 102 is typically characterized by a capacitive coupling C EI , C E2 between each of the electrodes and earth ground, e.g., the junction box in which the ballast 100 is mounted or the fixture in which the lamp 102 is installed (i.e., a conductive housing of the ballast 100 that is connected to earth ground). These capacitive couplings C EI , C E2 generate common-mode currents flowing through the primary windings of the current transformer 270. The differential-mode currents flowing through the primary windings of the current transformer 270 are representative of the magnitude of the lamp current I LAMP flowing through the lamp 102 and thus the intensity of the lamp. Therefore, the primary windings of the current transformer 270 are coupled in series with each of the electrodes of the lamp 102 as shown in Fig.4, such that differential-mode currents in the electrodes of the lamp are added and common-mode currents in the electrodes are subtracted. While current transformer 270 is shown having two primary windings and two secondary windings, the current transformer could alternatively be implemented as two separate transformers, each having one primary winding and one secondary winding.

[0049] The operation of the measurement circuit 170 to generate the lamp voltage control signal V LAMP _V L T and the lamp current control signal V L AMP_ CUR in response to the currents through

the secondary windings 270A, 270B of the current transformer 270 is described in greater detail below with reference to Fig. 7.

[0050] Fig. 5 is a simplified schematic diagram of the push/pull converter (i.e., the inverter circuit 140, the bus capacitor C B U S , and the sense resistor R SENSE ) showing the gate drive circuits 222, 232 in greater detail. Fig. 6 is a simplified diagram of waveforms showing the operation of the push/pull converter during normal operation of the ballast 100.

[0051] As previously mentioned, the first and second FETs Q220, Q230 are rendered conductive in response to the control signals provided from the first and second drive windings 224, 234 of the main transformer 210, respectively. The first and second gate drive circuits 222, 232 are operable to render the FETs Q220, Q230 non-conductive in response to the first and second FET drive signals V DR VJΈTI, V DR V_FET2 generated by the control circuit 160, respectively. The control circuit 160 drives the first and second FET drive signals VD R VJ ΈTI > VDRV_FET 2 high and low simultaneously, such that the first and second FET drive signals are the same. Accordingly, the FETs Q220, Q230 are non-conductive at the same time, but are conductive on an alternate basis, such that the square-wave voltage is generated with the appropriate operating frequency fop.

[0052] When the second FET Q230 is conductive, the tank current I TANK flows through a first half of the primary winding of the main transformer 210 to the resonant tank circuit 150 (i.e., from the bus capacitor C BUS to node A as shown in Fig. 5). At the same time, a current I JNV2 (which has a magnitude equal to the magnitude of the tank current) flows through a second half of the primary winding (as shown in Fig. 5). Similarly, when the first FET Q220 is conductive, the tank current I TANK flows through the second half of the primary winding of the main transformer 210, and a current I INVI (which has a magnitude equal to the magnitude of the tank current) flows through the first half of the primary winding. Accordingly, the inverter current I 1N v has a magnitude equal to approximately twice the magnitude of the tank current I TAN K-

[0053] When the first FET Q220 is conductive, the magnitude of the high-frequency square wave voltage V SQ is approximately twice the bus voltage V B us as measured from node B to node A. As previously mentioned, the tank current I TANK flows through the second half of the primary winding of the main transformer 210, and the current I INVI flows through the first half of the

primary winding. The sense voltage V SENSE is generated across the sense resistor R SE NSE and is representative of the magnitude of the inverter current I INV - Note that the sense voltage V S EN SE is a negative voltage when the inverter current I 1N v flows through the sense resistor R SENSE in the direction of the inverter current I IN V shown in Fig. 5.

[0054] The control circuit 160 generates an integral control signal V INT , which is representative of the integral of the sense voltage V SENSE , and is operable to turn off the first FET Q220 in response to the integral control signal V 1N T reaching a threshold voltage V TH (as will be described in greater detail with reference to Fig. 9). The first FET drive signal V DRV _ FETI is coupled to the gate of an NPN bipolar junction transistor Q320 via the parallel combination of a resistor R321 (e.g., having a resistance of 10 kω) and a capacitor C323 (e.g., having a capacitance of 100 pF). To turn off the first FET Q220, the control circuit 160 drives the first FET drive signal VQ RV _ FETI high (i.e., to approximately the DC supply voltage V<χ)- Accordingly, the transistor Q320 becomes conductive and conducts a current through the base of a PNP bipolar junction transistor Q322. The transistor Q322 becomes conductive pulling the gate of the first FET Q220 down towards circuit common, such that the first FET Q220 is rendered non-conductive.

[0055] After the FET Q220 is rendered non-conductive, the inverter current I 1N v continues to flow and charges a drain capacitance of the FET Q220. The high-frequency square-wave voltage V SQ changes polarity, such that the magnitude of the square-wave voltage V SQ is approximately twice the bus voltage V BUS as measured from node A to node B and the tank current I TANK is conducted through the first half of the primary winding of the main transformer 210. Eventually, the drain capacitance of the first FET Q220 charges to a point at which circuit common is at a greater magnitude than node B of the main transformer, and the body diode of the second FET Q230 begins to conduct, such that the sense voltage V SENSE briefly is a positive voltage.

[0056] The control circuit 160 drives the second FET drive signal VD RV _ FET2 low to allow the second FET Q230 to become conductive after a "dead time", and while the body diode of the second FET Q230 is conductive and there is substantially no voltage developed across the second FET Q230 (i.e., only a "diode drop" or approximately 0.5-0.7V). The control circuit 160 waits for a dead time period T D (e.g., approximately 0.5 μsec) after driving the first and second FET drive signals Vnow π ET1 , V DRV FET2 high before the control circuit 160 drives the first and second FET

drive signals V DRV _ FETI , V DR V_FET2 low in order to render the second FET Q230 conductive while there is substantially no voltage developed across the second FET (i.e., during the dead time). The magnetizing current of the main transformer 210 provides additional current for charging the drain capacitance of the FET Q220 to ensure that the switching transition occurs during the dead time.

[0057] Specifically, the second FET Q230 is rendered conductive in response to the control signal provided from the second drive winding 234 of the main transformer 210 after the first and second FET drive signals V DR V_F E TI, V DRV _ FET2 are driven low. The second drive winding 234 is magnetically coupled to the primary winding of the main transformer 210, such that the second drive winding 234 is operable to conduct a current into the second gate drive circuit 232 through a diode D334 when the square-wave voltage V SQ has a positive voltage potential from node A to node B. Thus, when the first and second FET drive signals VDRV_FETI > VQRV_ FET2 are driven low by the control circuit 160, the second drive winding 234 conducts current through the diode D334 and resistors R335, R336, R337, and an NPN bipolar junction transistor Q333 is rendered conductive, thus, rendering the second FET Q230 conductive. The resistors R335, R336, R337 have, for example, resistances of 50 ω, 1.5 kω, and 33 kω, respectively. A zener diode Z338 has a breakover voltage of 15 V, for example, and is coupled to the transistors Q332, Q333 to prevent the voltage at the bases of the transistors Q332, Q333 from exceeding approximately 15 V.

[0058] Since the square-wave voltage V SQ has a positive voltage potential from node A to node B, the body diode of the second FET Q230 eventually becomes non-conductive. The current I πMV2 flows through the second half of the primary winding and through the drain-source connection of the second FET Q230. Accordingly, the polarity of the sense voltage V SENSE changes from positive to negative as shown in Fig. 6. When the integral control signal V INT reaches the voltage threshold V TH , the control circuit 160 once again renders both of the FETs Q220, Q230 non-conductive. Similar to the operation of the first gate drive circuit 222, the gate of the second FET Q230 is then pulled down through two transistors Q330, Q332 in response to the second FET drive signal V DRV _ FET2 • After the second FET Q230 becomes non-conductive, the tank current I TANK and the magnetizing current of the main transformer 210 charge the drain capacitance of the second FET Q230 and the square-wave voltage V SQ changes polarity. When the first FET drive signal V DRV FETI is driven low, the first drive winding 224 conducts current through a diode D324

and three resistors R325, R326, R327 (e.g., having resistances of 50 ω, 1.5 kω, and 33 kω, respectively). Accordingly, an NPN bipolar junction transistor Q323 is rendered conductive, such that the first FET Q220 becomes conductive. The push/pull converter continues to operate in the partially self-oscillating fashion in response to the first and second drive signals V DR V_ FET I, V DRV _ FET2 from the control circuit 160 and the first and second drive windings 224, 234.

[0059] During startup of the ballast 100, the control circuit 160 is operable to enable a current path to conduct a startup current I STRT through the resistors R336, R337 of the second gate drive circuit 232. In response to the startup current I STRT , the second FET Q230 is rendered conductive and the inverter current I 1 N V i begins to flow. The second gate drive circuit 232 comprises a PNP bipolar junction transistor Q340, which is operable to conduct the startup current I STRT from the unregulated supply voltage V UNREG through a resistor R342 (e.g., having a resistance of 100 ω). The base of the transistor Q340 is coupled to the unregulated supply voltage V UNREG through a resistor R344 (e.g., having a resistance of 330 ω).

[0060] The control circuit 160 generates a FET enable control signal V DRV _ ENBL and an inverter startup control signal VQ RV STRT , which are both provided to the inverter circuit 140 in order to control the startup current I STRT - The FET enable control signal V DR V E NB L is coupled to the base of an NPN bipolar junction transistor Q346 through a resistor R348 (e.g., having a resistance of 1 kω). The inverter startup control signal V DRV _ STRT is coupled to the emitter of the transistor Q346 through a resistor R350 (e.g., having a resistance of 220 ω). The inverter startup control signal VQ RV _ STRT is driven low by the control circuit 160 at startup of the ballast 100. The FET enable control signal VD RV _ ENBL is the complement of the first and second drive signals V D RV_FETI , V DRV _ FET2 , i-e-, the FET enable control signal VDRV_ENBL is driven high when the first and second drive signals V DR V FETI , VQ RV _ FET2 are low (i.e., the FETs Q220, Q230 are conductive). Accordingly, when the inverter startup control signal V DRV STRT is driven low during startup and the FET enable control signal V DRV _ ENBL is driven high, the transistor Q340 is rendered conductive and conducts the startup current I STRT through the resistors R336, R337 and the inverter current I JNV begins to flow. Once the push/pull converter is operating in the partially self-oscillating fashion described above, the control circuit 160 disables the current path that provides the startup current ISTRT-

[0061] Another NPN transistor Q352 is coupled to the base of the transistor Q346 for preventing the transistor Q346 from being rendered conductive when the first FET Q220 is conductive. The base of the transistor Q352 is coupled to the junction of the resistors R325, R326 and the transistor Q323 of the first gate drive circuit 222 through a resistor R354 (e.g., having a resistance of 10 kω). Accordingly, if the first drive winding 224 is conducting current through the diodes D324 to render the first FET Q220 conductive, the transistor Q340 is prevented from conducting the startup current I STRT -

[0062] Fig. 7 is a simplified schematic diagram of the measurement circuit 170, which comprises a lamp voltage measurement circuit 400 and a lamp current measurement circuit 420. The lamp voltage measurement circuit 400 is coupled to the series combination of the first and second auxiliary windings 260, 262, such that the magnitude of the voltage across the series combination of the auxiliary windings is representative of the magnitude of the lamp voltage V LAMP - The lamp voltage measurement circuit 400 generates the lamp voltage control signal V LAMP VLT , such that the lamp voltage control signal has a magnitude approximately equal to the peak of the lamp voltage V LAMP - The control circuit 160 determines when an overvoltage condition exits across the lamp 102, i.e., when the voltage across the auxiliary windings 260, 262 exceeds a predetermined overvoltage threshold Vovp, in response to the lamp voltage control signal V LAMP VLT - The control circuit 160 then causes the inverter circuit 140 to stop generating the high-frequency square- wave voltage V SQ in response to the lamp voltage control signal V LAMP J VLT to provide overvoltage protection (OVP) for the resonant tank circuit 150.

[0063] The lamp voltage measurement circuit 400 comprises two resistors R402, R404, which are coupled in series across the series combination of the auxiliary windings 260, 262, and have, for example, resistances of 320 kω and 4.3 kω, respectively. The junction of the resistors R402, R404 is coupled to the base of an NPN bipolar junction transistor Q406 through a diode D408. When the voltage across the series-combination of the auxiliary windings 260, 262 rises above the overvoltage threshold Vovp, the transistor Q406 conducts current through two resistors R410, R412, and charges a capacitor C414 to generate the lamp voltage control signal V LAMP _ VLT across the parallel combination of the resistor R412 and the capacitor C414.

For example, the resistors R410, R412 have resistances of 100 ω and 47 ω, respectively, and the capacitor C414 has a capacitance of 0.01 μF.

[0064] The lamp current measurement circuit 420 is coupled to the secondary windings

270A, 270B of the current transformer 270. As shown in Fig. 4, the lamp 102 is characterized by a parasitic capacitance CL coupled between the electrodes, which causes the lamp current I LAMP to have a reactive component IR EAC TIV E , such that

ILAMP = IREAL + IREACTIVE, (Equation 1) where I REAL is the real component of the lamp current. Fig. 8 is a simplified diagram showing the lamp voltage V L AMP, the real component I REAL of the lamp current I LAMP , and the reactive component I REAC TIVE of the lamp current. The reactive component IREA CTI V E of the lamp current I LAMP is 90° out of phase with the real component I REAL - Since the real component IR EA L is representative of the intensity of the lamp 102, the lamp current measurement circuit 420 integrates the currents generated through the secondary windings of the current transformer 270 during every other half-cycle of the lamp voltage V LAMP to determine the magnitude of the real component I REAL of the lamp current I LAMP - Because the real component I REAL is in phase with the lamp voltage V LAMP and the reactive component I REACTIVE is 90° out of phase with the real lamp voltage V LAMP , the integral of the reactive component IR E A CTI V E during a half-cycle of the lamp voltage V LAMP is equal to approximately zero amps. Thus, the lamp current control signal V LAMP _ CUR generated by the lamp current measurement circuit 420 is representative of only the real component IR E A L of the lamp current ILAMP-

[0065] Since the currents through the secondary windings 270A, 270B of the current transformer 270 are integrated during every other half-cycle of the lamp voltage V LAM P, the lamp current measurement circuit 420 is also coupled to the series-combination of the auxiliary windings 260, 262. Specifically, the first auxiliary winding 260 is coupled to the base of an NPN bipolar junction transistor Q422 through a resistor R424, such when the voltage at the base of the transistor Q422 exceeds approximately 1.4 V during the positive half-cycles of the lamp voltage V LAMP , the transistor Q422 is rendered conductive. The transistor Q422 then conducts current from the DC supply voltage Vcc through resistors R426, R428 and a diode D430 to circuit common. In response to the voltage produced across the resistor R428 and the diode D430, a NPN

bipolar junction Q432 conducts current through a diode D434 to limit the current in the transistor Q422. A diode D436 coupled between circuit common and the base of the transistor Q422 prevents the lamp current measurement circuit 420 from being responsive to the lamp current I LAM P during the negative half-cycles of the lamp voltage V LAMP -

[0066] The first secondary winding 270A of the current transformer 270 is coupled across the base-emitter junction of a PNP bipolar junction transistor Q438. The junction of the base of the transistor Q438 and the secondary winding 270A of the current transformer 270 is coupled to the junction of the diode D426 and the DC supply voltage Vcc- The secondary winding 270A of the current transformer 270 is electrically coupled such that the transistor Q438 is rendered conductive when the lamp current I LAMP (and thus the current through the winding 270A) has a positive magnitude. When the transistor Q422 is rendered conductive (i.e., during the positive half-cycles of the lamp voltage V LAMP ) and the transistor Q438 is conductive (i.e., the current through the winding 270A has a positive magnitude), a PNP bipolar junction transistor Q440 is rendered conductive and conducts the current from the secondary winding 270A of the current transformer 270. A diode D442 prevents the voltage at the base of the transistor Q440 from dropping too low, i.e., more than a diode drop (e.g., 0.7 V) below the DC supply voltage Vcc- When the transistor Q422 is non-conductive, the base of the transistor Q440 is pulled up towards the DC supply voltage Vcc through the resistor R426 and the transistor Q440 is rendered non-conductive.

[0067] Similarly, the second secondary winding 270B of the current transformer 270 is coupled across the base-emitter junction of an NPN bipolar junction transistor Q444, such that the transistor Q444 is rendered conductive when the lamp current I LAMP has a negative magnitude. Accordingly, when the transistor Q422 is rendered conductive (i.e., during the positive half-cycles of the lamp voltage V LAMP ) and the transistor Q444 is conductive, another NPN bipolar junction transistor Q446 is rendered conductive and thus conducts the current from the secondary winding 270B.

[0068] The lamp current measurement circuit 420 is operable to integrate the current through the secondary windings 270A, 270B of the current transformer 270 using a capacitor C448 (e.g., having a capacitance of 0.1 μF). The lamp current measurement circuit 420 further comprises two resistors R450, R452 (e.g., having resistances of 6.34 kω and 681ω, respectively) coupled in series

between the DC supply voltage Vcc and circuit common, such that the capacitor C448 is coupled between the junction of the two resistors R450, R452 and circuit common. The collectors of the transistors Q440, Q446, which are coupled together, are coupled to the junction of the capacitor C448 and the two resistors R450, R452. Accordingly, the transistors Q440, Q446 are operable to steer the current through either of the secondary windings 270A, 270B of the current transformer 270 into the capacitor C448 during the positive half-cycles of the lamp voltage V LAMP when the transistor Q422 is conductive. Thus, during the positive half-cycles of the lamp voltage V LAMP , the magnitude of the current Ic 448 conducted through the capacitor C448 is representative of the lamp current I LAMP , i.e.,

Ic448 = I270A + I27QB = β ILAMP, (Equation 2) where I 270A and I 270 B are the magnitudes of the currents through the secondary windings 270A, 270B of the current transformer 270, respectively, and β is a constant that is dependent upon the number of turns of the current transformer 270. During the negative half-cycles of the lamp voltage V LAMP , the magnitude of the current Ic 448 is zero amps.

[0069] Since the integral of the reactive component I REACTIVE during the positive half-cycles of the lamp voltage V LAMP is equal to approximately zero amps, the lamp voltage control signal V LAMP _ CUR is produced across the capacitor C448 and has a magnitude that is representative of the magnitude of the real component I REA L of the lamp current I LAM P, i-e.,

V LAM P_ C U R = (1/C 448 ) J β I LA MP dt = (Equation 3)

(1/C 448 ) β I (IREAL + IREACTIVE) dt =

(β /C 448 ) ( I IREAL dt + j IREACTIVE dt ) =

(β /C 448 ) - J I REAL dt, where the integration is taken over the positive half-cycles of the lamp voltage V LAMP -

[0070] The transistors Q422, Q432, Q438, Q440, Q446 of the lamp current measurement circuit 420 operate such that the transistors do not operate in the saturation region, which minimizes the switching times of the transistors (i.e., the time between when one of the transistors is fully conductive and fully non-conductive). The lamp current measurement circuit 420 comprises a PNP bipolar junction transistor Q454 having an emitter coupled to the collector of the transistor Q438. The transistor Q454 has a base coupled to the junction of two resistors R456, R458, which are

coupled in series between the DC supply voltage Vcc and circuit common. For example, the resistors R456, R458 have resistances of 1 kω, and 10 kω, respectively, such that the transistor Q454 is non-conductive when the transistor Q440 is conductive. However, when the transistor Q440 is non-conductive, the transistor Q454 conducts current through the transistor Q438 to prevent the transistor Q438 from entering the saturation region during the times when the current through the first secondary winding 270A has a positive magnitude. If the transistor Q438 were to enter the saturation region when the transistor Q440 become conductive, the transistor Q438 would conduct a large unwanted pulse of current through the capacitor C448.

[0071] Fig. 9 is a simplified block diagram of the control circuit 160. The control circuit 160 includes a digital control circuit 510, which may comprise a microcontroller 610 (Fig. 10A). The digital control circuit 510 performs two functions, which are represented by a target voltage control block 512 and a ballast override control block 514 in Fig. 9. The target voltage control block 512 receives the zero-crossing control signal V Z c from the zero-crossing detector 162, and generates a target voltage V TARGET , which has a DC magnitude between circuit common and the DC supply voltage Vcc and is representative of the target lamp current I JARGET that results in the desired intensity of the lamp 102. The ballast override control block 514 controls the operation of the ballast 100 during preheating and striking of the lamp 102 and may be used to override the normal operation of the ballast in the occurrence of a fault condition, e.g., an overvoltage condition across the output of the ballast. The ballast override control block 514 is responsive to the lamp voltage V LAMP and the lamp current IL AMP , and generates an override control signal V O V E RRIDE and a preheat control signal V PRE .

[0072] The control circuit 160 further comprises a proportional-integral (PI) controller 516, which attempts to minimize the error between target voltage V TARGET and the lamp current control signal V LAMP _ CUR (i.e., the difference between the target lamp current I TARGE T and the present magnitude of the lamp current I LAMP )- Step variations of the magnitude of the bus voltage V BUS while the bus capacitor C BUS is recharging may result in step variations in the magnitude of the lamp current I LAMP - The control circuit 160 compensates for variations in the bus voltage V BUS by summing the output of the PI controller 516 with a voltage generated by a feed forward circuit 518, which is representative of the instantaneous magnitude of the bus voltage VB US and has a faster

response time than the PI controller. The summing operation generates the threshold voltage V TH to which the integral control signal V INT is compared, thus causing the inverter circuit 140 to switch at the appropriate operating frequency fop to generate the desired lamp current I LAMP through the lamp 102.

[0073] The ballast override control block 514 is operable to override the operation to the PI controller 516 to control the operating frequency fop to the appropriate frequencies during preheating and striking of the lamp by controlling the override control signal V OVERRIDE to an appropriate DC magnitude (between circuit common and the DC supply voltage V<χ)- During normal operation of the ballast 100, the override control signal V OVERRIDE has a magnitude of zero volts, such that that ballast override control block 514 does not affect the operation of the PI controller 516. If the ballast override control block 514 detects an overvoltage condition at the output of the resonant tank circuit 150, the override control block is operable to control the operating frequency fop of the lamp 102 to a level such that the lamp current I LAMP is controlled to a minimal current, e.g., approximately zero amps.

[0074] The control circuit 160 receives the sense voltage V SENSE generated across the sense resistor R SENSE , and is responsive to inverter current I INV , which is conducted through the sense resistor. A scaling circuit 520 generates a scaled control signal that is representative of the magnitude of the inverter current I πMV - The scaled control signal is integrated by an integrator 522 to produce the integral control signal V INT , which is compared to the threshold voltage V TH by a comparator circuit 524. A drive stage 526 is responsive to the output of the comparator circuit 524 and generates the FET enable control signal V DRV _ ENBL - When the integral control signal VINT drops below the threshold voltage V TH , the output of the comparator circuit 524 goes high. In response, the drive stage 528 drives the FET enable control signal V DRV _ ENBL low, which resets the integrator 522. The drive stage 528 maintains the FET enable control signal V DRV _ ENBL low for the dead time period T D after which the drive stage drives the FET enable control signal high once again. A logic inverter inverts the FET enable control signal V DRV _ ENBL to generate the first and second FET drive signals V DRV _FETI, V DRV _FET2-

[0075] Figs. 1OA and 1OB are simplified schematic diagrams of the control circuit 160. As previously mentioned, the digital control circuit 510 comprises the microcontroller 610, which may

be implemented as any suitable processing device, such as a programmable logic device (PLD), a microprocessor, or an application specific integrated circuit (ASIC). The microcontroller 610 executes a normal operation procedure 800 and a startup procedure 900, which are described in greater detail with reference to Figs. 11 and 12, respectively. The microcontroller 610 receives the zero-crossing control signal Vzc and generates a first pulse-width modulated (PWM) signal V PWM i, which has a duty cycle dependent upon the target lamp current. The first PWM signal V P W M I is filtered by a resistor-capacitor (RC) circuit to generate the DC target voltage V JARGET - The RC circuit comprises a resistor R612 (e.g., having a resistance of 11 kω) and a capacitor C614 (e.g., having a capacitance of 1 μF).

[0076] The PI controller 516 comprises an operational amplifier (op amp) U616. The target voltage V JARGET is coupled to the inverting input of the op amp U616 through a resistor R618 (e.g., having a resistance of 22 kω). The lamp current control signal V LAMP _ CUR is coupled to the non-inverting input of the op amp U616 through a resistor R620 (e.g., having a resistance of 33 kω). The PI controller 516 comprises two feedback resistors R622, R624, which both have resistances of 33 kω, for example. The feedback resistors R622, R624 are coupled between the output of the op amp U616 and the inverting and non-inverting inputs, respectively. A capacitor C626 (e.g., having a capacitance of 1000 pF) is coupled between the non-inverting input of the op amp U616 and circuit common. The series combination of a resistor R628 and a capacitor C630 is coupled in parallel with the capacitor C626. For example, the resistor R628 has a resistance of 10 kω, while the capacitor C630 has a capacitance of 0.22 μF. The output of the op amp U616 is coupled in series with a resistor R632 (e.g., having a resistance of 2.2 kω).

[0077] The PI controller 516 operates to minimize the error e, between the average of the first PWM signal VPWMI and the lamp current control signal V LAMP _ CUR , i-e-, βi = VLAMP_CUR - avg[VpwM] • (Equation 4)

For the PI controller 516 as shown in Fig. 1OA, the threshold voltage V TH is generated in dependence upon the following equation:

V TH = Ap ej + A I I ei dt, (Equation 5) where the values of the constants Ap, Ai are determined from the values of the components of the PI controller 516. Accordingly, the magnitude of the threshold voltage V JH is dependent upon the

present value of the error ej and the integral of the error. The output of the PI controller 516, i.e., the threshold voltage V TH , is a DC voltage to which the integral control signal V 1NJ is compared. If the lamp current control signal V LAM P_ CU R is greater than the average of the first PWM signal V PWM I , the PI controller 516 increases the threshold voltage V TH , such that the inverter current I 1N v decreases in magnitude. On the other hand, if the lamp current control signal V LAMP _ C U R is less than the average of the first PWM signal V PWMI , the PI controller 516 decreases the threshold voltage V TH , such that the inverter current I 1N v increases in magnitude.

[0078] The output of the PI controller 516 is modified by the bus voltage V B us through the feed forward circuit 518. The feed forward circuit 518 includes two resistors R634, R636, which are coupled in series between the bus voltage V BUS and circuit common. A capacitor C638 and a resistor R640 are coupled in series between the junction of the resistors R634, R636 and the output of the PI controller 516. For example, the capacitor C638 has a capacitance of 0.33 μF, while the resistors R634, R636, R640 have resistances of 200 kω, 4.7 kω, and 1 kω, respectively. When the magnitude of the bus voltage V BUS increases, the magnitude of the threshold voltage V TH also increases, thus causing the peak value of the inverter current I 1N v (and the magnitude of the lamp current I LAMP ) to decrease. When the magnitude of the bus voltage V BUS decreases, the magnitude of the threshold voltage Vχ H also decreases, thus causing the peak value of the inverter current I πMV (and the magnitude of the lamp current I LAMP ) to increase. Accordingly, the feed forward circuit 518 helps the control circuit 160 to compensate for ripple in the bus voltage V BUS , while maintaining the lamp current I LAMP and the intensity of the lamp 102 substantially constant.

[0079] The digital control circuit 510 is operable to override the operation of the PI controller 516 during startup of the ballast 100 and during fault conditions. The digital control circuit 510 is coupled to the non-inverting input of the op amp U616 of the PI controller 516 and is responsive to both the lamp voltage control signal V LAMP _ VLT and the lamp current control signal V LAMP _ CUR - The microcontroller 610 generates a second PWM signal VpwM2, which has a duty cycle dependent upon the operating mode of the ballast 110 (i.e., either normal operation, preheat mode, strike mode, or fault condition). To achieve the appropriate operating frequency fop during startup and fault conditions, the microcontroller 610 controls the threshold voltage V TH to the appropriate levels by controlling the duty cycles of both of the first and second PWM signals V PWM I >

Vpw M 2- The microcontroller 610 generates the preheat control signal V PRE for controlling the integrator 522 during preheating of the lamp 102, and the inverter startup control signal V DR V_ STRT for starting up the operation of the inverter circuit 140 (as previously described with reference to Fig. 5).

[0080] The second PWM signal V PWM2 is filtered by an RC circuit comprising a resistor R642 (e.g., having a resistance of 10 kω) and a capacitor C644 (e.g., having a capacitance of 0.022 μF) to generate the override voltage V OVERRIDE - The PI controller 516 comprises a mirror circuit having two NPN bipolar junction transistors Q646, Q648 and a resistor R650 (e.g., having a resistance of 47 kω). The mirror circuit is coupled to the non- inverting input of the op amp U616 and receives the override voltage VOV ER R IDE from the digital control circuit 510. The mirror circuit ensures that the override voltage V O V ERRIDE only appears at the non-inverting input of the op amp U616 of the PI controller 516 if the override voltage exceeds the voltage generated at the non-inverting input of the op amp in response to the lamp current control signal V LAMP _ CUR -

[0081] Referring to Fig. 1OB, the scaling circuit 520 is responsive to the magnitude of the sense voltage V SENSE (i.e., responsive to the magnitude of the inverter current I INV of the inverter circuit 140). As shown in Fig. 1OB, the scaling circuit 520 comprises, for example, a mirror circuit comprising two NPN bipolar junction transistors Q710, Q712 having bases that are coupled together. A resistor R714 is coupled to the emitter of the transistor Q712, such that a scaled current I SCALED is generated through the resistor R714 when one of the FETs Q220, Q230 is conducting the inverter current I INV (i-e-, in the direction of one of the currents IIN VI , I INV2 shown in Fig. 5). The scaled current I SCALED has a magnitude that is representative of the magnitude of the inverter current Ii NV , for example, proportional to the inverter current. Specifically, the resistor R714 has a resistance of approximately 1 kω, such that the magnitude of the scaled current I SCALED is equal to approximately 1/1000 of the magnitude of the inverter current I 1N v- The transistors Q710, Q712 may be provided as part of a dual package part (e.g., part number MBT3904DW1, manufactured by ON Semiconductor), such that the operational characteristics of the two transistors are matched as best as possible.

[0082] Since the emitter resistances seen by the transistors Q710, Q712 are quite different, the base-emitter voltages of the transistors Q710, Q712 will not be the same. As a result, there is a

small bias current conducted through the base of the transistor Q712 even when the magnitude of the sense voltage V SENSE is approximately zero volts. To eliminate this bias current, the scaling circuit 520 comprises a compensation circuit including two PNP bipolar junction transistors Q716, Q718 (which may both be part of a dual package part number MMDT3906, manufactured by ON Semiconductor). The collector of the transistor Q710 is coupled to the collector of the transistor Q716 via a resistor R720 (e.g., having a resistance of 4.7 kω), while the collectors of the transistors Q712, Q718 are coupled directly together. The emitter of the transistor Q716 is coupled to the DC supply voltage Vcc through a resistor R722 (e.g., having a resistance of 1 kω). The transistor Q718 provides a bias current having a magnitude approximately equal to the magnitude of the bias current conducted in the base of the transistor Q712, thus effectively canceling out the bias current.

[0083] The integrator 522 is responsive to the scaled current I SCALED and generates the integral control signal V 1NT , which is representative of the integral of the scaled current I SCALED and thus the integral of the inverter current I JNV when the inverter current has a positive magnitude. A integration capacitor C724 is the primary integrating element of the integrator 522 and may have a capacitance of approximately 130 pF. The integrator 522 is reset in response to the FET enable control signal V DRV _ ENB L- Specifically, the voltage across the capacitor C724 is set to approximately zero volts at the same time the FETs Q220, Q230 of the inverter circuit 140 are rendered non- conductive by the control circuit 160. A PNP bipolar junction transistor Q726 is coupled across the capacitor C724. The base of the transistor Q726 is coupled to the FET enable control signal V DR V_E NBL through a diode D728 and a resistor R730 (e.g., having a resistance of 10 kω). When the FET enable control signal V DRV _ ENBL is pulled low (to turn the FETs Q220, Q230 off), the diode D728 and the resistor R730 conduct current through a resistor R732 (e.g., having a resistance of 4.7 kω). When the appropriate voltage is developed across the base-emitter junction of the transistor Q726, the transistor Q726 begins to conduct, thus discharging the capacitor C724 until the voltage across the capacitor C724 is approximately zero volts. A diode D734, which is coupled from the collector of the transistor Q726 and the junction of the diode D728 and the resistor R730, prevents the transistor Q726 from operating in the saturation region.

[0084] When the FET enable control signal V DRV _ ENBL is once again driven high, the capacitor C724 has an initial voltage of approximately zero volts and the integral control signal V ]NT has a magnitude equal to approximately the DC supply voltage Vcc as shown in Fig. 6. The capacitor C724 begins to charge through a resistor R735 (e.g., having a resistance of 47 ω). When the FETs Q220, Q230 begin to conduct the inverter current I JNV (i-e., in the direction of currents I INVI , I INV2 in Fig. 5), the capacitor C724 begins to charge in response to the scaled current I SCALED , which increases in magnitude with respect to time. Accordingly, the integral control signal Vi NT decreases in magnitude as a function of the integral of the scaled current I SCALED as shown in Fig. 6. The resistor R735 provides a minimum charging current to cause oscillation even when the magnitude of the inverter current I INV is approximately zero amps.

[0085] The comparator circuit 524 compares the magnitude of the integral control signal V INT and the magnitude of the threshold voltage VT H , and signals to the drive stage 526 when the magnitude of the integral control signal V 1NT decreases below the magnitude of the threshold voltage V TH - The comparator circuit 524 comprises two PNP bipolar junction transistors Q736, Q738 and a resistor R740. The resistor R740 is coupled between the emitters of the transistors Q736, Q738 and the second DC supply voltage Vcc20-6-, 15 V), and may have a resistance of approximately 10 kω. When the magnitude of the integral control signal V 1NT is greater than the magnitude of the threshold voltage V T H, the first transistor Q736 is conductive, while the second transistor Q738 is non-conductive. Accordingly, the output of the comparator circuit 524 is pulled down towards circuit common through a resistor R742 (e.g., having a resistance of 4.7 kω). When the magnitude of the integral control signal V INT decreases to less than the magnitude of the threshold voltage V JH , the second transistor Q738 is rendered conductive, thus pulling the output of the comparator circuit 524 up towards the DC supply voltage Vcc (e.g., to approximately 0.7 V).

[0086] The drive stage 526 comprises an NPN bipolar junction transistor Q744 and a resistor R746, which is coupled between the collector of the transistor Q744 and the DC supply voltage V cc, and has, for example, a resistance of 10 kω. When the output of the comparator circuit 524 is pulled up away from circuit common, the transistor Q744 is rendered conductive, thus pulling the input of a first logic inverter Q748 down towards circuit common. Accordingly, the output of the logic inverter Q748 is driven up towards the DC supply voltage Vcc and a

capacitor C750 quickly charges through a diode D752 to approximately the DC supply voltage V C c- The capacitor C750 has, for example, a capacitance of 47 pF. A second logic inverter U754 is coupled to the capacitor C750, such that the FET enable control signal V FET _ ENBL is generated at the output of the inverter U754. Accordingly, the FET enable control signal V FET _ ENBL is pulled down towards circuit common when the capacitor charges to the DC supply voltage WQ C -

[0087] The logic inverter circuit 528 simply comprises two logic inverters U758, U760, having inputs coupled to the FET enable control signal V FET _ ENBL - The output of the first logic inverter U758 generates the first FET drive signal V DR VJ ΈTI , while the output of the second logic inverter U760 generates the second FET drive signal V DR V_ FET2 -

[0088] When the magnitude of the integral control signal V INT drops below the magnitude of the threshold voltage V TH , the output of the comparator circuit 524 is pulled up towards the DC supply voltage Vcc to render the transistor Q744 conductive. The drive stage 526 then pulls the FET enable control signal V F E T _ ENBL down towards circuit common, such that the first and second FET drive signals V DR V_ FE TI, V DRV _FET2 are driven high, thus rendering the FETs Q220, Q230 of the inverter circuit 140 non-conductive. The drive stage maintains the FET enable control signal V FET _ ENBL at the logic high level for the dead time period T D after which the FETs Q220, Q230 are no longer rendered non-conductive.

[0089] Since the integrator 522 is reset (i.e., the magnitude of the integral control signal V INT returns to approximately the DC supply voltage Vcc) in response to the FET enable control signal V FET _ ENBL , the output of the comparator circuit 524 is once again pulled low towards circuit common as soon as the FETs Q220, Q230 are rendered non-conductive. The base of a PNP bipolar junction transistor Q770 is coupled to the FET enable control signal V FET _ ENBL through a resistor R756 (e.g., having a resistance of 1 kω). When the FETs Q220, Q230 are rendered non-conductive, the transistor Q770 is rendered conductive pulling the input of the first logic inverter U748 up towards the DC supply voltage Vcc through a resistor R772. The resistor R772 has a smaller resistance than the resistor R746, for example, 220 ω, such that the output of the logic inverter U748 is quickly driven towards circuit common. The capacitor C750 then discharges through a resistor R774. When the capacitor C750 discharges to the appropriate level, the logic inverter U754 drives the output hi p h such that the FETs Q220, Q230 are no longer rendered non-conductive after the dead time

period T D . For example, the resistor R774 has a resistance of 4.7 kω, such that the dead time period T D is approximately 0.5 μsec.

[0090] During preheating of the lamp 102, the microcontroller 610 is operable to control the operation of the integrator 522 using the preheat control signal V PRE . AS shown in Fig. 1OB, the preheat control signal VP RE is pulled up to the DC supply voltage V<χ through a resistor R776 (e.g., having a resistance of 10 kω), and is coupled to the base of an NPN bipolar junction transistor Q778 through a resistor R780. For example, the resistors R776, R780 both have resistances of 10 kω. During preheating of the filaments of the lamp 102, the microcontroller 610 drives the preheat control signal V PRE high, such that transistor Q778 is rendered conductive. Accordingly, the capacitor C724 is operable to additionally charge in response to a current drawn through the transistor Q778 and a resistor R782 (e.g., having a resistance of 47 kω). The additional current allows the capacitor C724 to charge faster, and causes the integral control signal V 1NT to drop below the threshold voltage V TH more quickly. Thus, the control circuit 160 is operable to control the inverter circuit 140 to achieve the appropriate high-frequency switching of the FETs Q220, Q230 at the preheat frequency fp RE during preheating of the lamp 102.

[0091] The values of the components of the integrator may be chosen to optimize the operating frequency fop when the ballast 100 is operating at low-end, i.e., at the maximum operating frequency during normal operation. As the control circuit 160 controls the intensity of the lamp 102 from low-end to high-end, the operating frequency fop changes from the maximum operating frequency to a minimum operating frequency. Since the magnitude of the threshold voltage V TH is lowest when the ballast 100 is at high-end, the capacitor C724 charges for a longer period of time until the magnitude of the integral control signal V πMT drops below the magnitude of the threshold voltage.

[0092] In order to ensure that the control circuit 160 controls the inverter circuit 140 to achieve the appropriate operating frequency fop at high-end, the integrator 522 slows down the charging of the capacitor C724 near high-end. Specifically, the integrator 522 comprises two resistors R784, R786, which are coupled in series between the DC supply voltage Vcc and circuit common, and a diode D788, coupled from the junction of the two resistors R784, R786 to the integral control signal V 1NJ . For example, the resistors R784, R786 have resistances of 3.3 kω and

8.2 kω, respectively, such that the current conducted through the diode D788 causes the capacitor C724 to charge slower if the magnitude of the integral control signal V πMT drops below approximately 2.8 V.

[0093] Fig. 11 is a simplified flowchart of the target lamp current procedure 800 executed periodically by the microcontroller 610, e.g., once every half-cycle of the AC power source 102. The primary function of the target lamp current procedure 800 is to measure the conduction period Tco N of the phase-controlled voltage Vpc generated by the dimmer switch 104 and to determine the corresponding target lamp current I TARGET that will result in the desired intensity of the lamp 102. The microcontroller 610 uses a timer, which is continuously running, to measure the times of the rising and falling edges of the zero-crossing control signal Vzc, and to calculate the difference between the times of the falling and rising edges to determine the conduction period T CON of the phase-control voltage Vpc.

[0094] The procedure 800 begins at step 810 in response to a falling-edge of the zero-crossing control signal Vzc, which signals that the phase-control voltage Vpc has risen above the zero-crossing threshold V TH - ZC of the zero-crossing detect circuit 162. The present value of the timer is immediately stored in register A at step 812. The microcontroller 610 waits for a rising edge of the zero-crossing signal Vzc at step 814 or for a timeout to expire at step 815. For example, the timeout may be the length of a half-cycle, i.e., approximately 8.33 msec if the AC power source operates at 60 Hz. If the timeout expires at step 815 before the microcontroller 610 detects a rising edge of the zero-crossing signal Vzc at step 814, the procedure 800 simply exits. When a rising edge of the zero-crossing control signal Vzc is detected at step 814 before the timeout expires at step 815, the microcontroller 610 stores the present value of the timer in register B at step 816. At step 818, the microcontroller 610 determines the length of the conduction interval T CON by subtracting the timer value stored in register A from the timer value stored in register B.

[0095] Next, the microcontroller 610 ensures that the measured conduction interval T CON is within predetermined limits. Specifically, if the conduction interval T CON is greater than a maximum conduction interval T MA X at step 820, the microcontroller 610 sets the conduction interval T CON equal to the maximum conduction interval T MAX at step 822. If the conduction interval T CON is less

than a minimum conduction interval TMIN at step 824, the microcontroller 610 sets the conduction interval T CON equal to the minimum conduction interval T MIN at step 826.

[0096] At step 828, the microcontroller 610 calculates a continuous average T AVG in response to the measured conduction interval I CON - For example, the microcontroller 610 may calculate a N:l continuous average T A V G using the following equation:

TAVG = ( N T AVG + T C ON ) / (N + 1 ). (Equation 6)

For example, N may equal 31, such that N + 1 equals 32, which allows for easy processing of the division calculation by the microprocessor 610. At step 830, the microcontroller 610 determines the target lamp current I TARGET in response to the continuous average T AVG calculated at step 828, for example, by using a lookup table. The microcontroller 610 then stores the continuous average T AVG and the target lamp current I TARGET in separate registers at step 832. If the ballast 100 is in the normal operating mode at step 834 (i.e., the lamp 102 has been struck), the microcontroller 610 adjusts at step 836 the duty cycle of the first PWM signal V PWMI appropriately, such that the average magnitude of the first PWM signal is representative of the target lamp current I TARGET and the procedure 800 exits. If the ballast 100 is not in the normal operating mode at step 834 (i.e., the lamp 102 has not been struck or a fault condition exists), the procedure 800 simply exits.

[0097] Fig. 12 is a simplified flowchart of a startup procedure 900, which is executed by the microcontroller 610 when the microcontroller is first powered up at step 910. First, the microcontroller 610 initializes the timer to zero seconds and starts the timer at step 912. Next, the microcontroller 610 preheats the filaments of the lamp 102 during a preheat time period T PRE . Specifically, the microcontroller 610 begins to preheat the filaments by driving the preheat control signal V PRE (which is provided to the integrator 822) high at step 914 and by adjusting the duty cycle of the second PWM signal V PWM2 to a preheat value at step 916. At step 918, the microcontroller 610 drives the inverter startup control signal V DRV STRT low, after the threshold voltage V TH has reached a steady state value in response to the second PWM signal V PWM2 from step 916. As a result, the operating frequency fop of the inverter circuit 140 is controlled to the preheat frequency fp RE , such that the filaments windings 242 provide the proper filament voltages to the filaments of the lamp 102. The microcontroller 610 continues to preheat the filaments until the end of the preheat time period T PRE at step 920.

[0098] After the preheat time period TPR E , the microcontroller 610 drives the preheat control signal V PRE low at step 922 and linearly decreases the duty cycle of the second PWM signal V PWM2 at step 924, such that the resulting operating frequency fop of the inverter circuit 140 decreases from the preheat frequency fp RE until the lamp 102 strikes. At step 926, the microcontroller 610 samples the lamp current control signal V LAMP _ CUR to determine if the lamp current I LAMP is flowing through the lamp 102 and the lamp has been struck. If the lamp has been struck at step 928, the microcontroller 610 drives the inverter startup control signal V DRV _ STRT high at step 930 and adjusts the duty cycle of the second PWM signal V PWM2 to zero percent at step 932, such that the resulting override voltage V OVERRIDE has a magnitude of approximately zero volts and does not affect the operation of the PI controller 516.

[0099] While the startup procedure 900 is executing, the target lamp current procedure 800 is also being executed each half-cycle of the AC power source 104, such that the target lamp current I TARGET has been determined and stored in a register. At step 934 of the startup procedure 900, the microcontroller 610 sets the duty cycle of the first PWM signal V PWM I to the appropriate level, before the startup procedure 900 exits and the ballast begins normal operation.

[0100] If the lamp has not been struck at step 928 and the duty cycle has not been decreased to a minimum duty cycle at step 936, the microcontroller 610 continues to linearly decrease the duty cycle of the second PWM signal V P W M2 at step 924. If the lamp has not been struck at step 928, but the duty cycle has reached a minimum duty cycle at step 936, the procedure 900 loops around, such that the microcontroller 610 starts over and attempts to preheat and strike the lamp 102 once again.

[0101] As previously mentioned, the dimmer switch 106 of Fig. 1 typically includes a bidirectional semiconductor switch, such as a triac, for generating the phase-controlled voltage V PC . When a typical triac is conductive, the current conducted by the triac must remain above a holding current rating of the triac for the triac to remain conductive. Therefore, when a dimmer switch 106 is coupled in series with a two-wire ballast (as shown in Fig. 1), the two-wire ballast must draw enough current to maintain the triac conductive and to ensure proper operation of the dimmer switch.

[0102] Fig. 13 is a simplified block diagram of an electronic dimming ballast 1000 according to a second embodiment of the present invention. The electronic dimming ballast 1000 comprises a

charge pump circuit 1010, which is coupled in parallel electrical connection the diode D 126 between the rectifier 124 and the inverter circuit 140. When the magnitude of the rectified voltage V RECT is less than the magnitude of the bus voltage V B U S , the charge pump circuit 1010 operates to draw a charge current Icp from the AC power source 104. Specifically, the charge pump circuit 1010 is coupled to the output of the inverter circuit 140, such that the charge pump circuit 1010 is operable to draw the charge current Icp every other half-cycle of the square-wave voltage V SQ . The charge current I CP drawn during the times that the magnitude of the rectified voltage V RECT is less than the magnitude of the bus voltage V BUS helps to prevent the current through the triac of the dimmer switch 106 from dropping below the holding current rating.

[0103] Fig. 14 is a simplified schematic diagram showing the charge pump 1010 in greater detail. The charge pump 1010 comprises two diodes D1012, D1014 connected in series across the diode D126. The charge pump 1010 further comprises a capacitor C1016 and an inductor L1018, which are coupled in series between the junction of the diodes DlOl 2, D1014 and the output of the inverter circuit 140 at the junction of the main transformer 210 and the first FET Q220 (i.e., node A as shown in Fig. 14). For example, the capacitor ClOl 6 may have a capacitance of 0.01 μF, while the inductor Ll 018 may have an inductance of 600 μH.

[0104] When the magnitude of the rectified voltage V RECT is greater than the magnitude of the bus voltage V BUS , the diode D 126 is conductive as the bus capacitor C BUS charges. However, when the magnitude of the rectified voltage V RECT is less than the magnitude of the bus voltage V BUS and the first FET Q220 is conductive, the capacitor C 1016 is operable to charge through the diode Dl 012, thus drawing the charge current I CP through the dimmer switch 106. The capacitor C 1016 charges to approximately the instantaneous magnitude of the line voltage.

[0105] When the first FET Q220 is non-conductive and the voltage across the primary winding of the main transformer 210 has a magnitude of approximately twice the bus voltage (i.e., 2 V BUS ), the capacitor Cl 016 charges to approximately the magnitude of the bus voltage V BUS and conducts an additional bus charging current I B U S through the diode Dl 014 and into the bus capacitor C BUS - Accordingly, while the magnitude of the rectified voltage V RECT is less than the magnitude of the bus voltage V BUS . the charge pump 1010 operates to periodically draw the charge current IPP through dimmer switch 106 and to conduct the additional bus charging current I BUS into

the bus capacitor C BUS to allow the bus capacitor C BUS to charge during a time when the bus capacitor C BUS would normally be decreasing in charge. The inductor LlOl 8 controls the rate at which the voltage across the capacitor Cl 016 changes in response to the changing voltage across the output of the inverter circuit 140.

[0106] Fig. 15 is a simplified schematic diagram of a lamp current measurement circuit 420' of the measurement circuit 170 according to a third embodiment of the present invention. A current transformer 270' has two primary winding coupled between the resonant tank circuit 150 and to the lamp 102 as shown in Fig. 4. However, the current transformer 270' only has a single secondary winding coupled to the lamp current measurement circuit 420'. Specifically, the secondary winding of the current transformer 270' is coupled across the base-emitter junction of a PNP bipolar junction transistor Ql 510. The junction of the base of the transistor Ql 510 and the secondary winding of the current transformer 270' is coupled to the DC supply voltage Vcc- When the lamp current I LAMP (and thus the current through the secondary winding of the current transformer 270') has a positive magnitude, the transistor Q1510 is rendered conductive, thus conducting current through a capacitor C1512 and a resistor R1514. The lamp current control signal V L A MP _ CUR generated across the parallel combination of the capacitor Cl 512 and the resistor Rl 514 is representative of the magnitude of the lamp current I LAMP - When the lamp current I LAMP has a negative magnitude, the transistor Q1510 is non-conductive, and the current through the secondary winding of the current transformer 270' flows through a diode Dl 516.

[0107] Although the present invention has been described in relation to particular embodiments thereof, many other variations and modifications and other uses will become apparent to those skilled in the art. It is preferred, therefore, that the present invention be limited not by the specific disclosure herein, but only by the appended claims.