TIMING BASED SIGNAL VALLEY DETECTION
20250324495 ยท 2025-10-16
Inventors
Cpc classification
H03K3/86
ELECTRICITY
International classification
Abstract
An embodiment of a timing-based signal valley detection technique improves efficiency and reduces electromagnetic emissions due to ringing by controlling the off-time of a power switch in an LED driver or power converter application. The timing-based technique estimates a time of occurrence of a valley in the drain voltage of the power switch. The timing-based technique uses an analog comparator to sense the drain voltage of a power switch. The timing-based technique uses digital circuits to estimate the time of occurrence of the valley in the drain voltage and to adjust the duty cycle (e.g., adjusts the off-time by terminating the off-time) of a gate control signal of the power switch. The technique may use off-chip resistive voltage divider circuits to sense the drain voltage of the power switch and to generate a reference voltage and other circuits are integrated in an integrated circuit device.
Claims
1. A method for controlling a switch comprising: generating a timestamp corresponding to an estimated occurrence of a local minimum in a sensed voltage during a first interval of a first switching cycle of a switching control signal based on comparison of the sensed voltage to a reference voltage; and starting a second interval of a subsequent switching cycle of the switching control signal based on the timestamp.
2. The method as recited in claim 1 wherein generating the timestamp comprises: starting a counter in response to the sensed voltage crossing a predetermined threshold voltage in a first direction; and stopping the counter in response to the sensed voltage crossing the predetermined threshold voltage in a second direction, the second direction opposing the first direction; and wherein the timestamp is based on a count value of the counter after stopping the counter.
3. The method as recited in claim 2 wherein generating the timestamp further comprises: storing the count value divided by two as the timestamp.
4. The method as recited in claim 2 further comprising: updating the timestamp after a predetermined number of switching cycles of the switching control signal.
5. The method as recited in claim 1 wherein starting the second interval of the subsequent switching cycle of the switching control signal comprises: starting a counter in response to the sensed voltage crossing a predetermined threshold voltage in a first direction; and deasserting a disable signal based on a comparison of a counter value of the counter to the timestamp, wherein the switching control signal is generated based on the disable signal.
6. The method as recited in claim 1 wherein the sensed voltage is on a drain node of a power switch driving a light emitting diode circuit coupled to a power supply node.
7. The method as recited in claim 6 wherein the reference voltage is received from a resistor divider coupled to the power supply node.
8. The method as recited in claim 6 wherein the first interval of the first switching cycle corresponds to an off-time of the power switch controlled by the switching control signal and the second interval of the subsequent switching cycle corresponds to an on-time of the power switch.
9. An integrated circuit product comprising: valley detection logic configured to generate a timestamp corresponding to an estimated occurrence of a local minimum in a sensed voltage during a first interval of a first switching cycle of a switching control signal based on comparison of the sensed voltage to a reference voltage; and control logic configured to generate the switching control signal having an adjustable pulse width, the adjustable pulse width being based on the timestamp.
10. The integrated circuit product as recited in claim 9 further comprising: a comparator configured to generate a comparison signal based on the reference voltage and the sensed voltage.
11. The integrated circuit product as recited in claim 9 wherein the valley detection logic comprises: a first counter that is enabled in response to the sensed voltage crossing a predetermined threshold voltage in a first direction and disabled in response to the sensed voltage crossing the predetermined threshold voltage in a second direction, the second direction opposing the first direction; and a storage element configured to store as the timestamp, a count value divided by two, the count value being a state of the first counter after stopping the first counter.
12. The integrated circuit product as recited in claim 11 wherein the control logic comprises: a second counter enabled in response to the sensed voltage crossing the predetermined threshold voltage in the first direction; and digital logic configured to deassert a disable signal based on a comparison of the timestamp to a second count value of the second counter.
13. The integrated circuit product as recited in claim 12 further comprising: additional logic configured to generate the switching control signal based on the disable signal.
14. The integrated circuit product as recited in claim 9 further comprising: a light-emitting diode circuit coupled to a power supply node; a power switch having a drain terminal coupled to the light-emitting diode circuit; a first voltage divider coupled to the drain terminal and configured to provide the sensed voltage; and a second voltage divider coupled to the power supply node and configured to provide the reference voltage.
15. A method for calibrating a duty cycle of a switching control signal, the method comprising: modulating a pulse width of a control signal at a time based on a timestamp corresponding to an estimated time of occurrence of a valley in a resonant ringing of a sensed voltage and a count value of a counter started in response to the sensed voltage crossing a threshold voltage in a first direction.
16. The method as recited in claim 15 further comprising: generating the timestamp, wherein generating the timestamp comprises: starting a second counter in response to the sensed voltage crossing a predetermined threshold voltage in the first direction; and stopping the second counter in response to the sensed voltage crossing the predetermined threshold voltage in a second direction, the second direction opposing the first direction; and wherein the timestamp is based on a second count value of the second counter after stopping the second counter.
17. The method as recited in claim 15 further comprising: periodically updating the timestamp based on a second counter started in response to the sensed voltage crossing the threshold voltage in the first direction and stopped in response to the sensed voltage crossing the threshold voltage in a second direction, the second direction opposing the first direction.
18. The method as recited in claim 15 further comprising: deasserting a disable signal based on a comparison of the count value of the counter to the timestamp, wherein the control signal is generated based on the disable signal.
19. The method as recited in claim 15 wherein the sensed voltage is on a drain node of a power switch driving a light emitting diode circuit coupled to a power supply node.
20. The method as recited in claim 15 further comprising: enabling valley detection to generate the timestamp in response to a regulated input voltage exceeding a voltage across a load driven by the output node.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0006] The present invention may be better understood, and its numerous objects, features, and advantages made apparent to those skilled in the art by referencing the accompanying drawings.
[0007]
[0008]
[0009]
[0010]
[0011]
[0012]
[0013]
[0014] The use of the same reference symbols in different drawings indicates similar or identical items.
DETAILED DESCRIPTION
[0015] Referring to
[0016] In an embodiment, when power switch 104 is on, a current through inductor 102 increases from zero and energy transfers to the magnetic field of inductor 102. When enough energy is stored by inductor 102, gate control signal V.sub.G turns off power switch 104 and inductor 102 delivers stored energy to LED circuit 106. The current through inductor 102 ramps down to zero and completely demagnetizes inductor 102 every period of gate control signal V.sub.G. Under some conditions, as inductor current I.sub.L reaches zero, inductor current I.sub.L becomes slightly negative, which pulls drain voltage V.sub.D down and inductor 102 and the parasitic capacitance of power switch 104 cause drain voltage V.sub.D to resonate according to resonant transient response until the next cycle of gate control signal V.sub.G starts. The resonant transient response of the voltage on the parasitic drain capacitor when power switch 104 is off is approximately: [0017] V.sub.DS=V.sub.C(t)=V.sub.O cos t+V.sub.HV, where =1/{square root over (LC)}, L is inductance of inductor 102, C is 1 the parasitic drain capacitance of power switch 104, and output voltage V.sub.O is the voltage across LED circuit 106.
[0018] In an embodiment, when power supply voltage V.sub.HV is less than output voltage V.sub.O (i.e., V.sub.HV<V.sub.O), the transient response is clipped, drain voltage V.sub.D reaches zero but does not become negative and a valley detection technique to switch on power switch 104 is not substantially beneficial. However, when power supply voltage V.sub.HV is greater than output voltage V.sub.O (i.e., V.sub.HV>V.sub.O), switching on power switch 104 when drain voltage V.sub.D has a local minimum value (i.e., a valley in the resonant transient response of drain voltage V.sub.D) substantially reduces energy loss caused by the resonance of drain voltage V.sub.D.
[0019] Referring to
[0020] In at least one embodiment, the timing-based signal valley detection technique uses off-chip, resistive voltage divider circuits, e.g., resistors 420 and 422 and resistors 416 and 418, to generate sensed voltage V.sub.DSENSE and to generate reference voltage V.sub.REF, respectively, and other circuits are integrated into integrated circuit device 402. However, in other embodiments, the resistor dividers are also integrated into integrated circuit device 402. By generating reference voltage V.sub.REF using the power supply voltage V.sub.HV provided by power converter 120 (e.g., a rectifier), comparator 404 rejects any power supply noise on power supply voltage V.sub.HV.
[0021] In an embodiment, comparator 404 generates signal DRAIN_SENSE_CMP, which is indicative of the difference between reference voltage V.sub.REF and sensed voltage V.sub.DSENSE. In an embodiment, comparator 404 asserts signal DRAIN_SENSE_CMP in response to sensed voltage V.sub.DSENSE being less than reference voltage V.sub.REF and deasserts signal DRAIN_SENSE_CMP in response to sensed voltage V.sub.DSENSE being greater than reference voltage V.sub.REF. In at least one embodiment, comparator 404 includes a two-stage strong-arm dynamic-latch based comparator. The first stage includes a common source differential pair of transistors with resistive loads for pre-amplification. The second stage includes a latch structure for reducing kickback noise from a clock signal and a reference circuit generates a bias current that is mirrored and amplified to generate a tail current for the differential pair of transistors. However, in other embodiments, other comparator circuit topologies are used. Comparator 404 provides signal DRAIN_SENSE_CMP to time off logic 408. Time off logic 408 uses signal DRAIN_SENSE_CMP to generate signal t.sub.OFF_STOP based on whether drain voltage V.sub.D has an estimated local minimum value that corresponds to a valley in the resonant transient response of drain voltage V.sub.D.
[0022] In at least one embodiment, during a calibration mode of operation, time off logic 408 estimates the time of occurrence of the valley in the resonant transient response of drain voltage V.sub.D by measuring a pulse that is generated in response to an asserted value of signal DRAIN_SENSE_CMP during the off-time (i.e., t.sub.OFF) of power switch 104. In at least one embodiment, pulse 502 is asserted when sensed voltage V.sub.DSENSE falls below reference voltage V.sub.REF and deasserted when sensed voltage V.sub.DSENSE rises above reference voltage V.sub.REF. In at least one embodiment, during calibration mode, time-off logic 408 asserts signal t.sub.OFF_STOP in response to sensed voltage V.sub.DSENSE rising above reference voltage V.sub.REF. Time off logic 408 estimates the time of occurrence of the valley in the resonant transient response of drain voltage V.sub.D for use in subsequent switching cycles of control signal DRV in the normal mode of operation. In an embodiment, the estimated time of occurrence of the valley in the resonant transient response of drain voltage V.sub.D is half the width of time t.sub.1 (e.g., half of the width of pulse 502). During a normal mode of operation, time off logic 408 uses the estimated time of occurrence, a counter, and digital logic to generate signal t.sub.OFF_STOP. In an embodiment, signal t.sub.OFF_STOP has a value measured from the comparator trip point (e.g., the point when DRAIN_SENSE_CMP indicates that sensed voltage V.sub.DSENSE falls below reference voltage V.sub.REF) and incremented by the estimated value.
[0023] In an embodiment of power converter 120, AC power source 124 has a line frequency (e.g., 60 Hz) that is much lower than the frequency of switching power switch 104 (e.g., 150-400 kHz) and oscillator 406 (e.g., 5-40 MHz, e.g., 20 MHz), which is used to control at least state elements in time off logic 408 and control logic 412. When power switch 104 is off, drain voltage V.sub.D is the forward voltage of LED circuit 106 above power supply voltage V.sub.HV. Accordingly, the comparator threshold voltage (e.g., reference voltage V.sub.REF) is a function of power supply voltage V.sub.HV. Time off logic 408 stores the estimated time of occurrence of the valley as signal TIMESTAMP to be used to generate signal t.sub.OFF_STOP for the next M cycles of power switch 104. In at least one embodiment, time off logic 408 updates signal TIMESTAMP every M cycles of signal DRV. Control logic 412 uses signal t.sub.OFF_STOP to generate signal DRV, which is used to generate gate control signal V.sub.G. In at least one embodiment, control logic 412 is also responsive to a signal (e.g., signal t.sub.ON_STOP) that indicates the end of the on-time and that is calibrated according to a peak of the AC line voltage (e.g., 120 V) that is estimated by using a voltage divider to sense power supply voltage V.sub.HV. The t.sub.OFF interval begins immediately after the tox interval ends. The tox interval begins again in response to the t.sub.OFF interval ending, i.e., in response to t.sub.OFF_STOP being asserted (e.g., in response to detecting the valley corresponding to a current zero-crossing of inductor current I.sub.L).
[0024] In at least one embodiment, driver 414 includes a non-overlap circuit configured to generate pull-up and pull-down control signals based on control signal DRV. Charge pump 410, capacitor 424, and driver 414 using voltage V.sub.PUMP to level shift the pull-up and pull-down control signals received by the non-overlap circuit to generate gate control signal V.sub.G in a voltage domain suitable for driving power switch 104. In at least one embodiment, driver 414 includes a stack of high-voltage transistors including complementary switching devices stacked with corresponding cascode devices that are biased to limit switching device stresses. In general, the target manufacturing process may provide transistors having different breakdown voltages and speeds of operation as a result of gate terminals formed using oxide layers of different thicknesses. An exemplary high-voltage transistor has a thicker gate oxide and therefore has a higher breakdown voltage but is slower than a low-voltage transistor that has a thinner gate oxide thickness. Transistors of integrated circuit device 402 are low-voltage transistors operating at voltage levels consistent with low voltage power supply V.sub.LV (e.g., 3.3V) unless specified otherwise.
[0025] Referring to
[0026] In at least one embodiment, time off logic 408 is enabled synchronously to the power switch being turned off (e.g., control signal DRV=0) and includes a state machine that generates control signals used within logic 408. In at least one embodiment, logic 608 generates control signal UPDATE further based on a predetermined number of cycles of control signal DRV and asserts control signal UPDATE in response to detecting a change of control signal DRV. Control signal UPDATE causes an update to register 604 storing digital signal TIMESTAMP corresponding to a current value of digital signal VALLEY_COUNT. In an embodiment, in response to updating register 604, the state machine clears other state elements.
[0027] In at least one embodiment, logic 608 receives signal COUNT, which is a count value generated by counter 606 by incrementing while signal DRAIN_SENSE_CMP is asserted. In an embodiment of time off logic 408, comparator 404 asserts signal DRAIN_SENSE_CMP in response to sensed voltage V.sub.SENSED falling below reference voltage V.sub.REF. In an embodiment of time off logic 408, counter 606 resets in response to deassertion of signal DRAIN_SENSE_CMP. In an embodiment, logic 608 compares signal COUNT to signal TIMESTAMP and triggers a pulse of signal t.sub.OFF_STOP in response to signal COUNT being equal to signal TIMESTAMP. For example, logic 608 includes a digital comparator that asserts signal t.sub.OFF_STOP in response to signal TIMESTAMP being equal to signal COUNT. In at least one embodiment, the digital comparator includes an exclusive-or-based comparator and state elements to store and synchronize signal t.sub.OFF_STOP.
[0028] In at least one embodiment, logic 608 resets valley counter 602 after calibration, i.e., after estimating the time of occurrence of the valley in drain voltage V.sub.D and storing estimate VALLEY COUNT as digital signal TIMESTAMP in register 604. Depending on the gate capacitance of power switch 104, any delay between the state of the LED driver causing gate control voltage V.sub.G to be a low value to turn off power switch 104 and clearing signal DRAIN_SENSE_CMP may introduce errors in detecting the valley of drain voltage V.sub.D and generation of signal t.sub.OFF_STOP. Accordingly, in at least one embodiment, logic 608 includes a blanking circuit (not shown) configured to delay valley detection logic until signal DRAIN_SENSE_CMP is stable and in the correct state after power switch 104 turns off. An embodiment of the blanking circuit implements a delay by an exclusive-OR of a counter state with a predetermined delay stored in a register. In at least one embodiment, that predetermined delay is programmed when enabling time off logic 408.
[0029] In an embodiment, state machine elements in logic 608 are held in a reset state unless calibration is enabled. In response to detecting a valley (i.e., signal DRAIN_SENSE CMP is asserted and then deasserted), logic 608 asserts a control signal that makes latches logic 608 opaque (i.e., closes the latches) to complete updating the digital signal TIMESTAMP.
[0030] In an embodiment, control logic 412 uses signal t.sub.OFF_STOP to end the off-time (i.e., the t.sub.OFF interval) of power switch 104 by causing control logic 412 to assert control signal DRV to begin the on-time (i.e., the t.sub.ON interval) of power switch 104 in response to detecting a valley in drain voltage V.sub.D. Referring to
[0031] Thus, techniques for improving efficiency and controlling emissions by controlling the off time of a power switch in an LED driver application by estimating a time of occurrence of a valley in the drain voltage of a power switch has been disclosed. The techniques do not require estimation of the exact frequency of the signal, hence a static offset of a comparator does not affect operation. In at least one embodiment, since the comparator threshold does not vary significantly between a start and an end of counter operations, the time of occurrence of the signal valley is accurately estimated by adding the timing information stored in the register to a time step when comparator output toggles again. The techniques use digital circuits that are resistant to analog non-idealities such as comparator offset, mismatch, delays, etc., and are easily implemented in future manufacturing processes with negligible or no redesign.
[0032] The description of the invention set forth herein is illustrative and is not intended to limit the scope of the invention as set forth in the following claims. For example, while the invention has been described in an embodiment in which an LED driver is described, one of skill in the art will appreciate that the teachings herein can be utilized with other driver circuits or other circuits where signal valley detection is useful (e.g., switched-mode power supplies). In addition, while the invention has been described in an embodiment in which an LED driver is incorporated with RF communications circuitry for a smart light bulb application, other embodiments of the LED driver are included in manual applications and do not include RF communications circuitry. The terms first, second, third, and so forth, as used in the claims, unless otherwise clear by context, are to distinguish between different items in the claims and do not otherwise indicate or imply any order in time, location or quality. For example, a first received signal and a second received signal, do not indicate or imply that the first received signal occurs in time before the second received signal. Variations and modifications of the embodiments disclosed herein may be made based on the description set forth herein, without departing from the scope of the invention as set forth in the following claims.