Waveform shape discriminator
09742309 · 2017-08-22
Assignee
Inventors
Cpc classification
G01R19/2506
PHYSICS
H02M3/156
ELECTRICITY
G01R19/30
PHYSICS
H02M1/0022
ELECTRICITY
Y02B70/10
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
G01R19/30
PHYSICS
Abstract
A waveform shape discriminator includes a running maximum finder circuit coupled to receive a sense signal. The running maximum finder circuit is coupled to update a running maximum signal in response to the sense signal. A first comparator is coupled to receive the sense signal and a running maximum threshold signal that is representative of the running maximum signal. A search window block is coupled to receive the input signal to detect a search window in the sense signal. An output circuit is coupled to an output of the first comparator and an output of the search window block to determine a presence of a waveform shape in the sense signal within the search window in the sense signal.
Claims
1. A waveform shape discriminator, comprising a running maximum finder circuit coupled to receive an input sense signal that is representative of an input of a power converter, wherein the running maximum finder circuit is further coupled to receive a zero crossing signal, wherein the running maximum finder circuit is coupled to update a running maximum signal in response to the input sense signal and the zero crossing signal; a scaling circuit coupled to receive the running maximum signal from the running maximum finder circuit to generate a running maximum threshold signal in response to the running maximum signal, wherein the running maximum threshold signal is a scaled representation of the running maximum signal; a first comparator coupled to receive the input sense signal and the running maximum threshold signal that is representative of the running maximum signal; a search window block coupled to receive the input sense signal to detect a search window in the input sense signal, wherein the search window block comprises a zero crossing detector coupled to output the zero crossing signal, wherein the running maximum finder circuit is coupled to output the running maximum signal representative of a maximum value of the input sense signal in the search window as defined by the zero crossing signal; and an output circuit coupled to output a shape signal in a presence of a waveform shape of the input sense signal, wherein the shape signal has N number of values, and each of the values corresponds to a shape.
2. The waveform shape discriminator of claim 1 wherein the zero crossing detector is coupled to receive the input sense signal, wherein the search window is coupled to begin in response to a zero crossing in the input sense signal.
3. The waveform shape discriminator of claim 1 wherein the output circuit comprises: a counter coupled an output of the first comparator and an output of the search window block; and a second comparator coupled to compare an output of the counter with a second threshold to generate a shape signal representative of the waveform shape in the input sense signal within the search window in the input sense signal.
4. The waveform shape discriminator of claim 3 wherein the first comparator is coupled to increment the counter in response to the input sense signal and the running maximum threshold signal.
5. The waveform shape discriminator of claim 3 wherein the first comparator is coupled to decrement the counter in response to the input sense signal and the running maximum threshold signal.
6. The waveform shape discriminator of claim 3 wherein the search window block is coupled to reset the counter in response to a detection of the search window in the input sense signal.
7. The waveform shape generator of claim 3 wherein the shape signal is representative of a first shape when the output of the counter is less than the second threshold, and wherein the shape signal is representative of a second shape when the output of the counter is greater than the second threshold.
8. The waveform shape discriminator of claim 3 wherein the output circuit further includes a persistence checker coupled to receive the shape signal from the second comparator to generate a confirmed shape signal in response to a plurality of consecutive active shape signals received from the second comparator.
9. The waveform shape discriminator of claim 1 wherein the output circuit comprises: a timer coupled an output of the first comparator and an output of the search window block; and a second comparator coupled to compare an output of the timer with a second threshold to generate a shape signal representative of the waveform shape in the input sense signal within the search window in the input sense signal.
10. The waveform shape discriminator of claim 9 wherein the first comparator is coupled to enable the timer in response to the input sense signal and the running maximum threshold signal.
11. The waveform shape discriminator of claim 9 wherein the first comparator is coupled to disable the timer in response to the input sense signal and the running maximum threshold signal.
12. The waveform shape discriminator of claim 9 wherein the search window block is coupled to reset the timer in response to a detection of the search window in the input sense signal.
13. The waveform shape generator of claim 9 wherein the shape signal is representative of a first shape when the output of the timer is less than the second threshold, and wherein the shape signal is representative of a second shape when the output of the timer is greater than the second threshold.
14. The waveform shape discriminator of claim 9 wherein the output circuit further comprises a persistence checker coupled to receive the shape signal from the second comparator to generate a confirmed shape signal in response to a plurality of consecutive active shape signals received from the second comparator.
15. A method for discriminating a waveform shape, comprising: receiving an input sense signal and a zero crossing signal with a running maximum finder circuit, wherein the input sense signal is representative of an input of a power converter; detecting a search window in the input sense signal as defined by the zero crossing signal; updating a running maximum signal representative of a maximum value of the input sense signal in the search window as defined by the zero crossing signal in response to the input sense signal; scaling the running maximum signal with a scaling circuit coupled to receive the running maximum signal from the running maximum finder circuit to generate a running maximum threshold signal in response to the running maximum signal, wherein the running maximum threshold signal is a scaled representation of the running maximum signal; repeating until an end of a search window: comparing the input sense signal with the running maximum threshold signal that is representative of the running maximum signal; and incrementing a counter if the input sense signal is greater than the running maximum threshold signal within the search window as defined by the zero crossing signal; comparing at the end of the search window a value of the counter with a second threshold; and generating a shape signal in a presence of the waveform shape of the input sense signal within the search window in response to said comparing at the end of the search window the value of the counter with the second threshold, wherein the shape signal has N number values, and each of the values corresponds to a shape.
16. The method of claim 15 further comprising decrementing the counter if the input sense signal is less than the running maximum threshold signal after said comparing the input sense signal with a running maximum threshold signal and before the end of the search window as defined by the zero crossing signal.
17. The method of claim 15 further comprising resetting the counter in response to detecting the search window in the input sense signal.
18. The method of claim 15 wherein detecting the search window in the input sense signal comprises detecting a zero crossing in the input sense signal.
19. The method of claim 15 wherein the counter is a timer such that said incrementing the counter if the input sense signal is greater than the running maximum threshold signal comprises enabling the timer.
20. The method of claim 15 wherein the counter is a timer, wherein the method further comprises disabling the timer if the input sense signal is less than the running maximum threshold signal after said comparing the input sense signal with a running maximum threshold signal and before the end of the search window.
21. The method of claim 15 further comprising confirming the shape signal in response to in response to a plurality of consecutive active shape signals.
22. A power converter, comprising: an energy transfer element coupled to a power converter input through a power switch and coupled to a power converter output; a sense circuit coupled to the power converter output to generate a feedback signal representative of the power converter output; and a controller including a drive circuit coupled to control switching of the power switch in response to the feedback signal to control a transfer of energy from the power converter input to the power converter output, the controller including a waveform shape discriminator coupled to receive an input sense signal representative of the power converter input to generate a shape signal coupled to be received by the drive circuit, wherein the waveform shape discriminator includes: a running maximum finder circuit coupled to receive the input sense signal and a zero crossing signal, wherein the running maximum finder circuit is coupled to update a running maximum signal in response to the input sense signal and the zero crossing signal; a scaling circuit coupled to receive the running maximum signal from the running maximum finder circuit to generate a running maximum threshold signal in response to the running maximum signal, wherein the running maximum threshold signal is a scaled representation of the running maximum signal; a first comparator coupled to receive the input sense signal and the running maximum threshold signal that is representative of the running maximum signal; a search window block coupled to receive the input sense signal to detect a search window in the input sense signal, wherein the search window block comprises a zero crossing detector coupled to output the zero crossing signal, wherein the running maximum finder circuit is coupled to output the running maximum signal representative of a maximum value of the input sense signal in the search window as defined by the zero crossing signal; and a output circuit coupled to output a shape signal in a presence of a waveform shape of the input sense signal, wherein the shape signal has N number of values, and each of the values corresponds to a shape.
23. The power converter of claim 22 further comprising a rectifier coupled to the power converter input.
24. The power converter of claim 22 wherein the zero crossing detector is coupled to receive the input sense signal, wherein the search window is coupled to begin in response to a zero crossing in the input sense signal.
25. The power converter of claim 22 wherein the output circuit comprises: a counter coupled an output of the first comparator and an output of the search window block; and a second comparator coupled to compare an output of the counter with a second threshold to generate a shape signal representative of the waveform shape in the input sense signal within the search window in the input sense signal.
26. The power converter of claim 25 wherein the first comparator is coupled to increment the counter in response to the input sense signal and the running maximum threshold signal.
27. The power converter of claim 25 wherein the first comparator is coupled to decrement the counter in response to the input sense signal and the running maximum threshold signal.
28. The power converter of claim 25 wherein the search window block is coupled to reset the counter in response to a detection of the search window in the input sense signal.
29. The power converter of claim 25 wherein the shape signal is representative of a first shape when the output of the counter is less than the second threshold, and wherein the shape signal is representative of a second shape when the output of the counter is greater than the second threshold.
30. The power converter of claim 25 wherein the output circuit further comprises a persistence checker coupled to receive the shape signal from the second comparator to generate a confirmed shape signal in response to a plurality of consecutive active shape signals received from the second comparator.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Non-limiting and non-exhaustive embodiments of the present invention are described with reference to the following figures, wherein like reference numerals refer to like parts throughout the various views unless otherwise specified.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10) Corresponding reference characters indicate corresponding components throughout the several views of the drawings. Skilled artisans will appreciate that elements in the figures are illustrated for simplicity and clarity and have not necessarily been drawn to scale. For example, the dimensions of some of the elements in the figures may be exaggerated relative to other elements to help to improve understanding of various embodiments of the present invention. Also, common but well-understood elements that are useful or necessary in a commercially feasible embodiment are often not depicted in order to facilitate a less obstructed view of these various embodiments of the present invention.
DETAILED DESCRIPTION
(11) In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one having ordinary skill in the art that the specific detail need not be employed to practice the present invention. In other instances, well-known materials or methods have not been described in detail in order to avoid obscuring the present invention.
(12) Reference throughout this specification to “one embodiment”, “an embodiment”, “one example” or “an example” means that a particular feature, structure or characteristic described in connection with the embodiment or example is included in at least one embodiment of the present invention. Thus, appearances of the phrases “in one embodiment”, “in an embodiment”, “one example” or “an example” in various places throughout this specification are not necessarily all referring to the same embodiment or example. Furthermore, the particular features, structures or characteristics may be combined in any suitable combinations and/or subcombinations in one or more embodiments or examples. Particular features, structures or characteristics may be included in an integrated circuit, an electronic circuit, a combinational logic circuit, or other suitable components that provide the described functionality. In addition, it is appreciated that the figures provided herewith are for explanation purposes to persons ordinarily skilled in the art and that the drawings are not necessarily drawn to scale.
(13) Controllers for switched mode power converters may sense and respond to an input signal, such as an input voltage signal or an input current signal. For power converters that are ac to dc power converters, the shape of the input voltage signal is generally a sinusoid. For example, the input voltage signal may be an ac input voltage and the period of the ac input voltage is referred to as a full line cycle. As such, half the period of the ac input voltage is referred to as a half line cycle. In some cases, an uninterruptible power supply (UPS) may be coupled to the switched mode power converter to provide the input voltage signal. The input voltage signal provided by the UPS is generally sinusoidal, however the shape of the input voltage signal may look more like a square wave as the UPS loses power. The distorted waveform (i.e., the square shape of the input voltage signal) may cause issues for the power converter. For example, the power converter may experience the “hiccuping effect” in which the power converter cycles between a brown-out condition and a brown-in condition if the power converter does not adjust for the distorted waveform. In another example, it may be desirable to determine the shape of the input voltage signal to alter various functions of the power converter, such as the feed-forward control of the power converter and the maximum output power delivery. For example, the power converter may deliver more output power when the shape of the input voltage sense signal is closer to a square than a sinusoid. The feed-forward gain constant of the power converter may be altered in response to the shape of the input voltage signal to prevent over delivery of the output power.
(14) In examples of the present disclosure, a controller utilizes a waveform shape discriminator that may discriminate between various waveform shapes. The waveform shape discriminator may receive an input sense signal representative of an input of the power converter. A running maximum finder circuit may also receive the input sense signal and identifies the maximum value of the input sense signal within a search window. In other words, the output of the running maximum finder circuit (referred to as the maximum signal) is the current maximum value of the input sense signal within the search window. In one example, the waveform shape discriminator compares the input sense signal to a scaled version of the maximum signal outputted from the running maximum finder circuit. The amount of time in the search window that the input sense signal was above or below the running maximum threshold signal may discriminate between various waveform shapes.
(15) Referring first to the example depicted in
(16) In the illustrated example, the power converter 100 provides output power to the load 118 from an unregulated input voltage. In one example, the input voltage is the ac input voltage V.sub.AC 102. The ac input voltage V.sub.AC 102 may be an ac line voltage, which can be provided from a conventional wall outlet. In another example, the input voltage is a rectified ac input voltage such as the rectified voltage V.sub.RECT 106. As shown, the rectifier 104 receives an ac input voltage V.sub.AC 102 and produces a rectified voltage V.sub.RECT 106. In the example shown, input capacitor 108 is coupled across the output of rectifier 104 and may filter high frequency current through the power switch S1 112. For some applications, the value of the input capacitor 108 may be large enough such that a substantially constant dc voltage is applied to the energy transfer element L1 114. However, for power converters utilized in power factor correction (PFC), the value of the input capacitor 108 is small and the input capacitor 108 may be utilized to allow the voltage applied to the energy transfer element L1 110 to substantially follow the rectified voltage V.sub.RECT 106.
(17) In one example, the ac input voltage V.sub.AC 102 is a sinusoidal waveform with the period of the ac input voltage V.sub.AC 102 referred to as a full line cycle. Mathematically: V.sub.AC (t)=V.sub.P sin(2πf.sub.Lt), where V.sub.P is the peak voltage of the ac input voltage V.sub.AC 102 and f.sub.L is the frequency of the line input voltage. In other words, f.sub.L is the line frequency of the ac input voltage V.sub.AC 102. It should be appreciated that the full line cycle is the reciprocal of the line frequency f.sub.L, or mathematically: full line cycle=1/f.sub.L. As mentioned above, the rectified voltage V.sub.RECT 106 is the resultant output of the bridge rectifier 104 when the input to the bridge rectifier 104 is the ac input voltage V.sub.AC 102. In one example, the V.sub.RECT 106 output of bridge rectifier 104 is of a positive magnitude, or mathematically: V.sub.RECT=|V.sub.AC|=|V.sub.P sin(2πf.sub.Lt)|. As a result, the rectified voltage V.sub.RECT 106 repeats every half line cycle.
(18) In the example shown, energy transfer element L1 110, power switch S1 112, and rectifier D1 114 are coupled together in a boost converter configuration. The bridge rectifier 104 is coupled to one end of energy transfer element L1 110. In one example, the energy transfer element L1 110 is an inductor. The other end of energy transfer element L1 110 is further coupled to the power switch S1 112 and the output rectifier D1 114, which is exemplified as a diode in the example depicted in
(19) As shown in the depicted example, power converter 100 further includes circuitry to regulate the output, which is exemplified as output quantity U.sub.O 124. An output sense circuit 126 is coupled to sense the output quantity U.sub.O 124 and to provide feedback signal U.sub.FB 128, which is representative of the output quantity U.sub.O 124. Feedback signal U.sub.FB 128 may be voltage signal or a current signal.
(20) In the example shown in
(21) As illustrated in
(22) The drive circuit 132 is also coupled to receive the input sense signal 134 and the current sense signal 136. The drive circuit 132 outputs the drive signal 131 to control switching of the power switch S1 112 in response to the confirmed shape signal U.sub.CSP 142, the current sense signal 135, the input sense signal 134, and the feedback signal U.sub.FB 128. In one example, drive signal 131 is a rectangular pulse waveform with varying lengths of logic high and logic low sections. In addition, the time between rising edges of the drive signal 152 is substantially equal to the switching period T.sub.S of the power converter 100. It is generally understood that a switch that is closed may conduct current and is considered on, while a switch that is open cannot conduct current and is considered off. In one example, the power switch S1 112 may be a transistor such as a metal-oxide-semiconductor field-effect transistor (MOSFET). In another example, controller 130 may be implemented as a monolithic integrated circuit or may be implemented with discrete electrical components or a combination of discrete and integrated components. In one example, controller 130 and power switch S1 112 could form part of an integrated circuit that is manufactured as either a hybrid or a monolithic integrated circuit.
(23) As will be discussed in greater detail below, the waveform shape discriminator 140 in one example includes a running maximum finder circuit which receives the input sense signal 134 and identifies the maximum value of the input sense signal within a search window. One example of the search window may be the half line cycle of the input voltage (ac input voltage V.sub.AC 102 or rectified voltage V.sub.RECT 106). In other words, the output of the running maximum finder circuit (referred to as the maximum signal) is the current maximum value of the input sense signal 134 within the search window. In one example, the waveform shape discriminator 140 compares the input sense signal 134 to a scaled version of the maximum signal outputted from the running maximum finder circuit. The amount of time in the search window, which the input sense signal 134 was above or below the running maximum threshold signal may be utilized to discriminate between various waveform shapes. The confirmed shape signal U.sub.CSP 142 may indicate the shape of the input signal in response to the amount of time the input sense signal 134 was above or below the running maximum threshold signal.
(24) The controller 130 may utilize the confirmed shape signal U.sub.CSP 142 to control switching of the power switch S1 112. For instance, in one example the controller 130 may vary the value of the brown-in threshold and the brown-out threshold in response to the shape of the input signal, as indicated for example by the confirmed shape signal U.sub.CSP 142. In general, if the input voltage falls below the brown-out threshold, the controller turns off. Once the input voltage is greater than the brown-in threshold, the controller turns on.
(25)
(26) A first comparator 248 is coupled to receive the input sense signal 234 and a running maximum threshold signal U.sub.SM 260, which is representative of the running maximum signal U.sub.MAX 258. As illustrated in the depicted example, the input sense signal 234 is received at the non-inverting input of comparator 248 and the running maximum threshold signal U.sub.SM 260 is received at the inverting input of comparator 248. The output 247 of the comparator 248 is then coupled to be received by the output circuit 249. The current maximum value of the input sense signal is output to the scaling circuit 246 as maximum signal U.sub.MAX 258. In one example, the search window is substantially equal to the half line cycle of the rectified input voltage V.sub.RECT or the ac input voltage V.sub.AC and the running maximum finder circuit 244 may identify the current maximum value of the input sense signal 234 for each half line cycle. In another example, the running maximum finder circuit 244 may identify the running maximum value of the input sense signal 234 from the previous half line cycle. In that case, the maximum signal U.sub.MAX 258 may be representative of the peak value of the input sense signal 234 from the previous half line cycle. It should be appreciated that the running maximum finder circuit 244 and search window block 252 may be included as parts of other circuits within the controller.
(27) In one example, the running maximum threshold signal I.sub.SM 260 is output from a scaling circuit 246 in response to the running maximum signal U.sub.MAX 258. Scaling circuit 246 is coupled to receive the maximum signal U.sub.MAX 258 and output a scaled version of the maximum signal U.sub.MAX 258, referred to as running maximum threshold signal U.sub.SM 260. The running maximum threshold signal U.sub.SM 260 may be a voltage signal or a current signal. In one example, the scaling circuit 246 is a multiplier which multiples the received maximum signal U.sub.MAX 258 to a scaling factor K. In one example, the resultant running maximum threshold signal U.sub.SM 260 is substantially equal to the product of the maximum signal U.sub.MAX 158 and the scaling value K, or mathematically: U.sub.SM=KU.sub.MAX. It should be appreciated that any number of arithmetic operators may be utilized within the scaling circuit 246 to produce the running maximum threshold signal U.sub.SM 260. In one example, the scaling circuit scales the maximum signal U.sub.MAX 258 to a smaller value. Or in other words, the scaling factor K is less than one.
(28) A search window block 252 is coupled to receive the input sense signal 234 to detect a search window in the input sense signal 234. The search window block 252 outputs the window signal U.sub.WIN 262 in response to the input sense signal 234. The window signal U.sub.WIN 262 may be a voltage signal or current signal and may provide a “search window” to other blocks within the controller. The search window may represent a time period for which other blocks may perform their respective functions. One example of the “search window” may be the half line cycle of the rectified input voltage V.sub.RECT or the ac input voltage V.sub.AC. This search window represents a time period for which the running maximum finder circuit 244 may identify the maximum value of the input sense signal 234. In other words, the running maximum finder circuit 244 outputs the current maximum value of the input sense signal 234 within the search window provided by the window signal U.sub.WIN 262. As illustrated, the running maximum finder circuit 244 and a timer 250 are coupled to receive the window signal U.sub.WIN 262.
(29) As shown in the example, an output circuit 249 is coupled to an output 247 of the first comparator 248 and the output U.sub.WIN 262 of the search window block 252 to determine a presence of a waveform shape in the input sense signal 234 within the search window in the input sense signal 234. In one example, the presence of the waveform shape in the input sense signal 234 within the search window in the input sense signal 234 may be indicated with a shape signal U.sub.SP 266.
(30) In one example, output circuit 249 includes the timer 250 as well as a comparator 254. Timer 250 is coupled to receive the output 247 the window signal U.sub.WIN 262 which provides a search window to the timer 250. In the example shown, the timer 250 determines the amount of time which the input sense signal 234 is greater than the running maximum threshold signal U.sub.SM 260 within the search window. For example, the window signal U.sub.WIN 262 may provide information to the timer 260 on when to reset. In another example, the comparator output 247 may be an enable/disable signal which enables the timer 250 when the input sense signal 234 is greater than or substantially equal to the running maximum threshold signal U.sub.SM 260 and disables the timer when the input sense signal 234 is less than the running maximum threshold signal U.sub.SM 260. Although, it should be appreciated that the timer 250 may be enabled when the input sense signal 234 is greater than the running maximum threshold signal U.sub.SM 260 and may be disabled when the input sense signal 234 is less than or substantially equal to the running maximum threshold signal U.sub.SM 260. At the end of the search window provided by the window signal U.sub.WIN 262, the amount of time which the input sense signal 234 is greater than the running maximum threshold signal U.sub.SM 260 is outputted to the comparator 254 as output 251. In another example, the timer 250 may determine the difference between the amount of time which the input sense signal 234 is greater than or substantially equal to the running maximum threshold signal U.sub.SM 260 and less than the running maximum threshold signal U.sub.SM 260. For example, the timer may be incremented when the input sense signal 234 is greater than the running maximum threshold signal U.sub.SM 260 and the timer may be decremented when the input sense signal 234 is less than the running maximum threshold signal U.sub.SM 260.
(31) In the example shown, the comparator 254 is coupled to receive the output 251 of the timer 250 and the threshold signal U.sub.TH 265. As illustrated, the output 251 is received at the non-inverting input while a threshold signal U.sub.TH 265 is received at the inverting input of comparator 254. In one example, if the output 251 is less than the threshold signal U.sub.TH 265, the shape signal U.sub.SP 266 indicates that the shape of the input sense signal 234 is a first shape. If the output 251 is greater than the threshold signal U.sub.TH 265, the shape signal U.sub.SP 266 indicates that the shape of the input sense signal 234 is a second shape. In one example, the shape signal U.sub.SP 266 is a rectangular pulse waveform with varying lengths of logic high and logic low sections. The shape signal USP 266 may be logic low when the waveform shape discriminator 240 determines that the shape of the input sense signal 234 is the first shape and logic high when it is the second shape. It should be appreciated that multiple threshold values may be utilized to differentiate the shape of the input sense signal 234 between any number of shapes. For example, to discriminate between N number of shapes, an N−1 number of thresholds may be utilized.
(32) The output circuit 249 of waveform shape detector 240 may also optionally utilize a persistence checker 256. The persistence checker 256 is coupled to receive the shape signal U.sub.SP 266 and outputs the confirmed shape signal U.sub.CSP 242. In one example, the persistence checker 256 waits for M number of consecutive search windows in which the value of the shape signal U.sub.SP 266 is the same before outputting the confirmed shape signal U.sub.CSP 242 with the same value as the shape signal U.sub.SP 266. For the example which the shape signal U.sub.SP 266 is a rectangular pulse waveform, the shape signal U.sub.SP 266 must be logic high or logic low (indicating that the input sense signal is the first shape or the second shape) for M number of consecutive search windows for the confirmed shape signal U.sub.CSP 242 to transition to a logic high value or logic low value. In one example, M may be substantially equal to three. If the waveform detector 240 does not utilize a persistence checker 256, the confirmed shape signal U.sub.CSP 242 is substantially equal to the shape signal U.sub.SP 266.
(33)
(34) At block 310, a search window may be started. In one example, the search window may be responsive to the input sense signal. For example, the length of the search window may be the half line cycle of the ac input voltage V.sub.AC or the rectified input voltage V.sub.RECT. In general, the half line cycle can be measured as the time between zero crossings of the ac input voltage V.sub.AC. The zero-crossing generally refers to when the ac input voltage V.sub.AC crosses zero voltage. In other words, the zero crossing refers to when the polarity of the ac input voltage changes from positive to negative or from negative to positive. The time between every other zero crossing is generally the full line cycle while the time between zero crossings is generally the half line cycle.
(35) In one example, the search window may be started after the zero crossing of the ac input voltage V.sub.AC. In one example, as will be further discussed, a zero crossing circuit may receive the input sense signal and compare the input sense signal with a zero crossing threshold. If the input sense signal is less than the zero crossing threshold, the zero crossing circuit determines that the input sense signal has reached zero crossing. The zero crossing circuit may output a zero crossing signal which is a rectangular pulse waveform which pulses to a logic high value at a zero crossing of the input sense signal.
(36) At block 315, a running maximum signal U.sub.MAX is generated. The running maximum signal may be responsive to the input sense signal and the search window. In one example, the running maximum signal U.sub.MAX may output the current maximum value of the input sense signal within the search window.
(37) At decision block 320, the input sense signal is compared to a scaled running maximum signal (KU.sub.MAX). In one example, the value of the scaled running maximum signal is less than the running maximum signal U.sub.MAX. Or in other words, the scaling factor K is less than one. In one example, the scaled running maximum signal may also be referred to as the running maximum threshold signal U.sub.SM. If the value of the input sense signal is greater than or substantially equal to the scaled running maximum signal (KU.sub.MAX), then the process 300 proceeds to block 325 and the value of a timer is incremented. If the value of the input sense signal is less than the scaled running maximum signal (KU.sub.MAX), then the process 300 proceeds to block 330 and the value of the timer is decremented. In another example, the value of the timer is neither incremented nor decremented if the value of the input sense signal is less than the scaled running maximum signal (KU.sub.MAX).
(38) Both blocks 325 and 330 then proceed to decision block 335, where it is determined whether the search window U.sub.WIN has been completed. In the example mentioned above with regards to the zero crossing of the input sense signal, the search window may be completed if another zero crossing pulse has been received. If the search window has not been completed, the process returns to decision block 320. However, if the search window has been completed, the process 300 continues to decision block 340.
(39) At decision block 340, the value of the timer at the end of the search window is compared to a shape threshold. If the value of the timer is less than the shape threshold, then the process 300 proceeds to block 345 and the shape signal is set to the first shape. However, if the value of the timer is greater than the shape threshold, then the process 300 proceeds to block 350 and the shape signal is set to the second shape. The process 300 ends at block 351.
(40) It should be appreciated that the process 300 may also include a block to determine if the shape signal was set to either the first shape or the second shape for M number of consecutive search windows as discussed with respect to persistence checker 256. In other words, the process 300 shown may be for an example in which M is substantially equal to one.
(41)
(42) In the depicted example, waveform shape discriminator 440 is coupled to output a confirmed shape signal U.sub.CSP 442 to the drive circuit 432 in response to the digital sense signal U.sub.DSEN 437. The confirmed shape signal U.sub.CSP 442 may indicate the shape of the input sense signal 434. In another example, waveform shape discriminator 440 may be coupled to output a shape signal U.sub.SP, similar to for example shape signal U.sub.SP 266 of
(43)
(44) Zero crossing detector 552 is coupled to receive the digital sense signal U.sub.DSEN 537 and the sampling clock signal U.sub.CLK 539. The zero crossing detector 552 is one example of the search window block 252. In one example, the zero crossing detector 552 provides the zero crossing signal U.sub.ZC 562 (which is one example of the window signal U.sub.WIN 262) that indicates when a zero crossing has occurred in the digital sense signal U.sub.DSEN 537. The zero-crossing generally refers to when the ac input voltage V.sub.AC crosses zero voltage. In other words, the zero crossing refers to when the polarity of the ac input voltage changes sign from positive to negative or from negative to positive. The time between every other zero crossing is generally the full line cycle while the time between zero crossings is generally the half line cycle. Zero crossing detector 552 may be configured to output a zero crossing signal U.sub.ZC 562 indicating the occurrence of the value of digital sense signal U.sub.DSEN 537 falling to a value equal to or less than a detection threshold, which may be a value that can be used to identify half line cycles of the ac input voltage V.sub.AC or the rectified input voltage V.sub.RECT 106. In an ideal case, the detection threshold may be zero volts. However the ADC 435 of
(45) Running maximum finder circuit 544 is coupled to receive the digital input sense signal U.sub.DSEN 537 and the zero crossing signal U.sub.ZC 562. The running maximum finder circuit 544 outputs the maximum signal U.sub.MAX 258 in response to the digital input sense signal U.sub.DSEN 537 and the zero crossing signal U.sub.ZC 562. As mentioned above, the zero crossing signal U.sub.ZC 562 provides a search window for the running maximum finder circuit 554. Running maximum finder circuit 554 may be configured to output a maximum signal U.sub.MAX 558 representative of the maximum value of digital line sense signal U.sub.DSEN 537 in each search window as defined by zero crossing signal U.sub.ZC 562. In one example, the search window provided by the zero crossing signal U.sub.ZC 562 is substantially equal to the half line cycle of the ac input voltage V.sub.AC or the rectified voltage V.sub.RECT. As such the maximum signal U.sub.MAX 558 may be representative of the current peak value of the ac input voltage V.sub.AC or the rectified voltage V.sub.RECT in each half line cycle. In one example, maximum signal U.sub.MAX 558 may include a 9-bit binary signal. In operation, running maximum finder circuit 544 may set the maximum signal U.sub.MAX 558 to substantially zero at the zero crossing of the digital input sense signal U.sub.DSEN 537 (which is provided by the zero crossing signal U.sub.ZC 562 transitioning to a logic high value). As mentioned above, the zero crossing may indicate the start of the search window. As new samples of digital line sense signal U.sub.DSEN 537 arrive at a frequency determined by sampling clock signal U.sub.CLK 539, running maximum finder circuit 544 may compare the value represented by maximum signal U.sub.MAX 558 with each new sample. If the new sample is greater than the value represented by maximum signal U.sub.MAX 558, running maximum finder circuit 544 may change maximum signal U.sub.MAX 558 to represent the value of the new, larger sample. If, however, the new sample is not greater than the value represented by maximum signal U.sub.MAX 558, running maximum finder circuit 544 may leave maximum signal U.sub.MAX 558 unchanged. When zero crossing signal U.sub.ZC 562 becomes logic high again, indicating the end of the current search window and the start of a new search window, maximum signal U.sub.MAX 558 may again be set to a value representing zero.
(46) Scaling circuit 546 is coupled to receive the maximum signal U.sub.MAX 558 and output a scaled version of the maximum signal U.sub.MAX 558, referred to as running maximum threshold signal U.sub.SM 560. In one example, the running maximum threshold signal U.sub.SM 560 may also be a 9-bit binary signal. In one example, the scaling circuit 246 is a multiplier which multiples the received maximum signal U.sub.MAX 258 to a scaling factor K. The resultant running maximum threshold signal U.sub.SM 560 is substantially equal to the product of the maximum signal U.sub.MAX 558 and the scaling value K, or mathematically: U.sub.SM=KU.sub.MAX. In operation, the scaling of the maximum signal U.sub.MAX 558 may be performed with division and subtraction. For instance, in one example, the scaling value K may substantially be equal to 15/16. Multiplying the maximum signal U.sub.MAX 558 by 15/16 is substantially equivalent to the difference between the maximum signal U.sub.MAX 558 and 1/16.sup.th of the maximum signal U.sub.MAX 558, or mathematically: 15/16U.sub.MAX=U.sub.MAX− 1/16U.sub.MAX. The maximum signal U.sub.MAX 558 may be a 9-bit binary signal and shifting the binary signal by 4 bits is substantially dividing by 16. For the example of a 9-bit binary signal, the divided result is a 5-bit binary signal. The scaling circuit 546 may then subtract the 5-bit binary signal ( 1/16U.sub.MAX) from the 9-bit binary signal (U.sub.MAX) and the result is substantially 15/16U.sub.MAX. For this example, the running maximum threshold signal U.sub.SM 560 would also be a 9-bit binary signal.
(47) Digital comparator 548 is coupled to receive the running maximum threshold signal U.sub.SM 560 and the digital input sense signal U.sub.DSEN 537. The running maximum threshold signal U.sub.SM 560 is compared to the digital input sense signal U.sub.DSEN 537. In one example, the output 547 of the digital comparator 548 is logic high when the digital input sense signal U.sub.DSEN 537 is greater than or substantially equal to the running maximum threshold signal U.sub.SM 560 and logic low if the running maximum threshold signal U.sub.SM 560 is greater than the digital input sense signal U.sub.DSEN 537. It should be appreciated that the output 547 of digital comparator 548 may be logic high when the digital input sense signal U.sub.DSEN 537 is greater than the running maximum threshold signal U.sub.SM 560 and logic low if the running maximum threshold signal U.sub.SM 560 is greater than or substantially equal to the digital input sense signal U.sub.DSEN 537. The output of the digital comparator 548 is coupled to be received by the output circuit 549.
(48) Output circuit 549 is coupled to receive the output 547 of the digital comparator 548, the zero crossing signal U.sub.ZC 562, and the sampling clock signal U.sub.CLK 529. As illustrated, the output circuit 549 includes the counter 550 and the digital comparator 554. In the depicted example, counter 550 is coupled to receive the output of the digital comparator 548, the zero crossing signal U.sub.ZC 562 and the sampling clock signal U.sub.CLK 539 at the up/down input, reset input, and clock input, respectively.
(49) In operation, the counter 550 counts the number of times which the digital input sense signal U.sub.DSEN 537 is greater or less than the running maximum threshold signal U.sub.SM 560 within the search window provided by the zero crossing signal U.sub.ZC 562. The internal count of the counter 550 is then output as count 551. In operation, the counter 550 may set the internal count to substantially zero at the zero crossing of the digital input sense signal U.sub.DSEN 537, which is provided by the zero crossing signal U.sub.ZC 562 transitioning to a logic high value. As mentioned before, the sampling clock signal U.sub.CLK 539 is representative of the sampling period (or sampling frequency) of the ADC 435. In other words, the sampling clock signal U.sub.CLK 539 is representative of the frequency at which the digital input sense signal U.sub.DSEN 537 is updated. In one example, the sampling clock signal U.sub.CLK 539 may be a rectangular pulse waveform with the length of time between logic high pulses substantially equal to the sampling period of the ADC 435.
(50) In one example, the internal count of the counter 550 may be updated at every pulse of the sampling clock signal U.sub.CLK 539. In one example, if the value received from the digital comparator 548 is logic high when the sampling clock signal U.sub.CLK 539 is logic high, the internal count of the counter 550 increments. If the value received from the digital comparator 548 is logic low when the sampling clock signal U.sub.CLK 539 is logic high, the internal count of the counter 550 decremented. In one example, the counter may be incremented or decremented by a count of 1. In another example, if the value received from the digital comparator 548 is logic low when the sampling clock signal U.sub.CLK 539 is logic high, the internal count of the counter 550 is neither incremented nor decremented. At the end of the search window provided by the zero crossing signal U.sub.ZC 562, the internal count is output as count 551 to the digital comparator 554. When the zero crossing signal U.sub.ZC 562 becomes logic high again, indicating the end of the current search window and the start of a new search window, the internal count of the counter 550 may again be set to a value representing zero.
(51) Digital comparator 554 is coupled to receive the count 551 output from the counter 550 and the threshold signal U.sub.TH 564. In one example, if the count 551 is less than the threshold signal U.sub.TH 565, the shape signal U.sub.SP 566 indicates that the shape of the input sense signal 534 is a first shape. If the count 551 is greater than the threshold signal U.sub.TH 565, the shape signal U.sub.SP 566 indicates that the shape of the input sense signal 534 is a second shape. In one example, the shape signal U.sub.SP 566 is a rectangular pulse waveform with varying lengths of logic high and logic low sections. The shape signal U.sub.SP 566 may be logic low when the waveform shape discriminator 540 determines that the shape of the input sense signal 534 is the first shape and logic high when it is the second shape. It should be appreciated that multiple threshold values may be utilized to differentiate the shape of the input sense signal between any number of shapes. For example, to discriminate between N number of shapes, an N−1 number of thresholds may be utilized.
(52) In one example, an optionally included persistence checker 556 is coupled to receive the shape signal U.sub.SP 566 from digital comparator 554 as shown, which is further discussed with respect to
(53)
(54) In operation, the latch 576 is not set to a logic high value (and as such the confirmed shape signal U.sub.CSP 542 does not transition to a logic high value) unless the shape signal U.sub.SP 566 is logic high for two consecutive search windows. For example, if the shape signal U.sub.SP 566 is logic high for a current search window but was logic low during the previous search window, the output of the first flip-flop 568 is logic high while the output of the second flip-flop 570 is logic low. As such the output of AND gate 572 is logic high and latch 576 is not set to a logic high value. However, if the next search window is also logic high, both the Q-outputs of flip-flops 568 and 578 are logic high. The output of AND gate 572 is logic high and the latch 576 is set and the confirmed shape signal U.sub.CSP 542 transitions to a logic high value. The confirmed shape signal U.sub.CSP 542 remains logic high unless the shape signal U.sub.SP 566 falls to a logic low value for two consecutive search windows. In other words, the latch 576 is not reset until the output of the NOR gate 574 is logic high. The NOR gate 574 outputs a logic high value when both outputs of flip-flops 568 and 578 are logic low.
(55) Referring to the example depicted in
(56) Graph 682 illustrates one example of the rectified voltage V.sub.RECT 606 and the digital line sense signal U.sub.DSEN 637. As illustrated, the shape of the rectified voltage V.sub.RECT 606 is substantially a rectified sinusoid and is shown as the thinner solid line. In one example, the time between zero-crossings (the point which the rectified voltage V.sub.RECT 606 is substantially equal to zero) is referred to as the half line cycle T.sub.HL 678. As mentioned above, the search window of the waveform shape discriminator is substantially equal to the half line cycle T.sub.HL 678.
(57) Graph 684 illustrates one example of the rectified voltage V.sub.RECT 606 (thin solid line) and the maximum signal U.sub.MAX 658 (thicker solid line). As mentioned above, the maximum signal U.sub.MAX 658 is the current maximum value of the digital line sense signal U.sub.DSEN 637 during each search window. As new samples of digital line sense signal U.sub.DSEN 637 are obtained, running maximum finder circuit 544 may compare the value represented by maximum signal U.sub.MAX 658 with each new sample. If the value of a new sample is greater than the value represented by maximum signal U.sub.MAX 658, running maximum finder circuit 544 may update maximum signal U.sub.MAX 658 to represent the value of the new, larger sample. If, however, the new sample is not greater than the value represented by maximum signal U.sub.MAX 658, running maximum finder circuit 544 may leave maximum signal U.sub.MAX 658 unchanged. As illustrated in graph 684, the maximum signal U.sub.MAX 658 increments with the digital line sense signal U.sub.DSEN 637 until the maximum value of the digital line sense signal U.sub.DSEN 637 is reached. The maximum signal U.sub.MAX 658 remains at the maximum value for the rest of the half line cycle T.sub.HL 678. At the end of the half line cycle T.sub.HL 678, the maximum signal U.sub.MAX 658 resets to substantially zero.
(58) Graph 686 illustrates both the digital line sense signal U.sub.DSEN 637 (thin solid line) and the running maximum threshold signal U.sub.SM 660 (thicker solid line) which is a scaled version of the maximum signal U.sub.MAX 658. Graph 688 illustrates the internal count of counter 550, resultant output count 651 at the end of the half line cycle T.sub.HL 678, and the threshold U.sub.TH 664. The digital comparator 548 compares the digital line sense signal U.sub.DSEN 637 with the running maximum threshold signal U.sub.SM 660. When the digital line sense signal U.sub.DSEN 637 is greater than or substantially equal to the running maximum threshold signal U.sub.SM 660, the internal count increments, as shown by graph 688. At time t.sub.1, the digital line sense signal U.sub.DSEN 637 falls below the running maximum threshold signal U.sub.SM 660 and the internal count decreases. At the end of the half line cycle T.sub.HL 678, the output 651 (which is the last value of the internal count at the end of the half line T.sub.HL 678) is compared with the threshold U.sub.TH 664. As shown in graph 688, the output 651 is less than the threshold U.sub.TH 664. As such the shape signal and the confirmed shape signal U.sub.CSP 642 are logic low shown in graph 690. The next half line cycle is substantially the same as the previous half line cycle T.sub.HL and the shape signal and the confirmed shape signal U.sub.CSP 642 remain logic low.
(59) Referring now to the example depicted in
(60) Graph 782 illustrates one example of the rectified voltage V.sub.RECT 706 and the digital line sense signal U.sub.DSEN 737. As illustrated, the shape of the rectified voltage V.sub.RECT 706 is substantially a square wave and is shown as a solid line. In one example, the time between zero-crossings (the point which the rectified voltage V.sub.RECT 706 is substantially equal to zero) is referred to as the half line cycle T.sub.HL 778. Also illustrated is the digital line sense signal U.sub.DSEN 737 shown in a dashed line. Since the digital line sense signal U.sub.DSEN 737 corresponds to the digitized version of the rectified voltage V.sub.RECT 706, the digital line sense signal U.sub.DSEN 737 may include several steps, with each step representing a digital count signal (sample) corresponding to the value of the rectified voltage V.sub.RECT 706 at a particular instance in time. The time between steps is substantially equal to the sampling period T.sub.CLK, which is provided by the sampling clock signal U.sub.CLK 539. For the example shown, the digital line sense signal U.sub.DSEN 737 takes several steps but then plateaus due to the shape of the rectified voltage V.sub.RECT 706.
(61) Graph 784 illustrates one example of the rectified voltage V.sub.RECT 706 (solid line) and the maximum signal U.sub.MAX 758 (dashed line). As mentioned above, the maximum signal U.sub.MAX 758 is the current maximum value of the digital line sense signal U.sub.DSEN 737 during each search window. As illustrated in graph 784, the maximum signal U.sub.MAX 658 is incremented with the digital line sense signal U.sub.DSEN 737 until the maximum value of the digital line sense signal U.sub.DSEN 737 is reached. The maximum signal U.sub.MAX 758 remains at the maximum value for the rest of the half line cycle T.sub.HL 778. At the end of the half line cycle T.sub.HL 778, the maximum signal U.sub.MAX 758 is reset to substantially zero. Due to the square nature of the rectified voltage V.sub.RECT 737, the maximum signal U.sub.MAX 758 reaches the maximum value quicker than if the rectified voltage V.sub.RECT was a sinusoid (as shown in
(62) Graph 786 illustrates both the digital line sense signal U.sub.DSEN 737 (thin solid line) and the running maximum threshold signal U.sub.SM 760 (thicker solid line) which is a scaled version of the maximum signal U.sub.MAX 758. Graph 788 illustrates the internal count of counter 750, resultant output count 751 at the end of the half line cycle T.sub.HL 778, and the threshold U.sub.TH 764. The digital comparator 548 compares the digital line sense signal U.sub.DSEN 737 with the running maximum threshold signal U.sub.SM 760. When the digital line sense signal U.sub.DSEN 737 is greater than or substantially equal to the running maximum threshold signal U.sub.SM 760, the internal count increments, as shown by graph 788. At time t.sub.1, the digital line sense signal U.sub.DSEN 737 falls below the running maximum threshold signal U.sub.SM 760 and the internal count decreases. Compared to the internal count shown in
(63) The above description of illustrated examples of the present invention, including what is described in the Abstract, are not intended to be exhaustive or to be limitation to the precise forms disclosed. While specific embodiments of, and examples for, the invention are described herein for illustrative purposes, various equivalent modifications are possible without departing from the broader spirit and scope of the present invention. Indeed, it is appreciated that the specific example voltages, currents, frequencies, power range values, times, etc., are provided for explanation purposes and that other values may also be employed in other embodiments and examples in accordance with the teachings of the present invention.