PWM DRIVING CIRCUIT AND METHOD
20220173706 · 2022-06-02
Inventors
Cpc classification
H03K17/6871
ELECTRICITY
H03F2200/78
ELECTRICITY
H03K19/20
ELECTRICITY
International classification
Abstract
In an embodiment, a method for shaping a PWM signal includes: receiving an input PWM signal; generating an output PWM signal based on the input PWM signal by: when the input PWM signal transitions with a first edge of the input PWM signal, transitioning the output PWM signal with a first edge of the output PWM signal; and when the input PWM signal transitions with a second edge before the first edge of the output PWM signal transitions, delaying a second edge of the output PWM signal based on the first edge of the output PWM signal.
Claims
1. A method for shaping a pulse-width modulation (PWM) signal, the method comprising: receiving an input PWM signal; generating an output PWM signal based on the input PWM signal by: when the input PWM signal transitions with a first edge of the input PWM signal, transitioning the output PWM signal with a first edge of the output PWM signal; and when the input PWM signal transitions with a second edge before the first edge of the output PWM signal transitions, delaying a second edge of the output PWM signal based on the first edge of the output PWM signal, wherein the second edge of the input PWM signal is a next edge of the input PWM signal after the first edge of the input PWM signal, and wherein the second edge of the output PWM signal is a next edge of the output PWM signal after the first edge of the output PWM signal.
2. The method of claim 1, wherein delaying the second edge of the output PWM signal comprising delaying the second edge of the output PWM signal by a preset time plus a driving delay, wherein the driving delay is based on a delay of a driving circuit driving the output PWM signal.
3. The method of claim 2, wherein the driving circuit comprises a high-side transistor and a low-side transistor coupled at a pre-filtering node, a high-side gate driver coupled to a control terminal of the high-side transistor, and a low-side gate driver coupled to a control terminal of the low-side transistor.
4. The method of claim 1, further comprising: comparing the output PWM signal with a first threshold; comparing the output PWM signal with a second threshold different than the first threshold; and when the second edge of the input PWM signal occurs before the first edge of the output PWM signal crosses the first threshold, delaying transitioning high-side and low-side intermediate signals until the first edge of the output PWM signal crosses the second threshold, wherein generating the output PWM signal comprises generating the output PWM signal with a high-side transistor driven based on the high-side intermediate signal, and a low-side transistor driven based on the low-side intermediate signal.
5. The method of claim 4, wherein the first threshold is higher than the second threshold.
6. The method of claim 4, wherein transitioning the high-side and low-side intermediate signals comprises transitioning the high-side and low-side intermediate signals simultaneously.
7. The method of claim 1, further comprising, when the input PWM signal transitions with the second edge after the first edge of the output PWM signal transitions, transitioning high-side and low-side intermediate signals based on the first edge of the output PWM signal, wherein generating the output PWM signal comprises generating the output PWM signal with a high-side transistor driven based on the high-side intermediate signal, and a low-side transistor driven based on the low-side intermediate signal.
8. The method of claim 7, further comprising: comparing the output PWM signal with a first threshold; comparing the output PWM signal with a second threshold different than the first threshold; and when the second edge of the input PWM signal occurs after the first edge of the output PWM signal crosses the first threshold, transitioning the high-side and low-side intermediate signals when the first edge of the output PWM signal crosses the second threshold.
9. The method of claim 8, wherein transitioning the output PWM signal with the first edge comprises transitioning the high-side and low-side intermediate signals with a preset delay therebetween, and wherein when the second edge of the input PWM signal occurs after the first edge of the output PWM signal crosses the first threshold, transitioning the high-side and low-side intermediate signals with a second delay time therebetween, the second delay time being smaller than the preset delay.
10. The method of claim 1, wherein the first edge of the PWM input signal is a rising edge, the second edge of the PWM input signal is a falling edge, the first edge of the PWM output signal is a rising edge, and the second edge of the PWM output signal is a falling edge.
11. A method for shaping a pulse-width modulation (PWM) signal, the method comprising: receiving an input PWM signal; generating an output PWM signal based on the input PWM signal with a high-side transistor driven based on a high-side intermediate signal, and a low-side transistor driven based on a low-side intermediate signal; when the input PWM signal transitions with a first edge of the input PWM signal, driving the high-side and low-side intermediate signals to cause transitioning the output PWM signal with a first edge of the output PWM signal; and when the input PWM signal transitions with a second edge after the first edge of the output PWM signal transitions, transitioning the high-side and low-side intermediate signals based on the first edge of the output PWM signal to cause a second edge of the output PWM signal, wherein the second edge of the input PWM signal is a next edge of the input PWM signal after the first edge of the input PWM signal, and wherein the second edge of the output PWM signal is a next edge of the output PWM signal after the first edge of the output PWM signal.
12. The method of claim 11, further comprising: when the input PWM signal transitions with the second edge before the first edge of the output PWM signal transitions, delaying transitioning the high-side and low-side intermediate signals to delay the second edge of the output PWM signal based on the first edge of the output PWM signal.
13. A pulse-width modulation (PWM) pre-conditioning circuit comprising: a PWM input configured to receive an input PWM signal; high-side and low-side outputs configured to be coupled to control terminals of high-side and low-side transistors, respectively; a switching detection input configured to be coupled to the high-side and low-side transistors to monitor an output PWM signal; and a controller configured to: when the input PWM signal transitions with a first edge of the input PWM signal, drive the high-side and low-side outputs to cause a transition of the output PWM signal with a first edge of the output PWM signal, and when the input PWM signal transitions with a second edge before the first edge of the output PWM signal transitions, drive the high-side and low-side outputs to delay a second edge of the output PWM signal based on the first edge of the output PWM signal, wherein the second edge of the input PWM signal is a next edge of the input PWM signal after the first edge of the input PWM signal, and wherein the second edge of the output PWM signal is a next edge of the output PWM signal after the first edge of the output PWM signal.
14. The PWM pre-conditioning circuit of claim 13, further comprising a switching status detection circuit comprising: a first comparator having a first input coupled to the switching detection input and a second input configured to receive a first threshold; and a second comparator having a first input coupled to the switching detection input and a second input configured to receive a second threshold that is lower than the first threshold, wherein the controller is configured to determine whether the input PWM signal transitions with a second edge before the first edge of the output PWM signal transitions based on outputs of the first or second comparators, and wherein the controller is configured to drive the high-side and low-side outputs to delay the second edge of the output PWM signal based on outputs of the first or second comparators.
15. The PWM pre-conditioning circuit of claim 13, further comprising: a first NAND gate having an output coupled to the high-side output, and a first input coupled to the controller; and a second NAND gate having an output coupled to the low-side output and to a second input of the first NAND gate, a first input coupled to the controller, and a second input coupled to the output of the first NAND gate.
16. The PWM pre-conditioning circuit of claim 15, further comprising: a first flip-flop having an input coupled to the PWM input, and an output coupled to the first input of the first NAND gate; and a second flip-flop having a first input coupled to the output of the first flip-flop, a second input coupled to the switching detection input, and an output coupled to a third input of the first NAND gate.
17. The PWM pre-conditioning circuit of claim 16, further comprising: a switching status detection circuit comprising: a first comparator having a first input coupled to the switching detection input and a second input configured to receive a first threshold, and a second comparator having a first input coupled to the switching detection input and a second input configured to receive a second threshold that is lower than the first threshold, wherein the second input of the second flip-flop is coupled to the switching detection input via the first comparator, the controller further comprising: a third flip-flop having an input coupled to the PWM input, and an output coupled to the second input of the second NAND gate; and a fourth flip-flop having a first input coupled to the output of the third flip-flop, a second input coupled to an output of the second comparator, and an output coupled to a third input of the second NAND gate.
18. The PWM pre-conditioning circuit of claim 17, wherein the first, second, third, and fourth flip-flops are D-flip-flops, wherein the first input of the first flip-flop is a clock input, wherein the first input of the second flip-flop is a clock input and the second input of the second flip-flop is a clear input, wherein the first input of the third flip-flop is a clock input, and wherein the first input of the fourth flip-flop is a clock input and the second input of the fourth flip-flop is a clear input.
19. A class-D amplifier comprising: an input terminal configured to receive an analog signal; an output terminal configured to be coupled to a load; an integrator circuit having a first input coupled to the input terminal and a second input coupled to the output terminal; a pulse-width modulation (PWM) modulator circuit having a first input coupled to an output of the integrator circuit, a second input configured to receive a clock signal, and an output configured to deliver a PWM signal; a pre-conditioning circuit having a first input coupled to the PWM modulator and a second input coupled to the output terminal; and an output stage having an input coupled to an output of the pre-conditioning circuit and an output coupled to the output terminal, the output stage configured to generate an output PWM signal at the output terminal based on the output of the pre-conditioning circuit, wherein the pre-conditioning circuit is configured to: when the PWM signal transitions with a first edge of the PWM signal, cause a transition of the output PWM signal with a first edge of the output PWM signal, and when the PWM signal transitions with a second edge before the first edge of the output PWM signal transitions, delay a second edge of the output PWM signal based on the first edge of the output PWM signal, wherein the second edge of the PWM signal is a next edge of the PWM signal after the first edge of the PWM signal, and wherein the second edge of the output PWM signal is a next edge of the output PWM signal after the first edge of the output PWM signal.
20. The class-D amplifier of claim 19, wherein the load is an audio speaker.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0010] For a more complete understanding of the present invention, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027] Corresponding numerals and symbols in different figures generally refer to corresponding parts unless otherwise indicated. The figures are drawn to clearly illustrate the relevant aspects of the preferred embodiments and are not necessarily drawn to scale.
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
[0028] The making and using of the embodiments disclosed are discussed in detail below. It should be appreciated, however, that the present invention provides many applicable inventive concepts that can be embodied in a wide variety of specific contexts. The specific embodiments discussed are merely illustrative of specific ways to make and use the invention, and do not limit the scope of the invention.
[0029] The description below illustrates the various specific details to provide an in-depth understanding of several example embodiments according to the description. The embodiments may be obtained without one or more of the specific details, or with other methods, components, materials and the like. In other cases, known structures, materials or operations are not shown or described in detail so as not to obscure the different aspects of the embodiments. References to “an embodiment” in this description indicate that a particular configuration, structure or feature described in relation to the embodiment is included in at least one embodiment. Consequently, phrases such as “in one embodiment” that may appear at different points of the present description do not necessarily refer exactly to the same embodiment. Furthermore, specific formations, structures or features may be combined in any appropriate manner in one or more embodiments.
[0030] Embodiments of the present invention will be described in a specific context, a PWM circuit and method implemented in a class-D amplifier, e.g., for audio applications. Some embodiments may be implemented in other types of amplifiers/circuits and/or for other types of applications.
[0031] In an embodiment of the present invention, a PWM signal provided to a driver for controlling an output stage of a class-D amplifier is automatically modified based on a switching status of an output signal of the output stage. When the output signal is near clipping, a pre-conditioning circuit coupled between a PWM modulator and the driver dynamically limits the duty-cycle of the PWM signal so that the duty cycle does not reach 0% or 100% immediately during top/bottom duty cycle range of input. In some embodiments, the pre-conditioning circuit removes (skips) PWM pulses having a pulse width that is lower than the driver delay, which advantageously lowers power dissipation while keeping the oscillations in a relatively high frequency and inaudible band, and without introducing additional delays to the input of the class-D amplifier.
[0032]
[0033] During normal operation, output stage 105 drives speaker 114 via low-pass filter 109 based on the analog input signal. The analog input is modified by circuits 302, 304, and 306 to generate signal V.sub.pwm_in. PWM modulator 310 generates PWM signal V.sub.pwm_out based on analog signal V.sub.pwm_in, e.g., in a similar manner as PWM modulator 101.
[0034] Pre-conditioning circuit 312 generates conditioned PWM signal V.sub.pwm_cond based on PWM signal V.sub.pwm_out and based on pre-filter output voltage V.sub.out_pre. For example, in some embodiments, pre-conditioning circuit 312 generates signal conditioned PWM signal V.sub.pwm_cond to limit the duty cycle of signal V.sub.out_pre to a maximum (minimum) duty-cycle when the duty cycle of signal V.sub.out_pre is near clipping, and causes conditioned PWM signal V.sub.pwm_cond to be identical (or substantially identical) to PWM signal V.sub.pwm_out when the duty cycle of signal V.sub.out_pre is not near clipping. As will be described in more detail later, in some embodiments, the duty cycle clipping value is not a fixed preset value. Instead, in some embodiments, the duty cycle clipping value is dynamically determined and is controlled by the state of output V.sub.out_pre of output stage 105, thereby advantageously optimizing the clipping to maximum (minimum) value near 100% (0%) to allow for a full swing PWM transition according to the process, supply voltage level, and temperature (PVT) variations.
[0035] In some embodiments, pre-conditioned circuit 312 reduces the width of the pulse of PWM signal V.sub.pwm_cond compared to the width of the pulse of PWM signal V.sub.pwm_out to have a preset width when the second edge of the pulse of PWM signal V.sub.pwm_out occurs when signal V.sub.out_pre start to interact with V.sub.pwm_cond.
[0036] As shown in
[0037] Output stage 105 may be implemented in any way known in the art, such as with NMOS transistors 106 and 108. Other implementations, such as using transistors of the different type (e.g., the high-side transistors being of the p-type while the low-side transistor being of the n-type), and/or transistors of other technologies, may also be used. For example, in some embodiments, transistors 106 and 108 are double-diffused MOSFETs (DMOS) transistors.
[0038] In some embodiments, a bootstrap capacitor (not shown) may be used for driving transistors 106 and 108 in ways known in the aft.
[0039] Drive circuit 104 may be implemented in any way known in the art, such as by using conventional gate drivers.
[0040] PWM modulator 310 may be implemented in any way known in the art. For example, in some embodiments, PWM modulator 310 may be implemented in a similar manner as PWM modulator 101.
[0041] In some embodiments, processing circuits 304 and 306 each may include integrator circuits, e.g., similar to integrator 202, and may sum the signals from respective feedback circuits 314 and 316 and input voltage V.sub.in. For example, in some embodiments, processing circuit 306 is implemented identically as integrator 202, and processing circuit 304 is implemented similarly as integrator 202 but with additional compensation (zeros).
[0042] In some embodiments, soft-clipping control circuit 308 provides negative feedback from signal V.sub.pwm_in back to the input of class-D amplifier 300 (using summing circuit 302), e.g., to correct non-linearities in the transfer function of the driver 104. Soft-clipping control circuit 308 may be implemented in any way known in the art.
[0043] In some embodiments, the negative feedback loops of class-D amplifier 300, which include feedback circuits 314 and 316 and soft-clipping control circuit 308 advantageously allow for improving performance, such as improving PSRR and THD, for example.
[0044]
[0045] During step 402, PWM signal V.sub.pwm_out, which is the input to pre-conditioning circuit 312, transitions (either with a rising edge or a falling edge).
[0046] During step 404, conditioned PWM signal V.sub.pwm_cond transitions based on PWM signal V.sub.pwm_out, which in turn controls drive circuit 104 so that transistors 106 and 108 transition, thus causing a transition of voltage V.sub.out_pre. For example, in some embodiments, signals V.sub.pwm_condP and V.sub.pwm_condN have a preset delay t.sub.fix1 during the transition occurring during step 404, e.g., to avoid X-conduction.
[0047] During step 406, it is determined whether the next edge of PWM signal V.sub.pwm occurs before V.sub.out_pre transitions. If the next edge of PWM signal V.sub.pwn_out occurs before voltage V.sub.out_pre transitions, then the duty cycle is near clipping (e.g., below 5% or above 95%), and the next edge of V.sub.pwm_cond is delayed during step 408 so that the duty cycle of V.sub.out_pre is limited. In some embodiments, the next edge is delayed by a preset time t.sub.fix2 plus a driver delay t.sub.drv, where driver delay t.sub.drv is the delay between driver 104 receiving a transition and signal V.sub.out_pre transitioning). In some embodiments, preset delays t.sub.fix1 and t.sub.fix2 are equal. In some embodiments, since the next edge of V.sub.pwm_cond is delayed based on driver delay t.sub.drv, such delay is dynamic and based, e.g., on process, voltage and temperature (PVT) variations. Therefore, some embodiments can advantageously avoid using a worst case scenario (e.g., longer) delay to account for worst case PVT conditions.
[0048] In some embodiments, both signals V.sub.pwm_condP and V.sub.pwm_condN transition simultaneously after the t.sub.drv plus t.sub.fix2 instead of having the preset delay t.sub.fix1 in between since, in some embodiments, the response time between the high-side transistor (e.g., 106) and low-side transistor (e.g., 108) are different and advantageously avoid X-conduction, e.g., without requiring the introduction of a preset delay during step 408.
[0049] In some embodiments, the determination of whether the next edge of PWM signal V.sub.pwm_out does not occur before V.sub.out_pre transitions is based on whether the transition of the next edge of PWM signal V.sub.pwm_out plus driver delay tare occurs (or would have occurred) before V.sub.out_pre transitions.
[0050] If the next edge of PWM signal V.sub.pwm_out does not occur before V.sub.out_pre transitions, during step 410, it is determined whether the next edge of PWM signal V.sub.pwm_out occurs while V.sub.out_pre transitions. If the next edge of PWM signal V.sub.pwm_out occurs while voltage V.sub.out_pre transitions, then the next edge of the longer between V.sub.pwm_condP and V.sub.pwm_condN is advanced during step 412 so that it transitions, e.g., after a preset delay t.sub.fix3 from the transition of the other of V.sub.pwm_condP and V.sub.pwm_condN, where t.sub.fix3 is smaller than t.sub.fix1. In some embodiments, delay t.sub.fix3 is not fixed, and, instead, may be determined by detections signals (e.g., V.sub.boost_on or V.sub.slow_off).
[0051] If it is determined during step 410 that the next edge of PWM signal V.sub.pwm_out occurs after V.sub.out_pre transitions, then conditioned PWM signal transitions when V.sub.pwm_out transitions, and with signals V.sub.pwm_condP and V.sub.pwm_condN having a preset delay t.sub.fix1 during the transition occurring during step 416.
[0052] In some embodiments, steps 410 and 416 may be omitted, and step 412 is always performed if the output of step 406 is “no.”
[0053]
[0054]
[0055] At time t.sub.53, the falling edge of V.sub.pwm_out (the next edge) occurs. Since the falling edge of V.sub.pwm_out (the next edge) occurs before V.sub.out_pre transitions (which occurs at time t.sub.55) the outcome of step 406 is “yes” and both V.sub.pwm_condP and V.sub.pwm_condN transition at time t.sub.56, which occurs a time t.sub.fix2+t.sub.drv after V.sub.pwm_condP transitions from high to low time (which occurs at time t.sub.52).
[0056] As shown in
[0057]
[0058] At time t.sub.63, the rising edge of V.sub.pwm_out (the next edge) occurs. Since the rising edge of V.sub.pwm_out (the next edge) occurs before V.sub.out_pre transitions (which occurs at time t.sub.65) the outcome of step 406 is “yes” and both V.sub.pwn_condP and V.sub.pwm_condN transition at time t.sub.66, which occurs a time t.sub.fix2+t.sub.drv after V.sub.pwm_condP transitions from low to high time (which occurs at time t.sub.62).
[0059] As shown in
[0060]
[0061] At time t.sub.74, the falling edge of V.sub.pwm_out (the next edge) occurs. Since the falling edge of V.sub.pwm_out (the next edge) occurs while V.sub.out_pre transitions (which occurs between times t.sub.73 and t.sub.75) the outcome of step 406 is “no,” the outcome of step 408 is “yes,” and thus, V.sub.pwm_condN is advanced to transitions at time t.sub.77, which occurs preset time t.sub.fix3 after V.sub.pwm_condP transition at time t.sub.76 (step 412). In some embodiments, a detection signal (e.g., V.sub.boost_on in this example) causes V.sub.pwm_condP to transition at time t.sub.76. As illustrated in more detail later in
[0062] As shown in
[0063] As also shown in
[0064]
[0065] At time t.sub.84, the falling edge of V.sub.pwm_out (the next edge) occurs. Since the falling edge of V.sub.pwm_out (the next edge) occurs while V.sub.out_pre transitions the outcome of step 406 is “no,” the outcome of step 408 is “yes,” and thus, V.sub.pwm_condP is advanced to transitions at time t.sub.87, which occurs preset time t.sub.fix3 after V.sub.pwm_condN transition at time t.sub.86 (step 412). In some embodiments, a detection signal (e.g., V.sub.slow_off in this example) causes V.sub.pwm_condN to transition at time t.sub.86. As illustrated in more detail later in
[0066] In some embodiments, e.g., such as illustrated in
[0067] As shown in
[0068] As also shown in
[0069]
[0070] As can also be seen from
[0071]
[0072] In some embodiments, the power savings are caused, in part, by amplifier 300 skipping short pulses when operating in closed loop. For example, in some embodiments, the clamped duty cycle makes the charge/discharge duration of LC filter 109 fixed when switching near clipping, which makes the feedback loop adjust the output switching frequency automatically to a lower frequency. Although there may be ripple on output V.sub.out, the switching frequency near clipping could be move away from audible band (to a higher frequency) by adjusting the clamped duty cycle level, which in some embodiments, may be implemented by adding a delay to switching detection signals (e.g., V.sub.boost_on and V.sub.slow_off in
[0073]
[0074] It is well known that higher BD diode charge storage inside power DMOS used in switching applications result in a higher dissipation and lower efficiency, since this charge is removed every DMOS switching cycle. As shown in
[0075] In some embodiments, lowering the power consumption advantageously allows for improved thermal performance of amplifiers in, e.g., integrated solutions.
[0076] In some embodiments, pre-conditioning the PWM (e.g., with method 400) does not cause a degradation in THD performance.
[0077] As can be seen in
[0078]
[0079]
[0080] During normal operation, pre-conditioning circuit 1500 generates signals V.sub.pwm_condP and V.sub.pwm_condN to cause gate drive circuit 1504 to drive transistors 106 and 108 to cause signal V.sub.out_pre to switch based on signal V.sub.pwm_out.
[0081] As shown in
[0082] As shown in
[0083] In some embodiments, thresholds V.sub.th1 and V.sub.th2 may be configurable and may be shifted, e.g., within a predetermined range.
[0084] In some embodiments, pre-conditioning controller 1502 is configured to cause a delay (step 408) in signals V.sub.pwm_condP and V.sub.pwm_condN so that signals V.sub.pwm_condP and V.sub.pwm_condN switch, e.g., simultaneously, in response to signal V.sub.boost_on transitioning from high to low when the duty cycle of V.sub.pwm_out is lower than 50%, and when the falling edge of V.sub.pwm_out occurs before V.sub.out_pre transitions (e.g., before the falling edge of V.sub.slow_off), as illustrated, e.g., in
[0085] In some embodiments, pre-conditioning controller 1502 is configured to cause a delay (step 408) in signals V.sub.pwm_condP and V.sub.pwm_condN so that signals V.sub.pwm_condP and V.sub.pwm_condN switch, e.g., simultaneously, in response to signal V.sub.slow_off transitioning from low to high when the duty cycle of V.sub.pwm_out is higher than 50%, and when the rising edge of V.sub.pwm_out occurs before V.sub.out_pre transitions (e.g., before the rising edge of V.sub.boost_on), as illustrated, e.g., in
[0086] In some embodiments, pre-conditioning controller 1502 is configured to cause an advance (step 412) in the transitioning of signals V.sub.pwm_condN so that signals V.sub.pwm_condN and V.sub.pwm_condP switch in response to signal V.sub.boost_on transitioning from high to low when the duty cycle of V.sub.pwm_out is lower than 50%, and when the falling edge of V.sub.pwm_out does not occur before V.sub.out_pre transitions, as illustrated, e.g., in
[0087] In some embodiments, pre-conditioning controller 1502 is configured to cause an advance (step 412) in the transitioning of signals V.sub.pwm_condP so that signals V.sub.pwm_condN and V.sub.pwm_condP switch in response to signal V.sub.slow_off transitioning from low to high when the duty cycle of V.sub.pwm_out is higher than 50%, and when the rising edge of V.sub.pwm_out does not occur before V.sub.out_pre transitions, as illustrated, e.g., in
[0088] As shown in
[0089] As shown in
[0090]
[0091] During normal operation, D-flip-flop 1516 generates signal V.sub.1516 based on V.sub.pwm_out and V.sub.boost_on, D-flip-flop 2010 generates signal V.sub.1512 (e.g., via inverter 1512) based on V.sub.pwm_out, D-flip-flop 1530 generates signal V.sub.1530 based on V.sub.pwm_out and V.sub.slow_off, and D-flip-flop 2044 generates signal V.sub.1540 (e.g., via inverter 1540) based on V.sub.pwm_out. In some embodiments, delay circuits 2070 and 2072 are used to cause delay t.sub.fix1 (and t.sub.fix2), e.g., as illustrated in
[0092] In some embodiments, type D delay circuits 2034 and 2056 may be used as filtering logic, e.g., for preventing glitches in the latch that comprises NAND gates 1518 and 1528.
[0093] As shown in
[0094]
[0095]
[0096]
[0097]
[0098] Example embodiments of the present invention are summarized here. Other embodiments can also be understood from the entirety of the specification and the claims filed herein.
[0099] Example 1. A method for shaping a pulse-width modulation (PWM) signal, the method including: receiving an input PWM signal; generating an output PWM signal based on the input PWM signal by: when the input PWM signal transitions with a first edge of the input PWM signal, transitioning the output PWM signal with a first edge of the output PWM signal; and when the input PWM signal transitions with a second edge before the first edge of the output PWM signal transitions, delaying a second edge of the output PWM signal based on the first edge of the output PWM signal, where the second edge of the input PWM signal is a next edge of the input PWM signal after the first edge of the input PWM signal, and where the second edge of the output PWM signal is a next edge of the output PWM signal after the first edge of the output PWM signal.
[0100] Example 2. The method of example 1, where delaying the second edge of the output PWM signal including delaying the second edge of the output PWM signal by a preset time plus a driving delay, where the driving delay is based on a delay of a driving circuit driving the output PWM signal.
[0101] Example 3. The method of one of examples 1 or 2, where the driving circuit includes a high-side transistor and a low-side transistor coupled at a pre-filtering node, a high-side gate driver coupled to a control terminal of the high-side transistor, and a low-side gate driver coupled to a control terminal of the low-side transistor.
[0102] Example 4. The method of one of examples 1 to 3, further including: comparing the output PWM signal with a first threshold; comparing the output PWM signal with a second threshold different than the first threshold; and when the second edge of the input PWM signal occurs before the first edge of the output PWM signal crosses the first threshold, delaying transitioning high-side and low-side intermediate signals until the first edge of the output PWM signal crosses the second threshold, where generating the output PWM signal includes generating the output PWM signal with a high-side transistor driven based on the high-side intermediate signal, and a low-side transistor driven based on the low-side intermediate signal.
[0103] Example 5. The method of one of examples 1 to 4, where the first threshold is higher than the second threshold.
[0104] Example 6. The method of one of examples 1 to 5, where transitioning the high-side and low-side intermediate signals includes transitioning the high-side and low-side intermediate signals simultaneously.
[0105] Example 7. The method of one of examples 1 to 6, further including, when the input PWM signal transitions with the second edge after the first edge of the output PWM signal transitions, transitioning high-side and low-side intermediate signals based on the first edge of the output PWM signal, where generating the output PWM signal includes generating the output PWM signal with a high-side transistor driven based on the high-side intermediate signal, and a low-side transistor driven based on the low-side intermediate signal.
[0106] Example 8. The method of one of examples 1 to 7, further including: comparing the output PWM signal with a first threshold; comparing the output PWM signal with a second threshold different than the first threshold; and when the second edge of the input PWM signal occurs after the first edge of the output PWM signal crosses the first threshold, transitioning the high-side and low-side intermediate signals when the first edge of the output PWM signal crosses the second threshold.
[0107] Example 9. The method of one of examples 1 to 8, where transitioning the output PWM signal with the first edge includes transitioning the high-side and low-side intermediate signals with a preset delay therebetween, and where when the second edge of the input PWM signal occurs after the first edge of the output PWM signal crosses the first threshold, transitioning the high-side and low-side intermediate signals with a second delay time therebetween, the second delay time being smaller than the preset delay.
[0108] Example 10. The method of one of examples 1 to 9, where the first edge of the PWM input signal is a rising edge, the second edge of the PWM input signal is a falling edge, the first edge of the PWM output signal is a rising edge, and the second edge of the PWM output signal is a falling edge.
[0109] Example 11. A method for shaping a pulse-width modulation (PWM) signal, the method including: receiving an input PWM signal; generating an output PWM signal based on the input PWM signal with a high-side transistor driven based on a high-side intermediate signal, and a low-side transistor driven based on a low-side intermediate signal; when the input PWM signal transitions with a first edge of the input PWM signal, driving the high-side and low-side intermediate signals to cause transitioning the output PWM signal with a first edge of the output PWM signal; and when the input PWM signal transitions with a second edge after the first edge of the output PWM signal transitions, transitioning the high-side and low-side intermediate signals based on the first edge of the output PWM signal to cause a second edge of the output PWM signal, where the second edge of the input PWM signal is a next edge of the input PWM signal after the first edge of the input PWM signal, and where the second edge of the output PWM signal is a next edge of the output PWM signal after the first edge of the output PWM signal.
[0110] Example 12. The method of example ii, further including: when the input PWM signal transitions with the second edge before the first edge of the output PWM signal transitions, delaying transitioning the high-side and low-side intermediate signals to delay the second edge of the output PWM signal based on the first edge of the output PWM signal.
[0111] Example 13. A pulse-width modulation (PWM) pre-conditioning circuit including: a PWM input configured to receive an input PWM signal; high-side and low-side outputs configured to be coupled to control terminals of high-side and low-side transistors, respectively; a switching detection input configured to be coupled to the high-side and low-side transistors to monitor an output PWM signal; and a controller configured to: when the input PWM signal transitions with a first edge of the input PWM signal, drive the high-side and low-side outputs to cause a transition of the output PWM signal with a first edge of the output PWM signal, and when the input PWM signal transitions with a second edge before the first edge of the output PWM signal transitions, drive the high-side and low-side outputs to delay a second edge of the output PWM signal based on the first edge of the output PWM signal, where the second edge of the input PWM signal is a next edge of the input PWM signal after the first edge of the input PWM signal, and where the second edge of the output PWM signal is a next edge of the output PWM signal after the first edge of the output PWM signal.
[0112] Example 14. The PWM pre-conditioning circuit of example 13, further including a switching status detection circuit including: a first comparator having a first input coupled to the switching detection input and a second input configured to receive a first threshold; and a second comparator having a first input coupled to the switching detection input and a second input configured to receive a second threshold that is lower than the first threshold, where the controller is configured to determine whether the input PWM signal transitions with a second edge before the first edge of the output PWM signal transitions based on outputs of the first or second comparators, and where the controller is configured to drive the high-side and low-side outputs to delay the second edge of the output PWM signal based on outputs of the first or second comparators.
[0113] Example 15. The PWM pre-conditioning circuit of one of examples 13 or 14, further including: a first NAND gate having an output coupled to the high-side output, and a first input coupled to the controller; and a second NAND gate having an output coupled to the low-side output and to a second input of the first NAND gate, a first input coupled to the controller, and a second input coupled to the output of the first NAND gate.
[0114] Example 16. The PWM pre-conditioning circuit of one of examples 13 to 15, further including: a first flip-flop having an input coupled to the PWM input, and an output coupled to the first input of the first NAND gate; and a second flip-flop having a first input coupled to the output of the first flip-flop, a second input coupled to the switching detection input, and an output coupled to a third input of the first NAND gate.
[0115] Example 17. The PWM pre-conditioning circuit of one of examples 13 to 16, further including: a switching status detection circuit including: a first comparator having a first input coupled to the switching detection input and a second input configured to receive a first threshold, and a second comparator having a first input coupled to the switching detection input and a second input configured to receive a second threshold that is lower than the first threshold, where the second input of the second flip-flop is coupled to the switching detection input via the first comparator, the controller further including: a third flip-flop having an input coupled to the PWM input, and an output coupled to the second input of the second NAND gate; and a fourth flip-flop having a first input coupled to the output of the third flip-flop, a second input coupled to an output of the second comparator, and an output coupled to a third input of the second NAND gate.
[0116] Example 18. The PWM pre-conditioning circuit of one of examples 13 to 17, where the first, second, third, and fourth flip-flops are D-flip-flops, where the first input of the first flip-flop is a clock input, where the first input of the second flip-flop is a clock input and the second input of the second flip-flop is a clear input, where the first input of the third flip-flop is a clock input, and where the first input of the fourth flip-flop is a clock input and the second input of the fourth flip-flop is a clear input.
[0117] Example 19. A class-D amplifier including: an input terminal configured to receive an analog signal; an output terminal configured to be coupled to a load; an integrator circuit having a first input coupled to the input terminal and a second input coupled to the output terminal; a pulse-width modulation (PWM) modulator circuit having a first input coupled to an output of the integrator circuit, a second input configured to receive a clock signal, and an output configured to deliver a PWM signal; a pre-conditioning circuit having a first input coupled to the PWM modulator and a second input coupled to the output terminal; and an output stage having an input coupled to an output of the pre-conditioning circuit and an output coupled to the output terminal, the output stage configured to generate an output PWM signal at the output terminal based on the output of the pre-conditioning circuit, where the pre-conditioning circuit is configured to: when the PWM signal transitions with a first edge of the PWM signal, cause a transition of the output PWM signal with a first edge of the output PWM signal, and when the PWM signal transitions with a second edge before the first edge of the output PWM signal transitions, delay a second edge of the output PWM signal based on the first edge of the output PWM signal, where the second edge of the PWM signal is a next edge of the PWM signal after the first edge of the PWM signal, and where the second edge of the output PWM signal is a next edge of the output PWM signal after the first edge of the output PWM signal.
[0118] Example 20. The class-D amplifier of example 19, where the load is an audio speaker.
[0119] While this invention has been described with reference to illustrative embodiments, this description is not intended to be construed in a limiting sense. Various modifications and combinations of the illustrative embodiments, as well as other embodiments of the invention, will be apparent to persons skilled in the art upon reference to the description. It is therefore intended that the appended claims encompass any such modifications or embodiments.