Abstract:
A PWM current control circuit that determines whether a start-up time, during which an decreased current is being drawn, for a load has elapsed and providing a switch that supplies current to the load with a control signal that limits the current being drawn if the start-up time has not elapsed and providing a standard PWM control signal from a microcontroller if the start-up time has not elapsed. Excessive inrush current during the start-up period of the load is avoided while the current is maintained to be within a predetermined range during start-up and after the start-up time has elapsed the control is again turned over to the microcontroller.

Description:
FIELD OF THE INVENTION 
     The present invention relates generally to a Pulse-Width Modulator (PWM) control circuit for controlling the electrical current level of a modulated output signal of a PWM circuit. More particularly, the invention relates to a circuit for controlling the current supplied to a load device, or devices, during a start-up period of the device(s) as well as subsequent to the start-up period. 
     BACKGROUND OF THE INVENTION 
     A PWM is a device that can provide the necessary drive signals required by various types of electronic devices. A PWM circuit works by generating a square wave with a variable ON/OFF ratio, the average ON time may be varied from 0 to 100 percent. In this manner, a variable amount of power is transferred to the device being driven. 
     A PWM voltage conversion system offers a relatively simple control algorithm, simple circuit structure and low cost. A PWM controller is typically configured to drive one or more main switches, such as a Field-Effect Transistors (FET), and provides a pulsed voltage signal to the transistor. When the pulsed voltage signal is in one state, i.e., a high state, the transistor is turned ON, allowing current to flow to the load. Alternatively, when the pulsed voltage signal is in another state, i.e., a low state, the transistor is turned OFF and current is prevented from flowing to the load. The ratio of ON time to signal period is referred to as the duty cycle of the drive signal. The duty cycle of the PWM drive signal, thus, determines the average amount of current and, hence, power supplied to the load. 
     For the most part, when designing a PWM drive circuit, the main consideration lies in the simplicity of the design. This is not necessarily the case, however, when the PWM converter is responsible for supplying power to, for example, tungsten filament lamps or DC motors. 
     In regard to tungsten filament lamps, due to the physical characteristics of tungsten, the resistance of the filament when it is cold is much smaller than its resistance when the tungsten is hot. Accordingly, during a start-up period, when the lamp is first energized and the filament is cold, the small cold resistance leads to a large inrush current in the filament. For example, in a situation where a 42/14 volt PWM converter is used, the inrush current to the filament could be 70 amps, due to the amplitude of the voltage pulses, i.e., 42 volts, as opposed to an inrush current of 25 amps for systems using a 14 volt PWM converter. The huge inrush current could significantly shorten the useful life of the lamp and may lead to big voltage fluctuations on the power bus. 
     Accordingly, in order to add usable life to filament lamps, there have been attempts to limit the inrush current to the filaments. One method provides a current control means to the conventional 42/14 volt PWM converter. According to this method, the inrush current can be limited to a level that is about the same as that in a 14 volt DC system, thereby assisting in prolonging the lifetime of the lamp. 
     A PWM is used to provide pulsed voltage or current to the switch driver. Compared to a DC system, during the start up period, the pulsed energy supplied by a PWM system in a unit time is smaller. The smaller power, however, introduces longer start up time, i.e., the time from the start of lamp energization until the lamp is fully illuminated. In some applications, i.e., automotive break lamps, a long start up time leads to a delay in the lamp providing whatever it is that it is intended to indicate. This condition is not acceptable for many applications and represents another significant drawback in conventional PWM conversion systems. 
     Similar drawbacks to the ones mentioned above for tungsten filament lamps occur when PWM converters are used to drive DC motors. For example, in a 42/14 volt system, where a 42 volt DC power supply and a 14 volt DC motor are used, the large voltage supplied from the power supply causes a large inrush current to flow in the motor. This large inrush current can cause a shock to the mechanical structures and/or large interference in the electrical systems associated with the motor. By limiting the output of the PWM converter in a similar fashion to the method for limiting the output for the lamp, discussed above, the start up of the motor is delayed, which can cause disastrous effects. 
     Therefore, a system whereby a low inrush current during start up is supplied and then control is returned to the PWM controller is desired. 
     SUMMARY OF THE INVENTION 
     In view of the aforementioned problems with the conventional approach to PWM converter control, the present invention comprises a simple control circuit that provides a short start up time for devices such as tungsten filament lamps and DC motors, provides a low, controlled, inrush current to these devices and, automatically detects the end of the start up period and returns control back to the PWM controller. 
     In order to achieve the main objective of the invention, a preferred embodiment in accordance with the present invention provides a device comprising a controller operable to receive input voltage signals and generate a PWM output signal in accordance with a predetermined duty-cycle, a current control device operable to receive the PWM output signal and generate a driver input signal. The current control device can further comprise a start-up detector operable to determine when a start-up time for the load has elapsed and a start-up time limit device operable to set up a start-up animate time and maintain the start-up detector in an operable state until the start-up animate time has elapsed. The device may also include a driver that receives the driver input signal and outputs a driver output signal that is a modified version of its input signal, and a switch device connected to the driver that can receive the driver output signal and supply power to the load in accordance with the driver output signal. 
     Prior to a start-up time being detected, a control signal from the controller is masked by a chopping signal that is synchronous with the current being drawn by the load as the current fluctuates between a minimum level and a maximum level. Thus, during the start-up time, the current drawn by the load is not permitted to exceed a certain amount. However, because the load is supplied with pulses of energy, wherein the level of the pulses are not reduced, as in the conventional art, the start-up time of the load is not significantly reduced. After the start-up time of the load has been reached, the controller is once again handed control and the standard PWM control signal generated by the controller is used to supply the load with current. Accordingly, a fast start-up time can be achieved without the detrimental effects of a large current being drawn through the load during start-up. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The object and features of the present invention will become more readily apparent from the following detailed description of the preferred embodiments taken in conjunction with the accompanying drawings in which: 
     FIG. 1 is a circuit schematic illustrating the implementation of a preferred embodiment of the invention. 
     FIG. 2 is a timing diagram illustrating the respective timing of signals associated with the circuit components of FIG.  1 . 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     FIG. 1 illustrates a circuit in accordance with a preferred embodiment of the invention. The circuit shown in FIG. 1 comprises three main sections, a PWM controller  1 , a current control circuit  4 , and a collection of switches and loads  2 . A current control start up PWM system in accordance with the present invention can be a single channel system, whereby one PWM control system circuit supplies drive signals to corresponding switches and loads, or it can be a multi-channel system, whereby several circuits similar to the one depicted in FIG. 1 provide drive signals to several switches and loads. In order to simplify the discussion, only a single channel system is shown in FIG.  1 . 
     In FIG. 1, the PWM controller  1  comprises a microcontroller  9 , a current sensor  10  and a switch driver  11 . The PWM controller generates a PWM waveform in accordance with a predetermined frequency. The microcontroller  9  receives an input voltage signal and outputs a signal based on the input signal with a predetermined duty-cycle. The microcontroller can be any kind of suitable commercial product as long as it can compute duty cycle, generate PWM patterns and enable/disable related channels carrying the PWM waveforms. The current sensor  10  is shown as a shunt resistor, however, it can be any device capable of sensing current and providing the switch driver  11  with its necessary input signal, as described hereafter. Current sensor  10  converts the current passing through it to a voltage and provides the voltage to the switch driver  11 . Switch driver  11  is shown as a high side N channel MOSFET driver with current limit function, but is not so limited. Switch driver  11  can turn the main switch on and off depending on the magnitude of the current sensor signal. 
     The main switches and loads  2  comprise switch components, such as power MOSFETs  8 , and a load  12 , or loads, such as an automotive tungsten filament lamp. The switches turn power ON and OFF to the load in accordance with the waveform signals provided by the microcontroller  9 . 
     During the start-up period of the load, for example, the period of time when the energy is first applied to the load from an OFF condition until the time when the load has reached a stable operating condition, Current control circuit  4  masks the regular PWM signals, controls the current flowing to the driver to be within a predetermined range, detects the current and compares the detected current to a predetermined current threshold to determine whether the stable load operating condition has been reached, thus ending the start-up period. Current control circuit  4  comprises a PWM masker  5 , a start-up time detector  6  and a start-up time limit device  7 . 
     The PWM masker  5  is a logical OR operable device. However, it is not necessarily limited to an OR gate. A skilled artisan would understand ho w to use alternative circuit comprises a monostable multivibrator U 2 A, a resistor R 19  and a capacitor C 2 . The electric time constant established by R 19  and C 2  determines a delay time that is longer than the time it takes for the load current to switch from a preset current threshold. The start-up time limit device  7  comprises a monostable multivibrator U 2 B, a resistor R 20  and a capacitor C 3 . The electric time constant established by R 20  and C 3  determines a start-up animate time. The start-up limit device enables the start-up detector  6  operation in the animate time, then disables the start-up time detector  6  operation during the steady operating condition. 
     The following is a description of the operation of the circuit shown in FIG.  1  and how the timing diagram shown in FIG. 2 corresponds to the signals shown in FIG.  1 . Referring to FIGS. 1 and 2, at some point in time, prior to t 1 , CH. EN., the signal at test point TP 6  (S.TP 6 ), goes high, i.e., it becomes “active.” On the rising edge of S.TP 6 , the monostable multivibrator U 2 B is triggered. As a result, the signal at test point  7  (S.TP 7 ) goes high, making another monostable multivibrator U 2 A exit out of RESET state. At time t 1 , the signal at test point  1  (S.TP 1 ) goes high, thus starting a PWM pulse, shown in FIG. 2 by the rising edge of signal S.TP 1 , at time t 1 . S.TP 1  is presented to one of the inputs of logic OR gate U 3 A and, thus, creates the signal S.TP 3  at the output of U 3 A. S.TP 3  is input to a MOSFET driver U 1  that creates an output signal shown on test point  4  (S.TP 4 ). At the rising edge of signal S.TP 4 , main switch  8  is turned ON and current is permitted to flow through the switch. Main switch  8  is shown in FIG. 1 to be a power MOSFET, but can be any suitable switch device that permits energy in the form of current and/or voltage to be created at its output. 
     The FET drain current ID begins to rise due to parasitic inductance in the circuit. Meanwhile, the signal (S.TP 4 ) at the output of Driver U 1  is presented to level shifter circuit  3 , shown in FIG. 1, for example, as a circuit comprising resistors R 1  and R 11  and a Zener diode D 1 . The resulting signal, at test point  5  (S.TP 5 ), is a TTL level signal which triggers monostable multivibrator U 2 A, making the signal at test point  2  (S.TP 2 ) go high, thereby masking the signal at test point  1  (S.TP 1 ). 
     At time t 2 , current ID reaches a predetermined maximum level, current limit I T . At the same time, the current limit function that is internal to driver U 1  forces S.TP 4  and, hence, S.TP 5 , to go low, regardless of the state of S.TP 3 . The low level of S.TP 4  turns off main switch  8  and current I D  begins to fall smoothly due to parasitic inductance. 
     At time t 3 , before monostable multivibrator U 2 A returns to a stable state (illustrated by a low level on S.TP 2 ), the current I D  reaches a predetermined minimum current limit I B . The current limit function internal to driver U 1  makes S.TP 4  and S.TP 5  go high again while S.TP 3  also remains high. On the rising edge of S.TP 4  and S.TP 5 , monostable multivibrator U 2 A is re-triggered. The re-triggering of U 2 A keeps S.TP 2  in a high state for a predetermined delay time t D . From t 3  to t 5 , because of the start-up inrush current, characteristic of tungsten lamps, for example, I D  can always reach I T  each time main switch  8  is turned on. Therefore, as the current I D  fluctuates back and forth between I B  and I T , the signal at test point  5  (S.TP 5 ) pulses, or chops, and triggers U 2 A repeatedly. The repeated triggering of U 2 A keeps S.TP 2  high until time t 5 , provided t D  is greater than t R +t F ; where t R  is the rise time of I D , or the time it takes for I D  to go from I B  to I T , and t F  is the fall time of I D , or the time it takes for I D  to go from I T  to I B . To simplify the analysis, even though it is not necessarily the case, one can assume that t R =t F  and that t R /t F  equals (I T −I B ) divided by the rate of change of the current in the circuit. This relationship is illustrated in equation 1 below.                (            I   D            t       )          (       t   R     =       t   F     =              I   T     -     I   B                I   D            t                  )             (equation 1)                                
     Because S.TP 2  remains high prior to t 5 , the regular PWM signal, S.TP 1 , is masked by the OR gate  5  and S.TP 3  stays high due to S.TP 2  remaining high. In other words, from t 1  to t 5 , Current control circuit  4  controls the main switch&#39;s ON and OFF states using the built-in current limit function of MOSFET driver U 1 . Accordingly, the circuit works as a current source, which supplies waved current to the load. 
     At time t 5 , the current I D  falls below the lower limit I B . Further, because S.TP 3  remains high, the MOSFET driver U 1  will make S.TP 4  and S.TP 5  go high, turning on the main switch  8  and re-triggering U 2 A. Due to the filament resistance increasing as the filament temperature rises, the power supply reaches a point where it cannot provide enough inrush current to the filament, due to the hot resistance (R HOT ) at the set voltage. The current I D  continues to drop until it reaches a steady current I s , where I s =V PS /R HOT ; where V PS  is the power supply voltage. Because I D  cannot reach the top current limit I T , S.TP 4  and S.TP 5  stop pulsing, or chopping. U 2 A then leaves the temporary stable state when the predetermined delay time t D  has lapsed after the last triggering at t 5 . 
     At time t 6 , the predetermined delay time t D  has elapsed. Therefore, S.TP 2  goes low releasing the masked regular PWM signal S.TP 1 , signifying the completion of the start-up period. From this point forward, the PWM controller regains control of the drive signals and the main switches are driven in accordance with the PWM signals developed by the microcontroller. 
     At time t 7 , S.TP 1  goes high in accordance with a predetermined duty cycle. On the rising edge of S.TP 1 , the monostable multivibrator U 2 A is triggered, thus, making S.TP 2  go high. Due to the current (I D ), flowing in the main switch  8 , being equal to the steady state current, I S , S.TP 4  and S.TP 5  follow S.TP 1  without chopping and no pulses are generated that retrigger U 2 A. S.TP 2  goes low when time delay t D  has elapsed and because the time delay t D  is short, relative to the predetermined PWM duty cycle, it has no effect on the regular PWM signal S.TP 1 . S.TP 4  follows a regular PWM duty cycle, from t 7  on, until the predetermined start-up time has elapsed. 
     By the time t 11  has been reached, the predetermined start-up time has elapsed and the monostable multivibrator U 2 B goes back to a stable state. When S.TP 7  goes low, U 2 A goes into RESET state once again until the channel enable signal (CH.EN) is activated again. The RESET condition of U 2 A forces S.TP 2  low regardless of its present state and U 2 A is thus prevented from masking regular control signal from the microcontroller. 
     Additionally, when the PWM controller detects a short circuit, by whatever means available, it provides a SHORT signal (S.TP 8 , active low) to one of the two inputs of an AND gate U 4 A. The low S.TP 8  will reset U 2 A immediately to clear the mask signal S.TP 2  in any case and return control to the PWM controller.