Minimizing phase mismatch and offset sensitivity in a dual-path system
11047890 · 2021-06-29
Assignee
Inventors
- Gautham S. SIVASANKAR (Austin, TX, US)
- Tejasvi Das (Austin, TX, US)
- Emmanuel MARCHAIS (Dripping Springs, TX, US)
- Amar Vellanki (Cedar Park, TX, US)
- Leyi Yin (Austin, TX, US)
- John L. Melanson (Austin, TX)
- Venugopal Choukinishi (Austin, TX, US)
Cpc classification
G01R25/005
PHYSICS
G01R25/00
PHYSICS
G01R31/31725
PHYSICS
G01R19/175
PHYSICS
G01R19/04
PHYSICS
H03G3/3005
ELECTRICITY
H03F2200/351
ELECTRICITY
G01R19/2513
PHYSICS
International classification
G01R25/00
PHYSICS
H03D13/00
ELECTRICITY
G01R19/04
PHYSICS
Abstract
A method of determining a phase misalignment between a first signal generated from a first signal path and a second signal generated from a second signal path may include obtaining multiple samples of the first signal proximate to when the first signal crosses zero wherein the first signal can be approximated as linear; obtaining multiple samples of the second signal proximate to when the second signal crosses zero wherein the first signal can be approximated as linear; based on the multiple samples of the first signal, approximating a first time at which the first signal crosses zero; based on the multiple samples of the second signal, approximating a second time at which the second signal crosses zero; and determining the phase misalignment between the first signal and the second signal based on a difference between the first time and the second time.
Claims
1. A method of determining a phase misalignment between a first signal generated from a first signal path and a second signal generated from a second signal path, comprising: obtaining multiple samples of the first signal proximate to when the first signal crosses zero wherein the first signal can be approximated as linear; obtaining multiple samples of the second signal proximate to when the second signal crosses zero wherein the first signal can be approximated as linear; based on the multiple samples of the first signal, approximating a first time at which the first signal crosses zero; based on the multiple samples of the second signal, approximating a second time at which the second signal crosses zero; and determining the phase misalignment between the first signal and the second signal based on a difference between the first time and the second time.
2. The method of claim 1, further comprising approximating the first time by: for each pair of successive samples of the multiple samples of the first signal in which the first signal is greater than zero, calculating a respective above-zero delta for such pair of successive samples, each respective above-zero delta comprising an amplitude difference of the first signal in the pair of successive samples used to calculate the respective above-zero delta; for each pair of successive samples of the multiple samples of the first signal in which the first signal is less than zero, calculating a respective below-zero delta for such pair of successive samples, each respective below-zero delta comprising an amplitude difference of the first signal in the pair of successive samples used to calculate the respective below-zero delta; and interpolating to determine the first time based on an average of the respective above-zero deltas and an average of the respective below-zero deltas.
3. The method of claim 2, wherein the first signal path is a reverse calibration path and the second signal path is a forward signal path.
4. The method of claim 2, wherein the first signal path and the second signal path are forward signal paths.
5. The method of claim 1, wherein the first signal path is a reverse calibration path and the second signal path is a forward signal path.
6. The method of claim 1, wherein the first signal path and the second signal path are forward signal paths.
7. A method of determining a phase misalignment between a first signal generated from a first signal path and a second signal generated from a second signal path, comprising: approximating a first time in which the first signal crosses zero; approximating a second time in which the second signal crosses zero, wherein approximating the second time comprises: approximating a rising zero cross time in which the second signal crosses zero while rising in value by interpolating between successive samples occurring before and after the second signal crosses zero while rising in value; approximating a falling zero cross time in which the second signal crosses zero while falling in value by interpolating between successive samples occurring before and after the second signal crosses zero while falling in value; and determining the second time based on the rising zero cross time and the falling zero cross time such that a difference between the first time and the second time is substantially unaffected by a difference in offset between the first signal and the second signal; and determining the phase misalignment between the first signal and the second signal based on a difference between the first time and the second time.
8. A method for calculating a relative gain between a first signal generated from a first signal path and a second signal generated from a second signal path, comprising: applying a time-based weighting function to the first signal within a fixed time window to generate a weighted first signal; applying the time-based weighting function to the second signal within the fixed time window to generate a weighted second signal; and calculating the relative gain based on a first signal energy of the weighted first signal in the fixed time window and a second signal energy of the second weighted signal in the fixed time window.
9. The method of claim 8, wherein the weighting function is symmetric about a reference time defining an axis of symmetry, monotonically increases in amplitude as a function of time before the reference time, and monotonically decreases in amplitude as a function of time after the reference time.
10. A method for calculating a relative gain between a first signal generated from a first signal path and a second signal generated from a second signal path, comprising: using a correlation function of the first signal and the second signal to compute the relative gain such that the relative gain is substantially unaffected by a difference in offset between the first signal and the second signal.
11. The method of claim 10, wherein the relative gain is computed by calculating a ratio of two polynomial combinations of E(x.sup.2), E(x), E(xy), and E(y).
12. The method of claim 11, wherein the relative gain is computed by the correlation function (E(xy)-E(x)E(y))/(E(x.sup.2) E(x).sup.2).
13. The method of claim 10, further comprising: applying a time-based weighting function to the first signal within a fixed time window to generate a weighted first signal; applying the time-based weighting function to the second signal within the fixed time window to generate a weighted second signal; and wherein the correlation function uses at least one of the weighted first signal and the weighted second signal.
14. The method of claim 10, wherein the relative gain is computed by calculating a ratio of two polynomial combinations of E(wx.sup.y), E(x), E(wxy), E(xy), and E(y), wherein w represents the weighting function.
15. The method of claim 14, wherein the relative gain is computed by the correlation function (E(wxy)-E(wx)E(y))/(E(wx.sup.2)-E(wx)E(x)).
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) A more complete understanding of the present embodiments and advantages thereof may be acquired by referring to the following description taken in conjunction with the accompanying drawings, in which like reference numbers indicate like features, and wherein:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DETAILED DESCRIPTION
(11)
(12)
(13)
(14) Reconfigurable PWM modulation amplifier 22A may be configured to operate in an analog closed-loop mode through the use of analog PWM modulator 26 when the ANALOG MODULATOR BYPASS control signal received by multiplexer 28 is deasserted. In the analog closed-loop mode, input signal V.sub.IN may be modulated by digital PWM modulator subsystem 24, analog PWM modulator 26 may receive its input from digital PWM modulator subsystem 24, and analog PWM modulator 26 may be utilized such that the output of analog PWM modulator 26, as received and driven by driver stage 34B, is driven as output signal V.sub.OUT. Driver stage 34B may comprise a plurality of output switches configured to generate output signal V.sub.OUT from a modulated signal generated by analog PWM modulator 26.
(15) Reconfigurable PWM modulation amplifier 22A may also be configured to operate in a digital open-loop mode through the use of digital PWM modulator subsystem 24 when the ANALOG MODULATOR BYPASS control signal received by multiplexer 28 is asserted. In the digital open-loop mode, analog PWM modulator 26 and a driver stage 34B driven by analog PWM modulator 26 may be bypassed by multiplexer 28, and digital PWM modulator subsystem 24 may be utilized such that input signal V.sub.IN is modulated by digital PWM modulator subsystem 24 and the output of digital PWM modulator subsystem 24, as received and driven by an open-loop driver stage 34A, is driven as output signal V.sub.OUT. Driver stage 34A may comprise a plurality of output switches configured to generate output signal V.sub.OUT from a modulated signal generated by digital PWM modulator subsystem 24.
(16) Changing reconfigurable PWM modulation amplifier 22A from the analog closed-loop mode and the digital open-loop mode (and vice versa) may be achieved by, through use of multiplexer 28, selecting which of driver stage 34A and driver stage 34B is to drive output signal V.sub.OUT.
(17) In some embodiments, a control circuit (not shown) may be used to control multiplexer 28 in order to select a signal processing path for reconfigurable PWM modulation amplifier 22A. For example, selection of such multiplexer control signal may be based on one or more characteristics of input signal V.sub.IN to the amplifier (e.g., magnitude, frequency, or other characteristic of input signal V.sub.IN). Thus, reconfigurable PWM modulation amplifier 22A may comprise a digital pulse width modulator subsystem (e.g., digital PWM modulator subsystem 24), a first path coupled to an output of the digital pulse width modulator subsystem and configured to drive an open-loop driver stage (e.g., driver stage 34A), and a second path coupled to the output of the digital pulse width modulator subsystem and configured to drive a closed-loop analog pulse width modulator (e.g., analog PWM modulator 26), wherein one of the first path and the second path is selected for processing a signal based on one or more characteristics of the signal.
(18) Also as shown in
(19) As noted in the Background section of this disclosure, accurate calculation of differences between the first output signal generated by driver stage 34A and the second output signal generated by driver stage 34B may be affected by a phase mismatch and/or a DC offset between the first signal and the second signal. Accordingly, as described in greater detail below, gain calibration engine 36A may also be configured to reduce or eliminate sensitivity to phase mismatch and/or DC offset in order to calculate an accurate gain compensation.
(20)
(21) Gain calibration engine 36B may be configured to detect output signal V.sub.OUT, detect input signal V.sub.IN, and based on the two signals, calculate a gain compensation to be applied to input signal V.sub.IN via gain element 38B to compensate reconfigurable pulse width modulation amplifier 22B in a manner such that a desired amplifier gain is maintained for reconfigurable pulse width modulation amplifier 22B (e.g., maintains desired gain in the presence of process differences, temperature effects, aging effects, and/or other causes for variation in amplifier gain). Thus, in reconfigurable PWM modulation amplifier 22B, gain calibration engine 36B may perform gain compensation on a forward signal path (e.g., the signal path generating output voltage V.sub.OUT) and a reverse calibration path or feedback path to perform compensation based on differences between the two signal paths.
(22) As noted in the Background section of this disclosure, accurate calculation of differences between output signal V.sub.OUT and input signal V.sub.IN may be affected by a phase mismatch and/or a DC offset between output signal V.sub.OUT and input signal V.sub.IN. Accordingly, as described in greater detail below, gain calibration engine 36B may also be configured to reduce or eliminate sensitivity to phase mismatch and/or DC offset in order to calculate an accurate gain compensation.
(23) Although
(24) In order to detect a phase mismatch between two signals to be calibrated to one another, a gain calibration engine 36 may determine a respective time in which each signal crosses zero, with the difference in times of the zero crossing representing a phase delay between the two signals expressed in the time domain. Thus, to accurately calculate a gain compensation, gain calibration engine 36 may apply a time shift to one of the signals to compensate for the phase difference, then calculate a gain compensation based on the phase-aligned, phase-corrected signals. However, because the two signals at issue may be digital signals represented by discrete digital samples, the time of a zero crossing of a signal may not be exactly determined, unless one of the digital samples was obtained at the exact zero crossing. To overcome this issue, a gain calibration engine 36 may approximate a time at which a zero crossing occurs by interpolating between one or more samples occurring before the zero crossing and one or more samples occurring after the zero crossing.
(25) An example of such interpolation is described by reference to
(26) In some embodiments, such interpolation may be performed by taking an average of the amplitude difference or delta (e.g., average of Δn.sub.1, Δn.sub.2, etc.) between successive samples 40a occurring when reference signal y(t) is less than zero and the average of the amplitude difference (e.g., average of Δp.sub.1, Δp.sub.2, etc.) between successive samples 40b occurring when reference signal y(t) is greater than zero. Although
(27) A time t.sub.0 at which a zero cross occurs in reference signal y(t) may be computed by:
(28)
Where t.sub.1 is the time occurrence of the first sample immediately after the zero cross of reference signal y(t) (e.g., y.sub.p1 (t)), Δ is the phase delay from time t.sub.0 to t.sub.1 expressed in terms of a resolution factor N, and F.sub.s is the sampling frequency for reference signal y(t).
(29) The delta phase delay Δ may be given by:
(30)
As expressed in terms of resolution factor N, where AIR is an “averaged interpolation range” described in further detail below. The resolution factor N may be given as a multiple of the sampling frequency F.sub.s needed for desired accuracy. For example, if a phase estimate is needed in terms of 3 MHz and the sampling frequency for the system is 750 KHz, then N=3 MHz/750 KHz=4.
(31) Stated computationally, the averaged interpolation range AIR may be computed as:
(32)
or alternatively:
(33)
(34) In instances in which a DC offset exists between two signals, the presence of DC offset may lead to inaccuracy in the calculation of phase misalignment. For example, in the absence of DC offset, as shown in
(35) A gain calibration engine 36 may compensate for such DC offset by approximating a rising zero cross time in which a reference signal y(t) crosses zero while rising in value by interpolating between successive samples occurring before and after the reference signal y(t) crosses zero while rising in value, and also approximating a falling zero cross time in which the reference signal y(t) crosses zero while falling in value by interpolating between successive samples occurring before and after the reference signal y(t) crosses zero while falling in value. The gain calibration engine 36 may then average the rising zero cross time and the falling zero cross time, which may cancel the time difference δ between actual and detected zero cross times introduced by DC offset leaving a value equal to the time (e.g., t.sub.c in
(36) As contemplated above, as a phase misalignment between two signals increases, accuracy in the calculation of a gain compensation to equalize the gains of the two signals may decrease. This is particularly true when gain calculation is performed by measuring the respective signal energies of the two signals within a fixed time window, as characteristics of a first signal may occur within the fixed time window but such characteristics may be phase delayed in a second signal such that those characteristics in the second signal fall outside of the fixed time measurement window.
(37) To minimize this inaccuracy due to phase misalignment of signals, a gain calibration engine 36 may apply a time-based weighting function to each of a first signal and a second signal within a fixed time measurement window.
(38) Although
(39) In addition to or in lieu of using one or more of the foregoing techniques, gain calibration engine 36 may also reduce computation inaccuracy due to DC offset by calculating a relative gain between a first signal (e.g., x(t)) generated from a first signal path and a second signal generated from a second signal path (e.g., y(t)) by using a correlation function of the first signal (e.g., E(x)) and the second signal (e.g., E(y)) to compute the gain such that the gain is substantially unaffected by a difference in offset between the first signal and the second signal. As used herein, a function E may represent an expected value, averaged value, estimated value, or some other value of the signal to which the function E is applied.
(40) For example, in some embodiments, the relative gain may be computed by calculating a ratio of two polynomial combinations of the functions E(x.sup.2), E(x), E(xy), and E(y). As a specific example, the relative gain may be computed by the correlation function (E(xy)−E(x)E(y))/(E(x.sup.2)−E(x).sup.2), such that a DC offset term present in first signal x(t) is cancelled out.
(41) In these and other embodiments, a time-based weighting function, such as the time-based weighting function w(t) described above with respect to
(42) Although the foregoing contemplates use of reconfigurable PWM modulation amplifiers 22A and 22B for use in an audio amplifier for driving an audio transducer, it is understood that reconfigurable PWM modulation amplifiers 22A and 22B may be used in other types of amplifiers for driving other types of transducers, including without limitation an amplifier for driving a haptic transducer.
(43) As used herein, when two or more elements are referred to as “coupled” to one another, such term indicates that such two or more elements are in electronic communication or mechanical communication, as applicable, whether connected indirectly or directly, with or without intervening elements.
(44) This disclosure encompasses all changes, substitutions, variations, alterations, and modifications to the example embodiments herein that a person having ordinary skill in the art would comprehend. Similarly, where appropriate, the appended claims encompass all changes, substitutions, variations, alterations, and modifications to the example embodiments herein that a person having ordinary skill in the art would comprehend. Moreover, reference in the appended claims to an apparatus or system or a component of an apparatus or system being adapted to, arranged to, capable of, configured to, enabled to, operable to, or operative to perform a particular function encompasses that apparatus, system, or component, whether or not it or that particular function is activated, turned on, or unlocked, as long as that apparatus, system, or component is so adapted, arranged, capable, configured, enabled, operable, or operative. Accordingly, modifications, additions, or omissions may be made to the systems, apparatuses, and methods described herein without departing from the scope of the disclosure. For example, the components of the systems and apparatuses may be integrated or separated. Moreover, the operations of the systems and apparatuses disclosed herein may be performed by more, fewer, or other components and the methods described may include more, fewer, or other steps. Additionally, steps may be performed in any suitable order. As used in this document, “each” refers to each member of a set or each member of a subset of a set.
(45) Although exemplary embodiments are illustrated in the figures and described below, the principles of the present disclosure may be implemented using any number of techniques, whether currently known or not. The present disclosure should in no way be limited to the exemplary implementations and techniques illustrated in the drawings and described above.
(46) Unless otherwise specifically noted, articles depicted in the drawings are not necessarily drawn to scale.
(47) All examples and conditional language recited herein are intended for pedagogical objects to aid the reader in understanding the disclosure and the concepts contributed by the inventor to furthering the art, and are construed as being without limitation to such specifically recited examples and conditions. Although embodiments of the present disclosure have been described in detail, it should be understood that various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the disclosure.
(48) Although specific advantages have been enumerated above, various embodiments may include some, none, or all of the enumerated advantages. Additionally, other technical advantages may become readily apparent to one of ordinary skill in the art after review of the foregoing figures and description.
(49) To aid the Patent Office and any readers of any patent issued on this application in interpreting the claims appended hereto, applicants wish to note that they do not intend any of the appended claims or claim elements to invoke 35 U.S.C. § 112(f) unless the words “means for” or “step for” are explicitly used in the particular claim.