METHOD AND APPARATUS FOR MEASURING THE SWITCHING CURRENT OF POWER CONVERTER OPERATED AT CONTINUOUS CURRENT MODE

Information

  • Patent Application
  • 20090310388
  • Publication Number
    20090310388
  • Date Filed
    October 21, 2008
    16 years ago
  • Date Published
    December 17, 2009
    15 years ago
Abstract
An apparatus for detecting a switching current of the power converter, wherein the apparatus includes a signal generation circuit, a sample-and-hold circuit, and a calculating circuit. The signal generation circuit generates a sample signal in accordance with the pulse width of a switching signal. The sample-and-hold circuit is coupled to receive the sample signal and switching current signal for generating a first current signal and a second current signal. The calculating circuit is coupled to receive the first current signal and the second current signal for generating output signals. The switching signal is used for switching the magnetic device of the power converter, and the switching current signal is correlated to the switching current of the power converter; the output signals are correlated to the value of the switching current of the power converter.
Description
BACKGROUND OF THE INVENTION

1. Field of the Invention


The present invention relates generally to a switching control circuit, and more specifically to a method and apparatus for detecting a switching current of a power converter operated at continuous current mode.


2. Description of the Related Art


A power converter is used to convert an unregulated power source to a regulated voltage or current source. The power converter normally includes a transformer or a magnetic device having a primary winding and a secondary winding to provide isolation. A switching device connected with the primary winding to control energy transfer from the primary winding to the secondary winding. FIG. 1 shows a conventional power converter. A controller 50 generates a switching signal VG to regulate the output of the power converter in response to a feedback signal VFB. The feedback signal VFB is correlated to the output VO of the power converter. The switching signal VG drives a power transistor 20 for switching a transformer 10. The transformer 10 is connected to an input voltage VIN of the power converter. The energy of the transformer 10 is transferred to the output VO of the power converter through a rectifier 40 and a capacitor 45. A resistor 30 is connected serially with the power transistor 20 to generate a switching current signal VI in response to a switching current IP of the transformer 10. The switching current signal VI is coupled to the controller 50 for the control the power converter. The power converter will be operated at discontinuous current mode (DCM) when the transformer 10 is fully discharged before the start of the switching cycle. If the switching signal VG is enabled before the transformer 10 is fully discharged, the power converter will be operated at continuous current mode (CCM). A continuous current will be remained in the transformer when the power converter operated in the CCM. FIG. 2 shows a CCM waveform of the switching current IP, in which the continuous current IA represents the energy stored in the transformer 10. A ramp current IC is the energy that is further charged into the transformer 10 during the on time TON of this switching cycle T. The continuous current IA stands for a major energy transfer of the transformer 10. A voltage spike and noise are generated at the rising edge of the switching current IP. The voltage spike and noise will generate error for the sampling. The object of the present invention is to develop a method and apparatus to measure the continuous current IA and the ramp current IC of the switching current IP.


BRIEF SUMMARY OF THE INVENTION

The present invention proposes an apparatus and a method for detecting a switching current of the power converter, wherein the apparatus comprises a signal generation circuit, a sample-and-hold circuit, and a calculating circuit. Wherein the signal generation circuit generates a sample signal in accordance with the pulse width of a switching signal. The sample-and-hold circuit is coupled to receive the sample signal and switching current signal for generating a first current signal and a second current signal. The calculating circuit is coupled to receive the first current signal and the second current signal for generating output signals. Wherein the switching signal is used for switching the magnetic device of the power converter, and the switching current signal is correlated to the switching current of the power converter; the output signals are correlated to the value of the switching current of the power converter.


It is to be understood that both the foregoing general descriptions and the following detailed descriptions are exemplary, and are intended to provide further explanation of the invention as claimed. Still further objects and advantages will become apparent from a consideration of the ensuing description and drawings.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a circuit schematic diagram of a conventional power converter;



FIG. 2 shows the signal waveform of the switching current at continuous current mode (CCM);



FIG. 3 is a schematic diagram of the controller in accordance with an embodiment of the present invention;



FIG. 4 shows a detailed circuit of the signal generation circuit in accordance with an embodiment of the present invention;



FIG. 5 shows a sample-and-hold circuit;



FIG. 6 shows wave forms of the circuit shown in FIG. 5 and FIG. 6;



FIG. 7 shows the detailed circuit of the sample-and-hold circuit of the invention.



FIG. 8 shows the wave form of the switching current; and



FIG. 9 shows the detailed circuit of the calculating circuit of the present invention.





DETAILED DESCRIPTION OF THE INVENTION

The following description is of the best-contemplated mode of carrying out the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.



FIG. 3 is the circuit schematic of the controller 50 of the invention. A flip-flop 70 and an AND gate 75 generates switching signals SW and VG for driving the transistor 20 and switching the transformer 10 (shown in FIG. 1). A detection circuit 100 is coupled to receive the switching current signal VI for generating the DC-output signal VXA and the AC-output signal VXC. The detection circuit 100 includes a signal generation circuit 150, a sample-and-hold circuit 200 and a calculating circuit 300. The signal generation circuit 150 generates a sample signal S2 in accordance with the pulse width of the switching signal SW. The sample-and-hold circuit 200 is coupled to receive the sample signal S2 and switching current signal VI for generating a first current signal IMB and a second current signal IMD. A calculating circuit 300 is couple to receive the first current signal IMB and the second current signal IMD for generating output signals DC-output signal VXA and the AC-output signal VXC. The output signals DC-output signal VXA and the AC-output signal VXC are correlated to the value of the switching current IP of the power converter.


Referring to FIG. 4 to FIG. 6, wherein FIG. 4 shows the signal generation circuit 150. It includes a charge circuit, capacitors 160, 161, and an output circuit. A current source 151 and switches 153, 154, 157 develop the charge circuit. It is coupled for charging the capacitors 160 and 161. The capacitor 160 generates a slope signal SS. The capacitor 161 generates a level signal SL in response to the current charged in the capacitor 160 during last switching cycle. The level signal SL is correlated to the pulse width of the switching signal SW. A divider, formed by resistors 167 and 168, generates a divided-signal Sd in accordance with the level signal SL through the buffer 165. The divided-signal Sd is therefore correlated to the ratio (for example,








n
-
1

n

)




of the level signal SL. An output circuit developed by a NOR gate 171, a comparator 170 and a flip-flop 175 generates the sample signal S2 in response to a comparing result signal SC and a first one shot signal SM1. The comparing result signal SC is generated in response to the divided-signal Sd and the slope signal SS through a comparator 170. The signal generation circuit 150 further comprises one shot circuits 181 and 182 for generating the first one shot signal SM1 and a second one shot signal SM2.



FIG. 5 shows the schematic view of the one-shot circuit such as one-shot circuits 181 and 185 shown in FIG. 4, a constant current source 190 is used to charge a capacitor 193 once a transistor 192 is turned off. The input terminal IN of the one-shot circuit 181 and 185 is connected to the gate of the transistor 192 and one input of a NOR gate 196. The other input of the NOR gate 196 is connected to the capacitor 193. Therefore, the one-shot circuit generates a one-shot signal at the output of the NOR gate 196 in response to the falling edge of the input signal of the one-shot circuit. The current of the constant current source 190 and the capacitance of the capacitor 194 determine the pulse width of the one-shot signal.



FIG. 6 shows the waveforms of the circuit illustrated in FIG. 4 and FIG. 5. Because the value of the divided-signal Sd is correlated to the ratio of the level signal SL, and the level signal SL is correlated to the pulse width of the switching signal SW, therefore the sample signal S2 is reset once the level of the slope signal SS is larger than the level signal SL.



FIG. 7 shows an embodiment of the sample-and-hold circuit 200. Referring to FIG. 6 together. The sample-and-hold circuit 200 includes a first capacitor 216 coupled to receive the switching current signal VI for generating a first sample signal Sf1 in response to the switching signal SW and transfer the first sample signal Sf1 to the capacitor 217 in response to the second one shot signal SM2. A second capacitor 256 is coupled to the switching current signal VI to generate a second sample signal Sf2 in response to the sample signal S2 and transfer the second sample signal Sf2 to the capacitor 257 in response to the enabled second one shot signal SM2. A first V-to-I circuit developed by an operational amplifier 220, a transistor 225 and a resistor 221 generates a first V-to-I current IV1 in accordance with the first sample signal Sf1. A second V-to-I circuit developed by an operational amplifier 260, a transistor 265 and a resistor 261 generates a second V-to-I current IV2 in accordance with the second sample signal Sf2. A first current mirror (transistors 230, 231, 232 and 233) generates current signals IMB IMB1 and IMB2 (first current signal) in response to the first V-to-I current IV1. In the embodiment, the ratio of the first current mirror is equal to 1, IMB=IMB1=IMB2. A second current mirror (transistors 270, 271, 275, 276) whose ratio is equal to 1 generates current signal IMM proportional to the second V-to-I current IV2, and a second current signal IMD in response to the differential of the first current signals IMB and the current signal IMM. Because the first current signal IMB is mirrored from the first V-to-I current IV1, and current signals IMM is mirrored from the second V-to-I current IV2, the second current signal IMD is therefore in proportion to the differential of the first current signals IMB and the current signal IMM.



FIG. 8 shows the waveform of the switching current signal VI. Point C and B represent a peak point and a sampled point in the waveform respectively. IB shows the peak current of the peak point C, and IM represents the sample current of the sample point B; ID represents the differential of the peak current IB and the sample current IM. The continuous current IA represents the energy stored in the transformer 10. The ramp current IC is the energy that is further charged into the transformer 10 during the on time TON. The continuous current IA and the ramp current IC can be expressed, Because Slope SCB=SCA.











I
D


T
M


=


I
C


T
ON






(
1
)









T
ON
=n×T
M   (2)






I
D
=I
B
−I
M   (3)






I
C
=n×I
D   (4)


From the equations (1) to (4), we can get






I
C
=n×(IB−IM)   (5)






I
A
=I
B
−I
C   (6)



FIG. 9 is the calculating circuit 300. It is couple to receive the first current signals IMB1 and IMB2 and the second current signal IMD for generating DC-output signal VXA and the AC-output signal VXC. The calculating circuit 300 comprises a first current mirror (transistors 310, 311), second current mirror (transistors 315, 316, and 317) and a third current mirror (327, 328) coupled to receive the first current signal IMB and the second current signal IMD for generating the DC-output signal VXA through a resistor R360. A fourth current mirror (transistors 353, 354) and a fifth current mirror (transistors 356, 357) are coupled to generate the AC-output signal VXC. In the embodiment, the ratio of the each of the second current mirror, the third current mirror, the fourth current mirror, and the fifth current mirror is equal to 1. The current signals IO1 ˜IO5 of the calculating circuit 300 can be express by,






I
O1
=n×I
MD
=n×(IMB1−IMM)=n×(IMB−IMM)   (7)






I
O2
=I
MB1
−I
O1
−I
MB
−n(IMB−IMM)   (8)






I
O3
=I
MB2
−I
O2
=I
MB
−[I
MB
−n(IMB−IMM)]=n(IMB−IMM)   (9)






V
XC
=I
O5
×R
360
=I
O3
×R
360
=n(IMB−IMMR360   (10)






V
XA
=I
O4
×R
370
=I
O2
×R
370
=[I
MB
−n(IMB−IMM)]×R370   (11)


From the above description, and referring to FIG. 6 to FIG. 8. The first current signal IMB is mirrored form the first V-to-I current IV1, and the first V-to-I current IV1 represents the peak current IB. The current signal IMM is mirrored form the second V-to-I current IV2, and the second V-to-I current IV2 represents the sample current IM. Where first current signal IMB and current signal IMM can be expressed,





IMB=IV1=IB   (12)





IMM=IV2=Im   (13)


So the first signal IMB represents the peak current IB, the current signal IMM represents the sample current IM,


Form the equations (12) and (13), the equations (10) and (11) can be expressed,






V
XC
=n(IMB−IMMR360=n(IB−IMR360=IC×K0   (14)






V
XA
=[I
MB
−n(IMB−IMM)]×R=[IB−n(IB−IM)]×R=IA×K1   (15)


where n is the constant of the ratio and K0 and K1 are constant.


So, from the equations (14) and (15), the DC-output signal VXA and the AC-output signal VXC are correlated to the value of the switching current.


In summary, we can sample the signal in accordance with the pulse width of a switching signal of the power converter, and the voltage spike and noise will not influence the sampling. The sampling is can be designed before the falling edge of the switching current IP.


It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention covers modifications and variations of this invention provided they fall within the scope of the following claims and their equivalents.

Claims
  • 1. A method for detecting a switching current of a power converter, comprising: generating a sample signal in accordance with the pulse width of a switching signal of the power converter;sampling the waveform of the switching current during the period of the switching signal and the sample signal for generating a first current signal and a second current signal;generating output signals in accordance with the first current signal and the second current signal; andwherein the switching signal is used for switching a magnetic device of the power converter, and the output signals are corrected to the value of the switching current.
  • 2. The method as claimed in claim 1, in which the pulse width of the sample signal is a ratio of the pulse width of the switching signal, and the ratio is a constant.
  • 3. The method as claimed in claim 2, in which the output signals are generated in accordance with the constant of the ratio.
  • 4. The method as claimed in claim 1, in which the output signals comprising a DC-output signal and an AC-output signal, the DC-output signal is correlated to a continuous current of the switching current, and the AC-output signal is correlated to the ramp current of the switching current.
  • 5. The method as claimed in claim 4, in which the output signals are generated in accordance with the constant of the ratio, and the AC-output signal is generated in accordance with the constant of the ratio and the differential of the first current signal and the second current signal.
  • 6. An apparatus for detecting a switching current of the power converter, comprising: a signal generation circuit generating a sample signal in accordance with the pulse width of a switching signal;a sample-and-hold circuit coupled to receive the sample signal and switching current signal for generating a first current signal and a second current signal; anda calculating circuit couple to receive the first current signal and the second current signal for generating output signals;wherein the switching signal is used for switching a magnetic device of the power converter, and the output signals are correlated to the value of the switching current of the power converter.
  • 7. The apparatus as claimed in claim 6, in which the pulse width of the sample signal is a ratio of the pulse width of the switching signal, and the ratio is a constant.
  • 8. The apparatus as claimed in claim 6, in which the sample-and-hold circuit is coupled to sample the switching current signal during the period of the switching signal and the sample signal.
  • 9. The apparatus as claimed in claim 6, in which the output signals comprise a DC-output signal and an AC-output signal, the DC-output signal is correlated to a continuous current of the switching current, and the AC-output signal is correlated to the ramp current of the switching current.
  • 10. The apparatus as claimed in claim 9, in which the output signals are generated in accordance with the constant of the ratio, and the AC-output signal is generated in accordance with the constant of the ratio and the differential of the first current signal and the second current signal.
  • 11. The apparatus as claimed in claim 6, in which the signal generation circuit, comprising: a charge circuit coupled to charge a capacitor and generate a slope signal and a level signal in response to the switching signal;a divider generating a divided-signal in accordance with the level signal; andan output circuit generating the sample signal in response to the divided-signal and the slope signalwherein the level signal is correlated to the pulse width of the switching signal, and the divided-signal is a ratio of the level signal.
  • 12. The apparatus as claimed in claim 6, in which the sample-and-hold circuit, comprising: a first capacitor coupled to the switching current signal to generate a first sample signal in response to the switching signal;a second capacitor coupled to the switching current signal to generate a second sample signal in response to the sample signal;a first V-to-I circuit to generate a first V-to-I current in accordance with the first sample signal;a second V-to-I circuit to generate a second V-to-I current in accordance with the second sample signal;a first current mirror generating the first current signal in response to the first V-to-I current; anda second current mirror generating the second current signal in response to the differential of the first V-to-I current and the second V-to-I current.
  • 13. A method for detecting a switching current of a power converter, comprising: generating a switching current signal in accordance with the switching current of the power converter;defining a peak point and a sampled point in a waveform of the switching current signal; andcalculating output signals according to the slope between the peak point and the sampled point.
  • 14. The method as claimed in claim 13, further comprising a step of generating a continuous current and a ramp current in response to the current and the pulse width of the sample point and the peak point.
  • 15. The method as claimed in claim 14, in which the output signals comprising a DC-output signal and an AC-output signal, the DC-output signal is correlated to the continuous current of the switching current, and the AC-output signal is correlated to the ramp current of the switching current.
CROSS REFERENCE TO RELATED APPLICATIONS

The present application claims the benefit of U.S. provisional application entitled “Method and apparatus for measuring the switching current of power converter operated at continuous current mode”, Ser. No. 61/131,906, filed Jun. 13, 2008.

Provisional Applications (1)
Number Date Country
61131906 Jun 2008 US