REGULATED POWER SUPPLY

Abstract: A power supply includes a digital controller (10) which generates pulse-width modulated control signals for controlling the duty cycles of switching transistors (36) for the purpose of regulating the output voltage of the power supply. In order to generate the control signals, the controller includes an adding circuit arranged to add a digital value representing a standard pulse-width modulated control signal to another digital value dependent on the difference between successive digital values each representing an instantaneous value of an output voltage level of the power supply. The controller also includes circuits for controlling a starting up routine for the power supply and for selecting an operating switching frequency. Since the controller is digital in construction, integrated circuit chips may be used so that the power supply is of simple construction and of low cost.

Description: REGULATED POWER SUPPLY Technical Field This invention relates to a regulated power supply. The invention is concerned in particular with a regulated power supply having a feedback control arrangement. Background Art Analog feedback control systems have certain disadvantages. For example, both short and .long term stability problems have been experienced with such sys¬ tems because of component drift. Also, problems may be experienced with such systems from the point of view of reliability, package size and overall cost. Further, analog systems may not be flexible enough to adapt to widely varying applications. Disclosure of the Invention It is an object of the present invention to provide a regulated power supply which is simple in construction and low in cost, and which is readily adapted to different needs. According to the invention there is provided a power supply including input means, output means and switching means coupling said output means to said input means, characterized by first generating means for gen- erating a succession of first digital values each rep¬ resenting an instantaneous value of a voltage level of said output means, second generating means for gener¬ ating second digital values dependent on the difference between successive first digital values, third gener- ating means arranged to generate pulse-width modulated control signals for controlling the operation of said switching means in order to regulate the output of the power supply, and adding means arranged to receive a third digital value representing a standard pulse-width modulated control signal for the required power output OMPI of the power supply and arranged to generate a fourth digital value by adding said third digital value to said second digital value, said fourth digital value serving to control the width of said control signals. It should be understood that since a power supply in accordance with the invention incorporates a control arrangement which is digital in construction integrated circuit chips may be used, thereby making it possible to achieve a power supply of simple construc- tion and low cost. Brief Description of the Drawings One embodiment of the invention will now be described by way of example with reference to the accom¬ panying drawings, in which: Figs. 1A and IB taken together disclose a partial block diagram and schematic drawing of a regu¬ lated power supply in accordance with the pres.ent inven- • tion; Fig. 2 is a block diagram of the digital controller of the power supply of Fig. 1? Figs. 3A-3H inclusive taken together disclose the logic circuits for generating pulse-width modulated control signals used in regulating the output level of one of the power output sections of the power supply; Fig. 4 is a diagram showing the manner in which Figs. 3A-3H inclusive are arranged with respect to each other; Figs. 5A and 5B taken together disclose logic circuits for generating control and clock signals used in regulating the power supply; Fig. 6 is a diagram showing the manner in which Figs. 5A and 5B are arranged with respect to each other; Fig. 7 shows various wave shapes associated with the preferred embodiment; Fig. 8 discloses further logic circuits used in the power supply; OMPI Figs. 9A-9C inclusive taken together disclose a flowchart of the operation of the digital controller; Fig. 10 is a diagram showing the manner in which Figs. 9A-9C inclusive are arranged with respect to each other to form the flowchart; Figs. 11A-11E inclusive show various wave shapes and an I M curve associated with the preferred embodiment; and Figs. 12A-12C inclusive show further wave shapes associated with the preferred embodiment. Best Mode for Carrying Out the Invention Referring now to Figs. 1A and IB, the power supply shown therein includes an A.C. input 22 (Fig. 1A) coupled to a conventional full-wave bridge rectifier 24. Also included in the power supply are terminals 26 and 28 shunted by a filter capacitor 30 in a manner that is well-known in the art to provide an unregulated D.C. output at the terminals ' 26 and 28. Connected to the terminals 26 and 28 by means of conductors 32 and 34 are conventional power switches 36 comprising switching transistors (not shown) which are operated 180° out of phase by switching control signals 0, and #-, appearing on the conductors 38 and 40 to alternatel drive the upper and lower half windings of the primary winding 42 of the transformer 44. As will be explained more fully hereinafter, the regulation of the power supply output level appearing at the primary winding 42 of the trans¬ former 44 will be controlled by altering the duty cycle of the 01 and 2 control signals appearing on the con- ductors 38 and 40. Associated with the transformer 44 are three secondary windings 46-50 inclusive (Fig, IB), each associated with a power output circuit generally indi¬ cated by the numerals 52-56 inclusive. The circuit 52 will have a power output of 5 volts, the circuit 54 will output 12 volts, while the circuit 56 will output 24 OMPI volts. Since each of these power output circuits are of the same construction, only circuit 52 will now be described in detail. In a manner that is well-known in the art, each of the power output circuits 52-56 inclu- sive includes a full-wave rectifier circuit including the rectifying diodes 60 and 62 and a current sensing transformer 64 coupled to the output of the diodes 60 and 62 by means of conductors 66 and 68 for generating the magnetic flux in the transformer 64. The conductors 66 and 68 are connected to a terminal 70 at which will appear a voltage level B-, . As seen in Fig. IB, connected to the terminal 70 is a power filter circuit comprising a choke 74 and a capacitor 76. The choke 74 is connected to an output terminal 78 at which appears the voltage level A, of the output circuit. The capacitor 76 is shunted across the terminal 78 and a terminal 80 con¬ nected to a ground conductor 82. The conductor 82 is connected to the center tap 84 of the winding 46. The current sensing transformer 64 has asso- ciated therewith a secondary winding 81 connected to ground through the conductor 82. The other end of the winding 81 is connected over conductor 86 to a signal conditioner 88 comprising a plurality of R.C. circuits which reduce proportionately the level of the input signal appearing on the conductor 86 to a voltage level which may be used by CMOS integrated circuit elements located in a digital controller 90. Appearing on conductor 86 is a signal C. representing the level of the current flowing in the transformer 64 and which is transmitted to the signal conditioner 88. As shown in Fig. IB, the voltage level signals B. appearing at the terminal 70 are transmitted to the signal conditioner 88 over conductor 92 while the voltage level signals A., appearing at the terminal 78 are transmitted over conduc- tor 94 to the conditioner 88. In a similar manner, the current and voltage level signals of the power output circuits 54 and 56 are also connected to the conditioner OMPI 88. The resulting voltage signals V RJ , b^ and 1^ (Fig. 1A) generated fay the conditioner 88 and representing the input signals A 1 , B, and C. respectively of the circuit 52 are transmitted over conductors 96 to the digital controller 90, enabling the controller to regulate the output of the power supply in accordance with the signals received from the conditioner 88. As shown in Fig. 1A, the transformer 44 has disposed thereon a secondary winding 98 which is connec- ted by means of conductors 100 and 102 to a second signal conditioner 104 which is similar in construction and operates in the same manner as that of the signal conditioner 88. The secondary winding 98 will generate a pair of balance signals B sl (Fig. 9A) and B S2 (Fig. 9B) over the conductors 100 and 102. These signals, as will be described more fully hereinafter, will be used in reducing the effect of the magnetizing current flow in the transformer 44 due to the unequal volt-second drive from the operation of the switching transistors 36. Also connected to the signal conditioner 104 is a conductor 106 connected to the terminal 26 from which a power loss signal (PLS) is generated representing the condition of a bulk voltage level of 150 volts to 300 volts developed at the output of the rectifier 24. This signal is used by the digital controller 90 in detecting a power failure. The signal conditioner 104 will output the balance signals VB1 (Fig. 9C) and VB2 (Fig. 9D) over conductors 110 and 108 and the signal PLS over conductor 112 to the digital controller 90. The controller 90 in response to the signals appearing on the conductors 108-112 inclusive will then enter into a power up sequence characterized as a "soft start se¬ quence" enabling the operation of the power supply to start in a manner that will be described more fully hereinafter. Prior to receiving the signal PLS, the controller 90 is reset at this time. When the signal PLS goes high, indicating that the output voltage level of the rectifier 24 has reached 78% of its normal value, the power signal V__ appearing on conductor 115 is applied to the controller 90 enabling the controller for operation. After being reset, the controller will initi¬ ate a delay of 60 ms. or 3 power line cycles. When the delay is complete, a dynamic regulation of the power supply will commence. The switching control signals 0, and 0 appearing on the conductors 38 and 40 and which are generated in the digital controller 90 will begin switching at a 5 percent minimum duty cycle period which duty cycle period will be incrementally increased after a predetermined time period has elapsed. This switching action will continue until an overcurrent is detected in the transformer 64 (Fig. IB), upon the detection of an overcurrent condition, the signals J2L and j?- will start switching at a second predetermined or constant minimum duty cycle until the overcurrent condition is removed at which time the signals 0. and 0- will resume switching . at the duty cycle existing prior to the detection of the overcurrent condition. This soft start operation con¬ tinues until the voltage level A. appearing at the terminal 78 in the power output circuit 52 reaches 90% of its normal value or until 100 ms. from the beginning of the switching operation has elapsed, whichever occurs first. If the predetermined voltage level A., occurring at terminal 78 is reached first, the controller continues its soft start operation for another 20 ms. (or 1 power line cycle) and then commences a static regulation mode of operation. When the controller is operating in the static regulation mode, the duty cycles of the switching sig¬ nals 0. and 2 are continuously adjusted based on the voltage levels A^ ^ and B- L appearing at the terminals 78 and 70 respectively in the power output circuit 52 to ' maintain a plus or minus 1 percent static regulation and plus or minus 2 percent dynamic regulation of the power output circuit 52 (Fig. IB). During the static regula¬ tion mode, the controller continuously monitors the feedback data generated by the signal conditioner 88 and will stop the generation of the signals 0, and 0- upon sensing the occurrence of a system fault. At this time, the controller will disconnect its own power, leaving a diagnostic data latch and the circuitry associated with the signal PLS operational. The diagnostic data latch will be accessible by a serviceman at a later time. The controller has the capability to display the fault isolation condition on a plurality of light-emitting diodes for a period of 20 seconds when enabled. As will be described more fully hereinafter, the controller 90 will output a high signal PFS (power fail sense) over conductor 114, (Fig. 1A) , indicating the occurrence of a power loss. The controller 90 will also receive a manually selected signal DCL over conduc¬ tor 116 selecting either a single ended or double ended rectification mode of operation of the power system. When selected for a single ended operation, the maximum duty cycle of the switching signals 0, or 0 2 shall be reduced to 66 percent of their value in the double ended operation. A manually selected signal DFPS appearing on conductor 118 selects either a 20 KHz. or 40 KHz. switch- ing frequency while a signal DSPR appearing on conduc¬ tor 120 is a reset signal to the serial readout diagnos¬ tic output latches (not shown). Also, after a power system shutdown, the controller 90 is arranged to output over conductor 119 a signal DSPO which is transmitted to a LED display 154 (Fig. 2) for fault identification. Referring now to Fig. 2, there is shown a block diagram of the digital controller 90. The control¬ ler 90 will regulate the power supply output by altering the duty cycle of the 0^ and 0 2 signals for the power transistor switches 36 (Fig. 1A) . This information is contained in the power level signals A, and B, appearing at the terminals 78 and 70 of the power level circuit OMPI 52 (Fig. IB). By monitoring the power supply output voltage present at these terminals, the controller can adjust the 0, and 0- duty cycle up or down to counter¬ act the change in the output voltage of the power output circuit 52 (Fig. IB). The linear control equation used in the present embodiment during a static regulation mode is given as follows: TPW = T n +T 3 where TPW is a calculated total pulse width of the switching signals 0., and 0_; T Q is equal to a nominal pulse width for the given power supply and T_ is equal to a pulse width correction. The nominal pulse width T Q which is fixed for the given supply which in this present embodiment is 5 volts, can be calculated by the following equation: V OR " V IN X DC and DC is equal to T /T, where is equal to the output voltage to be regulated; V " is equal to the input voltage to the power filter appearing at the terminal 70 (Fig. IB); DC is equal to the duty cycle; T Q is equal to on time, and T is equal to switching period. For a 5 volt power supply with a 12 volt input, DC is equal to 5/12 = .4166 = 41.66% And for 40 KHz. (25 microseconds) switching frequency, the nominal pulse width, T Q which is equal to T equals .4166 x 25 microseconds which is equal to 10.415 microseconds. The pulse width correction T, is calculated by: where: K. and 2 are scaling factors which in the present embodiment are represented by 2 and 8 respec- tively; d Q is equal to the digital equivalent of the output voltage to be regulated which in the present embodiment is 5 volts; OMPI d is equal to the digital equivalent of the present sample of the output voltage; and d. is equal to the digital equivalent of the preceding sample of the output voltage. To assure that the 0, and 2 switching signals will never be on simultaneously, a 5 percent deadband is provided so that the duty cycle of both the 0. and 0 2 signals is less than 45 percent. As shown in Fig. 2, the digital power control- ler 90 includes a weighting circuit 130 enabling the value of the power output level signals V , appearing on line 96 (Fig. 1A) to be offset and scaled to make use of all the codes available at the output of an analog/ digital converter 132 for the output voltage range of the power output circuit 52, namely 4.125V to 5.5V. The output of the circuit 130 is transmitted to the analog/digital converter 132 which converts the analog voltage signals into proportional digital signals. These' digital signals are then transmitted to a pulse width calculator circuit 134 for calculating the pulse width of the switching signals 0, and 0 2 which signals are then outputted over conductors 38 and 40 from a programmable interval timer 136 to the switching trans¬ istors 36 (Fig. 1A) . Associated with these circuits is a control logic and sequencing circuit 138 for logically operating the circuits 134 and 136. Also included in the controller 90 is a clock circuit 140 for generating the various clock signals used in the operation of the controller, together with a strobe generator circuit 142 for use in sensing the occurrence of a fault condition within the power system. Further included in the con¬ troller 90 is a reference voltage source 144 whose level may be adjusted by the signals MD and MD and which is used in the weighting circuit 130 together with level detectors 146 for sensing the various power levels occurring in various elements of the controller. A fault diagnostic and strobe latch 148, together with a - U £ OMPI fault encoder 150, fault diagnostic output latches 152 and the LED display 154 constitute the diagnostic cir¬ cuit associated with the controller. Referring now to Figs. 3A-3H inclusive, there is shown a logic diagram of the weighting circuit 130, the analog/digital circuit 132, the pulse-width calcula¬ tor circuit 134, the programmable interval timer circuit 136 and the strobe generator circuit 142 (Fig. 2) of the controller 90. As seen in Fig. 3A, the current sense transformer 64 associated with the 5 volt power output circuit 52 (Fig. IB) is coupled to the output conductors 66 and 68 of the diodes 60 and 62 (Fig. IB) through which the current generated by the transformer 44 (Fig. 1A) flows. Connected between the terminal 78 and the terminal 70 is the choke 74 (Fig. IB). At terminal 70 will appear the output level A., of the circuit. This signal A. representing the voltage level of the power supply during a sampling period is transmitted over conductor 94 to the non-inverting (+) input of a LM124 scaling operational amplifier 160 (Fig. 3B) , whose output voltage pulse V Q is transmitted over conductor 164 to the analog input of a MP7570 analog/digital con¬ verter 166 (Fig. 3A and 3E) . The operational amplifier 160 receives over conductor 168 a reference voltage V outputted by an LM124 operational amplifier 170. The reference voltage V is a function of the voltage level originally appearing at the terminal 70 (Fig. IB) and varies with the line voltage 172. This signal b, appearing on conductor 96 is controlled by a negative 5.66 voltage pulse appearing on the input 174, allowing the reference voltage signal V_ to correspond to the line voltage. The output of the amplifier 170 is direc¬ ted to the inverted input of an LM124 operational ampli¬ fier 176, which inverts the reference voltage V . This inverted signal is then outputted over conductor 178 to the voltage reference input of the A/D converter 166 (Figs. 3A and 3E) . The A/D converter 166 receives over conductor 180 the signal START (Fig. 7F) initiating the operation of the A/D converter, in addition to the 320 KHz. clock signals (Fig. 7A) over conductor 132. The A/D converter will output over conductors 186 and 188 an 8 bit binary word representing the present sample of the voltage level of the power circuit representing the term d in the regulation equation previously cited. The voltage level output of the power circuit is sampled at a 50 microsecond rate with the resulting 8 bit words out¬ putted over conductors 188 to a pair of MC14175B regis¬ ters 190 (Fig. 3A) and 192 (Fig. 3E) for storage therein. The four least significant bits of the data word output¬ ted over conductors 188 are inputted into the register 190 while the four most significant bits are stored in the register 192. As the 8 bit word representing the present value d of the power level is being outputted by the A/D converter 166, the value of the previous sampled level is stored in the registers 190 and 192 representing the previous data d, . The present data d also appears on the output lines 186 of the A/D converter 166 and is loaded into the B input of a pair of CD4008B binary adders 194 and 196 (Figs. 3A and 3E) and into the A input of a pair of CD 4008B binary adders 198 and 200 (Fig. 3E) . The adders 194 and 196 will receive at their A input the previous binary data stored in the registers 190 and 192 over conductors 202 enabling the adders 194 and 196 to produce the term d-d. by performing a two's complement subtraction operation while the adders 198 and 200 will receive at their B input an 8 bit binary word from source 201 and transmitted over conductor 203 (Fig. 3E) which is the two's complement of the value d Q enabling the adders 198 and 200 to produce the term d-d Q by performing a two's complement subtraction operation. In the present example, the binary word appearing on line 203 and generated by the source 201 is the value of 5V in the two's complement forr. repre- senting the normal output of the power supply circuit 52 (Fig. IB). The binary output of the adders 194-200 inclu¬ sive (Figs. 3A and 3E) are outputted over conductors 204 to a pair of CD4008B adders 206 (Fig. 3B) and 208 (Fig. 3F) which combine both input terms to output in a two's complement form the term (d-d Q )+4(d-d, ) . In order to arrive at the term 4(d-d,), the binary bits outputted by the adders 194 and 196 are shifted two places when inputted into the adders 206 and 208. The term (d-d Q )+ 4(d-d,) is outputted over conductors 210 to the A input of a pair of CD4063B. comparators 212 (Fig. 3B) and 214 (Fig. 3F) which also receive at their B input a binary word from a pair of CD 40257B selector circuits 216 (Fig. 3B) and 218 (Fig. 3F) . As previously described, the duty cycle of- the switching control signals 0. and 0- will have a 5 percent deadband to provide that the duty cycle of both signals shall be less than 45 percent. As will be described more fully hereinafter, the controller 90 will initiate a soft start operation of the power supply in which the pulse width of the switching control signals 0, and 0- is slowly increased until the power output of the cir¬ cuit reaches 90% of the normal output. As part of this operation, there is sequentially generated on conductor 211 a plurality of binary words each successively repre¬ senting a larger pulse width for the switching signals 0, and 2 and which constitute the upper limit of the pulse width. These binary signals are inputted into the A input of the selector circuits 216 and 218. The B input of the selector circuits 216 and 218 will have a binary value representing one-half of the 5 percent lower limit. The selector circuits 216 and 218 are operated by a selecting signal appearing on the input conductor 220. This selecting signal enables the selector circuits 216 and 218 to output over conductors 217 the upper or lower duty cycle limit in accordance with the output level of the power supply. The selec¬ ting signal is derived from a signal generated by the Q output of a flip-flop 226 (Fig. 3E) which in turn re¬ ceives at ' its D input an output signal generated by an operational amplifier 228 (Fig. 3A) representing the level of the current appearing in the output transformer 44. As shown in Fig. 3A, the current sense trans¬ former 64 has winding 81 for generating a signal repre- senting the level of the current appearing in the power circuit. This signal is transmitted to a bridge recti¬ fier 230 which will output a D.C. voltage pulse to the non-inverting (+) input of a LM124 operational amplifier 228. The output voltage signal of the amplifier 228 representing an overcurrent condition or an undercurrent condition of the circuit is transmitted over conductor 234 to the D input of the flip-flop 226 (Fig. 3E) and, upon the clocking of the flip-flop by the clock signal TS- appearing on conductor 236, is transmitted over line 238 to a gate circuit which includes an AND gate 240 and an OR gate 242. The OR gate 242 in addition to the signal appearing on conductor 233 from the AND gate 240 receives the output signal over conductor 235 from a gate circuit which includes the AND gates 239, 241, 243 and 245 and the OR gate 247. The gate circuit receives the control signal PM appearing on conductor 437 (Figs. 3E and 8) which is low during the operation of the power supply. The signal PM is transmitted through an OR gate 251 (Fig. 3E) , over conductor 439 to the AND gate 240 (Fig. 3F), and through the inverter 249 to the AND gate 245. This gate circuit generates a signal in response to the level of the carry out signals generated by the adders -194-208 inclusive thereby enabling the signal outputted by the OR gate 242 to select a value repre- senting the pulse-width word which is within the limits of 2.5 and 22.5 percent of the duty cycle. If the output signal appearing on the conductor 220 is high "^JR£ OMPI indicating the existence of an overcurrent condition, the selectors 216 and 218 will be operated to output the binary word representing the lower limit appearing at the B input which is equivalent to 2 1/2 percent of the duty cycle. In a similar manner, if the voltage level of the power supply is at a level which represents an under¬ current condition, the selector circuits 216 and 218 will be operated by a low signal on conductor 220 to output a binary word representing an upper limit for controlling the switch control signals 0- and 0- . As will be explained more fully hereinafter, this binary word has a pulse width greater than 5 percent duty cycle but equal to or less than 45 percent duty cycle depending on the binary word transmitted over conductor 211 and appearing at the A input of the selector cir¬ cuits 216 and 218 at this time. These signals appearing on output conductors 217 of " the selectors 216 and 218, together with the current term appearing on the output conductors 210 of the adders 206 (Fig. 3B) and ' 208 (Fig. 3F) are inputted into the CD 4063 comparators 212 (Fig. 3B) and 214 (Fig. 3F) , which compare, the present term with the selected limit and output the appropriate signals over the output conductors 244 and 246 to a logic gate circuit comprising the AND gates 248-252 inclusive and the OR gate 254. The output of the AND gate 252 is connected to the select inputs of a pair of CD40257B selector circuits 256 (Fig. 3B) and 253 (Fig. 3F). The selector circuits 256 and 258 enabled by the control signal appearing on the output conductor 259 of the AND gate 252, select the binary word appearing on conductors 217 representing the selected liz.it or in the case where the calculated data appearing on conduc- tor 210 is between the upper and lower limits, the calculated data itself. As may be seen from Fig. 3B, the A^ bit input and the 3, bit input of the selector circuit 256 are tied to ground resulting in the binary bits appearing on the input conductors 210 and 217 being shifted one bit position when loaded into the selectors 256 and 258, thereby enabling the output signals of the selectors 256 and 258 to represent the term 2[(d-d Q )+ 4(d-d.)]. This term represents the pulse-width correc¬ tion term T, in the previously cited total pulse-width equation and will appear on the output conductors 260 of the selector circuits 256 and 258 for transmission to the A input of a pair of CD4008B adder circuits 262 and 264 (Fig. 3C) . Appearing at the B input of the adder circuits 262 and 264 from a source 263 during a static regulation mode is a binary value in the one's complement form representing the nominal pulse-width for a 5 volt power supply corresponding to the term T Q in the pre¬ viously-cited pulse-width equation. The adder circuits 262 and 264 will output over conductors 266 the binary word TPW representing the total pulse width of the switching control signals 0, and 0- to a pair of regis- ters 268 and 270 (Fig. 3C) for storage therein under the control of the clocking signal START (Fig. 7F) appearing on conductor 180. The registers 268 and 270 will output the binary word representing the total pulse-width word TPW over conductor 272 to a pair of CD4008B adders 274 and 276 (Fig. 3C) whose output value will be implemented in accordance with a balancing operation which will now be described. As is well-known in the art, a long-term imbalance in the transformer 44 (Fig. 1A) results in a buildup of the magnetizing current due to the unequal volt-second drive from the power switches 36 (Fig. 1A) . In order to eliminate this buildup of the magnetizing current, the controller 90 provides positive and nega¬ tive threshold detectors such that the output pulse- width signal appearing on the conductors 272 of the registers 268 and 270 is increased/decreased upon the detection of each threshold of opposite sign. The -^υR≤A", OMPI effect of the balance correction on the pulse modulating signal is shown in Fig. HE. A change of 8 percent in the duty cycle is selected which represents a volt- second imbalance greater than normally expected in the driver electronics. This is done so that the slope of change in the magnetizing current (I.,) is as independent of the drive electronics as possible. An I.. negative and positive threshold which is 30 percent of the maximum magnetizing current level is selected which is well below the necessary level of saturation. When the forced buildup of the magnetizing current reaches the positive threshold, a voltage comparator is toggled and the controller 90 subtracts (Fig. 12B) a count represent¬ ing 4 percent of the duty cycle from the phase of the clock which made it toggle and adds 4% of the duty cycle (Fig. 12A) to the other phase of the clock making a total change of 8% in the duty cycle of the switching control signals 0 Λ and 0-. This action forces the I M curve to walk down as illustrated in Fig. HE until . the opposite threshold is reached where the process is reversed causing the I M curve to walk up as shown in Fig. HE. It will be seen that this arrangement prevents the I M curve from ever reaching the saturation level of the transformer 44. The signals for controlling this balancing operation are generated by a pair of EXCLUSIVE OR gates 280 and 282 (Fig. 3C) which receive the control signal FLIP (Fig. 8) on conductor 284 and the clock signal FLIP CLOCK (Figs. 5B and 12C) on conductor 286 which originate in the signal conditioning circuit 104 (Fig. 1A) . The operation of the gates 280 and 282 will either add or subtract a binary word with respect to the binary word appearing at the A inputs of the adders 274 and 276. With the signal MODE being always low, the adders 274 and 276 will add the B input to the A input when the input signals to the gate 280 are the same and subtract when the signals are different. As a result of this operation, the adders 274 and 276 will output a pulse width which has a DC (Figs. 12A and 12B) added to one of the 0. and 0- control signals and subtracted from the other control signal which affects the I M curve (Fig. HE) in the manner described previously. The output binary word representing the total pulse-width from the adders 274 and 276 is transmitted over conductors 275 to a pair of CD4069 selector circuits 290 and 292 (Fig. 3C) which will output over conductors 294 and 296 respectively a binary word representing the pulse-width value when operating at a switching fre¬ quency of either 20 KHz. or 40 KHz. The selectors 290 and 292 are operated by a manually selected frequency selection signal appearing on conductor 300 which will be low when 20 KHz. is selected as the switching fre¬ quency or high when the 40 KHz. is selected. The output binary bits of the selectors 290 and 292 are transmitted through a series of special inverters 302 providing a CMOS to TTL compatible level shift and inversion of the binary bits from the one's complement form to obtain the true data for use with the TTL construction of a pair of 74LS191 binary counters 304 and 306 (Fig. 3D). The counters are preset by the binary signals received over conductors 294 and 296 to initiate a counting sequence in which the counters 304 and 306 will count down to zero. Upon reaching zero, the counters 304 and 306 will output control signals over conductors 301, 303 and 305 and through the gates 308-318 inclusive to the clear input of a pair of 74LS74 flip-flops 320 and 322 (Fig. 3H), thereby clearing the flip-flops. At the time the clock signal FLIP CLOCK (Figs. 5B and 12C) went high enabling the adders 274 and 276 (Fig. 3C) to add the DC binary word to the total pulse word, the flip-flop 320 is clocked by the clock signal ST (Fig. 71) appearing on conductor 321. The clearing of the flip-flop 320 in the manner described above determines the pulse width of the 0, switching control signal appearing on the 0, output conductor 38. The clock signal FLIP CLOCK identifies the switching oper¬ ation corresponding to the 0. and 0 2 control signals. As best seen from Fig. 12C, the clock signal FLIP CLOCK has a 50 us. time period and a 50% duty cycle. During the 25 us. high portion of the signal FLIP CLOCK, the signal 0- is active while during the next 25 us. when the signal FLIP CLOCK is low, the signal 0 2 is active. Whether to add or subtract the DC binary word to the clock signals 0, or 0_ is controlled by the signal FLIP. When the- signal FLIP CLOCK appearing on conductor 286 (Fig. 3C) is high and the signal FLIP appearing on conductor 284 is high, the gate 280 will output a low signal and the gate 282 a low signal. These signals enable the adders 274 and 276 (Fig. 3C) to add the DC binary word to the total pulse width of the control signal 0.. If the signal FLIP CLOCK is low while the signal FLIP is high, the gates 280 and 282 enable the adders 274 and 276 to subtract the DC binary word from the total pulse width of the control signal 0- . By changing the pulse width of the control signals 0, and 2 in this manner, the curve of the magnetizing current I M is forced to walk up as shown in Fig. HE until the upper threshold is reached at which time a balance comparator 283 (Fig. 8) will output the low signal FLIP over conductor 284 to the EXCLUSIVE OR gate 280 (Fig. 3C) . This condition will reverse the operation des¬ cribed above forcing the I curve of the magnetizing current to walk down (Fig. HE) until the lower thres- hold is reached enabling the circuit to again reverse the operation in the manner described above. This arrangement prevents the magnetizing current from reach¬ ing the saturation level of the transformer 44. The switching control signals 0, and 0- are also transmitted over conductors 324 and 326 (Fig. 3H) to one input of a pair of AND gates 328 and 330 (Fig. 3H) which also receive input signals from a strobe generating circuit comprising the 74193 binary counters 332 and 334 (Fig. 3G) . The counters 332 and 334 are ' preset by the pulse-width data appearing on the output conductors 294 and 296 from the selectors 290 and 292 (Fig. 3C) and which are transmitted over the cable 333 (Fig. 3D). The binary data is shifted one position to the right when loaded into the counters 332 and 334 which divides the inputted data by two. The counters 332 and 334 are operated to output a control signal over con- ductor 335 when the counters reach a count which is one half the count of the counters 304 and 306 (Fig. 3D), thereby enabling the AND gates 328 and 330 to generate a strobe pulse which goes high in the middle of the 0, and 0- clocking pulses. The operation of the AND gates 328 and 330 is controlled by the operation of a pair of flip-flops 340 and 342 (Fig. 3H) . The flip-flops 340 and 342 are clocked by the 5 MHz. clock signals appearing on conductor 309 and transmitted through a NAND gate 337 enabled when the flip-flops are cleared. ' The flip- flops 340 and 342 are cleared by the appearance of the control signal on the conductor 335 from the counter 334 with the outputs of the flip-flops 340 and 342 being gated over conductors 343 and 345 through a NAND gate 344 (Fig. 3H) and the AND gate 346. The gate 346 outputs a strobe pulse STB over conductor 348 in addition to the strobe pulses STB1 and STB2 appearing on the output conductor 350 and 352 respectively of the AND gates 328 and 330 during the time the 0, and 2 signals are active. The strobe signals appearing on conductors 348, 350 and 352 are used in the diagnostic circuit of the power supply. Since the diagnostic operation of the power supply does not form part of the present invention it will not be described in further detail herein. Referring now to Figs. 5A and 5B, there is shown the timing circuit for generating the various ' control signals used in the operation of the power supply. As shown in Fig. 5A, a 5 MHz. clock signal OMPI generated from a 5 MHz. oscillator (not shown) is trans¬ mitted over conductor 309 into the clock input of a SCL4029 4-bit divide-by-sixteen counter 362 which divides the input clock signal by 16 to output over conductor 182 the 320 KHz. clock signals (Fig. 7A) . The conductor 182 is coupled to the clock input of a MC14163 4 bit divide-by-sixteen counter 364 which will output over its output conductors 365 the 20 KHz. clock signals (Fig. 7E) to a gate circuit which includes the NOR gates 366-370 inclusive, the NAND gates 372 and 374, the AND gate 376, together with the NOR gates 378-382 inclusive (Fig. 5B) and the NAND gates 384 and 386 which circuit outputs over conductor 387 the 4 bit clock signals into a CD40257 selector 390. The selector 390 is operated by the frequency selection signal which appears on conduc¬ tor 300 and which is manually generated by the operator to select either a 20 KHz. or 40 KHz. switching fre¬ quency. The frequency selection signal will be high if a 40 KHz. frequency is selected- or low if a 20 KHz. frequency is selected. This signal will operate the selector 390 to output over lines 391 the selected clock pulses to a plurality of level shift gates 394 which shift the level of the CMOS input signals to a voltage level enabling the TTL circuits to operate. Appearing on the output conductor 321 of the gates 394 is the control signal ST (Fig. 71) which is used to clock the flip-flop 320 (Fig. 3H) to output the switching control signal 0.. (Fig. 12A) . Appearing on the output conductor 236 is the clocking signal TS " (Fig. 7G) used to clock the flip-flop 322 (Fig. 3H) for out- putting the second switching control signal 0- (Fig. 12B) . As may be seen from an examination of Fig. 7G and 71, and Fig. 12A and- 12B, the switching control signals -^ and 0 2 are generated 180° out of phase with each other. Appearing on the output conductor 286 of the selector 390 is the signal FLIP CLOCK (Fig. 12C) which is inputted into the EXCLUSIVE OR gate 280 (Fig. 3C) for MPI controlling the addition and the subtraction of the counts representing the DC to the pulse width word during a balancing operation. Appearing on the output conductor 307 is the signal L " D (Fig. 7H) which loads data into the counters 304 and 306 (Fig. 3D) enabling the switching control signals 0. and 0 2 to be outputted by the flip-flops 320 and 322 (Fig. 3H). The 20 KHz. signal (Fig. 7E) appearing on one of the output conductors 365 of the counter 364 (Fig. 5A) will clock a CD4020 timer 402 (Fig. 5A) which will output clocking signals over its output conductors 404 to a pair of AND gates 406 and 408 whose output signals will be transmitted over conductors 410 and 412 to a pair of CD 4013 D-type flip-flops 414 and 416. Appearing on the Q output conductor 418 of the flip-flop 414 will be the inhibit signal INH which, as shown in Fig. 7K will go high at the time the controller is reset by the reset signal RST (Fig. 7J) and will go low 60 ms. after the signal RST goes low. As will be described more fully hereinafter, this 60 ms. delay allows the controller to condition the switching of the transistors to occur after the controller has been reset. Appearing on the Q and Q outputs of the flip-flop 416 will be the power up signal PWRUP appearing on conductor 422 and the inverted power up signal PWRUP (Fig. 7L) appearing on conductor 422. After 100 ms. has elapsed, the output count of the timer 402 which appears on the input of the AND gate 408 enables the gate to output a clocking pulse to the flip- flop 416 resulting in the signal PWRUP going high. The signal PWRUP going high notifies the controller 90 (Fig. 1A) that the power supply has failed to reach 90% of its normal output within the 100 ms. time period. In response to this signal, the controller will shut down the power up operation. Also included in the timing circuit of Figs. 5A and 5B is a reset circuit which includes a NAND gate 424 powered by a 12 volt power supply 426 tied to ground through a 4.7K resistor 428 and a 4.7 uF capacitor 430. CM?I Further included in the reset circuit is a NAND gate 427 which receives the output signal from gate 424 and the output signal from a further NAND gate 429. The NAND gate 429 receives the power loss sense signal PLS appear- ing on conductor 112 (Fig. 1A) and the Q output of the flip-flop 414 over conductor 433. The signal PLS (Fig. 8) will go high when the bulk voltage appearing on the output of the bridge rectifier 24 (Fig. 1A) reaches 78% of a reference voltage enabling the NAND gates 427 and 429 to output over conductor 431 the reset signal RST to reset various circuits in the controller. Also included in the timing circuit is a CD4029 timer 428 (Fig. 5A) which is clocked by a clock signal appearing on the output line 404 from the timer 402 and which is transmitted through the NAND gates 432 and 434. The timer 428 will output the control signal REG (Fig. 7N) which initiates a power-up sequence and which occurs 20 ms. after the control signal PM (Figs. 7M and 8) appear¬ ing on the input conductor 436 to the NAND gate 432 goes high. The control signal PM goes high when the power supply has reached 90% of its normal value within 100 ms. of the time the power supply started its switching oper¬ ation. Otherwise it indicates an unsuccessful attempt -to provide a power-up operation. Once the signal PM goes high, it initiates a soft start operation for another 20 ms. after which the timer 428 will output a low signal over conductor 438 which is inverted by the NAND gate 440 (Fig. 5B) to provide the signal REG on conductor 442. Further included in the timing circuit is a CD4029 binary counter 425 (Fig. 5B) which is clocked by a signal appearing on the conductor 421 and transmitted from the output line 404 of the timer 402 (Fig. 5A) . The counter 425 will generate over the output conductors 211 a plurality of consecutively higher binary numbers, each comprising a value representing a percentage of the duty cycle of the power supply and which is used, when OMPI inputted into the selectors 216 (Fig. 3B) and 218 (Fig. 3F), as the upper limit of the pulse width of the switch¬ ing control signals 0, and 0 2 during a soft start opera¬ tion as will be described more fully hereinafter. Referring now to Fig. 8 of the drawings, there are shown the logic circuits for detecting the occurrence of an overvoltage or undervoltage condition of the power supply together with the circuits for generating the control signals FLIP and PLS. Included in the circuit are a pair of LM139 operational amplifiers 446 and 448 which compare the voltage output of the power supply represented by the signal V_. appearing on the output conductor 96 (Fig. 1A) of the signal conditioner 88 with a reference voltage. This binary signal V . is inputted into the inverting (-) inputs of the amplifier 446 and 448 which receive at their non-inverting inputs (+) a reference voltage level representing the threshold voltage level which determines an overvoltage or under¬ voltage condition. A 12 volt power supply 450 supplies voltage to a 2K pot resister 452 which in turn supplies a reference voltage to the amplifier 446 the level of which is 112%-125% of the normal value of the power output circuit 52 which in the present example is 5V. A voltage drop network comprising resistors 454-458 inclu- sive provides a reference voltage to the amplifier 448 which will output a high signal over conductor 460 when an undervoltage condition exists. If an overvoltage condition exists, the amplifier 446 will output over conductor 462 a low signal to one input of a NAND gate 464 whose other input receives a high signal appearing on the output conductor 466 of an overvoltage fault flag generator comprising a CD40192 counter 468. The NAND gate 464 when receiving the low signal over conductor 462 will output a high signal to the timer 468 which outputs the overvoltage signal OVF over conductor 466 after a 2 us. delay. The signal OVF will remain high until the counter is reset by the signal RST appearing on the conductor 426. The counter 468 is clocked by 2.5 MHz. clock signals appearing on conductor 470 and which are transmitted through the AND gate 472 enabled by the high signal appearing on the conductor 466. The high signal appearing on the output conductor of the ampli¬ fier 448 is also outputted into one input of a NAND gate 474 which receives over conductor 420 the low signal PWRUP (Fig. SB) enabling the NAND gate 474 to clock a CD4013 D-type flip-flop 476 which outputs over the Q output conductor 436 the signal PM (Fig. 7M) . As previously described, the signal PM enables the timer 428 (Fig. 5A). to output the signal REG (Fig. 7N) after a 20 ms. delay. The signal PM appearing on the output conductor 436 is also inputted into a NOR gate 480 which receives the PWRUP signal transmitted over conductor 420 to the inverter 482 and which is high when the level of the power supply has not reached 90% of its rated output within 100 ms. after the start of a power up sequence. The NOR gate 480 will output the high signal FPU over conductor 484 indicating the condition that the power output of the circuit 52 (Fig. 1) has not reached its rated output. In response to the generation of this signal, the controller 90 will shut down the system. Also disclosed in Fig. 8 is the circuit for the generation of the signal FLIP used in the balancing circuit shown in Fig. 3C and the signal PLS used in resetting the controller after the bulk voltage level has reached 78% of the normal output of the power supply. Included in the circuit is the LM139 operational ampli¬ fier 283 which acts as a comparator and which receives over its input conductors 108 and 110 (Fig. 1A) the balancing signals VB1 (Fig. HC) and VB2 (Fig. 11D) . Upon the I M curve in Fig. HE reaching a predetermined positive region of the magnetizing current, the signal FLIP will go high. When the curve reaches a predeter¬ mined negative region of the magnetizing current, the signal FLIP will go low. Also included in the circuit is an operational amplifier 490 which receives over conductor 492 a 2.5V reference voltage and the level of the bulk voltage at the output of the bridge rectifier 24 (Fig. 1A) . This signal appears on conductor 106 (Fig. 1A) . The amplifier 490 will output the high signal PLS over conductor 112 when the bulk voltage reaches 78% of the normal output. As described pre¬ viously, this signal enables the gates 427 and 429 (Fig. 5A) to reset the controller 90 wherein the controller will initiate a power up sequence. Referring now to Figs. 9A to 9C inclusive, there is shown a flowchart of the operation of the controller. Upon initiating the operation of the power supply (block 510), the voltage level appearing at the terminal 26 (Fig. 1) which is developed across the capacitor 30 will start to increase. Upon reaching 78% of its normal output (block 512), the signal PLS will go high and the voltage V _ appearing on line 115 (Fig. 1A) will be supplied to the controller 90 (block 514). During this time, the reset signal RST (Fig. 7J) and the inhib.it signal INH (Fig. 7K) will go high resetting various logical elements including the circuits for controlling the generation of the switching control signals 0. and 0 2 . After the active signal RST has been applied, the flip-flop 414 (Fig. 5A) controlled by the timer 402 will lower the inhibit signal INH (Fig. 7K) which as previously described occurs 60 ms. after the reset signal RST has gone low (block 516). Upon the inhibit signal INH going low, the controller will initi¬ ate a soft start operation by outputting the switch control signals 0, and 0- having a pulse width equal to five percent duty cycle (block 518). The switch control signals 0, and 0 2 will appear on the conductors 38 and 40 (Fig. 1) to operate the switching transistors 36 (Fig. 1) enabling current to flow through the transformer 44. As the voltage output level of the power supply increases, the controller will check to see if the voltage level V - has reached a 90 percent level of the rated voltage level of 5 volts (block 522) within 100 ms. (block 520). If the signal V_. has not reached an output level of 90% of the rated output within 100 ms., the controller will stop switching (block 554) Fig. 9C, turn off the power (block 556) and turn on a LED display , (block 558) for 20 seconds. If the output voltage V has reached 90% of the rated output voltage within 100 ms. the controller continues its soft start operation (block 536), raises the signal PFS (Fig. 1A) (block 538) and initiates a regulation mode of operation (block 540). If such a condition does not exist, the controller will increase the switching frequency of the transistors by 5% of the duty cycle (block 524) and check to see if an overcur¬ rent condition exists (block 526). If the condition does not exist, the checking sequence is repeated until an overcurrent condition does exist at which time the controller will switch the transistors at a minimum switching frequency (block 528) until the overcurrent condition is removed (block 530). At this time, the controller will check (block 532) to see if the switch¬ ing of the transistors is at a frequency rate of 45% of the duty cycle (block 532). If the switching frequency has not reached this level, the switch frequency is incremented by the rate DC (block 524) which in the present embodiment is 5% until it reaches 45% duty cycle . (block 534) or until the output voltage of the power supply has reached 90% of its rated output (block 522) at which time the controller will go into its regulation mode (block 540) (Fig. 9B) . During the regulation of the power supply, the controller checks the output signals from the signal conditioner 88 (Fig. 1A) to see if an overvoltage con¬ dition (block 550) or a catastrophic failure of a com¬ ponent (block 552) exists. If it finds that any of OMPI these conditions exist, the controller will stop switching the signals 0, and 0 2 (block 554), display the location of the fault in a LED display (not shown) (block 556) for a period of 20 seconds (block 558). After this time, the display will be turned off and the operation ended (block 560). If the controller fails to sense any of the above conditions, the controller will check the PLS signal received over line 112 (Fig. 1A) to determine if the power output level is less than 78% of the normal output (block 564) (Fig. 9C) . If such a condition exists, the controller will lower the signal PFS (block 566) over conductor 114 (Fig. 1A) resulting in the shutdown of the system (block 560). If none of the above conditions exists, will check for the presence of an overcurrent condition (block 568). If such a condition exists, the controller will switch the control signals 0, and 0 2 at a 5% minimum duty cycle (block 570) so long as such a condition exists. Once this condition is removed, the controller will return to a normal regula¬ tion mode (block 540) (Fig. 9B). The IC circuits disclosed in this application are commercially available from the following manufactur¬ ers. Those circuits having the prefix MC are available from the Motorola Corporation of Phoenix, Arizona; the prefix CD from RCA Corporation of New York, N. Y.; the prefix MP from Micro Power Systems of Santa Clara, California and the prefix LM from National Semiconductor Corporation of Santa Clara, California.

Claims: CLAIMS : 1. A power supply including input means (22, 24, 30), output means (52) and switching means (36) coupling said output means to " said input means, charac¬ terized by first generating means (166) for generating a succession of first digital values each representing an instantaneous value of a voltage level of said output means (52), second generating means (194-208) for gen¬ erating second digital values dependent on the differ¬ ence between successive first digital values, third gen- erating means (274, 276, 290, 292, 304, 306) arranged to generate pulse-width modulated control signals (0-,, 0 2 ) for controlling the operation of said switching means in order to regulate the output of the power sup¬ ply, and adding means (262, 264) arranged to receive a third digital value representing a standard pulse-width modulated control signal for the required power output of the power supply and arranged to generate a fourth digital value by adding said third digital value to said second digital value, said fourth digital value serving to control the width of said control signals (0 2 ). 2. A power supply according to claim 1, characterized by first selecting means (216, 218) ar¬ ranged to generate a fifth digital value and a sixth digital value which are utilized during a starting up routine of the power supply to control the width of said control signals (0., 0 2 ), and sensing means (64) for outputting a control signal representing a current level in said output means (52), said sensing means being coupled to said selecting means (216, 218) for enabling said selecting means to output either said fifth digital value or said sixth digital value in accordance with said current level. 3. A power supply according to claim 2, characterized by second selecting means (256, 258) con¬ nected to said second generating means (194-208) and to said first selecting means (216, 218), and comparator means (212, 214) arranged to compare said second digital value with said fifth and sixth digital values, said comparator means being connected to said second select¬ ing means for enabling said second selecting means to output said second digital value to said adding means (262, 264) in dependence upon how said second digital value compares with said fifth and sixth digital values. 4. A power supply according to claim 1, characterized in that said switching means (36) are arranged to drive alternately the two halves of an input winding (42) of an output transformer (44), said output means (52) being connected to an output winding (46) of said transformer, and further characterized in that said third generating means includes second adding means (274, 276) arranged to receive said fourth digital value, and logic means (280, 282) connected to said second adding means and arranged to generate a plurality of seventh and eighth digital values ( DC, - - DC), said second adding means being arranged to add a said seventh digital value to said fourth digital value to produce a ninth digital value and to add a said eighth digital value to said fourth digital value to produce a tenth digital value, said ninth and tenth digital values serving to change in opposite senses the duty cycles of first and second portions of said switching means (36), and said logic means being arranged to cause the senses in which said duty cycles are changed to be reversed upon the magnetizing current of said transformer (44) reaching a threshold value. 5. A power supply according to claim 4, characterized in that said third generating means includes third se ' lecting means (290, 292) connected to 5. ( concluded ) the output of said second adding means (274, 276), said third selecting means being arranged to have applied thereto a manually generated control signal representing a selected one of two possible switching frequencies and being arranged to output digital values representative of pulse-width modulated control signals appropriate for the selected switching frequency. 6. A power supply according to claim 5, characterized in that said third generating means fur¬ ther includes counter means (304, 306) connected to said third selecting means (290, 292) and arranged to control the widths of said pulse-width modulated control signals in accordance with the levels of the digital values outputted by said third selecting means. 7. A power supply according to claim 6, characterized in that said third generating means further includes bi-stable logic devices (320, 322) connected to said counter means (304, 306), said logic devices being arranged to be switched upon said counter means counting down to zero, thereby determining the widths of said pulse-width modulated control signals. 8. A power supply according to either claim 2 or claim 3, characterized by counter means (425) connected to said first selecting means (216, 218), said counter means being enabled upon the start of a start- ing up routine of the power supply and being arranged to cause said sixth digital value to increase incre¬ mentally. OMPI

Inventors: BRUCKNER RONALD LOUIS, GHEORGHIU PAUL, HAMILTON RODNEY VICTOR, KHAMARE ISHWAR SINGH, VOYER JOSEPH LARRY
Applicants: NCR CO, NCR CORP
Application year: 1982
Main classification: H02M3
IPC codes: G05F1, H02M3