WO2009120171A1 - Programming output voltage and current characteristics of a psr power supply - Google Patents

Programming output voltage and current characteristics of a psr power supply Download PDF

Info

Publication number
WO2009120171A1
WO2009120171A1 PCT/US2008/006987 US2008006987W WO2009120171A1 WO 2009120171 A1 WO2009120171 A1 WO 2009120171A1 US 2008006987 W US2008006987 W US 2008006987W WO 2009120171 A1 WO2009120171 A1 WO 2009120171A1
Authority
WO
WIPO (PCT)
Prior art keywords
integrated circuit
psr
power supply
voltage
controller
Prior art date
Application number
PCT/US2008/006987
Other languages
French (fr)
Inventor
David Kunst
Original Assignee
Active-Semi International, Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US12/077,961 external-priority patent/US8014217B2/en
Priority claimed from US12/079,039 external-priority patent/US7978558B2/en
Application filed by Active-Semi International, Inc. filed Critical Active-Semi International, Inc.
Publication of WO2009120171A1 publication Critical patent/WO2009120171A1/en

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M3/00Conversion of dc power input into dc power output
    • H02M3/22Conversion of dc power input into dc power output with intermediate conversion into ac
    • H02M3/24Conversion of dc power input into dc power output with intermediate conversion into ac by static converters
    • H02M3/28Conversion of dc power input into dc power output with intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode to produce the intermediate ac
    • H02M3/325Conversion of dc power input into dc power output with intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode to produce the intermediate ac using devices of a triode or a transistor type requiring continuous application of a control signal
    • H02M3/335Conversion of dc power input into dc power output with intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode to produce the intermediate ac using devices of a triode or a transistor type requiring continuous application of a control signal using semiconductor devices only
    • H02M3/33507Conversion of dc power input into dc power output with intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode to produce the intermediate ac using devices of a triode or a transistor type requiring continuous application of a control signal using semiconductor devices only with automatic control of the output voltage or current, e.g. flyback converters
    • H02M3/33515Conversion of dc power input into dc power output with intermediate conversion into ac by static converters using discharge tubes with control electrode or semiconductor devices with control electrode to produce the intermediate ac using devices of a triode or a transistor type requiring continuous application of a control signal using semiconductor devices only with automatic control of the output voltage or current, e.g. flyback converters with digital control

Definitions

  • the present disclosure relates generally to primary-side regulation (PSR) power supplies and PSR controller integrated circuits.
  • PSR primary-side regulation
  • Figure 1 is a block diagram of primary-side regulation constant current/constant voltage (PSR CC/CV) flyback power supply 1.
  • An alternating current (AC) 110-240 volt line voltage on input terminals 2 and 3 is rectified by a full wave bridge rectifier 4 and an associated smoothing capacitor 5 so that a rectified and smoothed rough DC voltage is present between the first and second input nodes 6 and 7.
  • the voltage on first input node 6 is also referred to in this document as the "input line voltage” or “line input voltage” (VIN) .
  • Power supply 1 operates by repeatedly closing and opening a switch.
  • the switch is a bipolar transistor 8.
  • Closing switch 8 causes a primary current to flow from node 6, through a primary 9 of a transformer 23, through switch 8, into terminal 10 of a PSR CC/CV controller integrated circuit 11, through another switch (not shown) inside the PSR CC/CV controller integrated circuit 11, and from the ground terminal 12 of the PSR CC/CV controller integrated circuit 11 to the second input node 7.
  • switch 8 When switch 8 is closed, the current that flows through primary 9 causes energy to be stored in transformer 23.
  • switch 8 is opened, the energy stored is transferred to the output of the power supply in the form of a pulse of current that flows through a secondary 13 of transformer 23 and through a diode 14.
  • An output capacitor 15 is connected across output terminals 16 and 17 of the power supply.
  • the pulse of current charges capacitor 15.
  • switch 8 is switched to open and close rapidly and in such a manner that the output voltage VOUT on capacitor 15 remains substantially constant at a desired regulated output voltage.
  • the output voltage VOUT is related to the voltage VAUX across an auxiliary winding 18.
  • VAUX is divided by a voltage divider including resistors 19 and 20 so that the voltage on the voltage divider tap 21 is sensed on an FB terminal 22 of PSR CC/CV controller integrated circuit 11.
  • PSR CC/CV controller integrated circuit 11 has an internal reference voltage generator that generates a reference voltage VREF.
  • Controller integrated circuit 11 regulates VOUT to have the desired regulated output voltage by keeping the voltage on FB terminal 22 equal to the internal reference voltage VREF.
  • the current IOUT being supplied from the output of the power supply is related to the current flowing through primary 9.
  • the magnitude of the primary current is detected by detecting the voltage across the switch (not shown) inside PSR CC/CV controller integrated circuit 11. This voltage, which is the product of the current flow in the switch and the resistance of the switch, is sensed and amplified by a current sense amplifier inside PSR CC/CV controller integrated circuit 11.
  • the output current IOUT is regulated to a desired regulated output current by keeping the peak voltage detected by the current sense amplifier equal to a reference voltage value VILIM.
  • power supply 1 is a battery charger such as a battery charger usable to charge the rechargeable batteries of a cellular telephone.
  • the AC line in terminals 2 and 3 are typically plugged into a wall socket to receive alternative current (AC) 110-240 VAC power.
  • the two terminals 16 and 17 at the end of a cord are plugged into the cellular telephone.
  • the battery charger operates in the constant current (CC) mode and supplies charging current at the regulated current amount (in the present example, 1 ampere) .
  • CC constant current
  • FIG. 1 is a graph of output voltage VOUT versus output current IOUT. Initially when PSR CC/CV power supply 1 is operating in the CC mode, the output voltage and current operating point of the power supply lies on line 24. The point migrates vertically up line 24 as the voltage on the battery increases as the battery charges. When the point reaches corner 25, the power supply transitions to the CV mode. The point representing the output voltage and output current migrates to the left along horizontal line 26.
  • the graph of Figure 2 is, however, an idealization.
  • lines 24 and 26 are not followed.
  • the output voltage and current points may extend away from lines 24 and 26 so much that the actual power supply operating point is outside a specified permitted operating range.
  • the output current IOUT in the CC mode must be within plus or minus ten percent of the regulated output current of 1.0 amperes .
  • the output voltage VOUT in the CV mode must be within plus or minus five percent of the regulated output voltage of 5.0 volts.
  • Figure 3 (Prior Art) is a replication of Figure 1 from U.S. Patent No. 6,750,640.
  • programmable circuit connections within the integrated circuit are programmed to trim or adjust certain functions of the power supply controller chip such as over voltage threshold, under voltage threshold, external current limit, maximum duty cycle and power supply enable/disable.
  • the circuit of Figure 3 is satisfactory in certain respects, it is undesirable and/or unsatisfactory in other ways. Circuitry outside the controller integrated circuit may have electrical characteristics that are seen to differ, from power supply unit to power supply unit, such that these differences cause different units of seemingly identical mass produced power supplies to exhibit output voltage and output current operating points outside of the specified limits of Figure 2.
  • some manufactured power supply units may operate along line 27 under certain operating conditions (see Figure 4), whereas other units may operate along line 28 (see Figure 4) .
  • some power supply units may operate along line 29.
  • the mass produced transformers used to make the power supplies may, for example, have primary inductances that vary from one transformer to the next.
  • mass produced power cords may have resistances that differ from each other. Such differing inductances and resistances may lead to different manufactured power supply units operating outside required bounds as illustrated in Figure 4, even if the controller integrated circuit 11 is adjusted at final test.
  • a novel primary-side regulation (PSR) controller integrated circuit includes a PSR CC/CV controller and a non-volatile shift register.
  • An assembled power supply that includes the novel PSR CC/CV integrated circuit is in-circuit tested to determine errors in output voltage and/or output current of the power supply.
  • Programming information is then determined.
  • the integrated circuit is put into a program mode, and the determined programming information is shifted into the integrated circuit and into the non-volatile shift register.
  • the programming information is then automatically programmed into the non-volatile shift register.
  • the power supply regulates to either a higher or lower voltage than it does in normal mode and this higher or lower voltage is used as a programming voltage to program the non-volatile shift register.
  • the type of non-volatile memory and particular integrated circuit wafer manufacturing process determines whether the programming voltage is higher or lower than the normal mode voltage.
  • the programming information in the non-volatile shift register sets or controls circuitry in the PSR CC/CV controller integrated circuit such that the output voltage and output current of the power supply are within specification.
  • Some of the bits of the programming information set the voltage to which the output voltage is regulated.
  • Other bits of the programming information set the current to which the output current is regulated.
  • Other bits of the programming information set or control error correction circuits of the PSR CC/CV controller such as a primary inductance variation compensation circuit, a line input voltage variation compensation circuit, an efficiency variation compensation circuit, and a cord resistance compensation circuit.
  • Figure 1 is a diagram of a conventional PSR CC/CV power supply.
  • Figure 2 (prior art) is an idealized graph of output voltage VOUT versus output current IOUT for a PSR CC/CV power supply.
  • Figure 3 (prior art) is a replication of Figure 1 from U.S. Patent No. 6,750,640.
  • Figure 4 is a graph of output voltage VOUT versus output current IOUT for an assembled PSR CC/CV power supply.
  • Figure 5 is a diagram of a system 200 in accordance with one novel aspect.
  • Figure 6 is a more detailed circuit diagram of the PSR CC/CV controller integrated circuit 203 of Figure 5.
  • Figure 7 is a table that sets forth functions controlled by the various bits of programming information shifted into the non-volatile shift register 204 of Figure 6.
  • Figure 8 is a diagram that illustrates one way that the programmable resistors of Figure 6 can be realized.
  • Figure 9 is a waveform diagram of signals in power supply 202 of Figure 5.
  • Figure 10 is a waveform diagram that illustrates a novel method of putting PSR CC/CV controller integrated circuit 203 of Figure 5 into the program mode, of serially shifting programming information into the nonvolatile shift register, and then programming the programming information into the non-volatile shift register.
  • Figure 11 is a flowchart of a novel method of programming a PSR CC/CV controller integrated circuit.
  • Figure 12 is a simplified circuit diagram of one way to realize a bit of non-volatile shift register 204 of Figure 5.
  • Figure 13 is a diagram that shows how IOUT increases with decreasing VOUT due to an increase in efficiency in an actual assembled PSR CC/CV power supply.
  • Figure 14 is a circuit diagram of the efficiency variation compensation circuit 238 (CCl) and of the line input voltage variation compensation circuit 239 (CC2) of Figure 6.
  • Figure 15 shows the ramp up in primary current ILP in two conditions, where the two conditions lead to two different peak current values.
  • Figure 16 is a circuit diagram of the cord resistance compensation circuit 240 (CC3) of Figure 6. DETAILED DESCRIPTION
  • FIG. 5 is a diagram of a system 200 in accordance with one novel aspect.
  • System 200 involves automatic test equipment (ATE) 201 and a power supply 202.
  • Power supply 202 is an assembled and operating primary-side regulation constant current/constant voltage
  • power supply 202 is a populated printed circuit board of the power supply that is not yet covered with its plastic enclosure. The various nodes of the printed circuit board are accessible for probing and testing.
  • novel PSR CC/CV controller integrated circuit 203 is a part of assembled power supply 202. While power supply 202 operates, ATE 201 exercises the power supply and collects information on how the power supply performs under different operating conditions. ATE 201 then uses the collected information to determine what programming information (DATA) to load into a rewritable non-volatile shift register 204 portion of integrated circuit 203. To load the programming information, ATE puts integrated circuit 203 into a program mode by some mechanism. In the present example, ATE 201 drives an unusually high voltage onto the FB feedback terminal 206 of integrated circuit 203.
  • DATA programming information
  • PSR CC/CV controller circuitry 217 of integrated circuit 203 detects the unusually high voltage and in response enters the program mode.
  • ATE 201 then serially supplies bits of the determined programming information (DATA) onto feedback terminal FB 206 synchronously with the switching signal SW of integrated circuit 203 on SW terminal 205.
  • the programming information is shifted into non-volatile shift register 204.
  • PSR CC/CV controller integrated circuit 203 includes a programming information readback capability usable to verify that proper programming information was loaded into integrated circuit 203.
  • Microcontroller terminal 232 is a bi-directional input/output terminal
  • FB terminal 206 is also a bidirectional input/output terminal .
  • Control logic of integrated circuit 203 includes logic that looks at the first bit received from ATE 201 and if the bit is a zero, then integrated circuit 203 remains in a write sub-mode of the program mode (integrated circuit 203 is written to in the program mode) , whereas if the bit is a one, then integrated circuit 203 enters a read sub-mode of the program mode (information from integrated circuit 203 is read by ATE 201) and shifts programming information out FB terminal 206 and onto conductor 233.
  • ATE 201 reads the information from conductor 233, and confirms that proper programming information was shifted into nonvolatile shift register 204 during the write sub-mode.
  • the programming information sets and adjusts various electrical output characteristics of power supply 202.
  • the programming information (DATA) sets a desired regulation voltage at which integrated circuit 203 regulates the output voltage VOUT during constant voltage (CV) mode operation, and also sets a desired regulation current at which integrated circuit 203 regulates the output current IOUT during constant current (CC) mode operation.
  • ATE 201 performs such testing and programming on unit after unit of assembled power supplies. By testing and programming at this "in-circuit" stage of manufacture of the power supplies, current/voltage points of operation outside of specified bounds due to variations in components of the power supply such as the transformer and the power cord can be compensated for such that all units after programming will operate within the specified bounds.
  • the structure and operation of system 200 is described in further detail below.
  • Assembled PSR CC/CV power supply 202 includes two AC input terminals 207 and 208, a full wave bridge rectifier 209, and a smoothing capacitor 210.
  • An alternating current 110-240 volt (AC) line voltage on input terminals 207 and 208 is rectified by rectifier 209 and capacitor 210 so that a rectified and smoothed rough DC voltage is present between first and second input nodes 211 and 212.
  • the voltage on first input node 211 is also referred to as the "input line voltage" or "line input voltage” (VIN) .
  • VIN is used to power programmable PSR CC/CV controller integrated circuit 203.
  • VDD voltage supplied onto a VCC terminal 215 of integrated circuit 203.
  • Ground potential on input node 212 is supplied onto a ground terminal 216 of integrated circuit 203.
  • Assembled PSR CC/CV power supply 202 also includes a transformer 218, a switch 219, components 220 and 221, two diodes 223 and 224, an output capacitor 225, and a power cord that terminates in two terminals 226 and 227.
  • the RCORD+ and RCORD- labels represent resistance of the power cord. Such resistances may, for example, be approximately 0.25 ohms.
  • Transformer 218 includes a primary winding 228, a secondary winding 229, and an auxiliary winding 230.
  • FIG. 6 is a more detailed circuit diagram of PSR CC/CV controller integrated circuit 203 of Figure 5.
  • Integrated circuit 203 includes the non-volatile shift register 204. The remainder of the circuitry illustrated in Figure 6 is the PSR CC/CV controller 217 of Figure 5.
  • Integrated circuit 203 has four and only four terminals: FB terminal 206, SW terminal 205, VDD terminal 215 and ground terminal 216.
  • Figure 7 is a table that sets forth the functions controlled by the various bits DOUT [0:31] of programming information stored in non-volatile shift register 204.
  • Figure 8 is a diagram that illustrates one way that the programmable resistors Rl, R2 and R4 of Figure 6 can be realized.
  • An incoming four-bit digital value on input leads 300 is decoded by 4:16 decoder 301 to generate control signals C1-C16.
  • Each one of control signals C1-C16 controls a corresponding respective one of the various illustrated switches to short out or switch in the associated resistors RS1-RS16 between node 302 and 303.
  • Resistor RS17 is always coupled into the current path between nodes 302 and 303.
  • integrated circuit 203 When operating in the constant voltage (CV) mode and in the normal mode (not the program mode) , integrated circuit 203 causes an N-channel transistor 400 (see Figure 6) to be conductive. This allows current to begin to flow from line input node 211 (see Figure 5) , through primary winding 228, through switch 219, into SW terminal 205 of integrated circuit 203, through N-channel transistor 400, to ground terminal 216 of integrated circuit 203, and to ground node 212.
  • N-channel transistor 400 see Figure 6
  • Figure 9 is a waveform diagram of signals in power supply 202.
  • the waveform labeled ILP represents the current flowing through primary winding 228.
  • control logic 411 (see Figure 6) asserts the switch-on signal SWON high, thereby turning on N-channel transistor 400 at time Tl.
  • the primary current ILP ramps up as illustrated in Figure 9.
  • the output voltage VOUT of the power supply is related to the voltage VAUX on auxiliary winding 230 during the off-time of switch 400.
  • the waveform VAUX is illustrated in Figure 9.
  • Integrated circuit 203 regulates output voltage VOUT by using the VAUX voltage detected through a voltage divider of external resistors RFBl and RFB2.
  • the divided down VAUX voltage on the tap of the voltage divider is detected on FB terminal 206.
  • signal PMB is high and signal PM is low.
  • Switch 401 of Figure 6 is therefore closed and switch 402 is open.
  • the voltage on FB terminal 206 is therefore supplied through switch 401 and onto node 403.
  • Feedback sampler 404 samples the voltage on node 403 each switching cycle at time T3 (see Figure 9) during the off- time of N-channel transistor 400 and supplies the sampled voltage VFB onto node 405.
  • Transconductance error amplifier 406 generates an error signal based on a voltage difference between the voltage VFB on node 405 and a reference voltage VREF 1 on node 407.
  • error amplifier 406 functions as an integrator such that over time the relatively slowly varying voltage VCOMP decreases as the voltage VFB increases with respect to VREF 1 from cycle to cycle.
  • Current sense amplifier 409 senses the voltage drop across the on-resistance of N-channel transistor 400 during the on-time of transistor 400.
  • the current sense signal VCS also begins to ramp up.
  • comparator 410 trips and supplies a rising edge to control logic 411.
  • Control logic 411 in response to receiving either a rising edge from comparator 410 or from comparator 412, forces signal SWON low and turns off N-channel transistor 400.
  • N-channel transistor 400 The turning off of N-channel transistor 400 is illustrated at time T2 in Figure 9.
  • the cutting off of current flow in primary winding 228 causes current to flow in secondary- winding 229 as illustrated in waveform ILS in Figure 9.
  • the ILS current ramps down as illustrated until it reaches zero.
  • This operation is referred to as "discontinuous mode" operation because there is an amount of time during the off-time of switch 219 when there is no current flow in the secondary winding 229.
  • the switching cycle repeats on the next rising edge of the clock signal PCLK.
  • the control loop operates to keep the N-channel transistor 400 conductive for a long enough amount of time that the voltage VFB on node 405 is regulated to be equal to the voltage VREF 1 on node 407.
  • VREF' is adjusted so that VOUT is regulated to the desired voltage.
  • N-channel transistor 400 When operating in the constant current (CC) mode and in the normal mode (not the program mode) , integrated circuit 203 also causes N-channel transistor 400 to be switched on and off. As in the case of the CV mode, the rising edge of PCLK causes control logic 411 to assert signal SWON high, thereby making N-channel transistor 400 conductive at the beginning of the switching cycle. Rather than N-channel transistor 400 being turned off due to a rising edge output from comparator 410, however, the N-channel transistor 400 is turned off due to a rising edge output from current limit comparator 412. During the on-time of N-channel transistor 400, the signal VCS ramps up along with the primary current waveform ILP illustrated in Figure 9.
  • VCOMP is higher than the voltage VCS
  • the voltage VCS reaches the voltage VILIM on node 413.
  • Current limit comparator 412 therefore trips and supplies a rising edge signal to control logic 411.
  • Control logic 411 responds to this rising edge by forcing SWON low and turning N-channel transistor 400 off. Accordingly, rather than a rising edge from comparator 410 causing N-channel transistor 400 to turn off as in the CV mode, a rising edge from current limit comparator 412 causes N-channel transistor 400 to turn off in the CC mode.
  • VILIM on node 413 is adjusted so that IOUT is regulated to the desired regulated current .
  • FIG 10 is a waveform diagram that illustrates a novel method of putting PSR CC/CV controller integrated circuit 203 into the program mode, of serially shifting programming information into the non-volatile shift register 204 of integrated circuit 203 while in the program mode , and then programming the programming information into the non-volatile shift register 204 while in the program mode.
  • the assembled power supply 202 is operating in constant voltage mode and in normal mode, and is coupled to ATE 201 as illustrated in Figure 1.
  • the voltage on FB terminal 206 of integrated circuit 203 is approximately 2.5 volts.
  • Microcontroller 231 is coupled to FB terminal 203 via output terminal 232 and conductor 233.
  • Microcontroller 231 does not drive conductor 233, but rather maintains its terminal 232 in a high-impedance state so that the feedback voltage on terminal FB 206 is not affected by the microcontroller.
  • microcontroller 231 drives its terminal 232 to five volts, thereby driving conductor 233 and terminal FB 206 of integrated circuit 203 to five volts.
  • This is illustrated in the upper waveform labeled FB(PIN) in Figure 10.
  • This condition is detected by- program mode detection circuitry 234 in Figure 6.
  • Signal PM is asserted high, and signal PMB is asserted low.
  • the assertion of signal PM high is represented by the low-to- high transition of the signal waveform PM in Figure 10.
  • switch 401 opens and decouples the terminal FB 206 from node 403, and switch 402 closes and couples node 403 to an on-chip resistor voltage divider involving resistors RIl and R12.
  • the external resistors RFBl and RFB2 of Figure 5 are sized such that integrated circuit 203 operates in CV mode to regulate the output voltage VOUT to 5.0 volts and VAUX to a corresponding 15.0 volts
  • the internal resistors RIl and R12 are sized such that integrated circuit 203 operates in CV mode to regulate the VOUT to a voltage higher than 5.0 volts.
  • VAUX is therefore at a corresponding 17.0 volts.
  • the VAUX of 17.0 volts is referred to as the programming voltage VPP. Note that in each successive switching cycle illustrated in Figure 10, the VFB and VDD voltages increase until VDD (VDD is VAUX minus a diode voltage drop) reaches 17.0 volts.
  • Microcontroller 23 after driving FB terminal 206 to five volts and putting integrated circuit 203 into the program mode, uses the signal SW to time the driving of programming data across conductor 233 and onto FB terminal 206.
  • ATE 201 receives the signal SW, and inverts it to form the signal UCLK that is then received by microcontroller 231.
  • Microcontroller 231 detects this signal UCLK and drives the first bit of programming information onto conductor 233 in response to a low-to- high transition of UCLK (this corresponds to a high-to- low transition of SW) . This occurs roughly at time T5 in the waveform diagram of Figure 10.
  • the signal PM as supplied to the non-volatile shift register 204 in Figure 6 is asserted high, thereby allowing DCLK (an inverted version of the switching signal SWON) to pass through AND gate 235 and to cause BCLK to begin clocking.
  • DCLK an inverted version of the switching signal SWON
  • the first BCLK pulse occurs after entering the program mode after time T4, and that this first pulse of BCLK has the same shape as the corresponding pulse of DCLK.
  • the falling edge of BCLK corresponds to the rising edge of UCLK that microcontroller 231 used to begin driving the first bit of programming information onto conductor 233.
  • the subsequent first rising edge of BCLK at time T6 causes this first bit of programming information (that was previously set up by- microcontroller 231 onto terminal FB 206) to be clocked into BITO (MSB first, for example) of the non-volatile shift register 204.
  • the system 200 uses the signal SW to synchronize the shifting of programming information from ATE 201 into integrated circuit 203.
  • Assertion of this signal triggers a one-shot 237 such that one-shot 237 asserts a program enable signal PREN high.
  • Assertion of signal PREN is illustrated after time T8 in the waveform diagram of Figure 10.
  • Assertion of PREN high causes the bits of programming information to be programmed into their respective bits of the non-volatile shift register 204.
  • PREN transitions low. In this example, operation continues in program mode until the input supply voltage to power supply 202 is removed or tuned off and the power supply 202 is unpowered.
  • FIG 11 is a flowchart of a method 500 of programming a PSR CC/CV controller integrated circuit in accordance with one novel aspect.
  • a first step (step 501) an assembled application circuit is coupled to automatic test equipment (ATE) .
  • the assembled application circuit is the PSR CC/CV power supply 202 of Figure 5 and the ATE is ATE 201 of Figure 5.
  • step 502 the ATE exercises and tests the assembled application circuit and collects test data.
  • the ATE collects data on how IOUT changes with VIN, on how IOUT changes with VOUT, and on how VOUT changes with cord resistance.
  • step 503 software executing in the ATE uses the collected test data to determine how to program the PSR controller integrated circuit in the assembled application circuit in order to correct for undesired output characteristics of the tested application circuit.
  • this software determines what the values of the thirty-two bits of programming information shifted into non-volatile shift register 204 should be to correct for detected errors in the voltage and current output by power supply 202.
  • step 504 the ATE drives the FB terminal of the PSR controller integrated circuit to five volts such that the PSR controller integrated circuit begins operating in the program mode.
  • step 505 the PSR controller switches from using an external voltage divider involving RFBl and RFB2 to using an internal voltage divider involving resistors RIl and R12.
  • the overall assembled application circuit then regulates VOUT to a higher voltage such that VDD received into the PSR controller integrated circuit increases or decreases to a programming voltage.
  • VDD increases from approximately 15 volts to approximately 17 volts.
  • step 506 the ATE serially supplies bits of programming information to the PSR controller integrated circuit synchronously with the signal SW, and the PSR controller shifts the bits into its non-volatile shift register synchronously with the signal SW.
  • ATE 201 of Figure 5 supplies bits of programming information onto the FB terminal 206 of integrated circuit 203 synchronously with falling edges of signal SW, and integrated circuit 203 clocks in the bits of programming information synchronously with rising edges of signal SW.
  • step 507 the PSR controller integrated circuit uses the programming voltage (the raised 17 volt voltage VDD) to program the loaded programming information into the bits of the non-volatile shift register .
  • VDD the programming voltage
  • step 508 the power supply is powered off and back on, and is retested to obtain the power supply's output voltage and output current profile to verify proper power supply operation after programming.
  • step 509 the programmed application circuit is decoupled from the ATE and the next assembled application circuit to be tested is coupled to the ATE. Steps 501-509 are repeated automatically and rapidly under control of the ATE such that a sequence of many assembled application circuits (for example, CC/CV power supplies) is tested and programmed.
  • Tunneling transistor 611 is an N-channel transistor having a body that is isolated from the integrated circuit substrate. The body is isolated so that body can be pulled up to the programming voltage.
  • NOR gate 604 transistor 605 and resistor 606 cause the programming voltage to be supplied onto the source-body of P-channel transistor 607.
  • OR gate 608, transistor 609 and resistor 610 cause ground potential to be coupled onto the body-source-drain terminals of tunneling transistor 611.
  • the floating gate of P-channel transistor 607 is then programmed such that transistor 607 is conductive and such that the non-volatile cell stores a digital logic high.
  • NOR gate 604 transistor 605 and resistor 606 cause ground potential to be coupled onto the source-body of P-channel transistor 607.
  • OR gate 608, transistor 609 and resistor 610 cause the programming voltage to be supplied onto the body of tunneling transistor 611.
  • the floating gate of P-channel transistor 607 is then programmed such that transistor 607 is nonconductive and such that the nonvolatile cell stores a digital logic low.
  • the programmed values of each non-volatile bit are latched into flip- flop 601 at power-up of the PSR CC/CV controller integrated circuit when POR transitions from low to high.
  • FIG. 13 is a diagram that represents operation of an actual assembled PSR CC/CV power supply.
  • VOUT decreases, IOUT is seen to increase.
  • the output voltage and output current points of operation do not follow the ideal vertical line 700, but rather follow the dashed line 701. This is because as VOUT decreases, efficiency of the power supply increases.
  • the PSR CC/CV controller integrated circuit makes the switching frequency fs proportional to VOUT. Therefore, as VOUT decreases, fs decreases. There are, however, switching losses associated with switching the power supply, so reducing the switch frequency fs reduces the amount of switching and causes a reduction in switching losses, thereby increasing efficiency.
  • FIG. 14 illustrates the efficiency variation compensation circuit 238 (CCl) of Figure 6.
  • the voltage VILM on node 413 sets the peak current limit value ILIM which determines IOUT in constant current mode. Decreasing VILIM therefore decreases IOUT. Increasing VILIM therefore increases IOUT.
  • the magnitude of VILM is set in part by the resistances of resistors R3 and R4 , and by the reference voltage VREF.
  • the novel efficiency- variation compensation circuit 238 works by generating a current 702 that decreases in proportion to a decrease in VOUT.
  • This current 702 is supplied onto node 413. Therefore if VOUT decreases, the total current flowing into node 413 decreases, and the voltage VILIM deceases, thereby decreasing ILIM and IOUT from what it would otherwise be. This reduction in IOUT compensates for and corrects for what would otherwise be an increase in IOUT as VOUT decreases.
  • Amplifier 703 operates to force the voltage across programmable resistor R5 to be VFB. The current flowing across R5 is therefore VFB/R5. This current is mirrored by current mirror 704 to generate the current 702 that is made to flow into node 413. Accordingly, programming the resistance of programmable resistor R5 allows the amount of efficiency compensation to be adjusted.
  • IOUT varies with variations in primary winding inductance. Such variations in primary winding inductance, from manufacturer transformer unit to manufactured transformer unit, arise from variations in the transformer manufacturing process. Variations in IOUT, which are due to variations in Lp, can be corrected by trimming R4. For example, if Lp varies by +7%, then R4 can be adjusted down by 2.64% (the square root of seven percent) , to bring IOUT back down to the desired nominal value. Programmable resistor R4 adjusts VILIM, which sets the peak current, IP, in the primary winding.
  • current limit comparator 412 detects when the primary current exceeds the current limit ILIM when switch 400 is on.
  • comparator 412 trips and outputs a low-to-high transition that in turn causes control logic 411 to force switch signal SWON low, thereby causing N-channel transistor 400 to be turned off and causing switch 219 to be turned off.
  • control logic 411 causes control logic 411 to force switch signal SWON low, thereby causing N-channel transistor 400 to be turned off and causing switch 219 to be turned off.
  • the rate of current ramping up in the primary winding depends on the magnitude of the input line voltage VIN. The rate is roughly given by Equation 2 below.
  • Figure 15 shows the ramp up in primary current ILP when switch 219 is on in two conditions.
  • the input line voltage VIN is relatively high, for example 240 VAC
  • VIN is relatively low, for example 100 VAC.
  • the primary inductor current ILP will continue to rise a greater amount during the approximately fixed turn-off time (between the time VCS crosses the current limit voltage VILIM and the time when the switch 219 actually turns off and current stops flowing in primary winding 228) .
  • the primary inductor current ILP will continue to rise a smaller amount during the approximately fixed turn-off time (between the time VCS crosses the current limit voltage VILIM and the time when the switch 219 actually turns off and current stops flowing in the primary winding 228) .
  • the peak current IP of the power supply- therefore varies and this causes the regulated output current IOUT to vary as well. IOUT is seen to vary with the input line voltage VIN.
  • input voltage variation correction circuit 239 (CC2) of Figures 6 and 14 operates to compensate for and correct for this undesirable variation in peak current IP.
  • a current is pulled from node 413 so that VILIM is less than it otherwise would be, and this current is made to increases proportionally with increasing VIN so that the effect illustrated in Figure 15 is corrected.
  • switch 219 when switch 219 is conductive the voltage on the auxiliary- winding VAUX is negative.
  • VAUX is approximately (- VIN* (N A /N P ) ) .
  • This negative VAUX is voltage-divided by the resistor voltage divider of resistors RFBl and RFB2 such that a negative voltage is present on FB terminal 206 during the on-time of switch 219.
  • N-channel transistor 707 is diode-connected and has its source grounded. This causes the source of the other N-channel transistor 708 to be roughly at ground potential as well.
  • the negative voltage on FB terminal 206 causes a current to flow out of transistor 708 that is roughly equal to - VIN* (N A /N P ) /RFBl . This current is proportional to input line voltage VIN.
  • This current is mirrored by the P- channel current mirror 709.
  • the resulting mirrored current 710 flows across programmable resistor R9 to generate a voltage VR9 that varies proportionally with input line voltage VIN.
  • Amplifier 711 operates to force the voltage on node 712 to the voltage on its non- inverting input lead.
  • the current 713 flowing through resistor RlO is therefore proportional to the input line voltage VIN.
  • This current 713 is pulled from node 413 such that it serves to decrease the voltage VILIM on node 413 as VIN increases. Accordingly, if input line voltage VIN increases then the current 713 increases and the VILIM voltage is pulled down more to combat the affect illustrated in Figure 15. Conversely, if the input line voltage VIN decreases then the current 713 decreases and the VILIM voltage is pulled down less.
  • a conventional PSR CC/CV power supply When a conventional PSR CC/CV power supply is in use, it is coupled via a cord to the rechargeable battery of the device being charged.
  • the resistance of the cord may be significant.
  • different units of the power supply may be intended to charge different types of devices, so the different units of the power supply may have different types of cords that have different resistances.
  • all units of the power supply are to operate within the constant current (CC) and constant voltage (CV) specifications illustrated in Figures 2 and 4.
  • the bigger the resistance of the cord the smaller VCORD at the end of the cord will be if the power supply is outputting current.
  • the voltage VCORD at the end of the cord decreases. This is undesirable.
  • the novel cord resistance compensation circuit (CC3) 240 of Figures 6 and 16 compensates for changes in VCORD due to changes in IOUT. It is recognized that in a current -mode PWM controller in CV mode, VCOMP is proportional to IOUT when the controller is in regulation. As IOUT increases, VCOMP increases. Cord resistance compensation circuit (CC3) 240 compensates for the increasing IOUT by supplying a current 800 onto node 407 that raises the voltage VREF' such that VOUT increases as IOUT increases.
  • Amplifier 801 converts VCOMP 1 into a proportional current 802, which is equal to VCOMP '/Rl.
  • Current 802 is mirrored by the P-channel mirror 803 to output a current 800.
  • Current 800 is supplied onto node 407.
  • Resistance of programmable resistor R7 determines the amount of cord resistance compensation for what would otherwise be a decrease in VCORD as IOUT decreases.
  • Error information, diagnostic information, control information, and error detection codes can be communicated across conductor 233.
  • this information is communicated synchronously with respect to the signal SW when power supply 202 is operating. Such information can be communicated during normal operation of power supply 202 when the power supply is not coupled to ATE equipment, as well as during testing of power supply 202 such as the in- circuit testing described above. Accordingly, various modifications, adaptations, and combinations of various features of the described embodiments can be practiced without departing from the scope of the invention as set forth in the claims.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Dc-Dc Converters (AREA)

Abstract

A primary- side regulation (PSR) controller integrated circuit includes a PSR CC/CV controller and a non-volatile shift register. An assembled power supply that includes the integrated circuit is in-circuit tested to determine errors in power supply output voltage and/or current. Programming information is determined and shifted into the shift register. During programming, the power supply regulates to a different output voltage, and the different voltage is used for shift register programming. After programming, the power supply operates in a normal mode so that the output voltage and current are within specification. The voltage and current to which the power supply regulates are set by some of the bits of the programming information. Other of the bits set error correction circuits of the PSR CC/CV controller such as a primary inductance variation compensation circuit, a line input voltage variation compensation circuit, an efficiency variation compensation circuit, and a cord resistance compensation circuit.

Description

CROSS REFERENCE TO RELATED APPLICATION
[0001] This application is based on and hereby claims the benefit from United States Patent Application Serial No. 12/079,039, entitled "In-Circuit Programming Of Output Voltage And Output Current Characteristics Of A PSR Power Supply," and from United States Patent Application Serial No. 12/077,961, entitled "Serially Loading Programming Information Into A PSR CC/CV Controller Integrated Circuit," both filed on March 24, 2007, the subject matter of both applications being incorporated herein by reference .
TECHNICAL FIELD
[0002] The present disclosure relates generally to primary-side regulation (PSR) power supplies and PSR controller integrated circuits.
BACKGROUND INFORMATION
[0003] Figure 1 (Prior Art) is a block diagram of primary-side regulation constant current/constant voltage (PSR CC/CV) flyback power supply 1. An alternating current (AC) 110-240 volt line voltage on input terminals 2 and 3 is rectified by a full wave bridge rectifier 4 and an associated smoothing capacitor 5 so that a rectified and smoothed rough DC voltage is present between the first and second input nodes 6 and 7. The voltage on first input node 6 is also referred to in this document as the "input line voltage" or "line input voltage" (VIN) .
[0004] Power supply 1 operates by repeatedly closing and opening a switch. In the illustrated example, the switch is a bipolar transistor 8. Closing switch 8 causes a primary current to flow from node 6, through a primary 9 of a transformer 23, through switch 8, into terminal 10 of a PSR CC/CV controller integrated circuit 11, through another switch (not shown) inside the PSR CC/CV controller integrated circuit 11, and from the ground terminal 12 of the PSR CC/CV controller integrated circuit 11 to the second input node 7. When switch 8 is closed, the current that flows through primary 9 causes energy to be stored in transformer 23. When switch 8 is opened, the energy stored is transferred to the output of the power supply in the form of a pulse of current that flows through a secondary 13 of transformer 23 and through a diode 14. An output capacitor 15 is connected across output terminals 16 and 17 of the power supply. The pulse of current charges capacitor 15. In steady state operation in the constant voltage (CV) mode, switch 8 is switched to open and close rapidly and in such a manner that the output voltage VOUT on capacitor 15 remains substantially constant at a desired regulated output voltage. The output voltage VOUT is related to the voltage VAUX across an auxiliary winding 18. VAUX is divided by a voltage divider including resistors 19 and 20 so that the voltage on the voltage divider tap 21 is sensed on an FB terminal 22 of PSR CC/CV controller integrated circuit 11. PSR CC/CV controller integrated circuit 11 has an internal reference voltage generator that generates a reference voltage VREF. Controller integrated circuit 11 regulates VOUT to have the desired regulated output voltage by keeping the voltage on FB terminal 22 equal to the internal reference voltage VREF. [0005] The current IOUT being supplied from the output of the power supply is related to the current flowing through primary 9. In the constant -current (CC) operating mode, the magnitude of the primary current is detected by detecting the voltage across the switch (not shown) inside PSR CC/CV controller integrated circuit 11. This voltage, which is the product of the current flow in the switch and the resistance of the switch, is sensed and amplified by a current sense amplifier inside PSR CC/CV controller integrated circuit 11. The output current IOUT is regulated to a desired regulated output current by keeping the peak voltage detected by the current sense amplifier equal to a reference voltage value VILIM.
[0006] In the example of Figure 1, power supply 1 is a battery charger such as a battery charger usable to charge the rechargeable batteries of a cellular telephone. The AC line in terminals 2 and 3 are typically plugged into a wall socket to receive alternative current (AC) 110-240 VAC power. The two terminals 16 and 17 at the end of a cord are plugged into the cellular telephone. Initially, if the batteries in the cellular telephone are discharged, then the battery charger operates in the constant current (CC) mode and supplies charging current at the regulated current amount (in the present example, 1 ampere) . Then, once the batteries have charged to the point that the output voltage VOUT reaches the desired regulated voltage (in the present example, 5 volts) , the power supply 1 starts operating in the constant voltage (CV) mode. PSR CC/CV power supply 1 then regulates such that the output voltage VOUT stays at the desired regulated output voltage while the supplied output current decreases. [0007] Figure 2 (Prior Art) is a graph of output voltage VOUT versus output current IOUT. Initially when PSR CC/CV power supply 1 is operating in the CC mode, the output voltage and current operating point of the power supply lies on line 24. The point migrates vertically up line 24 as the voltage on the battery increases as the battery charges. When the point reaches corner 25, the power supply transitions to the CV mode. The point representing the output voltage and output current migrates to the left along horizontal line 26.
[0008] The graph of Figure 2 is, however, an idealization. In an actual PSR CC/CV power supply, lines 24 and 26 are not followed. The output voltage and current points may extend away from lines 24 and 26 so much that the actual power supply operating point is outside a specified permitted operating range. In the example of Figure 2 , for the power supply to meet a particular specification and standard, the output current IOUT in the CC mode must be within plus or minus ten percent of the regulated output current of 1.0 amperes . Similarly, the output voltage VOUT in the CV mode must be within plus or minus five percent of the regulated output voltage of 5.0 volts.
[0009] There are many potential reasons that the actual power supply operating point may be outside of the specified bounds. Different units of the PSR CC/CV controller integrated circuit may be affected in different ways by the semiconductor manufacturing process used to make the integrated circuits and by the process used to package the integrated circuits. U.S. Patent No. 6,750,640 teaches that after controller integrated circuits have been tested at "wafer sort", that their operation from unit to unit can be affected to different degrees by the packaging process. For example, U.S. Patent No. 6,750,640 teaches that power supply controller chips can be trimmed or adjusted after "wafer sort" and after packaging at "final test" of the integrated circuits .
[0010] Figure 3 (Prior Art) is a replication of Figure 1 from U.S. Patent No. 6,750,640. At integrated circuit final test, programmable circuit connections within the integrated circuit are programmed to trim or adjust certain functions of the power supply controller chip such as over voltage threshold, under voltage threshold, external current limit, maximum duty cycle and power supply enable/disable. Although the circuit of Figure 3 is satisfactory in certain respects, it is undesirable and/or unsatisfactory in other ways. Circuitry outside the controller integrated circuit may have electrical characteristics that are seen to differ, from power supply unit to power supply unit, such that these differences cause different units of seemingly identical mass produced power supplies to exhibit output voltage and output current operating points outside of the specified limits of Figure 2. For example, some manufactured power supply units may operate along line 27 under certain operating conditions (see Figure 4), whereas other units may operate along line 28 (see Figure 4) . Also, under some operating conditions, some power supply units may operate along line 29. The mass produced transformers used to make the power supplies may, for example, have primary inductances that vary from one transformer to the next. Also, mass produced power cords may have resistances that differ from each other. Such differing inductances and resistances may lead to different manufactured power supply units operating outside required bounds as illustrated in Figure 4, even if the controller integrated circuit 11 is adjusted at final test. Moreover, it may be desired to use the same controller integrated circuit and power supply design but to attach different power cords to different units of the power supply. Some units may be made to have long cords, whereas other units may be made to have short cords . Regardless of such variations, it is desired that all the assembled power supplies supply power at the end terminals of the power cord that is within the specified five percent and ten percent bounds illustrated in Figure 4.
SUMMARY
[0011] A novel primary-side regulation (PSR) controller integrated circuit includes a PSR CC/CV controller and a non-volatile shift register. An assembled power supply that includes the novel PSR CC/CV integrated circuit is in-circuit tested to determine errors in output voltage and/or output current of the power supply. Programming information is then determined. The integrated circuit is put into a program mode, and the determined programming information is shifted into the integrated circuit and into the non-volatile shift register. The programming information is then automatically programmed into the non-volatile shift register. During the program mode, the power supply regulates to either a higher or lower voltage than it does in normal mode and this higher or lower voltage is used as a programming voltage to program the non-volatile shift register. The type of non-volatile memory and particular integrated circuit wafer manufacturing process determines whether the programming voltage is higher or lower than the normal mode voltage.
[0012] After programming, when the assembled power supply is used and operates in normal mode, the programming information in the non-volatile shift register sets or controls circuitry in the PSR CC/CV controller integrated circuit such that the output voltage and output current of the power supply are within specification. Some of the bits of the programming information set the voltage to which the output voltage is regulated. Other bits of the programming information set the current to which the output current is regulated. Other bits of the programming information set or control error correction circuits of the PSR CC/CV controller such as a primary inductance variation compensation circuit, a line input voltage variation compensation circuit, an efficiency variation compensation circuit, and a cord resistance compensation circuit.
[0013] Other structures and methods are described in the detailed description below. This summary does not purport to define the invention. The invention is defined by the claims.
BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings, where like numerals indicate like components, illustrate embodiments of the invention.
[0015] Figure 1 (prior art) is a diagram of a conventional PSR CC/CV power supply.
[0016] Figure 2 (prior art) is an idealized graph of output voltage VOUT versus output current IOUT for a PSR CC/CV power supply.
[0017] Figure 3 (prior art) is a replication of Figure 1 from U.S. Patent No. 6,750,640.
[0018] Figure 4 (prior art) is a graph of output voltage VOUT versus output current IOUT for an assembled PSR CC/CV power supply.
[0019] Figure 5 is a diagram of a system 200 in accordance with one novel aspect.
[0020] Figure 6 is a more detailed circuit diagram of the PSR CC/CV controller integrated circuit 203 of Figure 5.
[0021] Figure 7 is a table that sets forth functions controlled by the various bits of programming information shifted into the non-volatile shift register 204 of Figure 6.
[0022] Figure 8 is a diagram that illustrates one way that the programmable resistors of Figure 6 can be realized.
[0023] Figure 9 is a waveform diagram of signals in power supply 202 of Figure 5.
[0024] Figure 10 is a waveform diagram that illustrates a novel method of putting PSR CC/CV controller integrated circuit 203 of Figure 5 into the program mode, of serially shifting programming information into the nonvolatile shift register, and then programming the programming information into the non-volatile shift register.
[0025] Figure 11 is a flowchart of a novel method of programming a PSR CC/CV controller integrated circuit. [0026] Figure 12 is a simplified circuit diagram of one way to realize a bit of non-volatile shift register 204 of Figure 5.
[0027] Figure 13 is a diagram that shows how IOUT increases with decreasing VOUT due to an increase in efficiency in an actual assembled PSR CC/CV power supply. [0028] Figure 14 is a circuit diagram of the efficiency variation compensation circuit 238 (CCl) and of the line input voltage variation compensation circuit 239 (CC2) of Figure 6.
[0029] Figure 15 shows the ramp up in primary current ILP in two conditions, where the two conditions lead to two different peak current values.
[0030] Figure 16 is a circuit diagram of the cord resistance compensation circuit 240 (CC3) of Figure 6. DETAILED DESCRIPTION
[0031] Reference will now be made in detail to some embodiments of the invention, examples of which are illustrated in the accompanying drawings.
[0032] Figure 5 is a diagram of a system 200 in accordance with one novel aspect. System 200 involves automatic test equipment (ATE) 201 and a power supply 202. Power supply 202 is an assembled and operating primary-side regulation constant current/constant voltage
(PSR CC/CV) flyback battery charger. In the illustrated example, power supply 202 is a populated printed circuit board of the power supply that is not yet covered with its plastic enclosure. The various nodes of the printed circuit board are accessible for probing and testing.
[0033] Rather than just testing and/or programming a PSR controller integrated circuit at "final test" of the integrated circuit as described in the background section of this patent document, novel PSR CC/CV controller integrated circuit 203 is a part of assembled power supply 202. While power supply 202 operates, ATE 201 exercises the power supply and collects information on how the power supply performs under different operating conditions. ATE 201 then uses the collected information to determine what programming information (DATA) to load into a rewritable non-volatile shift register 204 portion of integrated circuit 203. To load the programming information, ATE puts integrated circuit 203 into a program mode by some mechanism. In the present example, ATE 201 drives an unusually high voltage onto the FB feedback terminal 206 of integrated circuit 203. Because this high voltage is not a voltage that would ordinarily be on FB terminal 206 during normal power supply operation (not during program mode operation) , PSR CC/CV controller circuitry 217 of integrated circuit 203 detects the unusually high voltage and in response enters the program mode. ATE 201 then serially supplies bits of the determined programming information (DATA) onto feedback terminal FB 206 synchronously with the switching signal SW of integrated circuit 203 on SW terminal 205. The programming information is shifted into non-volatile shift register 204.
[0034] In one embodiment, PSR CC/CV controller integrated circuit 203 includes a programming information readback capability usable to verify that proper programming information was loaded into integrated circuit 203. Microcontroller terminal 232 is a bi-directional input/output terminal, and FB terminal 206 is also a bidirectional input/output terminal . Control logic of integrated circuit 203 includes logic that looks at the first bit received from ATE 201 and if the bit is a zero, then integrated circuit 203 remains in a write sub-mode of the program mode (integrated circuit 203 is written to in the program mode) , whereas if the bit is a one, then integrated circuit 203 enters a read sub-mode of the program mode (information from integrated circuit 203 is read by ATE 201) and shifts programming information out FB terminal 206 and onto conductor 233. ATE 201 reads the information from conductor 233, and confirms that proper programming information was shifted into nonvolatile shift register 204 during the write sub-mode. [0035] Once the proper programming information is in nonvolatile shift register 204, the programming information sets and adjusts various electrical output characteristics of power supply 202. In one example, the programming information (DATA) sets a desired regulation voltage at which integrated circuit 203 regulates the output voltage VOUT during constant voltage (CV) mode operation, and also sets a desired regulation current at which integrated circuit 203 regulates the output current IOUT during constant current (CC) mode operation. ATE 201 performs such testing and programming on unit after unit of assembled power supplies. By testing and programming at this "in-circuit" stage of manufacture of the power supplies, current/voltage points of operation outside of specified bounds due to variations in components of the power supply such as the transformer and the power cord can be compensated for such that all units after programming will operate within the specified bounds. The structure and operation of system 200 is described in further detail below.
OPERATION IN NORMAL MODE:
[0036] Assembled PSR CC/CV power supply 202 includes two AC input terminals 207 and 208, a full wave bridge rectifier 209, and a smoothing capacitor 210. An alternating current 110-240 volt (AC) line voltage on input terminals 207 and 208 is rectified by rectifier 209 and capacitor 210 so that a rectified and smoothed rough DC voltage is present between first and second input nodes 211 and 212. The voltage on first input node 211 is also referred to as the "input line voltage" or "line input voltage" (VIN) . VIN is used to power programmable PSR CC/CV controller integrated circuit 203. Power is received using a network involving resistor 213 and capacitor 214 such that a voltage referred to here as VDD is supplied onto a VCC terminal 215 of integrated circuit 203. Ground potential on input node 212 is supplied onto a ground terminal 216 of integrated circuit 203.
[0037] Assembled PSR CC/CV power supply 202 also includes a transformer 218, a switch 219, components 220 and 221, two diodes 223 and 224, an output capacitor 225, and a power cord that terminates in two terminals 226 and 227. The RCORD+ and RCORD- labels represent resistance of the power cord. Such resistances may, for example, be approximately 0.25 ohms. Transformer 218 includes a primary winding 228, a secondary winding 229, and an auxiliary winding 230.
[0038] Figure 6 is a more detailed circuit diagram of PSR CC/CV controller integrated circuit 203 of Figure 5. Integrated circuit 203 includes the non-volatile shift register 204. The remainder of the circuitry illustrated in Figure 6 is the PSR CC/CV controller 217 of Figure 5. Integrated circuit 203 has four and only four terminals: FB terminal 206, SW terminal 205, VDD terminal 215 and ground terminal 216.
[0039] Figure 7 is a table that sets forth the functions controlled by the various bits DOUT [0:31] of programming information stored in non-volatile shift register 204. [0040] Figure 8 is a diagram that illustrates one way that the programmable resistors Rl, R2 and R4 of Figure 6 can be realized. An incoming four-bit digital value on input leads 300 is decoded by 4:16 decoder 301 to generate control signals C1-C16. Each one of control signals C1-C16 controls a corresponding respective one of the various illustrated switches to short out or switch in the associated resistors RS1-RS16 between node 302 and 303. Resistor RS17 is always coupled into the current path between nodes 302 and 303.
[0041] When operating in the constant voltage (CV) mode and in the normal mode (not the program mode) , integrated circuit 203 causes an N-channel transistor 400 (see Figure 6) to be conductive. This allows current to begin to flow from line input node 211 (see Figure 5) , through primary winding 228, through switch 219, into SW terminal 205 of integrated circuit 203, through N-channel transistor 400, to ground terminal 216 of integrated circuit 203, and to ground node 212.
[0042] Figure 9 is a waveform diagram of signals in power supply 202. The waveform labeled ILP represents the current flowing through primary winding 228. In response to a rising edge of PCLK, control logic 411 (see Figure 6) asserts the switch-on signal SWON high, thereby turning on N-channel transistor 400 at time Tl. The primary current ILP ramps up as illustrated in Figure 9. [0043] The output voltage VOUT of the power supply is related to the voltage VAUX on auxiliary winding 230 during the off-time of switch 400. The waveform VAUX is illustrated in Figure 9. Integrated circuit 203 regulates output voltage VOUT by using the VAUX voltage detected through a voltage divider of external resistors RFBl and RFB2. The divided down VAUX voltage on the tap of the voltage divider is detected on FB terminal 206. When the power supply is in normal mode (not in program mode) , signal PMB is high and signal PM is low. Switch 401 of Figure 6 is therefore closed and switch 402 is open. The voltage on FB terminal 206 is therefore supplied through switch 401 and onto node 403. Feedback sampler 404 samples the voltage on node 403 each switching cycle at time T3 (see Figure 9) during the off- time of N-channel transistor 400 and supplies the sampled voltage VFB onto node 405. Transconductance error amplifier 406 generates an error signal based on a voltage difference between the voltage VFB on node 405 and a reference voltage VREF1 on node 407. Due to capacitor 408, error amplifier 406 functions as an integrator such that over time the relatively slowly varying voltage VCOMP decreases as the voltage VFB increases with respect to VREF1 from cycle to cycle. Current sense amplifier 409 senses the voltage drop across the on-resistance of N-channel transistor 400 during the on-time of transistor 400. In Figure 9, after time Tl when the primary current ILP begins to ramp up, the current sense signal VCS also begins to ramp up. When the voltage VCS increases to the point that it reaches VCOMP, comparator 410 (see Figure 6) trips and supplies a rising edge to control logic 411. Control logic 411, in response to receiving either a rising edge from comparator 410 or from comparator 412, forces signal SWON low and turns off N-channel transistor 400. The turning off of N-channel transistor 400 is illustrated at time T2 in Figure 9. The cutting off of current flow in primary winding 228 causes current to flow in secondary- winding 229 as illustrated in waveform ILS in Figure 9. The ILS current ramps down as illustrated until it reaches zero. This operation is referred to as "discontinuous mode" operation because there is an amount of time during the off-time of switch 219 when there is no current flow in the secondary winding 229. The switching cycle repeats on the next rising edge of the clock signal PCLK. The control loop operates to keep the N-channel transistor 400 conductive for a long enough amount of time that the voltage VFB on node 405 is regulated to be equal to the voltage VREF1 on node 407. VREF' is adjusted so that VOUT is regulated to the desired voltage.
[0044] When operating in the constant current (CC) mode and in the normal mode (not the program mode) , integrated circuit 203 also causes N-channel transistor 400 to be switched on and off. As in the case of the CV mode, the rising edge of PCLK causes control logic 411 to assert signal SWON high, thereby making N-channel transistor 400 conductive at the beginning of the switching cycle. Rather than N-channel transistor 400 being turned off due to a rising edge output from comparator 410, however, the N-channel transistor 400 is turned off due to a rising edge output from current limit comparator 412. During the on-time of N-channel transistor 400, the signal VCS ramps up along with the primary current waveform ILP illustrated in Figure 9. Although voltage VCOMP is higher than the voltage VCS, the voltage VCS reaches the voltage VILIM on node 413. Current limit comparator 412 therefore trips and supplies a rising edge signal to control logic 411. Control logic 411 responds to this rising edge by forcing SWON low and turning N-channel transistor 400 off. Accordingly, rather than a rising edge from comparator 410 causing N-channel transistor 400 to turn off as in the CV mode, a rising edge from current limit comparator 412 causes N-channel transistor 400 to turn off in the CC mode. VILIM on node 413 is adjusted so that IOUT is regulated to the desired regulated current .
OPERATION IN PROGRAM MODE:
[0045] Figure 10 is a waveform diagram that illustrates a novel method of putting PSR CC/CV controller integrated circuit 203 into the program mode, of serially shifting programming information into the non-volatile shift register 204 of integrated circuit 203 while in the program mode , and then programming the programming information into the non-volatile shift register 204 while in the program mode. Initially, the assembled power supply 202 is operating in constant voltage mode and in normal mode, and is coupled to ATE 201 as illustrated in Figure 1. In normal operation, the voltage on FB terminal 206 of integrated circuit 203 is approximately 2.5 volts. Microcontroller 231 is coupled to FB terminal 203 via output terminal 232 and conductor 233. Microcontroller 231 does not drive conductor 233, but rather maintains its terminal 232 in a high-impedance state so that the feedback voltage on terminal FB 206 is not affected by the microcontroller.
[0046] Then, at time T4 , microcontroller 231 drives its terminal 232 to five volts, thereby driving conductor 233 and terminal FB 206 of integrated circuit 203 to five volts. This is illustrated in the upper waveform labeled FB(PIN) in Figure 10. This condition is detected by- program mode detection circuitry 234 in Figure 6. Signal PM is asserted high, and signal PMB is asserted low. The assertion of signal PM high is represented by the low-to- high transition of the signal waveform PM in Figure 10. When PM transitions high, switch 401 opens and decouples the terminal FB 206 from node 403, and switch 402 closes and couples node 403 to an on-chip resistor voltage divider involving resistors RIl and R12. Whereas the external resistors RFBl and RFB2 of Figure 5 are sized such that integrated circuit 203 operates in CV mode to regulate the output voltage VOUT to 5.0 volts and VAUX to a corresponding 15.0 volts, for example, the internal resistors RIl and R12 are sized such that integrated circuit 203 operates in CV mode to regulate the VOUT to a voltage higher than 5.0 volts. VAUX is therefore at a corresponding 17.0 volts. The VAUX of 17.0 volts is referred to as the programming voltage VPP. Note that in each successive switching cycle illustrated in Figure 10, the VFB and VDD voltages increase until VDD (VDD is VAUX minus a diode voltage drop) reaches 17.0 volts. [0047] Microcontroller 231, after driving FB terminal 206 to five volts and putting integrated circuit 203 into the program mode, uses the signal SW to time the driving of programming data across conductor 233 and onto FB terminal 206. ATE 201 receives the signal SW, and inverts it to form the signal UCLK that is then received by microcontroller 231. Microcontroller 231 detects this signal UCLK and drives the first bit of programming information onto conductor 233 in response to a low-to- high transition of UCLK (this corresponds to a high-to- low transition of SW) . This occurs roughly at time T5 in the waveform diagram of Figure 10. [0048] Upon entering the program mode, the signal PM as supplied to the non-volatile shift register 204 in Figure 6 is asserted high, thereby allowing DCLK (an inverted version of the switching signal SWON) to pass through AND gate 235 and to cause BCLK to begin clocking. In Figure 10, note that the first BCLK pulse occurs after entering the program mode after time T4, and that this first pulse of BCLK has the same shape as the corresponding pulse of DCLK. The falling edge of BCLK corresponds to the rising edge of UCLK that microcontroller 231 used to begin driving the first bit of programming information onto conductor 233. The subsequent first rising edge of BCLK at time T6 causes this first bit of programming information (that was previously set up by- microcontroller 231 onto terminal FB 206) to be clocked into BITO (MSB first, for example) of the non-volatile shift register 204. The system 200 uses the signal SW to synchronize the shifting of programming information from ATE 201 into integrated circuit 203.
[0049] This supplying of a bit of programming data onto FB terminal 206 by microcontroller 231 and the subsequent clocking of that bit into non-volatile shift register 204 occurs bit by bit until all thirty-two bits of shift register 204 have been loaded with corresponding bits of programming information. The shifting in of the last bit occurs on the rising edge of BCLK shortly after time T7 in the waveform diagram of Figure 10. Counter 236 in the non-volatile shift register 204 counts the number of times DCLK transitions high, and on the next rising edge of DCLK shortly after time T8 counter 236 asserts a signal (designated "N+l" in Figure 6) high. Assertion of this signal triggers a one-shot 237 such that one-shot 237 asserts a program enable signal PREN high. Assertion of signal PREN is illustrated after time T8 in the waveform diagram of Figure 10. Assertion of PREN high causes the bits of programming information to be programmed into their respective bits of the non-volatile shift register 204. When one-shot 237 times out, PREN transitions low. In this example, operation continues in program mode until the input supply voltage to power supply 202 is removed or tuned off and the power supply 202 is unpowered. When power is thereafter applied to power supply 202 to verify operation after programming by ATE, or when power supply 202 is used by an end customer, the integrated circuit 203 starts up in normal mode (signal PM is low and remains low) . The power supply 202 therefore does not operate in program mode unless it is forced to enter program mode by ATE 201. [0050] Figure 11 is a flowchart of a method 500 of programming a PSR CC/CV controller integrated circuit in accordance with one novel aspect. In a first step (step 501) , an assembled application circuit is coupled to automatic test equipment (ATE) . In one example, the assembled application circuit is the PSR CC/CV power supply 202 of Figure 5 and the ATE is ATE 201 of Figure 5.
[0051] Next (step 502), the ATE exercises and tests the assembled application circuit and collects test data. In one example, the ATE collects data on how IOUT changes with VIN, on how IOUT changes with VOUT, and on how VOUT changes with cord resistance.
[0052] Next (step 503), software executing in the ATE uses the collected test data to determine how to program the PSR controller integrated circuit in the assembled application circuit in order to correct for undesired output characteristics of the tested application circuit. In one example, this software determines what the values of the thirty-two bits of programming information shifted into non-volatile shift register 204 should be to correct for detected errors in the voltage and current output by power supply 202.
[0053] Next (step 504), the ATE drives the FB terminal of the PSR controller integrated circuit to five volts such that the PSR controller integrated circuit begins operating in the program mode.
[0054] Next (step 505) , the PSR controller switches from using an external voltage divider involving RFBl and RFB2 to using an internal voltage divider involving resistors RIl and R12. The overall assembled application circuit then regulates VOUT to a higher voltage such that VDD received into the PSR controller integrated circuit increases or decreases to a programming voltage. In one example, VDD increases from approximately 15 volts to approximately 17 volts.
[0055] Next (step 506) , the ATE serially supplies bits of programming information to the PSR controller integrated circuit synchronously with the signal SW, and the PSR controller shifts the bits into its non-volatile shift register synchronously with the signal SW. In one example, ATE 201 of Figure 5 supplies bits of programming information onto the FB terminal 206 of integrated circuit 203 synchronously with falling edges of signal SW, and integrated circuit 203 clocks in the bits of programming information synchronously with rising edges of signal SW.
[0056] Next (step 507), the PSR controller integrated circuit uses the programming voltage (the raised 17 volt voltage VDD) to program the loaded programming information into the bits of the non-volatile shift register .
[0057] Next (step 508), the power supply is powered off and back on, and is retested to obtain the power supply's output voltage and output current profile to verify proper power supply operation after programming. [0058] Next (step 509) , the programmed application circuit is decoupled from the ATE and the next assembled application circuit to be tested is coupled to the ATE. Steps 501-509 are repeated automatically and rapidly under control of the ATE such that a sequence of many assembled application circuits (for example, CC/CV power supplies) is tested and programmed.
[0059] Figure 12 is a simplified circuit diagram of one way to realize a bit of non-volatile shift register 204. Tunneling transistor 611 is an N-channel transistor having a body that is isolated from the integrated circuit substrate. The body is isolated so that body can be pulled up to the programming voltage.
[0060] To program a bit of programming information into the non-volatile cell of Figure 12, a bit of programming information on DIN serial input 600 is shifted into D- type flip-flop 601 on the rising edge of BCLK. BCLK is received on clock input 602. Once the bit of programming information is present in flip-flop 601, the programming enable signal PREN is pulsed as illustrated in Figure 10. The programming voltage is therefore supplied onto conductor 603. If the bit of information stored in flip- flop 601 is a digital logic high, then NOR gate 604, transistor 605 and resistor 606 cause the programming voltage to be supplied onto the source-body of P-channel transistor 607. Also, OR gate 608, transistor 609 and resistor 610 cause ground potential to be coupled onto the body-source-drain terminals of tunneling transistor 611. The floating gate of P-channel transistor 607 is then programmed such that transistor 607 is conductive and such that the non-volatile cell stores a digital logic high.
[0061] If, on the other hand, the bit of information stored in flip-flop 601 is a digital logic low, then NOR gate 604, transistor 605 and resistor 606 cause ground potential to be coupled onto the source-body of P-channel transistor 607. OR gate 608, transistor 609 and resistor 610 cause the programming voltage to be supplied onto the body of tunneling transistor 611. The floating gate of P-channel transistor 607 is then programmed such that transistor 607 is nonconductive and such that the nonvolatile cell stores a digital logic low. The programmed values of each non-volatile bit are latched into flip- flop 601 at power-up of the PSR CC/CV controller integrated circuit when POR transitions from low to high.
EFFICIENCY VARIATION COMPENSATION:
[0062] Figure 13 is a diagram that represents operation of an actual assembled PSR CC/CV power supply. As VOUT decreases, IOUT is seen to increase. The output voltage and output current points of operation do not follow the ideal vertical line 700, but rather follow the dashed line 701. This is because as VOUT decreases, efficiency of the power supply increases. In constant current mode, the PSR CC/CV controller integrated circuit makes the switching frequency fs proportional to VOUT. Therefore, as VOUT decreases, fs decreases. There are, however, switching losses associated with switching the power supply, so reducing the switch frequency fs reduces the amount of switching and causes a reduction in switching losses, thereby increasing efficiency. As indication by- Equation 1 below, a change in efficiency η causes proportional a change in IOUT in an ordinary uncorrected PSR power supply.
Figure imgf000023_0001
where Lp is the primary winding inductance and IP is the peak current in the primary winding in each switching cycle . [0063] Figure 14 illustrates the efficiency variation compensation circuit 238 (CCl) of Figure 6. The voltage VILM on node 413 sets the peak current limit value ILIM which determines IOUT in constant current mode. Decreasing VILIM therefore decreases IOUT. Increasing VILIM therefore increases IOUT. The magnitude of VILM is set in part by the resistances of resistors R3 and R4 , and by the reference voltage VREF. The novel efficiency- variation compensation circuit 238 works by generating a current 702 that decreases in proportion to a decrease in VOUT. This current 702 is supplied onto node 413. Therefore if VOUT decreases, the total current flowing into node 413 decreases, and the voltage VILIM deceases, thereby decreasing ILIM and IOUT from what it would otherwise be. This reduction in IOUT compensates for and corrects for what would otherwise be an increase in IOUT as VOUT decreases. Amplifier 703 operates to force the voltage across programmable resistor R5 to be VFB. The current flowing across R5 is therefore VFB/R5. This current is mirrored by current mirror 704 to generate the current 702 that is made to flow into node 413. Accordingly, programming the resistance of programmable resistor R5 allows the amount of efficiency compensation to be adjusted.
PRIMARY INDUCTANCE VARIATION COMPENSATION: [0064] In accordance with Equation 1 above, IOUT varies with variations in primary winding inductance. Such variations in primary winding inductance, from manufacturer transformer unit to manufactured transformer unit, arise from variations in the transformer manufacturing process. Variations in IOUT, which are due to variations in Lp, can be corrected by trimming R4. For example, if Lp varies by +7%, then R4 can be adjusted down by 2.64% (the square root of seven percent) , to bring IOUT back down to the desired nominal value. Programmable resistor R4 adjusts VILIM, which sets the peak current, IP, in the primary winding.
VIN LINE VOLTAGE VARIATION COMPENSATION:
[0065] In constant current (CC) mode, current limit comparator 412 detects when the primary current exceeds the current limit ILIM when switch 400 is on. When the current sense voltage VCS exceeds the current limit voltage VILIM on node 413, comparator 412 trips and outputs a low-to-high transition that in turn causes control logic 411 to force switch signal SWON low, thereby causing N-channel transistor 400 to be turned off and causing switch 219 to be turned off. There is, however, a delay in time between the time VCS exceeds VILIM and the time when switch 219 is actually turned off and current stops flowing in primary winding 228. It is assumed that this turn-off propagation is approximately fixed, regardless of the magnitude of the input line voltage VIN. In an ordinary PSR CC/CV power supply, the rate of current ramping up in the primary winding depends on the magnitude of the input line voltage VIN. The rate is roughly given by Equation 2 below.
dl _ VIN
(Equ. 2) dT~ LP
[0066] Figure 15 shows the ramp up in primary current ILP when switch 219 is on in two conditions. In one condition (represented by dashed line 705) the input line voltage VIN is relatively high, for example 240 VAC, whereas in the other condition (represented by line 706) VIN is relatively low, for example 100 VAC. As indicated in Figure 15, if the slope of current ramp up in the primary is steeper, then the primary inductor current ILP will continue to rise a greater amount during the approximately fixed turn-off time (between the time VCS crosses the current limit voltage VILIM and the time when the switch 219 actually turns off and current stops flowing in primary winding 228) . If the slope of current ramp up in the primary inductor is less steep, then the primary inductor current ILP will continue to rise a smaller amount during the approximately fixed turn-off time (between the time VCS crosses the current limit voltage VILIM and the time when the switch 219 actually turns off and current stops flowing in the primary winding 228) . The peak current IP of the power supply- therefore varies and this causes the regulated output current IOUT to vary as well. IOUT is seen to vary with the input line voltage VIN.
[0067] In one novel aspect, input voltage variation correction circuit 239 (CC2) of Figures 6 and 14 operates to compensate for and correct for this undesirable variation in peak current IP. A current is pulled from node 413 so that VILIM is less than it otherwise would be, and this current is made to increases proportionally with increasing VIN so that the effect illustrated in Figure 15 is corrected. As indicated in Figure 9, when switch 219 is conductive the voltage on the auxiliary- winding VAUX is negative. VAUX is approximately (- VIN* (NA/NP) ) . This negative VAUX is voltage-divided by the resistor voltage divider of resistors RFBl and RFB2 such that a negative voltage is present on FB terminal 206 during the on-time of switch 219. N-channel transistor 707 is diode-connected and has its source grounded. This causes the source of the other N-channel transistor 708 to be roughly at ground potential as well. The negative voltage on FB terminal 206 causes a current to flow out of transistor 708 that is roughly equal to - VIN* (NA/NP) /RFBl . This current is proportional to input line voltage VIN. This current is mirrored by the P- channel current mirror 709. The resulting mirrored current 710 flows across programmable resistor R9 to generate a voltage VR9 that varies proportionally with input line voltage VIN. Amplifier 711 operates to force the voltage on node 712 to the voltage on its non- inverting input lead. The current 713 flowing through resistor RlO is therefore proportional to the input line voltage VIN. This current 713 is pulled from node 413 such that it serves to decrease the voltage VILIM on node 413 as VIN increases. Accordingly, if input line voltage VIN increases then the current 713 increases and the VILIM voltage is pulled down more to combat the affect illustrated in Figure 15. Conversely, if the input line voltage VIN decreases then the current 713 decreases and the VILIM voltage is pulled down less.
VOUT CORD RESISTANCE COMPENSATION:
[0068] When a conventional PSR CC/CV power supply is in use, it is coupled via a cord to the rechargeable battery of the device being charged. The resistance of the cord may be significant. Moreover, different units of the power supply may be intended to charge different types of devices, so the different units of the power supply may have different types of cords that have different resistances. Despite these differences in cord resistance, all units of the power supply are to operate within the constant current (CC) and constant voltage (CV) specifications illustrated in Figures 2 and 4. The bigger the resistance of the cord, the smaller VCORD at the end of the cord will be if the power supply is outputting current. Moreover, if the current output by the power supply increases, the voltage VCORD at the end of the cord decreases. This is undesirable. If IOUT increases, it is desired that VOUT be made to increase so that VCORD at the end of the cord remains constant, despite changes in IOUT, when the PSR CC/CV power supply- operates in constant voltage (CV) mode. [0069] The novel cord resistance compensation circuit (CC3) 240 of Figures 6 and 16 compensates for changes in VCORD due to changes in IOUT. It is recognized that in a current -mode PWM controller in CV mode, VCOMP is proportional to IOUT when the controller is in regulation. As IOUT increases, VCOMP increases. Cord resistance compensation circuit (CC3) 240 compensates for the increasing IOUT by supplying a current 800 onto node 407 that raises the voltage VREF' such that VOUT increases as IOUT increases. Amplifier 801 converts VCOMP1 into a proportional current 802, which is equal to VCOMP '/Rl. Current 802 is mirrored by the P-channel mirror 803 to output a current 800. Current 800 is supplied onto node 407. Resistance of programmable resistor R7 determines the amount of cord resistance compensation for what would otherwise be a decrease in VCORD as IOUT decreases. [0070] Although certain specific embodiments are described above for instructional purposes, the teachings of this patent document have general applicability and are not limited to the specific embodiments described above. Conductor 233 can be used to communicate other types of information both from ATE 201 to integrated circuit 203, and from integrated circuit 203 to ATE 201. Error information, diagnostic information, control information, and error detection codes can be communicated across conductor 233. In one advantageous aspect, this information is communicated synchronously with respect to the signal SW when power supply 202 is operating. Such information can be communicated during normal operation of power supply 202 when the power supply is not coupled to ATE equipment, as well as during testing of power supply 202 such as the in- circuit testing described above. Accordingly, various modifications, adaptations, and combinations of various features of the described embodiments can be practiced without departing from the scope of the invention as set forth in the claims.

Claims

CLAIMS What is claimed is:
1. An integrated circuit comprising: a primary- side regulation constant current/constant voltage (PSR CC/CV) controller that regulates an output voltage (VOUT) of switching power supply in a constant voltage (CV) mode such that the output voltage is regulated to a regulated voltage value, and that regulates an output current (IOUT) of the switching power supply in a constant current (CC) mode such that the output current is regulated to a regulated current value,- and a non-volatile shift register that stores a first value, wherein the first value is a factor in determining the regulated voltage value.
2. The integrated circuit of claim 1, wherein the integrated circuit has four and only four terminals.
3. The integrated circuit of claim 1, wherein the integrated circuit includes a primary inductance variation compensation circuit, and wherein the second value sets the primary inductance variation compensation circuit .
4. The integrated circuit of claim 1, wherein the PSR CC/CV controller is operable in a normal mode and in a program mode, wherein in the normal mode the PSR CC/CV controller regulates the output voltage in the constant voltage mode such that the output voltage is regulated to the regulated voltage value, whereas in the program mode the PSR CC/CV controller regulates the output voltage in the constant voltage mode such that the output voltage is regulated to a voltage different than the regulated voltage value.
5. The integrated circuit of claim 4, wherein the PSR CC/CV controller includes a line input voltage variation compensation circuit.
6. A primary-side regulation constant current/constant voltage (PSR CC/CV) controller integrated circuit that is operable in a constant voltage (CV) mode and in a constant current (CC) mode, wherein the PSR CC/CV controller stores a first value and a second value in a non-volatile shift register that is part of the PSR CC/CV controller integrated circuit, wherein the first value is a factor in determining a voltage at which the PSR CC/CV controller integrated circuit regulates a power supply- output voltage in the CV mode, and wherein the second value is a factor in determining a current at which the PSR CC/CV controller integrated circuit regulates a power supply output current in the CC mode .
7. The PSR CC/CV controller integrated circuit of claim 6, wherein the PSR CC/CV controller integrated circuit is operable in a program mode, wherein in the program mode the PSR CC/CV controller integrated circuit shifts in bits of information synchronously with a switch signal output by the PSR CC/CV controller integrated circuit.
8. The PSR CC/CV controller integrated circuit of claim 6, wherein the PSR CC/CV controller integrated circuit includes a cord resistance compensation circuit.
9. The PSR CC/CV controller integrated circuit of claim 6, wherein the PSR CC/CV controller integrated circuit includes an efficiency variation compensation circuit .
10. The PSR CC/CV controller integrated circuit of claim 6, wherein the PSR CC/CV controller integrated circuit includes a line input voltage variation compensation circuit.
11. A method comprising:
(a) shifting a first value and a second value into a non-volatile shift register in a primary-side regulation constant current/constant voltage (PSR CC/CV) controller integrated circuit, wherein the first value is usable by the PSR CC/CV controller integrated circuit to set a power supply regulated output voltage to which the PSR CC/CV controller integrated circuit regulates in a constant voltage (CV) mode, wherein the second value is usable by the PSR CC/CV controller integrated circuit to set a power supply regulated output current to which the PSR CC/CV controller integrated circuit regulates in a constant current (CC) mode.
12. The method of claim 11, wherein the PSR CC/CV controller integrated circuit is a part of an operating power supply during the shifting of (a) .
13. The method of claim 11, further comprising:
(b) shifting a third value into the non-volatile shift register, wherein the PSR CC/CV controller integrated circuit includes an input voltage variation compensation circuit, and wherein the third value is used to set the input voltage variation compensation circuit.
14. The method of claim 11, further comprising:
(b) causing the PSR CC/CV controller integrated circuit to enter a program mode such that the PSR CC/CV controller integrated circuit changes the power supply regulated output voltage to which the power supply regulates the power supply output voltage in the constant voltage (CV) mode; and
(c) using the changed power supply regulated output voltage to program the first and second values into the non-volatile shift register.
15. The method of claim 13, further comprising:
(c) testing a power supply and obtaining therefrom test data, wherein step (c) occurs before steps (a) and (b) , wherein the PSR CC/CV controller integrated circuit is a part of the power supply; and
(d) using automatic test equipment (ATE) to determine the third value based at least in part on the test data, wherein step (d) occurs after step (c) but before steps (a) and (b) .
16. The method of claim 11, further comprising:
(c) testing a power supply and obtaining therefrom test data, wherein step (c) occurs before steps (a) and (b) , wherein the PSR CC/CV controller integrated circuit is a part of the power supply; and
(d) using automatic test equipment (ATE) to determine the third value based at least in part on the test data, wherein step (d) occurs after step (c) but before steps (a) and (b) .
17. The method of claim 11, further comprising:
(b) shifting a third value into the non-volatile shift register, wherein the PSR CC/CV controller integrated circuit includes a cord resistance compensation circuit, and wherein the third value is used to set the cord resistance compensation circuit.
18. A method comprising:
(a) operating a primary-side regulation (PSR) power supply and obtaining therefrom test data, wherein the PSR power supply includes an integrated circuit and a transformer, wherein the integrated circuit includes a PSR controller; and
(b) programming information into integrated circuit while the PSR power supply is operating, wherein (b) occurs after the obtaining of the test data of (a) .
19. The method of claim 18, wherein the integrated circuit is a packaged integrated circuit, and wherein (a) and (b) occur after a final test of the packaged integrated circuit before the packaged integrated circuit is assembled with the transformer to form the PSR power supply.
20. An integrated circuit comprising: a non-volatile storage circuit that stores a first value and a second value; and means for regulating an output of a primary- side regulation constant current /constant voltage (PSR CC/CV) power supply, wherein the first value is a factor in setting a regulated output voltage at which the output is regulated in a constant voltage (CV) mode of the power supply, and wherein the second value is a factor in setting a regulated output current at which the output is regulated in a constant current (CC) mode of the power supply.
21. The integrated circuit of claim 20, wherein the means is also for changing the regulated output voltage when the means is operating in a program mode, wherein the changed regulated output voltage is used to program the non-volatile storage circuit.
22. A method comprising:
(a) serially loading bits of information into a primary-side regulation constant current/constant voltage
(PSR CC/CV) controller integrated circuit.
23. The method of claim 22, wherein the bits of information are clocked into the PSR CC/CV controller integrated circuit synchronously with respect to a switch control signal output by the PSR CC/CV controller integrated circuit .
24. The method of claim 23, further comprising:
(b) supplying the bits of information onto a terminal of the PSR CC/CV controller integrated circuit synchronously with respect to the switch control signal .
25. The method of claim 24, wherein a bit of the information in (a) is supplied onto the terminal synchronously with one of a rising edge and a falling edge of the switch control signal, and wherein the bit of the information is clocked into the PSR CC/CV controller integrated circuit synchronously with the other of the rising edge and falling edge of the switch control signal.
26. The method of claim 22, wherein the bits of information are stored in non-volatile storage in the PSR CC/CV controller integrated circuit.
27. The method of claim 22, wherein the bits set a voltage at which a power supply regulates an output voltage in a constant voltage (CV) mode, wherein the power supply includes the PSR CC/CV controller integrated circuit .
28. The method of claim 22, wherein the bits set a current at which a power supply regulates an output current in a constant voltage (CC) mode, wherein the power supply includes the PSR CC/CV controller integrated circuit .
29. The method of claim 22, wherein the serial loading of (a) occurs when the PSR CC/CV controller integrated circuit is a part of an operating power supply, and when the PSR CC/CV controller integrated circuit is outputting a switch control signal.
30. The method of claim 22, wherein the PSR CC/CV controller integrated circuit has four and only four terminals .
31. A primary-side regulation (PSR) integrated circuit comprising: a PSR controller; and a shift register adapted to shift in programming information received on a terminal of the integrated circuit, wherein the programming information adjusts the PSR controller.
32. The PSR integrated circuit of claim 31, wherein the PSR integrated circuit has four and only four terminals.
33. The PSR integrated circuit of claim 32, wherein the shift register includes floating-gate non-volatile storage elements and a mechanism for automatically storing the programming information into the floating- gate non-volatile storage elements.
34. A method comprising:
(a) using a PSR CC/CV controller integrated circuit, wherein programming information that was serially shifted into the integrated circuit is stored in the integrated circuit .
35. The method of claim 34, wherein the programming information sets a voltage at which the PSR CC/CV controller integrated circuit regulates an output voltage of a power supply.
36. The method of claim 34, wherein the programming information sets a current at which the PSR CC/CV controller integrated circuit regulates an output current of a power supply.
37. The method of claim 34, wherein the programming information sets a reference voltage generated within the PSR CC/CV controller integrated circuit.
38. The method of claim 34, further comprising:
(b) shifting the programming information out of the integrated circuit.
39. An integrated circuit comprising: a feedback terminal; a switch terminal; a primary-side regulation (PSR) controller coupled to the feedback terminal and coupled to the switch terminal; and means for receiving a serial bit stream of digital information via the feedback terminal and for storing the digital information in the integrated circuit and for supplying the digital information to the PSR controller.
PCT/US2008/006987 2008-03-24 2008-06-03 Programming output voltage and current characteristics of a psr power supply WO2009120171A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US12/079,039 2008-03-24
US12/077,961 US8014217B2 (en) 2008-03-24 2008-03-24 Serially loading programming information into a PSR CC/CV controller integrated circuit
US12/079,039 US7978558B2 (en) 2008-03-24 2008-03-24 In-circuit programming of output voltage and output current characteristics of a PSR power supply
US12/077,961 2008-03-24

Publications (1)

Publication Number Publication Date
WO2009120171A1 true WO2009120171A1 (en) 2009-10-01

Family

ID=41114203

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2008/006987 WO2009120171A1 (en) 2008-03-24 2008-06-03 Programming output voltage and current characteristics of a psr power supply

Country Status (1)

Country Link
WO (1) WO2009120171A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5781000A (en) * 1995-06-16 1998-07-14 Fujitsu Limited Power control unit loading test method
US6005377A (en) * 1997-09-17 1999-12-21 Lucent Technologies Inc. Programmable digital controller for switch mode power conversion and power supply employing the same
US6618711B1 (en) * 1995-12-28 2003-09-09 International Business Machines Corporation Programmable supervisory circuit and applications thereof
US20060025892A1 (en) * 2004-07-27 2006-02-02 Leung Ka Y Digital power supply controller with voltage positioning
US20060186955A1 (en) * 2005-01-12 2006-08-24 Qsc Audio Products, Inc. Multi-channel, multi-power class D amplifier with regulated power supply
US7203079B2 (en) * 2004-07-23 2007-04-10 System General Corp. Switching controller having frequency hopping for power supplies

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5781000A (en) * 1995-06-16 1998-07-14 Fujitsu Limited Power control unit loading test method
US6618711B1 (en) * 1995-12-28 2003-09-09 International Business Machines Corporation Programmable supervisory circuit and applications thereof
US6005377A (en) * 1997-09-17 1999-12-21 Lucent Technologies Inc. Programmable digital controller for switch mode power conversion and power supply employing the same
US7203079B2 (en) * 2004-07-23 2007-04-10 System General Corp. Switching controller having frequency hopping for power supplies
US20060025892A1 (en) * 2004-07-27 2006-02-02 Leung Ka Y Digital power supply controller with voltage positioning
US20060186955A1 (en) * 2005-01-12 2006-08-24 Qsc Audio Products, Inc. Multi-channel, multi-power class D amplifier with regulated power supply

Similar Documents

Publication Publication Date Title
US7978558B2 (en) In-circuit programming of output voltage and output current characteristics of a PSR power supply
US8680836B2 (en) Regulating current output from a buck converter without external current sensing
US8279631B2 (en) Limiting primary peak charge to control output current of a flyback converter
US9071153B2 (en) Method and apparatus for power converter fault condition detection
US7777457B2 (en) Constant frequency current-mode buck-boost converter with reduced current sensing
US8018741B2 (en) Adjusting for conductor loss to regulate constant output voltage in a primary feedback converter
US8531163B2 (en) Switching power supply device, integrated circuit, and switching power supply device operation condition setting method
US8077487B2 (en) Using output drop detection pulses to achieve fast transient response from a low-power mode
US7598715B1 (en) Apparatus and method for reverse current correction for a switching regulator
CN104009632B (en) Over power compensation in switched mode power supplies
US8014217B2 (en) Serially loading programming information into a PSR CC/CV controller integrated circuit
JP5857702B2 (en) Switching power supply
WO2009120171A1 (en) Programming output voltage and current characteristics of a psr power supply
US11742742B2 (en) Constant-current control device and related control method
JP7443974B2 (en) Integrated circuits, power circuits
DC typical application
Protection et al. Synchronous PWM Controller
Coverter typical application

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08768075

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08768075

Country of ref document: EP

Kind code of ref document: A1