text: in order to make clearer the objects , technical solutions and advantages of the invention , the present invention will be explained below in detail with reference to the accompanying drawings and embodiments . it is to be understood that the following description of the embodiments is merely to explain the present invention and is no way intended to limit the invention . the current detection circuit for a power conversion circuit provided by the embodiments of the present invention can be used to detect output current of the power conversion circuit , and the current detection circuit has the advantages of high reliable and simple structure . referring to fig1 , the inventive power conversion circuit includes a filter circuit 12 , a rectification circuit 13 and a single stage power conversion circuit 14 . the filter circuit 12 is connected to a live wire l and a null line n of an external ac . the rectification circuit 13 is connected to the external ac by the filter circuit 12 . the single stage power conversion circuit 14 is connected between a positive output end of the rectification circuit 13 and a dc load 15 . a node between the positive output end of the rectification circuit 13 and the dc load 15 can be referred as “ c ”. the filter circuit 12 can use a filter circuit well known and the rectification circuit 13 can use a bridge rectifier circuit , which doesn &# 39 ; t be repeated here . the single stage power conversion circuit 14 includes a capacitor c 1 , an inductor or switching transformer l , a diode d 1 , a capacitor c 2 , a master switch s 1 , a drive controlling transistor s 2 , a resistor r 2 , a controlling circuit 16 and an auxiliary power supply circuit 17 . a first end of the capacitor c 1 is connected to both of the rectification circuit 13 and a cathode of the dc load 15 , a second end of the capacitor c 1 is grounded , a first end of the inductor or switching transformer l is connected to a cathode of the dc load 15 , the second end of the inductor or switching transformer l is connected to an anode of the diode d 1 , a cathode of the diode d 1 is connected to an anode of the dc load 15 , the capacitor c 2 is connected between the anode and cathode of the dc load 15 , a first end of the master switch s 1 is connected to the cathode of the dc load 15 by the auxiliary power supply circuit 17 , a second end of the master switch s 1 is connected to the anode of the diode d 1 , a first end of the drive controlling transistor s 2 is connected to a first end h of the controlling circuit 16 , a second end of the drive controlling transistor s 2 is connected to a third end of the master switch s 1 , a third end of the drive controlling transistor s 2 is grounded by a resistor r 2 and also connected to a second end u of the controlling circuit 16 , and a third end d of the controlling circuit 16 is connected to a second end of the master switch s 1 . both of the master switch si and the drive controlling transistor s 2 are n - channel field effect transistors . a node between a drain of the master switch s 1 and the anode of the diode d 1 can be referred as d , a node between a grid of the master switch s 1 and the auxiliary power supply circuit 17 can be referred as e , and a node between a drain of the drive controlling transistor s 2 and a source of the master switch s 1 can be referred as f . referring to fig2 , the controlling circuit 16 includes a valley detection circuit 161 , a current detection circuit 162 , an error amplifier err amp , a pwm controller u 1 and a drive controlling circuit 163 , the input end u of the current detection circuit 162 is connected to a third end of the drive controlling transistor s 2 , the input end d of the current detection circuit 162 is connected to a second end of the master switch s 1 , an output end of the current detection circuit 162 is connected to an input end of the error amplifier err_amp , an output end of the error amplifier is connected to the pwm controller u 1 , the pwm controller u 1 is connected to a first end of the drive controlling circuit 163 , a second end of the drive controlling circuit 163 is connected to an output end of the valley detection circuit 161 , a third end of the drive controlling circuit 163 is connected to a first end of the drive controlling transistor s 2 , and an input end of the valley detection circuit 161 is connected to a second end of the master switch s 1 . the auxiliary power supply circuit 17 includes a diode d 2 , a resistor r 1 , a capacitor c 6 and a voltage regulator z 2 , an anode of the diode d 2 is connected to the a cathode of the dc load 15 , a cathode of the diode d 2 is grounded through the resistor r 1 and the capacitor c 6 in turn , a node between the resistor r 1 and the capacitor c 6 is connected to the first end of the master switch s 1 , an anode of the voltage regulator z 2 is grounded , and a cathode of the voltage regulator z 2 is connected to the first end of the master switch s 1 . the working process of the inventive power conversion circuit is described as follows . the filter circuit 12 is used to filter noise in the ac , the rectification circuit 13 is used for ac - dc conversion , and the single stage power conversion circuit 14 is used to adjust a power factor of the power conversion circuit and detect the output current thereof . the auxiliary power supply circuit 17 in the single stage power conversion circuit 14 is used to provide an auxiliary power supply , the controlling circuit 16 is used to detect current output to the dc load 15 and adjust an average value of the current output to the dc load 15 to be equal to a predefined value defined by the dc load 15 , thereby , the current output to the dc load 15 is kept constant . when a node e of an input controlling end of the master switch s 1 is powered on , the node e is clamped at fixing electrical level , the switching on and off of the master switch s 1 is mainly controlled by the drive controlling transistor s 2 . during the switching on of the master switch s 1 , the current of the inductor l rises , when the master switch s 1 is switched off , due to the stray capacitance of the master switch s 1 and the diode d 1 , the voltage of a node d of an upper end of the master switch s 1 rises from zero ( zero voltage turn - off ), when the electric potential of the node d exceeds the electric potential of a node k of the dc load 15 , the diode d 1 is switched on , the current of the inductor l is output to the dc load 15 through the diode d 1 , the current of the inductor l drops from a peak value , when the current of the inductor l drops to zero , due to the resonance between the stray capacitance of the master switch si and the diode d 1 and the inductor l , the electric potential of the upper node d of the master switch s 1 begins to drop , the voltage of the upper node d of the master switch s 1 will arrives at a valley value after a period of time . the valley detection circuit 161 is used to control switching on time of the single stage power conversion circuit 14 , the voltage of the end d is detected , when a value of the voltage is equal to a valley value , the detected result is sent to the drive controlling circuit 163 and the master switch s 1 is driven to switch on by the drive controlling circuit 163 and the drive controlling transistor s 2 , zero voltage turn - on is realized , therefore , switching loss of the valley detection circuit 161 is low . in the working process of the power conversion circuit , if switching on duration of the master switch s 1 is increased , working current of the inductor l and current of the output load 15 are increased , if switching on duration of the master switch s 1 is decreased , the working current of the inductor l and the current of the output load 15 are decreased . fig2 also can be referred at the same time , the controlling circuit 16 and the single stage power conversion circuit 14 are connected by three ends d , u and h . with regard to the controlling circuit 16 , the ends d , u are output ends of the controlling circuit 16 , based on information of the ends d , u , controlling signals are generated at the end h by the controlling circuit 16 , and then the controlling signals are used to control the drive controlling transistor s 2 so as to control working process of the single stage power conversion circuit 14 . the controlling circuit 16 needs to obtain current information of the output load 15 to control a switch circuit , therefore , better power efficiency and power factor can be obtained . in the present , the power conversion circuit filters the noise in the ac by the filter circuit 12 , an ac - dc conversion is performed by the rectification circuit 13 , and the single stage power conversion 14 detects the current output to the dc load and adjusts the power factor . furthermore , the power conversion circuit in the present invention also includes a fuse f 1 . the fuse f 1 is connected between the live wire l and the filter circuit 12 , when the current flowing through the fuse f 1 is excessive , the fuse f 1 is blown to protect the power conversion circuit . referring to fig2 again , furthermore , the current detection circuit 162 includes a sample keeping circuit 1 , a rising edge detection circuit 2 , a falling edge detection circuit 3 , a sequential controlling circuit 4 , a synchronous detection circuit 5 and a lowpass filter 6 . a first end s 11 of the sample keeping circuit 1 is connected to the end u , a second end s 12 of the sample keeping circuit 1 is connected to a first end s 41 of the sequential controlling circuit 4 , and a third end s 13 of the sample keeping circuit 1 is connected to a first end s 51 of the synchronous detection circuit 5 . a first end s 21 of the rising edge detection circuit 2 is connected to the node d , and a second end s 22 of the rising edge detection circuit 2 is connected to a second s 42 of the sequential controlling circuit 4 . a first end s 31 of the falling edge detection circuit 3 is connected to the node d , and a second end s 32 of the falling edge detection circuit 3 is connected to a third end s 43 of the sequential controlling circuit 4 . a fourth end s 44 of the sequential controlling circuit 4 is connected to a second end s 52 of the synchronous detection circuit 5 . a third end s 53 of the synchronous detection circuit 5 is connected to a first end s 61 of the lowpass filter 6 , a second end s 62 of the lowpass filter 6 is connected to an input end of the error amplifier err_amp . the controlling circuit 16 detects current of the sample resistor r 2 by the current detection circuit 162 , signals of the detected current are processed to obtain an average value of the current output to the dc load 15 , then the average value is input to the drive controlling circuit 163 and used to compare with a predefined value , based on the comparison whether the switching on time of the master switch s 1 is increased or decreased is determined , which can make the output current be equal to the predefined value . whatever the dc load or an input voltage fluctuates , the drive controlling circuit 163 can dynamically adjust switching on and off durations of the master switch s 1 so as to obtain the output current desired by the dc load 15 . referring to fig3 , as a preferable embodiment , the sample keeping circuit 1 of the current detection circuit 162 includes a n - channel field effect transistor n 1 , an inverter inv 1 , a capacitor c 3 , an amplifier a 1 , resistors r 3 and r 4 . a drain of the n - channel field effect transistor n 1 is connected to the node u , a grid of the n - channel field effect transistor n 1 is connected to an input end of the inverter inv 1 , a source of the n - channel field effect transistor n 1 is grounded by the capacitor c 3 . the input end of the inverter inv 1 is connected to a controlling end ctl . a noninverting input end of the amplifier a 1 is connected to the source of the n - channel field effect transistor n 1 , an inverting input end of the amplifier a 1 is grounded by the resistor r 3 , an output end of the amplifier a 1 is connected to the inverting input end thereof by the resistor r 4 . during the switching on time of the master switch s 1 , the current sample keeping circuit 1 keeps on sampling , and outputs a signal proportional to the input current thereof , after the master switch s 1 is switched off , the sample keeping circuit 1 maintains sampling . the rising edge detection circuit 2 includes an amplifier a 2 , resistors r 5 and r 6 . one end of the resistor r 5 is connected to the node d , the other end of the resistor r 5 is grounded by the resistor r 6 . a noninverting input of the amplifier a 2 is connected to a node between the resistors r 5 and r 6 , an inverting input of the amplifier a 2 is connected to a reference voltage end vref 2 . when the rising edge detection circuit 2 detects that the voltage of the upper end of the master switch s 1 rises to a predefined value , the rising edge detection circuit 2 triggers a latch circuit to control the synchronous detection circuit 5 to output signals from the current sample keeping circuit 1 to the lowpass filter 6 . the falling edge detection circuit 3 includes an amplifier a 3 , an inverter inv 2 , a n - channel field effect transistor n 2 , a capacitor c 4 , clamping . zeners z 1 - z 4 , resistors r 7 and r 8 . one end of the resistor r 7 is connected to the node d , the other end is grounded by the resistor r 8 . one end of the capacitor c 4 is connected to a node between the resistors r 7 and r 8 , the other end is connected to a noninverting input of the amplifier a 3 . an inverting input of the amplifier a 3 is connected to a reference voltage end vref 1 , an output end of the amplifier a 3 is connected to an input end of the inverter inv 2 . both of a grid and drain of the n - channel field effect transistor n 2 are connected to the noninverting input of the amplifier a 3 , a source of the n - channel field effect transistor n 2 is grounded . a cathode of the clamping zener z 1 is connected to a node between resistors r 7 and r 8 , an anode of the clamping zener z 1 is grounded by the clamping zener z 2 - z 4 in turn . when the falling edge detection circuit 3 detects that a falling edge of the voltage of the upper end of the master switch si , the falling edge detection circuit 3 unlocks a latch and shutdowns the synchronous detection circuit 5 , so that the input signals of the lowpass filter 6 change to zero . the sequential controlling circuit 4 includes d - flip flops df 1 and df 2 . a clock signal end ck of the d - flip flop df 1 is connected to an output of the inverter inv 2 in the falling edge detection circuit 3 , a reset end r of the d - flip flop df 1 is connected to an output of the inverter inv 1 in the sample keeping circuit 1 , a signal input end d of the d - flip flop df 1 is connected to a power supply vdd , an output end q of the d - flip flop df 1 is connected to a reset end r of the d - flip flop df 2 , a noninvertering output end qb of the d - flip flop df 1 is not used . a clock signal end ck of the d - flip flop df 2 is connected to an output end of the amplifier a 2 , a signal input end d of the d - flip flop df 2 is connected to the power supply vdd , an output end q of the d - flip flop df 2 is not used . the synchronous detection circuit 5 includes an inverter inv 3 , n - channel field effect transistors n 3 and n 4 . an input end of the inverter inv 3 is connected to an inverting output end qb of the d - flip flop df 2 in the sequential controlling circuit 4 , an output end of the inverter inv 3 is connected to a grid of the n - channel field effect transistor n 3 . a drain of the n - channel field effect transistor n 3 is connected to an output end of the amplifier a 1 in the sample keeping circuit 1 , a source of the n - channel field effect transistor n 3 is connected to a drain of the n - channel field effect transistor n 4 . a grid of the n - channel field effect transistor n 4 is connected to an input end of the inverter inv 3 , a source of the n - channel field effect transistor n 4 is grounded . the lowpass filter 6 includes a resistor r 9 and a capacitor c 5 . one end of the resistor r 9 is connected to a drain of the n - channel field effect transistor n 4 in the synchronous detection circuit 5 , the other end is grounded by the capacitor c 5 and also connected to an input end of the error amplifier , the lowpass filter 6 filters an input signal thereof and outputs a signal directly proportional to an average value of the output current of the dc load 15 . fig5 can be referred at the same time , the current waveform of the inductor l is referred as i_l , the current waveform of the diode d 1 is referred as i_d 1 , the voltage waveform of the node d is referred as v_d , the waveform of the output signal of the sample keeping circuit 1 is referred as s_h_out , the waveform of the output signal of the synchronous detection circuit 5 is referred as syn_out , the signal waveform of the output end q of the d - flip flop df 1 is referred as df 1 _q , the signal waveform of the inverting output end qb of the d - flip flop df 2 is referred as df 2 _qb . as shown in fig5 , the average value i_avr of the current output to the dc load 15 is equal to the average value of the i_d 1 , namely , equal to the value of multiplying a duty cycle by the value of dividing a peak value of the i_d 1 by 2 . according to practical application , just a signal proportional to i_avr is needed . next will describes how the current detection circuit 162 obtains the signal . when the master switch s 1 is switched on , the signal of the end u is input to the sample keeping circuit 1 . during the switching on of the master switch s 1 , the sample keeping circuit 1 keeps on sampling , output signals s_h_out are used to track the current i_l of the inductor l , the synchronous detection circuit 5 is switched off , the output signals of the synchronous detection circuit 5 are low level . when the switching on duration of the master switch s 1 is ended , the voltage v_f of the node f rises , the master switch s 1 is switched off , the electric potential v_d of the end d rises , when the electric potential of the node d approximates the electric potential of the node c , the current i_l of the inductor l discharge to the dc load 15 through the diode d 1 . the rising edge detection circuit 2 acts and outputs action signals to the sequential controlling circuit 4 , then the sample keeping circuit 1 is controlled to maintain sampling by the sequential controlling circuit 4 , the sample keeping circuit 1 maintains a voltage proportional to a peak current of the inductor l , the peak current of the inductor l is equal to a peak current of the diode d 1 , therefore , the output s_h_out of the sample keeping circuit 1 is proportional to a peak value of the current i_d 1 of the diode d 1 . before the current i_l of the inductor l drops to zero , since the sample keeping circuit 1 maintains sampling , the signal remains the same all the time . the synchronous detection circuit 5 is switched on , the output s_h_out of the sample keeping circuit 1 is output to the lowpass filter 6 through the synchronous detection circuit 5 . as the current i_l of the inductor l discharges to the dc load 15 through the diode d 1 , the current i_l of the inductor l gradually drops . when the current i_l of the inductor l drops to zero , the electric potential of the node d begins to drop , when the signal indicating that the electric potential of the node d begins to drop is detected by the falling edge detection circuit 3 , the falling edge detection circuit 3 acts and outputs action signals to the sequential controlling circuit 4 , the sequential controlling circuit 4 switches off the synchronous detection circuit 5 to make the input signal of the lowpass filter 6 being zero . in the switching on duration , the average value of the input signals output to the lowpass filter 6 is directly proportional to the average value of the output current , namely , a signal output by the lowpass filter is directly proportional to the average value of the output current i_avr . the current signals output by the lowpass filter 6 and an internal reference value defined by the lowpass filter 6 are sent to the error amplifier err_amp , if the average value of the output current is greater than the internal reference value , the output of the error amplifier err_amp controls the switching on duration of the master switch s 1 to gradually decrease by the pwm controller u 1 , if the average value of the output current is smaller than the internal reference value , the output of the error amplifier err_amp controls the switching on duration of the master switch 51 to gradually increase by the pwm controller u 1 . at last , the average value of the output current is equal to the internal reference value , and the output current is constant . after the switching off duration of the master switch s 1 is ended , the master switch s 1 is switched on again , the circuit enters the next circle . when the v_f is low level , the master switch s 1 is switched on , the end d 2 _qb of the d - flip flop df 2 outputs high level . signals of the current sample resistor r 2 are output to the field effect transistor n 1 of the sample keeping circuit 1 . a timing sequence of the signal applied on the grid of the field effect transistor n 1 is synchronous with the driving signal of the master switch s 1 . when the master switch s 1 is switched on , the controlling end ctl of the master switch s 1 is high level ( being inverting to the v_f ), the sample keeping circuit 1 keeps on sampling , the output of the d 1 _q of the d - flip flop df 1 of the sequential controlling circuit 4 is high level , the output of the d 2 _qb of the d - flip flop df 2 is high level , the field effect transistor n 4 of the synchronous detection circuit 5 is grounded , the field effect transistor n 3 of the synchronous detection circuit 5 is switched off , and the output of the synchronous detection circuit 5 is zero . when the switching on duration of the master switch s 1 is ended , the master switch s 1 is switched off , the electrical level of the controlling end ctl of the master switch s 1 changes to low level , the sample keeping circuit 1 maintains the sampling , the d - flip flop df 1 is reset , the output of the d 1 _q of the d - flip flop df 1 is low level , and a reset status of the d - flip flop df 2 is terminated . as the master switch s 1 is switched off , the electric potential v_d of the upper end d rises , when the electric potential v_d approaches the electric potential of the node c , the rising edge detection circuit 2 acts , the output of the a 2 amplifier becomes higher , and then triggers the output of the d 2 _qb of the d - flip flop df 2 to become lower , thereby switching on the field effect transistor n 3 of the synchronous detection circuit 5 and switching off the field effect transistor n 4 of the synchronous detection circuit 5 , the output signal of the sample keeping circuit 1 is output to the , input end of the low filter circuit 6 . at this moment , the current i_l of the inductor l discharges to the dc load 15 , the current gradually drops . referring to fig4 again , as an inventive preferable embodiment , the n - channel field effect transistor n 1 in the falling edge detection circuit 3 of the current detection circuit 162 can be replaced by a diode d 3 . an anode of the diode d 3 is connected to the noninverting input end of the amplifier a 1 , a cathode of the diode d 3 is grounded . in the present invention , the power conversion circuit filters the nose in the ac by the filter circuit 12 , the rectification circuit 13 is used for ac - dc conversion , the single stage power conversion 14 is used for adjusting the power factor and adjusting the average value of the output current to be equal to the predefined value , therefore , the constant current output is obtained . the present invention has been further detailed in the above descriptions with reference to the preferred embodiments ; however , it shall not be construed that implementations of the present invention are only limited to these descriptions . many simple deductions or replacements may further be made by those of ordinary skill in the art without departing from the conception of the present invention , and all of the deductions or replacements shall be considered to be covered within the protection scope of the present invention .