Programmable feedback voltage pulse sampling for switched power supplies

Information

  • Patent Application
  • 20080049459
  • Publication Number
    20080049459
  • Date Filed
    August 22, 2006
    18 years ago
  • Date Published
    February 28, 2008
    16 years ago
Abstract
Disclosed is a method and apparatus that includes a power supply having a primary coil and a secondary coil. The secondary coil generates an output voltage and a feedback voltage related to the output voltage. The feedback voltage is sampled at a time instant that is digitally controllable. The output voltage is determined from the feedback voltage.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a block diagram of a flyback power stage circuit having three coils and producing an output voltage and a feedback voltage;



FIG. 2 is a timing diagram of a feedback voltage waveform associated with the feedback voltage;



FIG. 3 is a block diagram of a switching voltage regulation circuit that digitally samples the feedback voltage of a flyback power stage; and



FIG. 4 is a block diagram of an isolated flyback power supply.





DETAILED DESCRIPTION


FIG. 2 is a timing diagram 200 for the feedback voltage 132 of the flyback circuit 100. The timing diagram 200 includes a waveform 204 representing the feedback voltage 132. The waveform 204 is plotted with respect to a ground line 208 (i.e., zero volts). The timing diagram 200 also includes a switch state 212 illustrating the state of the MOSFET switch 124. Although described above and below with a MOSFET switch, any switching element may be used (e.g., transistor(s), logic gates, relays, switch, etc.). The waveform 204 is below an input voltage Vin line 216 during a first period 220. A first period 220 occurs while the MOSFET switch 124 is in an “on” state, as shown with the “ON” block 224 of the switch state 212. When the MOSFET switch 124 is turned “off” (shown with the “OFF” block 228 of the switch state 212), the feedback voltage 132 initially spikes upward, as shown with spike 232. The feedback voltage 132 then levels off at a plateau 236 until it collapses by itself or the MOSFET 124 is switched back “on”. Once this occurs, the feedback voltage waveform 204 (and, therefore, the feedback voltage 132) falls at point 240 and levels off close to the ground 208 at line 244.


The time that the feedback voltage waveform 204 accurately represents the output voltage Vout 120 is during the plateau 236. Thus, if a circuit designer uses analog components such as resistors and capacitors to set a time constant to measure this feedback voltage 132 (and, therefore, to indirectly measure the output voltage Vout 120), the values of the resistors and capacitor have to be extremely accurate because the time period of the plateau is typically extremely small (e.g., in the few hundreds of nanoseconds). Because of natural imperfections in analog components such as resistors and capacitors, it is often difficult to set their values correctly. Often, a lab technician has to choose resistor and capacitor values through trial and error. Further, resistor and/or capacitor values may be affected by changes in temperature.



FIG. 3 shows a block diagram of a circuit that digitally samples feedback voltage Vfeedback 302 of a flyback power supply 304. In particular, the digital sampling, or measuring, of feedback voltage Vfeedback 302 is performed by solid state circuit 308. The feedback voltage Vfeedback 302 is transmitted to an analog front-end circuit 312. The analog front-end circuit 312 includes a sample and hold circuit 316. The sample and hold circuit 316 is used to interface the analog feedback voltage Vfeedback 302 to an analog-to-digital converter (ADC) 320. The sample and hold circuit 316 holds the relevant analog value of the feedback voltage Vfeedback 302 steady until the next sampling instant. During that time, the ADC 320 performs operations to convert the sampled value into a digital word to be used for further digital processing.


The ADC 320 converts the analog feedback voltage Vfeedback 302 into a digital word 324 and transmits the digital word 324 to a digital loop control 328 in circuit 329. The output 330 of the digital loop control 328 is a switching control waveform primarily controlling the state of the MOSFET switch 340 (ON or OFF) through a MOSFET driver 336. It is also transmitted through a digital delay chain 332 back to the sample and hold circuit 316. The digital delay chain 332 includes one or more flip flops (e.g., D flip flops) clocked at a digital system clock to cause a known delay that is a multiple of the digital system clock period. For example, if the digital delay chain 332 uses one flip flop, the delay is one clock cycle. Similarly, if the digital delay chain 332 uses two flip flops, the delay is two clock cycles.


Thus, the output signal 330 of the digital loop control 328 is used for two purposes. First, the output signal 330 is used to determine the state of the MOSFET switch 340. As a result, the output signal 330 controls when the MOSFET switch 340 is turned “on” and when the switch 340 is turned “off”. This also sets the boundaries, especially the start, of the feedback pulse in the Vfeedback waveform.


Second, the output signal 330 is used to determine when to trigger the sample and hold circuit 316 based on the digital delay chain 332. The digital delay chain 332 introduces a delay relative to the time when the MOSFET switch 340 is switched “off”. Since the same control waveform determines the MOSFET state inducing the appearance of the feedback pulse and the sampling instant after being precisely delayed, this relative sampling instant is controllable and can be precisely adjusted. This delay sets the sampling instant relative to the instant when the MOSFET is switched off, which is also the start of the feedback pulse in the Vfeedback waveform. The digitally controlled delay of the digital delay chain 332 enables the circuit 308 to sample the feedback voltage waveform 204 (and, therefore, the feedback voltage Vfeedback 302) at the time at which it accurately represents output voltage Vout 348 (i.e., at the plateau 236).


The circuit 308 also includes a high level control and software interface 360. The high level control and software interface 360 includes registers 352 (and their access interface) and control state machines 356. The registers 352 are software registers that can be programmed to enable the changing of when the feedback voltage Vfeedback 302 is measured while the MOSFET switch is “off”. The data stored in the registers 352 are transmitted to circuit 329, as shown with control arrow 364.


The control state machines 356 are state machines that transition from one state to another based on the status 368 received from circuit 329. For example, it can consist of a state machine with four states: IDLE, DISABLED, LOOP_ENABLED and VOLTAGE_STEADY. The state machine starts in IDLE state when reset and moves to the DISABLED state. A wanted voltage control word can be programmed and passed to the digital loop control circuit. The state subsequently moves to LOOP_ENABLED and the digital loop control operation is enabled through the control interface 364. The loop operation will compare the sampled feedback voltage word to the voltage control word and use the error word to modify the output signal 330 duty cycle so that the error is reduced and thus move the output voltage closer to the wanted voltage. When the error word magnitude goes below a small threshold, the digital loop control indicates through the status interface 368 that a steady state has been reached. The state machine consequently moves to a VOLTAGE_STEADY state which can be reported to software layers. Based on high-level operations the state machine state can be directed to DISABLED again for regulation under new conditions or to IDLE if it is reset.


As the circuit 308 is digital and can be programmed via the registers 352, the circuit 308 accurately samples the feedback voltage Vfeedback 302 and also provides flexibility due to software-controlled adjustments.


Moreover, change in the sampling point can occur dynamically to allow continued operation over a wide range of load conditions. For example, if the resistance of the load 372 varies, this can change the shape of the feedback voltage Vfeedback pulse waveform 302. In one embodiment, software controls the registers 352 so that the change in feedback voltage Vfeedback 302 causes an adjustment in the registers 352. The change in feedback voltage Vfeedback 302 causes a status signal (shown with arrow 368) to be sent to the control and software interface 360. Software then uses this status signal to adjust the sampling point of circuit 329. Once the feedback voltage Vfeedback 302 is correctly measured, the output voltage Vout 348 can be accurately determined.


Although described above with three coils, the isolated flyback power supply can alternatively have two coils. FIG. 4 shows an isolated flyback power supply 400 that is connected to solid state circuit 308 of FIG. 3. The power supply 400 has a primary coil 404 and a secondary coil 408 but does not have a feedback coil. The feedback voltage Vfeedback410 is instead measured by using the transistor 412, diode 416, and resistors 420, 422. Specifically, the voltage at the drain of the MOSFET 426 minus the voltage between the base and emitter of the transistor 412 is converted to a current by the resistor 422 and then back to a voltage at the resistor 420. Stated mathematically:






V
feedback426=(Vdrain MOSFET−VBE)(Resistor 420/resistor 422)


The foregoing Detailed Description is to be understood as being in every respect illustrative and exemplary, but not restrictive, and the scope of the invention disclosed herein is not to be determined from the Detailed Description, but rather from the claims as interpreted according to the full breadth permitted by the patent laws. It is to be understood that the embodiments shown and described herein are only illustrative of the principles of the present invention and that various modifications may be implemented by those skilled in the art without departing from the scope and spirit of the invention. Those skilled in the art could implement various other feature combinations without departing from the scope and spirit of the invention.

Claims
  • 1. A method for determining an output voltage of an isolated flyback power supply having a primary coil and a secondary coil, said secondary coil for generating an output voltage and a feedback voltage related to said output voltage, said method comprising: sampling said feedback voltage at a time instant that is digitally controllable; anddetermining said output voltage from said sampled feedback voltage.
  • 2. The method of claim 1 wherein said time instant is specified by a register.
  • 3. The method of claim 1 comprising digitally controlling a switch that controls said feedback voltage.
  • 4. The method of claim 1 comprising determining a number of flip flops to use to delay said sampling of said feedback voltage from a register.
  • 5. The method of claim 1 wherein said feedback voltage spikes before leveling off into a plateau.
  • 6. The method of claim 5 wherein said sampling said feedback voltage occurs at the start of said plateau.
  • 7. An apparatus for determining an output voltage of a power supply having a primary coil and a secondary coil, said secondary coil for generating an output voltage and a feedback voltage related to said output voltage, said apparatus comprising: a digital loop control for providing a command for sampling said feedback voltage at a first time instant; anda digital delay chain for delaying said command by a programmable number of clock cycles.
  • 8. The apparatus of claim 7 comprising a register configured to store said programmable number of clock cycles.
  • 9. The apparatus of claim 8 further comprising a control and software interface module configured to provide an interface between said register and said digital delay chain.
  • 10. The apparatus of claim 9 wherein said control and software interface further comprises an interface between said register and a control state machine.
  • 11. The apparatus of claim 7 comprising a sample and hold circuit configured to receive said feedback voltage.
  • 12. The apparatus of claim 11 comprising an analog-to-digital converter connected to said sample and hold circuit configured to convert said feedback voltage to a digital signal.
  • 13. The apparatus of claim 7 further comprising a switch configured to control induction of said feedback voltage.
  • 14. The apparatus of claim 7 further comprising a switch configured to control said output voltage.
  • 15. The apparatus of claim 7 further comprising a feedback coil for generating said feedback voltage.
  • 16. An apparatus for determining an output voltage of a power supply having a primary coil, a secondary coil, and a feedback coil, said secondary coil for generating an output voltage and said feedback coil for generating a feedback voltage related to said output voltage, said apparatus comprising: a digital loop control for providing a command for sampling said feedback voltage at a first time instant; anda digital delay chain for delaying said command by a programmable number of clock cycles.
  • 17. The apparatus of claim 16 comprising a register configured to store said programmable number of clock cycles.
  • 18. The apparatus of claim 17 further comprising a control and software interface module configured to provide an interface between said register and said digital delay chain.
  • 19. The apparatus of claim 18 wherein said control and software interface further comprises an interface between said register and a control state machine.
  • 20. The apparatus of claim 16 comprising a sample and hold circuit configured to receive said feedback voltage.
  • 21. The apparatus of claim 20 comprising an analog-to-digital converter connected to said sample and hold circuit configured to convert said feedback voltage to a digital signal.
  • 22. The apparatus of claim 16 further comprising a switch configured to control induction of said feedback voltage.
  • 23. The apparatus of claim 16 further comprising a switch configured to control said output voltage.