APPARATUS FOR PROVIDING OVERLOAD PROTECTION FOR A CIRCUIT

Abstract: A method and apparatus for voltage/current overage condition protection for a lighting control circuit is presented. The method consists of a hybrid software and hardware solution to take advantage of the useful attributes of both. Overages are sensed in hardware by digital comparators, where the thresholds used as the basis for comparison are predefined in software. When an overage is detected, the circuit outputs, which are controlled by a plurality of counters, are changed by changing the source of the pulse width data used by the counters from software control to predetermined minima stored in a plurality of registers.

Description: Apparatus for providing overload protection for a circuit This invention relates generally to a method and apparatus for providing overload protection for a circuit. This invention has particular application in the protection of a digital ballast used for controlling electric lamps. Fluorescent and High Intensity Discharge (HTD) lamps are commonly controlled by an electronic ballast. The ballast drives the lamp with an alternating square wave of a particular frequency. The reason this is done is that due to the physics of such lamps, current cannot pass in one single direction continually without adversely effecting the operation of, or damaging, the lamp. As well, due to the physics and composition of the electronic ballast which drives the lamp, there are inherent limits as to the voltage which can exist across, and the current which can flow through, the ballast and the lamp. Noltages in excess of the maximum rated voltage for the lamp, as well as currents in excess of the maximum rated current for the lamp, will damage the lamp. These ratings vary with the type and robustness of the lamp in question. Accordingly, protections for an over- voltage or an over-current situation are very important in the design of lighting systems. As well, panic protection (i.e., protecting against a transient surge with extremely fast onset) and the related ability of the lamp driving circuit to automatically shut itself off, or dramatically decrease the voltage across it, and the current running through it, is necessary. The existence of protections such as these in the ballast system can potentially save the lamp and ballast, as well as peripheral equipment. Generally, electronic ballast overload protection is effected using analog comparators, where an overload protection circuit comprising analog comparators is hardwired to the lamp, and designed to continually sense the lamp voltage and the lamp current. If the value of the voltage or current is larger than a reference value built into the comparator, the comparator will output a signal to shut down the switching pulse generated by the ballast and the lamp will not be driven. Certain ballasts are microprocessor based. These microprocessor-based ballasts may also use analog comparators to detect the lamp voltage or the lamp current and shut down the switching signal when there is an overage. Alternatively, the output of the analog comparator can be sent to the central processing unit (CPU) of the microprocessor driving the lamp with a pulse width modulated (PWM) signal. The comparator output will activate a software program that will change the PWM module's settings to either shut down the switching pulse or to reduce the pulse switch so as to insure the power delivered to the lamp will be low enough to resolve the overcurrent or overvoltage condition. Therefore, in the current state of the art, electronic ballast overload protection is effected via either analog circuitry operating alone or analog circuitry operating as an auxiliary to a microprocessor; in both cases sensing is done via analog comparators; in the former case the comparators generate the signal which shuts down the switching pulse via a hardware circuit. In the latter case, the comparators signal the CPU which shuts down the switching pulse, or reduces its pulse width, driving the lamp. There are problems inherent in both methods currently used to provide overload protection for an electronic ballast. What will first be discussed is the pure hardware solution using analog comparators. The use of analog comparators for ballast failure protection is both unstable and unreliable. In the first instance, the parameters of the protection circuit are sensitive to variations in temperature and process technology, and are therefore plagued by substantial variability from the nominal values of maximum current and maximum voltage that they protect against. Additionally, even assuming that the reference voltages and reference currents in the comparators can be suitably or acceptably calibrated for the circuit in which they are used, the resulting protection circuit would not be programmable or of much use in any other circuit. Accordingly, in the analog pure-hardware protection circuit, it would only be useful for protecting against one particular voltage and one particular current limit. Such a protection circuit would neither be universal or adjustable in any sense and could not be used as a standard component of a ballast designed to control a variety of lamps and lamp driving circuits. On the other hand, using a pure software solution does gain the advantage of flexibility, in that the maximum current and maximum voltage against which the protection circuit protects can be programmable. Thus the circuit can be used with a variety of lamps and lamp driving circuits, as well as offering flexibility to change the overload maxima as noise and other conditions may warrant. All that is needed is to reprogram the CPU to change the PWM signal upon a particular condition (e.g., maximum voltage) occurring for example, if the override circuit trips at too low a voltage, then values utilized by the software can simply be changed. The hardware solution would require various component changes. The speed with which the overage decision-making process can be made in the pure-software solution is generally too slow to protect circuits from a panic or near panic situation. A panic situation is one where there is a severe current overage or a severe voltage overage running in the lamp and the protection circuit must respond immediately if the damage to the lamp is to be prevented. The CPU and software simply take too long to respond. In general, providing overload protection via analog hard wiring is inaccurate and inflexible. Providing the protection in the CPU software means that any overload condition has to be processed through the CPU, because an adjustment must be made, and a new PWM signal generated. This takes too long. As a result of the foregoing discussion, clearly a significant need exists in the art for an overload protection circuit for an electric lamp which can provide both the programmable flexibility of a software solution with the immediacy and speed that can only be currently delivered by a hardwired overload protection circuit. The above-described shortfalls of the prior art are overcome in accordance with the teachings of the present invention which relates to an apparatus and method for providing overload protection for a circuit by means of a hybrid software and hardware solution. In the preferred embodiment, this circuit is used in a digital ballast controlling electric lighting using a half-bridge power converter commonly used to control fluorescent lights. The invention can easily be expanded to a full-bridge power converter circuit used for controlling ELTD lamps. In either case the driving output is an AC pulse train. In a preferred embodiment, PWM signals are determined by the value stored in one of two registers. The value in a first register is used during normal operation. In overload conditions, a hardware digital sensor is used to directly cause the system to use the value in the second register to control the PWM signal without signaling the CPU software to adjust the PWM signal. Thus, the PWM signal is adjusted to account for the overload without the delay required for the CPU to process the overload. Nonetheless, since the overload condition is handled by changing digital values controlling a PWM signal, the flexibility of software solutions is maintained, since changing conditions only require that a different value be stored in the overload register or the digital sensor. Effectively, the pulse trains are specified and generated via hardware logic gates and stored data during overload conditions, and software instructions otherwise. An embodiment of the invention will be elucidated making use of a drawing. In the drawing, Fig. 1 shows an exemplary standard digital ballast system architecture for controlling electric lamps; Fig. 2 depicts an exemplary block diagram of the PWM and DLSP modules of a ballast system as augmented by the additional over- voltage and over-current protection components and circuitry of the invention; and Fig. 3 illustrates a current/voltage overage situation in an electric lamp being resolved in accordance with the method of the present invention. For purposes of explanation, we refer herein to pulse width modulation (PWM) switches, or high frequency switches. These switches are well known in the art for driving florescent and ELTD lamps. They operate by means of generating an alternating current square wave that is used to drive the lamp during steady state operation, as is well known in the art. The actual driving pulse in these ballasts, whose duty cycle and frequency affect the intensity or luminance of the lamp, is generated by either a single pulse generator, a half bridge power converter, or a full bridge power converter circuit. In the latter two cases (and theoretically, there could be circuits with an arbitrary number of pulse generators in them) the multiple pulses are out of phase relative to each other and are combined to generate the lamp driving pulse. Such circuits are generally known in the art. . Also for purposes of explanation, we refer to the digital lamp signal processor (DLSP) module of the digital ballast system architecture. The method and apparatus of the present invention are implemented via certain additions to and embellishments of the DLSP and PWM modules of the digital ballast system architecture for an electric lamp. A state of the art digital ballast system architecture is provided in Fig. 1. As can be seen therein, the output of the PWM is two pulse trains, which are fed through the level shifter 1003, and combined as the input to the capacitor Cl 1004, which drives the lamp 1005. The ballast can communicate to a central lighting network 1006, via a communications interface (labeled as the "Communications Protocol Control Module", or CPCM) 1007. The inventive circuit is described with reference to Fig. 2. In accordance with the preferred embodiment of the present invention, the PWM module of a digital ballast system architecture is augmented by the inclusion of a new register shown as R Min also termed the overload register. Generally, Rmin is also thought of as the overload register, since its value is used to control the light being controlled in overload condition. 2001 in Fig. 2 and the DLSP module is augmented by the addition of four new registers entitled Maxv_s 2020, Maxv_r 2021, Maxi_s 2022, Maxi_r 2023, and by two digital comparators COMPN 2024 and COMPI 2025. As is known in the art, the duty cycle of the pulse trains 2015 and 2016 control the intensity of the light. In the present invention, the idea generally is to control the duty cycle of such pulse trains in accordance with commands received through the load frequency circuit 2017 loading data into a particular register. However, when the system experiences an overload condition, or other panic condition, an immediate switch over occurs to load a specified predetermined value into the registers controlling the intensity of the light. This immediate switch over to the specified value causes the pulse train to be of such duration such that the light may be kept illuminated minimally, rather than being turned off. The switch over to the predetermined overload value however, does not occur through the microprocessor or software, but rather occurs via directly connected hardware circuitry including the appropriate logic. Turning to Fig. 2, an exemplary embodiment of the present invention is shown therein. In normal operation, the duty cycle of the pulse train on lines 2015 and 2016 combine control of the lighting parameters of the light as is known with respect to conventional techniques. The value stored in counter 2003 and 2005 determine such duty cycle, and hence control the intensity of the light. In normal operation, either a computer or a manual mode may be used to control such intensity. In either case, a signal read by the processor is utilized by load frequency circuit 2017 in order to load registers 2006 and 2004 with the appropriate value. Thus, if the lighting device is being manually controlled, turning a dimmer switch up will be detected and digitized and transmitted as a delta signal to load frequency circuit 2017. Load frequency circuit 2017 will then transmit a new appropriate value to registers 2006 and 2004. Still in normal operation, selectors 2007 and 2008 will propagate the value in registers 2006 and 2004, respectively, into their associated counters 2003 and 2005. The changed counter values will then cause a change in duty cycle of the pulses controlling the lighting device to either increase or decrease the intensity thereof. Simultaneously, with normal operation, samples of the current and/or voltage are input on lines 205 and 206. The samples are digitized by an analog to digital converter (ADC) 227. The combination of the components 205, 206 and 227, as well as items 220-226 of Fig. 2, can be thought of as a digital sensor in that they result in the constant sensing of overloads on lines 205 and 206 in a digital manner. Turning to the specifics, registers 220 and 222 store a set maximum value of voltage and current, respectively. These values correspond to the maximum values of these parameters beyond which it is desirable to invoke the overload protection. Registers 221 and 223 store the real time values of the voltage and current being monitored from the light on lines 205 and lines 206, and being received in digital form through ADC 227. The invention contemplates constantly and continually updating the value stored in registers 221 and 223 so that the system can immediately respond to an overload condition. The basic idea behind the overload protection mechanism of the present invention is to, upon detection of an overload, immediately change the selection made by selectors 2007 and 2008. Specifically, the selectors should be immediately changed in order to receive their value not from registers 2006 and 2004 respectively, but from overload registers 2001. In this manner, since overload register 2001 contains a value that will keep the light illuminated at a minimum level, the intensity of the light will be controlled at minimum level. Upon detection of an overload upon either lines 205 or 206, the value output by ADC 227 and placed into registers 221 and 223 will exceed the prespecified maximum. For exemplary purposes herein, we presume that there has been an overload in the current on line 205. Such a condition will mean that the value in register 223 will exceed the value in register 222, causing a true output from comparator 225. Such a condition, or even a voltage overload on line 206, will cause a true output on line 290. OR gate 2002 ORs the true output from line 290 with an analog comparator 2010. The analog comparator may be connected to any system which puts out a true when any other analog signal exceeds a predetermined value. For example, a temperature sensor or other device may also be involved in generating an overload condition. If the current and voltage from lines 205 and 206 are the only values being monitored for overload conditions, then analog comparator 2010, which is actually a digital output, can simply be tied to a logical true. Alternatively, OR gate 2002 could simply be eliminated, with line 290 connected to directly to point 291. In any event, presuming line 290 becomes true, the selectors 2007 and 2008 will be immediately signaled to shift operation such that the counter value loaded through into registers 2003 and 2005 will be from overload register 2001, and not from registers 2006 and 2004 as a normal operation. The register 2001 contains a value stored in advance by the system to ensure the light is maintained on with a specified and preferably minimum power. It can be appreciated from the above that through a small number of logic gates and registers, all of which can be manufactured to operate in the microsecond or even faster range, an immediate switch over can occur and the pulse trains utilized to control the lighting device can be adjusted appropriately. More specifically, upon an overload the values loaded into counters 2003 and 2005 are immediately switched to a new source, the new source being preprogrammed such that inappropriate minimal amount of light can be maintained until the overload conditions are corrected. It can be appreciated from the foregoing that the invention has the benefits of both prior art hardware and software solutions. More specifically, the invention has the benefit of hardware solutions and that it does not require processing overload conditions by software in a CPU and the resulting delay. Instead, the system immediately signals the selectors 2007 and 2008 through hardware logic gates and causes a switch over to the appropriate source for control. Nonetheless, the invention also has the advantages of software prior art solutions. More specifically, to the extent that any of the sensing components change, or different conditions arise, the overload protection offered by the circuit can be adjusted simply by changing the values and registers in 220 and 222, and changing the value in overload register 2001. Fig. 3 depicts an exemplary overage situation and its resolution occurring in a circuit such as depicted in Fig. 2, utilizing the method of the present invention. The top plot is the voltage and current (normalized to the same amplitudes), and the bottom plots are the output of each of the counters TI and T2, i.e. the signals Gl 300 and G2 310. Note that the Gl signal pulse 300 goes high at the beginning of a period. The G2 signal 310 is out of phase with the Glsignal, and goes high midway through the period. This relationship between the Gl and G2 signals is generally known as symmetrical pulses. There are a variety of alternate modes under which the phase, polarity, and frequency attributes of the signals Gl and G2 can be generated, which are well known in the art. For simplicity, the symmetric pulses mode will be used here as an example. The dotted horizontal line in the voltage/current plot of Fig. 3 is the threshold above which an overload condition is signaled by the comparators (COMPN 224 and COMPI 225 in Fig. 2). At the beginning of the third period, Gl pulse 303 triggers an overload condition, at the time where the veritcal line TT' crosses the time axis. This causes two things to occur. First, the pulse 303 is halted at this time, regardless of whether the pulse has yet reached the stored minimum pulse width. This is to insure that the overload condition resolves, by delivering no power at all to the lamp for a predetermined time period. As can be seen, the voltage/current thus drops to zero. In this example, where symmetric pulses are used, the time period will be at least half of a period. This halting of all pulses is effected by means of a latch, either handled in software, or in hardware logic, in the Mode, Frequency, non-overlap time control circuit 2017 in Fig. 2, and precludes any oscillation in the voltage delivered to the lamp (due to the overload signal going low as soon as the voltage/current goes below the threshold, and the voltage delivered to the lamp then going high again). Fig. 2 indicates where the overload signal is fed into said control circuit 2017, at point 295. The dotted second half of the pulse 308 shows what it would have been without the overload protection being effected. Secondly, due to the overload condition, the comparators' output signal has selected the Rmin register 2001 (Fig. 2) as the source of the pulse width information used by the counters, and thus (after the predetermined time period of no pulses has expired) the minimum pulses 305 are output, immediately reducing the power and the voltage/current in the lamp. As a result of the now minimum width pulses, the voltage/current in the lamp is now at a minimum value 307. The dotted curve 306 on the voltage/current plot in Fig. 3 indicates where the values would have been were it not for the overload protection. The minimum pulses continue to be output until some predetermined time (not shown in Fig. 3) has elapsed, when, with reference to Fig. 2, the control circuit 2017 again selects Registers Rl 2006 and R2 2004 as the pulse width data sources of the counters TI 2003 and T2 2005. This time interval is controlled by the control circuit 2017 itself under control of the microcontroller, and can be implemented in either software or hardware. While the foregoing describes the preferred embodiment of the invention, it is understood by those of skill in the art that various modifications and variations may be utilized, such as for example, using the invention in circuits that have any waveform as driving outputs, both ac and dc, and the extension of the circuit of the preferred embodiment to any number of output signals, each with one or more hardware and software data sources. Such modifications are intended to be covered by the following claims.

Claims: CLAIMS: 1. A circuit for controlling a lighting device comprising: input terminals for connection to a supply voltage source a circuit part P coupled to the input terminals for generating a lamp current out of a supply voltage supplied by the supply voltage source, said circuit part P comprising at least one switching element, a control circuit coupled to a control electrode of the switching element supplying a pulse train (2015, 2016) to said switching element for rendering said switching element alternately conducting and non-conducting , the shape of the pulse train determining the light output of the lighting device; - an overload protection circuit comprising only hardware causing the shape of the pulse trains to be controlled from a first value in a first register (2006, 2004) during normal operation of said lighting device, and from a second value in a second register (2001) during an overload condition. 2. A circuit as claimed in claim 1, wherein the circuit part P comprises a further switching element, a further control circuit coupled to a control electrode of the further switching element supplying a further pulse train (2015, 2016) to said further switching element for rendering said further switching element alternately conducting and nonconducting, the shape of the pulse train and the shape of the further pulse trains determining the light output of the lighting device; and wherein the overload protection circuit causes the shape of the further pulse train to be controlled from a first value in a first register (2006, 2004) during normal operation of said lighting device, and from a second value in a second register (2001) during an overload condition. 3. A circuit as claimed in claim 1 or 2, wherein the overload protection circuit comprises a selector to load the first value from the first register into a counter during normal operation and to load the second value from the second register into the counter during an overload condition, the value present in the counter controlling the shape of the pulse train. 4. A circuit as claimed in claim 1, wherein the overload protection circuit comprises at least one logic gate. 5. A circuit as sclaimed in claim 1, wherein the overload protection circuit comprises at least one comparator. 6. A circuit as claimed in claim 1 , comprising a microprocessor for controlling what value is stored in the first register. 7. A circuit as claimed in claim 6, wherein software controlling the microprocessor sets predetermined tresholds defining the overload conditions and stores said tresholds in at least one memory element. 8. A circuit as claimed in claim 7, wherein the circuit comprises one or more hardware sensors which test for the predetermined tresholds defining an overload condition. 9. A circuit as claimed in claim 8, comprising a preventor to prevent pulses from being generated for a predetermined time interval at the beginning of the overload condition. 10. A circuit according to claim 9, wherein the preventor comprises a latch circuit.

Inventors: WANG SHENGHONG, WANG, SHENGHONG
Applicants: KONINKL PHILIPS ELECTRONICS NV, KONINKLIJKE PHILIPS ELECTRONICS N.V.
Application year: 2001
Main classification: H01G
IPC codes: H01G9, H05B41