Circuit for detecting a knee of waveform

A circuit for detecting a knee of waveform is disclosed in the present invention. The circuit detects the knee and a total oscillation time of a voltage waveform as a load switch of load circuit is turned off. In the circuit, a filter filters the voltage waveform to transmit a reference voltage to a first and a second comparator. When the first and the second comparator determine that the voltage waveform achieves a sum of the reference voltage and a set voltage, the first and the second comparator transmit a first and a second signal to a knee detection module. When the knee detection module receives the first signal rather than the second signal in an oscillation time, or receives the second signal rather than the first signal in the oscillation time, the knee detection module records the knee and trigger a time recorder computes the total oscillation time.

This application claims the benefit of Taiwan Patent Application Serial No. 104119759, filed Jun. 18, 2015, the subject matter of which is incorporated herein by reference.

BACKGROUND OF INVENTION

1. Field of the Invention

The present invention is related to a circuit for detecting a knee of a waveform, and more particularly related to a circuit for detecting a knee of a waveform by using two comparators to detect the knee of the voltage waveform and the total oscillating time.

2. Description of the Prior Art

FIG. 1is a circuit diagram of a conventional isolated load circuit. As shown, a driving circuit PA1is utilized for driving the isolated load circuit PA2. The isolated load circuit PA2includes an isolated transformer PA21, which includes a primary side winding PA211, a secondary side winding PA212, and an auxiliary winding PA213, a switch PA22, and at least one operating element PA23, which is a light emitted diode in general and three operating elements are showed in the figure. The switch PA22is electrically connected to the primary side winding PA211of the isolated transformer PA21. The operating elements PA23are electrically connected to the secondary side winding PA212of the isolated transformer PA21. The electrical connection of the isolated load circuit PA2is well known in the art and thus is not repeated here.

Please also refer toFIG. 2, which is a waveform diagram showing voltage of the conventional isolated transformer PA21. As shown, when the switch PA22is turned off, the energy store in the primary side winding PA211would be transferred to the secondary side winding PA212and the auxiliary winding PA213of the isolated transformer PA21making use of Faraday's law. A stable average current Ia is necessary for the operating elements PA23. Because the auxiliary winding PA213and the secondary side winding PA212have the same winding direction, the voltage difference between two sides of those windings would be proportional to the number of turns when the two windings as the switch PA22is turned off. The voltage of the secondary side winding PA212is further divided by the resistors PA24and PA25to generate the voltage at the end of the zero crossing detecting (ZCD) of the driving circuit PA1. The knee detected at the end of ZCD, the driving circuit PA1can be used to determine the amount of energy in the secondary side winding PA212of the isolated transformer PA21for deciding on/off time of the switch PA22to achieve the average current. In the other cases, the voltage level at the FB end, i.e. the feedback voltage, can be used to determine the on/off time of the switch PA22. However, as the switch PA22is turned off, the knee detected at the end of ZCD, the driving circuit PA1would be influenced by the primary side winding PA211and the noise on the switch PA22, such that the voltage oscillating waveform100would be generated and further result in the unstable average current Ia. Accordingly, an improvement for stabilizing the average current Ia is highly desirable.

SUMMARY OF THE INVENTION

In view of the above, under the restriction of existing circuit designs, the unstable average current due to the voltage oscillating waveform generated at the ZCD end of the driving circuit PA1when the switch is turned off is a general problem. Accordingly, a circuit for detecting a knee of a waveform is provided for controlling the average current by using the detected precise knee of the voltage oscillating waveform and the total oscillating time so as to resolve the above mentioned problem.

According to the above mentioned object, a circuit for detecting a knee of waveform is provided in accordance with the present invention. The circuit for detecting a knee of waveform is applicable to an isolated load circuit, which includes an isolated transformer with a primary side winding, a second side winding, and an auxiliary winding, a switch, and at least one operating element, wherein the switch is electrically connected to the primary side winding of the isolated transformer, the operating element is electrically connected to the secondary side winding of the isolated transformer, and the auxiliary winding is disposed at the same side of the primary winding. The circuit for detecting a knee of waveform is utilized for detecting a knee of a voltage oscillating waveform of the auxiliary winding and a total oscillating time as the switch is turned off so as to control an average output current flowing through the operating element by using the knee and the total oscillating time to control the on/off signal of the switch. The circuit for detecting a knee of waveform comprises a filter, a first comparator, a second comparator, a time recorder, and a knee detecting module. The filter is electrically connected to the auxiliary winding for receiving and filtering the voltage oscillating waveform to generate a filtered voltage. The first comparator has a first comparing input, a second comparing input, and a first comparing output. The first comparing input is electrically connected to the filter through a first switch for receiving at least a first reference voltage which is a difference between the filtered voltage and a first preset voltage and is positive. The second comparing input is electrically connected to the auxiliary winding for receiving the voltage oscillating waveform. The first comparing output is utilized for transmitting a first signal as the voltage oscillating waveform is lower than the first reference voltage. The second comparator has a third comparing input, a fourth comparing input, and a second comparing output. The third comparing input is electrically connected to the filter through a second switch for receiving at least one second reference voltage which is a difference between a reference stabilized voltage and a second preset voltage and is greater than the first reference voltage. The second preset voltage is positive. The fourth comparing input is electrically connected to the auxiliary winding for receiving the voltage oscillating waveform. The second comparing output is utilized for transmitting a second signal as the voltage oscillating waveform is lower than the second reference voltage. The time recorder is electrically connected to the first comparing output of the first comparator, the second comparing output of the second comparator, the first switch, and the second switch for recording the total oscillating time. The knee detecting module is electrically connected to the first comparator, the second comparator, and the time recorder, for receiving at least one of the first signal and the second signal to control the time recorder accordingly.

Wherein, as the first switch is conducted, the time recorder counts a first oscillating time, the knee detecting module triggers the time recorder to recount the first oscillating time when the knee detecting module receives the first signal, and the knee detecting module triggers the time recorder to record the first oscillating time when the knee detecting module does not receive the first signal within the first oscillating time and further conducts the second switch to count a second oscillating time, the knee detecting module triggers the time recorder to recount the second oscillating time when the knee detecting module receives the second signal, and the knee detecting module triggers the time recorder to record the second oscillating time when the knee detecting module does not receive the second signal within the second oscillating time, and the knee detecting module detects the knee and triggers to the time recorder to sum up the first oscillating time and the second oscillating time to record the total oscillating time when the knee detecting module does not receive the second signal within the second oscillating time but receives the first signal.

In accordance with a preferred embodiment of the above mentioned circuit for detecting a knee of waveform, the time recorder comprises a timer and a counter. The timer is electrically connected to the first comparing output of the first comparator, the second comparing output of the second comparator, for transmitting a trigger signal when the knee detecting module does not receive the first signal within the first oscillating time. The counter is electrically connected to the timer, the first switch, and the second switch, for conducting the second switch when receiving the trigger signal. In addition, the operating element is a light emitted diode, the first signal and the second are digital high level signals, and the circuit for detecting a knee of waveform further comprises a time shielding device, which is electrically connected between the filter and the auxiliary winding to delay the voltage oscillating waveform transmitted to the filter for a delay time. In addition, the filter includes a resistor and a capacitor, the resistor is electrically connected to the auxiliary winding, and the capacitor has one end electrically connected to the resistor and another end grounded. The time recorder is set with an oscillating threshold time. The first oscillating time counted by the time recorder is set as identical to the oscillating threshold time when the knee detecting module does not receive the first signal within the oscillating threshold time, but the second oscillating time counted by the time recorder is set as identical to the oscillating threshold time when the knee detecting module does not receive the second signal within the oscillating threshold time.

In accordance with a preferred embodiment of the above mentioned circuit for detecting a knee of waveform, the knee detecting module comprises a first detecting switch, a second detecting switch, a third detecting switch, a fourth detecting switch, and a processing unit. The first detecting switch is electrically connected to the first comparator and the time recorder. The second detecting switch is electrically connected to the first comparator and the time recorder. The third detecting switch is electrically connected to the second comparator and the time recorder. The fourth switch is electrically connected to the second comparator and the time recorder. The processing unit is electrically connected to the first detecting switch and the third detecting switch. Wherein, within the first oscillating time, the first detecting switch and the fourth detecting switch are conducted by the time recorder, and the second detecting switch and the third detecting switch are turned off by the time recorder, and within the second oscillating time, the second detecting switch and the third detecting switch are conducted by the time recorder, and the first detecting switch and the fourth detecting switch are turned off by the time recorder.

In accordance with a preferred embodiment of the above mentioned circuit for detecting a knee of waveform, the first comparing input of the first comparator is electrically connected to the filter through a third switch, the third comparing input of the second comparator is electrically connected to the filter through a fourth switch. The circuit for detecting a knee of waveform further comprises a third comparator and a fourth comparator. The third comparator has a fifth comparing input, a sixth comparing input, and a third comparing output. The fifth comparing input is electrically connected to the filter through a fifth switch and also electrically connected to the filter through a seventh switch. The fifth comparing input is utilized for receiving at least a third reference voltage which is a sum of the reference stabilized voltage and the first preset voltage. The sixth comparing input is electrically connected to the auxiliary winding for receiving the voltage oscillating waveform. The third comparing output is utilized for transmitting a third signal as the voltage oscillating waveform reaches the third reference voltage. The fourth comparator has a seventh comparing input, an eighth comparing input, and fourth comparing output. The seventh comparing input is electrically connected to the filter through a seventh switch and also electrically connected to the filter through an eighth switch. The seventh comparing input is utilized for receiving at least a fourth reference voltage which is a sum of the reference stabilized voltage and the second preset voltage and also smaller than the third reference voltage. The eighth comparing input is electrically connected to the auxiliary winding for receiving the voltage oscillating waveform. The fourth comparing output is utilized for transmitting a fourth signal as the voltage oscillating waveform reaches the fourth reference voltage. Wherein, the knee detecting module is electrically connected to the first comparator, the second comparator, the third comparator, the fourth comparator, and the time recorder. As the first switch, the second switch, the fifth switch, the sixth switch, the first detecting switch and the fourth detecting switch are conducted, the knee detecting module triggers the time recorder to recount the second oscillating time when the knee detecting module receives the second signal or the fourth signal, records the second oscillating time when the knee detecting module does not receive the second signal or the fourth signal within the second oscillating time, and the processing unit records the knee when the knee detecting module receives the first signal or the third signal. As the third switch, the fourth switch, the seventh switch, the eighth switch, the second detecting switch and the third detecting switch are conducted, the knee detecting module triggers the time recorder to recount the first oscillating time when the knee detecting module receives the first signal or the third signal, triggers the time recorder to recount the first oscillating time when the knee detecting module does not receive the first signal or the third signal within the first oscillating time, and the processing unit records the knee when the knee detecting module receives the second signal or the fourth signal.

In accordance with a preferred embodiment of the above mentioned circuit for detecting a knee of waveform, the third signal and the fourth signal are digital high level signals. The knee detecting module further comprises a first NOR gate and a second NOR gate. The first NOR gate is electrically connected to the first comparator, the third comparator, the first detecting switch, and the second detecting switch, for computing logic NOR of the first signal and the third signal. The second NOR gate is electrically connected to the second comparator, the fourth comparator, the third detecting switch, and the fourth detecting switch, for computing logic NOR of the second signal and the fourth signal.

By using the technology provided in the circuit for detecting a knee of waveform of the present invention, the precise knee can be detected and the total oscillating time can be calculated such that a compensating current can be computed by accessing the voltage and the total oscillating time at the actual knee so as to provide a stabilized average current for the operating element to resolve the above mentioned problem of the conventional art.

DESCRIPTION OF THE PREFERRED EMBODIMENT

There are various embodiments of the circuit for detecting a knee of waveform in accordance with the present invention, which are not repeated hereby. Only two preferred embodiments are mentioned in the following paragraph as an example.

Please refer toFIG. 3toFIG. 5A, whereinFIG. 3is a circuit diagram of an isolated load circuit in accordance with a first preferred embodiment of the present invention,FIGS. 4 and 4Aare circuit diagrams showing the circuit for detecting a knee of waveform in accordance with a first preferred embodiment of the present invention,FIG. 5is a diagram showing a voltage oscillating waveform in accordance with a first preferred embodiment of the present invention, andFIG. 5Ais a diagram showing the waveform of the first signal and the second signal in accordance with a first preferred embodiment of the present invention.

As shown, a circuit for detecting a knee of waveform in accordance with a preferred embodiment of the present invention is applicable to an isolated load circuit2, which includes an isolated transformer21with a primary side winding211, a second side winding212, and an auxiliary winding213, a switch22, and at least one operating element23, a resistor24, and a resistor25. The switch22is electrically connected to the primary side winding211of the isolated transformer21, the operating element23is electrically connected to the secondary side winding212of the isolated transformer21, and the auxiliary winding213is disposed at the same side of the primary winding211. The operating element23is a light emitted diode (LED). The resistor24is electrically connected to the resistor25and the auxiliary winding213of the isolated transformer21. In addition, the isolated load circuit2may also includes the circuitry components, such as the inductor, the capacitor, the full bridge rectifier, the diode, and etc., which are not labeled in the figures, and the coupling of these components is well known in the art and thus is not repeated here. The circuit1for detecting a knee of waveform is utilized for detecting a total oscillating time (defined as Tt in the present embodiment) of a voltage oscillating waveform200on the auxiliary winding213as the switch22is turned off, so as to generate an average output current Ib flowing through the operating element23by using the total oscillating time Tt to control the switch22.

The circuit1for detecting a knee of waveform includes a filter11, a first comparator12, a second comparator13, a third comparator12a, a fourth comparator13a, and a time recorder14. In the other embodiment of the present invention, the circuit1for detecting a knee of waveform may also include a primary side regulation (PSR) circuit. The filter11is a RC filter, but the present invention is not so restricted. The filter11includes a resistor111and a capacitor112. The resistor111is electrically connected to the auxiliary winding213(not shown). Concretely speaking, the resistor111is electrically connected to the resistors24and25, and the resistors24and25are electrically connected to the auxiliary winding213as the divider resistors for the auxiliary winding213. The capacitor112has one end electrically connected to the resistor111and another end grounded. Concretely speaking, as the switch22is turned off, the voltage oscillating waveform200would be generated on the auxiliary winding213. The filter11receives and filters the voltage oscillating waveform200so as to output a filtered voltage VZCDFas shown inFIG. 5. The filtered voltage VZCDFhas a fixed level.

The first comparator12has a first comparing input121, a second comparing input122, and a first comparing output123. The first comparing input121is electrically connected to the filter11through a first switch Sa, and is electrically connected to the capacitor112of the filter11through a third switch Sb. That is, the first comparing input121may receive two different input signals, and it is noted that the first comparing input121receives at least a first reference voltage (i.e. a voltage difference) Va, Vb, and as shown inFIG. 4, the end corresponding to the first switch Sa has the level of the voltage difference Va, which is the difference between the filtered voltage VZCDFand a first preset voltage V1(i.e. VZCDF−V1), and the end corresponding to the third switch Sb has the level of the voltage difference Vb, which is the difference between the filtered voltage VZCDFand a third preset voltage V3(i.e. VZCDF−V3). Both the first preset voltage V1and the third preset voltage V3are positive, and the third preset voltage V3is smaller than the first preset voltage V1. The second comparing input122of the first comparator12is electrically connected to the resistors24,25connected to the auxiliary winding213.

The second comparator13has a third comparing input131, a fourth comparing input132, and a second comparing output133. The third comparing input131is electrically connected to the filter11through a second switch Sc, and is also electrically connected to the filter11through a fourth switch Sd. That is, the third comparing input131may have two different input signals, and it is noted that the third comparing input131receives at least a second reference voltage (i.e. a voltage difference) Vc, Vd, and as shown inFIG. 4, the end corresponding to the second switch Sc has the voltage difference Vc, which is the difference between the filtered voltage VZCDFand a second preset voltage V2(i.e. VZCDF−V2), and the end corresponding to the fourth switch Sd has the voltage difference Vd, which is the difference between the filtered voltage VZCDFand a fourth preset voltage V4(i.e. VZCDF−V4). Both the second preset voltage V2and the fourth preset voltage V4are positive, and the fourth preset voltage V4is smaller than the second preset voltage V2. Concretely speaking, the fourth preset voltage V4is smaller than the third preset voltage V3, which is smaller than the second preset voltage V2, which is smaller than the first preset voltage V1(i.e. V4<V3<V2<V1). The fourth comparing input132of the second comparator13is electrically connected to the resistors24,25connected to the auxiliary winding213.

The third comparator12ahas a fifth comparing input121a, a sixth comparing input122a, and a third comparing output123a. The fifth comparing input121ais electrically connected to the capacitor112of the filter11through a fifth switch Se, and is electrically connected to the filter11through a seventh switch Sf. That is, the fifth comparing input121amay receive two different input signals, and it is noted that the fifth comparing input121areceives at least a third reference voltage Ve, Vf, and as shown inFIG. 4, the end corresponding to the fifth switch Se has the reference voltage Ve, which is the sum of the filtered voltage VZCDFand a first preset voltage V1, and the end corresponding to the seventh switch Sf has the reference voltage Vf, which is the sum of the filtered voltage VZCDFand a third preset voltage V3. Both the first preset voltage V1and the third preset voltage V3are positive. The sixth comparing input122aof the third comparator12ais electrically connected to the resistors24,25connected to the auxiliary winding213.

The fourth comparator13ahas a seventh comparing input131a, an eighth comparing input132a, and a fourth comparing output133a. The seventh comparing input131ais electrically connected to the capacitor112of the filter11through a sixth switch Sg, and is electrically connected to the filter11through an eighth switch Sh. That is, the seventh comparing input131amay receive two different input signals, and it is noted that the seventh comparing input131areceives at least a fourth reference voltage Vg, Vh, and as shown inFIG. 4, the end corresponding to the sixth switch Sg has the reference voltage Vg, which is the sum of the filtered voltage VZCDFand a second preset voltage V2, and the end corresponding to the eighth switch Sh has the reference voltage Vh, which is the sum of the filtered voltage VZCDFand a fourth preset voltage V4. Both the second preset voltage V2and the fourth preset voltage V4are positive. The eighth comparing input132aof the fourth comparator13ais electrically connected to the resistors24,25connected to the auxiliary winding213.

The time recorder14is electrically connected to the first comparing output123of the first comparator12, the second comparing output133of the second comparator13, the third comparing output123aof the third comparator12a, the fourth comparing output133aof the fourth comparator13a, the first switch Sa, the second switch Sc, the third switch Sb, the fourth switch Sd, the fifth switch Se, the sixth switch Sg, the seventh switch Sf, and the eighth switch Sh. Concretely speaking, the time recorder14includes a timer141and a counter142. The timer141is electrically connected to the first comparing output123of the first comparator12, the second comparing output133of the second comparator13, the third comparing output123aof the third comparator12a, and the fourth comparing output133aof the fourth comparator13a. The timer141may also include a comparator which is set with a first oscillating time T1, a second oscillating time T2, a third oscillating time T3, and a fourth oscillating time T4. These oscillating times may be identical or not, and for the embodiments of identical oscillating time, the oscillating time may be 1 us for example. The counter142is electrically connected to the timer141, the first switch Sa, the second switch Sc, the third switch Sb, the fourth switch Sd, the fifth switch Se, the sixth switch Sg, the seventh switch Sf, and the eighth switch Sh.

The knee detecting module15is electrically connected to the first comparator12, the second comparator13, the third comparator12a, the fourth comparator13a, and the time recorder14. Concretely speaking, the knee detecting module15includes a NOT gate151, a first detecting switch152, a second detecting switch153, a third detecting switch154, a fourth detecting switch155, a processing unit156, a first NOR gate157, and a second NOR gate158. The first NOR gate157is electrically connected to the first comparing output123and the third comparing output123a. The second NOR gate158is electrically connected to the second comparing output133and the fourth comparing output133a. The first detecting switch152and the second detecting switch153are electrically connected to first NOR gate157and the counter142of the time recorder14. The third detecting switch154and the fourth detecting switch155are electrically connected to the second NOR gate158and the counter142of the time recorder14. The NOT gate151is electrically connected to the first detecting switch152, the third detecting switch154, and the processing unit156. The second detecting switch153and the fourth detecting switch155are electrically connected to the timer141of the time recorder14. The processing unit156may be a chip or a circuitry with processing ability depends on the need in practice.

The second comparing input122is utilized for receiving the voltage oscillating waveform200(also represented by VZCDin the figure). The first comparing output123is utilized for transmitting a first signal S1as the level of the voltage oscillating waveform200is lower than the first reference voltage Va (equals to the difference of signal VZCDFand the first reference voltage), Vb (equals to the difference of signal VZCDFand the third reference voltage). The fourth comparing input132is utilized for receiving the voltage oscillating waveform200. The second comparing output133is utilized for transmitting a second signal S2as the level of the voltage oscillating waveform200is lower than the second reference voltage Vc (equals to the difference of signal VZCDFand the second reference voltage), Vd (equals to the difference of signal VZCDFand the fourth reference voltage). The sixth comparing input122ais utilized for receiving the voltage oscillating waveform200. The third comparing output123ais utilized for transmitting a third signal S3as the level of the voltage oscillating waveform200reaches the third reference voltage Ve (equals to the sum of signal VZCDFand the first reference voltage), Vf (equals to the sum of signal VZCDFand the third reference voltage). The eighth comparing input132ais utilized for receiving the voltage oscillating waveform200. The fourth comparing output133ais utilized for transmitting a fourth signal S4as the level of the voltage oscillating waveform200reaches the fourth reference voltage Vg (equals to the sum of signal VZCDFand the second reference voltage), Vh (equals to the sum of signal VZCDFand the fourth reference voltage). In accordance with a preferred embodiment of the present invention, only the first signal S1and the second signal S2are transmitted. The third signal S3and the fourth signal S4are identical to the first signal S1and the second signal S2and thus are not repeated here.

The time recorder14is utilized for recording the total oscillating time Tt. The knee detecting module15is utilized for receiving at least one signal selected from the group consisting of the first signal S1and the second signal S2to control the time recorder14. Concretely speaking, the voltage oscillating waveform200would be generated on the divider resistors24and25as the switch22is turned off. In accordance with a preferred embodiment of the present invention, the voltage oscillating waveform200is divided into time zones A, B, C, and D. The time recorder14would calculate a first oscillating time T1as the first switch Sa is conducted during time zone A, and the time recorder14would be triggered to recount the first oscillating time T1as the knee detecting module15receives the first signal S1. For example, in accordance with a preferred embodiment of the present embodiment, as the voltage oscillating waveform200is lower than Va at time t1(which is corresponding to point Z1in the figure), the first comparing output123of the first comparator12would be triggered to transmit the first signal S1(as shown in the waveform300ofFIG. 5A, the first signal S1is a high level signal representing digital [1]) so as to have the time recorder14recount the first oscillating time T1. Thus, the time recorder14begins to recount the oscillating time at time t1. As shown inFIGS. 4 and 4A, as the first signal S1is digital [1], the NOR gate157receiving the first signal S1would output the digital signal [0] as the trigger signal to reset the timer141so as to recount the oscillating time. Then, if the knee detecting module15does not receive the first signal S1within the first oscillating time T1, the timer141would record the first oscillating time T1after the end of the first oscillating time T1and transmit a trigger signal S5to the counter142to have the counter142conduct the second switch Sc such that the second oscillating time T2would be calculated and the time zone B begins.

In time zone B, the first switch Sa maintains the state of conduction and the second switch Sc is conducted. Similarly, the knee detecting module15triggers the time recorder14to calculate the above mentioned second oscillating time T2. At time t2, the voltage oscillating waveform200is lower than Vc (which is corresponding to point Z2in the figure) to trigger the second comparing output133of the second comparator13to transmit the second signal S2(as shown in the waveform400ofFIG. 5A, the second signal S2is a high level signal representing digital [1]) to have the knee detecting module15trigger the time recorder14to recount the second oscillating time T2. Thus, the time recorder14begins to recount the second oscillating time T2at time t2. Then, if the time recorder14does not receive the second signal S2within the second oscillating time T2, the time recorder14would record the second oscillating time T2and conduct the third switch Sb (the recording method and the triggering method are identical to that for the first oscillating time T1and thus are not repeated here) such that the third oscillating time T3would be calculated and the time zone C begins. In time zone C, the first switch Sa is turned off but the second switch Sc is still conducted.

Similarly, after recording the third oscillating time T3, the fourth switch Sd would be conducted and the time zone D begins. In accordance with the preferred embodiment of the present invention, the third comparator12aor the fourth comparator13awas not triggered to transmit the output signals. It is noted that, as the time zone D begins, the voltage oscillating waveform200goes down to touch the levels of the first reference voltage Va, Vb, and the second reference voltage Vc, Vd after the fourth oscillating time T4. That is, as the knee detecting module15does not receive the second signal S2but receives the first signal S1within the fourth oscillating time T4, the processing unit156would detect the knee dn. Meanwhile, the knee detecting module15would notify the time recorder14that oscillation of the voltage oscillating waveform200was stopped, such that in addition to calculating the fourth oscillating time T4, the time recorder14may also sum up the first oscillating time T1, the second oscillating time T2, the third oscillating time T3, and the fourth oscillating time T4, and the recounted time t1and t2as the total oscillating time Tt to be recorded. In accordance with the other preferred embodiments, the first oscillating time T1, the second oscillating time T2, the third oscillating time T3, and the fourth oscillating time T4may be identical.

In addition, in the other embodiment, the timer142of the time recorder14is set with an oscillating threshold time, which is utilized for computing the smallest oscillating time in the time zones. For example, in time zone A, the knee detecting module15would conduct the second switch Sc to enter the time zone B as the knee detecting module15does not receive the first signal S1within the oscillating threshold time, and the first oscillating time T1calculated by the time recorder14would be identical to the oscillating threshold time. That is, if the oscillating threshold time is set as 2 seconds, the first oscillating time T1would be also 2 seconds. Similarly, in the time zone B, the knee detecting module15would conduct the third switch Sb to enter the time zone C as the knee detecting module15does not receive the second signal S2within the oscillating threshold time, and the second oscillating time T2calculated by the time recorder14would be identical to the oscillating threshold time, i.e. 2 seconds.

In the time zone A, if the knee detecting module15has received the first signal S1within the oscillating threshold time, the time recorder14would be triggered to recount the oscillating threshold time again until there has no first signal S1been received within the oscillating threshold time. Assuming that there has no first signal S1been received within the recounted next oscillating threshold time, the oscillating time to be recorded would be the sum of the duration before the time recorder14was triggered by the first signal S1and the oscillating threshold time. That is, if the knee detecting module15receives the first signal S1after the oscillation of 1 second, the time recorder14would keep calculating the next oscillating threshold time, and if the knee detecting module15does not receive the first signal S1within the second oscillating threshold time (i.e. the next oscillating threshold time), the oscillating threshold time of 2 seconds would be aggregated to the above mentioned 1 second to generate the first oscillating time of 3 seconds. The operations in time zone B to time zone D are similar and thus are not repeated here. However, the present invention is not so restricted and the other embodiments may adopt different operation to calculate the oscillating time.

In other words, the time recorder14calculates the above mentioned oscillating threshold time. The knee detecting module15will start to calculate the second oscillating time if the knee detecting module15does not receive the first signal S1. However, if the knee detecting module15does receive the first signal S1within the oscillating threshold time, it will recount the oscillating threshold time again until there has no first signal S1been received within the oscillating threshold time.

In other words, if the knee detecting module15receives the first signal S1within the oscillating threshold time, the time recorder14would be triggered to recount oscillating the threshold time again, and the first oscillating time would be calculated as the oscillating threshold time plus the calculated time after then. If the knee detecting module15does not receive the first signal S1within the oscillating threshold time, the time recorder14would be triggered to record the oscillating threshold time as the first oscillating time, and the knee detecting module15would further conduct the second switch for calculating the second oscillating time. Similarly, if the knee detecting module15receives the second signal S2within the oscillating threshold time, the time recorder14would be triggered to recount the oscillating threshold time again and the second oscillating time would be calculated as the oscillating threshold time plus the calculated time after then. If the knee detecting module15does not receive the second signal S2within the oscillating threshold time, the time recorder14would be triggered to record the oscillating threshold time as the second oscillating time. The knee detecting module15would detect the knee and trigger the time recorder14to sum up the above mentioned first oscillating time and the second oscillating time to calculate the total oscillating time if the knee detecting module15does not receive the second signal S2but receives the first signal S1.

As supplements, within the second oscillating time T2(or the fourth oscillating time T4, for which the second oscillating time T2in this paragraph should be replaced by the fourth oscillating time T4), the first switch Sa, the second switch Sc, the fifth switch Se, the sixth switch Sg, the first detecting switch152, and the fourth detecting switch155are conducted. The knee detecting module15would trigger the time recorder14to recount the second oscillating time T2when receiving the second signal S2or the fourth signal S4, and trigger the time recorder14to record the second oscillating time T2as the knee detecting module15does not receive the second signal S2or the fourth signal S4(the NOR gate158may generate logic NOR of the second signal S2and the fourth signal S4, and both the second signal S2and the fourth signal S4are high level signals of digital [1]). In addition, the processing unit156would record the knee dn as the knee detecting module15receives the first signal S1or the third signal S3.

In addition, within the first oscillating time T1(or the third oscillating time T3, for which the first oscillating time T1in this paragraph should be replaced by the third oscillating time T3), the third switch Sb, the fourth switch Sd, the seventh switch Sf, the eighth switch Sh, the second detecting switch153and the third detecting switch154are conducted. The knee detecting module15would trigger the time recorder14to recount the first oscillating time T1when receiving the first signal S1or the third signal S3(the NOR gate157may generate logic NOR of the first signal S1and the third signal S3, and both the first signal S1and the third signal S3are high level signals of digital [1]), and trigger the time recorder14to record the first oscillating time T1as the knee detecting module15does not receive the first signal S1or the third signal S3. In addition, the processing unit156would record the knee dn as the knee detecting module15receives the second signal S2or the fourth signal S4.

The voltage oscillating waveform is divided into four zones in accordance with the present preferred embodiment. However, the present invention is not so restricted. In accordance with the other embodiments, the voltage oscillating waveform may be merely divided into two zones. In case there have only two zones, only one input signal would be received by the first comparing input121of the first comparator12and the third comparing input131of the second comparator13, which are the first reference voltage Va and the second reference voltage Vc respectively. The time recorder14would recount the second oscillating time T2when receiving the second signal S2, and the time recorder14would sum up the first oscillating time and the second oscillating time to calculate the total oscillating time Tt when receiving the first signal S1again after the second signal S2was received (i.e. the voltage oscillating waveform200stops oscillating and goes down).

The time recorder14transmit the total oscillating time Tt to the processing module (not shown, which may be composed of circuitry components) at the feedback end (i.e. COMP end) of the circuit1for detecting a knee of waveform. The processing module uses the voltage signal at the current sense end (i.e. CS end), the above mentioned total oscillating time Tt, and the PWM cycle for controlling on/off of the switch22to do the calculation. For example, the control current may be calculated as Vcs*(Tt/PWM) cycle, and the control current can be further used for stabilize the average output current Ib. However, the present invention is not so restricted.

In addition, as shown inFIG. 5, there are four comparators used in the present embodiment, that is, the first comparator12and the second comparator13compares the lower half of the voltage oscillating waveform200centered at the filtered voltage VZCDF, and the third comparator12aand the fourth comparator13acompares the upper half of the voltage oscillating waveform200(i.e. VZCD) centered at the filtered voltage VZCDF. However, the present invention is not so restricted. In accordance with the other embodiments, there may have only two comparators, such as the first comparator12and the second comparator13. The difference is that the embodiment with only two comparators adopts the method of one-sided detecting, which is less precise than the above mentioned two-sided detecting.

For example,FIGS. 6 and 6Ashow the circuitry of the circuit for detecting a knee of waveform in accordance with a second preferred embodiment of the present invention. As shown, the difference between the present embodiment and the first preferred embodiment is that, the present embodiment adopts one-sided detecting such that the third comparator12a, the fourth comparator13a, the first NOR gate157and the second NOR gate158are skipped, the NOT gate151is changed to be electrically connected to the second detecting switch153, the fourth detecting switch155and the timer141of the time recorder14, and the processing unit156is changed to be electrically connected to the first detecting switch152and the third detecting switch154directly.

Regarding the operation of the second preferred embodiment of the circuit for detecting a knee of waveform, for example, within the first oscillating time, the first detecting switch152and the fourth detecting switch155would be conducted by the timer142of the time recorder14, within the second oscillating time, the second detecting switch153and the third detecting switch154would be conducted by the timer142of the time recorder14, and the other technologies for detecting the knee and calculating the total oscillating time are similar to the first preferred embodiment and thus are not repeated here.

Please refer toFIG. 7, which is a waveform diagram showing the reference stabilized voltage under the influence of the voltage oscillating waveform in accordance with the other embodiment of the present invention. As shown inFIG. 7, the huge oscillation at the beginning of the voltage oscillating waveform500may influence the filtered reference stabilized voltage by having the reference stabilized voltage oscillated as shown in the waveform600ofFIG. 6. There would be some misjudgment when using the circuit1for detecting a knee of waveform in accordance with the preferred embodiment of the present invention to calculate the oscillating time based on the above mentioned waveform. Concretely speaking, the time recorder14may wrongly record the second oscillating time T2aafter recording the first oscillating time T1a. That is, the portion at point Z3would be misjudged as there has no further oscillation in the voltage oscillating waveform500and the waveform begins to decline (because the lower portion of the voltage oscillating waveform500has overpassed the previous preset voltage). At this time, the recorded total oscillating time Tta would be the sum of the first oscillating time T1aand the second oscillating time T2a, but in fact, the correct total oscillating time should be Ttb. Such drawback would be improved in the following embodiment of the present invention.

Please refer toFIGS. 8 to 9, whereinFIGS. 8 and 8Aare circuit diagrams of the isolated load circuit in accordance with the other embodiment of the present invention, andFIG. 9is a waveform diagram showing the improved reference stabilized voltage under the influence of the voltage oscillating waveform in accordance with the other embodiment of the present invention. As shown, different from the above mentioned preferred embodiment, the present embodiment integrates a time shielding device16a, which is electrically connected between the filter11aand the divider resistors (not shown) of the auxiliary winding (not shown) to delay the voltage oscillating waveform700transmitted to the filter11afor a delay time Tz. The other portions are identical to the above mentioned preferred embodiment. Because the voltage oscillating waveform700transmitted to the filter is shielded for a delay time Tz, the oscillating amplitude suffered by reference stabilized voltage VZCDFwould be smaller (i.e. the waveform800as shown inFIG. 9). That is, in accordance with the present embodiment, detecting preciseness is enhanced through delaying the judging time.

In conclusion, by using the circuit for detecting a knee of waveform provided in the present invention, the total oscillating time can be calculated to compute the compensating current, which can be transmitted to the COMP end of the conventional driving circuit to stabilize the average current so as to resolve the problem of conventional art.

The detail description of the aforementioned preferred embodiments is for clarifying the feature and the spirit of the present invention. The present invention should not be limited by any of the exemplary embodiments described herein, but should be defined only in accordance with the following claims and their equivalents. Specifically, those skilled in the art should appreciate that they can readily use the disclosed conception and specific embodiments as a basis for designing or modifying other structures for carrying out the same purposes of the present invention without departing from the scope of the invention as defined by the appended claims.