Reducing audio artifacts in an amplifier with configurable final output stage
10044323 ยท 2018-08-07
Assignee
Inventors
Cpc classification
H03F2203/45528
ELECTRICITY
H03F2203/45562
ELECTRICITY
H03F2200/432
ELECTRICITY
H03F2200/408
ELECTRICITY
H03F1/0277
ELECTRICITY
H03F2203/7236
ELECTRICITY
G10L25/18
PHYSICS
H03F2200/321
ELECTRICITY
H03F2203/45644
ELECTRICITY
International classification
H03F1/02
ELECTRICITY
G10L25/18
PHYSICS
Abstract
An amplifier may include a first stage configured to receive an input signal at an amplifier input and generate an intermediate signal which is a function of the input signal, and a final output stage configured to generate an output signal which is a function of the intermediate signal at an amplifier output, and a signal feedback network coupled between the amplifier output and input. The final output stage may be switchable among a plurality of modes including at least a first mode in which the final output stage generates the output signal as a modulated output signal which is a function of the intermediate signal, and a second mode in which the final output stage generates the output signal as an unmodulated output signal which is a function of the intermediate signal. Control circuitry may reduce audio artifacts associated with switching between modes.
Claims
1. An apparatus comprising: an amplifier comprising: a plurality of stages comprising at least: a first stage configured to receive an input signal at an amplifier input and generate an intermediate signal at an intermediate output which is a function of the input signal; and a final output stage configured to generate an output signal at an amplifier output, wherein the output signal is a function of the intermediate signal; and a signal feedback network coupled between the amplifier output and the amplifier input; wherein the final output stage is switchable among a plurality of modes including at least: a first mode in which the final output stage generates the output signal as a modulated output signal which is a function of the intermediate signal; and a second mode in which the final output stage generates the output signal as an unmodulated output signal which is a function of the intermediate signal; and wherein structure of the signal feedback network and the first stage remain static when switching between the first mode and the second mode; and a control circuit configured to: predict, based on one or more characteristics of a signal indicative of the output signal, an occurrence of a condition for switching between the first mode and the second mode; and responsive to predicting the occurrence of the condition, switch between the first mode and the second mode.
2. The apparatus of claim 1, wherein the control circuit is further configured to, responsive to predicting the occurrence of the condition, switch, at an approximate zero crossing of the signal, between the first mode and the second mode.
3. The apparatus of claim 1, wherein the condition for switching between the first mode and the second mode comprises a magnitude of the signal indicative of the output signal crossing a predetermined threshold magnitude.
4. The apparatus of claim 3, wherein the control circuit is configured to predict the condition of the signal indicative of the output signal crossing the predetermined threshold magnitude responsive to the magnitude of the signal indicative of the output signal increasing above a second predetermined threshold magnitude less than the predetermined threshold magnitude.
5. The apparatus of claim 3, wherein the control circuit is configured to predict the condition of the signal indicative of the output signal crossing the predetermined threshold magnitude responsive to the magnitude of the signal indicative of the output signal decreasing below a second predetermined threshold magnitude greater than the predetermined threshold magnitude.
6. The apparatus of claim 3, wherein the control circuit is configured to predict the condition of the signal indicative of the output signal crossing the predetermined threshold magnitude by: tracking signal peaks of the signal indicative of the output signal; extrapolating from the signal peaks a future value of the magnitude of the signal indicative of the output signal; and predicting that the magnitude of the signal indicative of the output signal will cross the predetermined threshold magnitude based on the future value.
7. The apparatus of claim 3, wherein the control circuit is configured to predict the condition of the signal indicative of the output signal crossing the predetermined threshold magnitude by: tracking a signal envelope of the signal indicative of the output signal; extrapolating from the envelope a future value of the magnitude of the signal indicative of the output signal; and predicting that the magnitude of the signal indicative of the output signal will cross the predetermined threshold magnitude based on the future value.
8. The apparatus of claim 3, wherein the condition for switching between the first mode and the second mode comprises the magnitude of the signal indicative of the output signal lacking a persistent pattern of magnitude relative to the predetermined threshold magnitude.
9. The apparatus of claim 1, wherein the condition for switching between the first mode and the second mode comprises the magnitude of the signal indicative of the output signal refraining from crossing a predetermined threshold magnitude for a period of time.
10. The apparatus of claim 9, wherein the control circuit is further configured to: initialize a timer of a predetermined duration responsive to the magnitude of the signal indicative of the output signal decreasing from above the predetermined threshold to below the predetermined threshold magnitude; responsive to the magnitude of the signal indicative of the output signal increasing from below a second predetermined threshold magnitude lesser than the predetermined threshold magnitude to above the second predetermined threshold magnitude before expiration of the timer, reinitialize the timer for the predetermined duration; and responsive to the expiration of the timer, switch, at an approximate zero crossing of the signal indicative of the output signal, between the first mode and the second mode.
11. The apparatus of claim 9, wherein the control circuit is further configured to: initialize a timer of a predetermined duration responsive to the magnitude of the signal indicative of the output signal decreasing from above the predetermined threshold to below the predetermined threshold magnitude; and responsive to the expiration of the timer prior to the signal indicative of the output signal increasing from below the predetermined threshold magnitude to above the predetermined threshold magnitude, switch, at an approximate zero crossing of the signal indicative of the output signal, between the first mode and the second mode.
12. The apparatus of claim 9, wherein the control circuit is further configured to: initialize a timer of a predetermined duration responsive to the magnitude of the signal indicative of the output signal crossing the predetermined threshold magnitude; and responsive to the expiration of the timer prior to the signal indicative of the output signal again crossing the predetermined threshold magnitude, switch, at an approximate zero crossing of the signal indicative of the output signal, between the first mode and the second mode.
13. The apparatus of claim 1, wherein the control circuit is configured to switch between the first mode and the second mode based on a characteristic of at least one of the input signal and the output signal.
14. The apparatus of claim 13, wherein the characteristic comprises at least one of a frequency of the input signal, an amplitude of the input signal, and a noise characteristic of the input signal.
15. The apparatus of claim 14, wherein the control circuit is configured to: switch from the first mode to the second mode at an approximate completion of a modulation period of the modulated output signal; and switch from the second mode to the first mode at an approximate beginning of another modulation period of the modulated output signal.
16. The apparatus of claim 1, wherein the modulated output signal comprises a pulse-modulated signal.
17. The apparatus of claim 16, wherein the pulse-modulated signal comprises one of a pulse-width modulated signal and a pulse-density modulated signal.
18. The apparatus of claim 1, wherein the unmodulated output signal comprises a continuous-time baseband signal.
19. The apparatus of claim 1, wherein: the amplifier comprises a Class-D modulator; and the final output stage operates as an open-loop switched-mode driver in the first mode and operates as a continuous-time closed-loop amplifier in the second mode.
20. The apparatus of claim 1, wherein when the final output stage is operating in the second mode, the amplifier comprises a first feedback loop including the signal feedback network and a second feedback loop coupled between the amplifier output and the intermediate output.
21. The apparatus of claim 1, wherein switching between the first mode and the second mode comprises at least one of: switching from the first mode to the second mode; and switching from the second mode to the first mode.
22. The apparatus of claim 1, wherein the first stage is switchable among a plurality of modes wherein one or more characteristics of the first stage are different among the plurality of modes.
23. The apparatus of claim 22, wherein the control circuit is further configured to, responsive to predicting the occurrence of the condition, switch between two modes of the plurality of modes of the first stage.
24. The apparatus of claim 22, wherein: the first stage comprises an integrator; and the control circuit is further configured to, responsive to predicting the occurrence of the condition, modify the one or more characteristics of the integrator in order to switch between two modes of the plurality of modes of the first stage.
25. The apparatus of claim 22, wherein: the first stage comprises a first integrator and a second integrator in parallel with the first integrator; and the control circuit is further configured to, responsive to predicting the occurrence of the condition, switch between enabling the first integrator and enabling the second integrator in order to switch between two modes of the plurality of modes of the first stage.
26. A method for operating an amplifier having a plurality of stages comprising at least a first stage configured to receive an input signal at an amplifier input and generate an intermediate signal which is a function of the input signal, and a final output stage configured to generate an output signal at an amplifier output, wherein the output signal is a function of the intermediate signal, and a signal feedback network coupled between the amplifier output and the amplifier input, the method comprising, switching the final output stage among a plurality of modes including at least a first mode in which the final output stage generates the output signal as a modulated output signal which is a function of the intermediate signal, and a second mode in which the final output stage generates the output signal as an unmodulated output signal which is a function of the intermediate signal, wherein structure of the signal feedback network and the first stage remain static when switching between the first mode and the second mode and when switching between the second mode and the first mode, the method comprising: predicting, based on one or more characteristics of a signal indicative of the output signal, an occurrence of a condition for switching between the first mode and the second mode; and responsive to predicting the occurrence of the condition, switching between the first mode and the second mode.
27. The method of claim 26, further comprising responsive to predicting the occurrence of the condition, switching, at an approximate zero crossing of the signal, between the first mode and the second mode.
28. The method of claim 26, wherein the condition for switching between the first mode and the second mode comprises a magnitude of the signal indicative of the output signal crossing a predetermined threshold magnitude.
29. The method of claim 28, further comprising predicting the condition of the signal indicative of the output signal crossing the predetermined threshold magnitude responsive to the magnitude of the signal indicative of the output signal increasing above a second predetermined threshold magnitude less than the predetermined threshold magnitude.
30. The method of claim 28, further comprising predicting the condition of the signal indicative of the output signal crossing the predetermined threshold magnitude responsive to the magnitude of the signal indicative of the output signal decreasing below a second predetermined threshold magnitude greater than the predetermined threshold magnitude.
31. The method of claim 28, further comprising predicting the condition of the signal indicative of the output signal crossing the predetermined threshold magnitude by: tracking signal peaks of the signal indicative of the output signal; extrapolating from the signal peaks a future value of the magnitude of the signal indicative of the output signal; and predicting that the magnitude of the signal indicative of the output signal will cross the predetermined threshold magnitude based on the future value.
32. The method of claim 28, further comprising predicting the condition of the signal indicative of the output signal crossing the predetermined threshold magnitude by: tracking a signal envelope of the signal indicative of the output signal; extrapolating from the envelope a future value of the magnitude of the signal indicative of the output signal; and predicting that the magnitude of the signal indicative of the output signal will cross the predetermined threshold magnitude based on the future value.
33. The method of claim 28, wherein the condition for switching between the first mode and the second mode comprises the magnitude of the signal indicative of the output signal lacking a persistent pattern of magnitude relative to the predetermined threshold magnitude.
34. The method of claim 26, wherein the condition for switching between the first mode and the second mode comprises the magnitude of the signal indicative of the output signal refraining from crossing a predetermined threshold magnitude for a period of time.
35. The method of claim 34, further comprising: initializing a timer of a predetermined duration responsive to the magnitude of the signal indicative of the output signal decreasing from above the predetermined threshold to below the predetermined threshold magnitude; responsive to the magnitude of the signal indicative of the output signal increasing from below a second predetermined threshold magnitude lesser than the predetermined threshold magnitude to above the second predetermined threshold magnitude before expiration of the timer, reinitializing the timer for the predetermined duration; and responsive to the expiration of the timer, switching, at an approximate zero crossing of the signal indicative of the output signal, between the first mode and the second mode.
36. The method of claim 34, further comprising: initializing a timer of a predetermined duration responsive to the magnitude of the signal indicative of the output signal decreasing from above the predetermined threshold to below the predetermined threshold magnitude; and responsive to the expiration of the timer prior to the signal indicative of the output signal increasing from below the predetermined threshold magnitude to above the predetermined threshold magnitude, switching, at an approximate zero crossing of the signal indicative of the output signal, between the first mode and the second mode.
37. The method of claim 34, further comprising: initializing a timer of a predetermined duration responsive to the magnitude of the signal indicative of the output signal crossing the predetermined threshold magnitude; and responsive to the expiration of the timer prior to the signal indicative of the output signal again crossing the predetermined threshold magnitude, switching, at an approximate zero crossing of the signal indicative of the output signal, between the first mode and the second mode.
38. The method of claim 26, further comprising switching between the first mode and the second mode based on a characteristic of at least one of the input signal and the output signal.
39. The method of claim 38, wherein the characteristic comprises at least one of a frequency of the input signal, an amplitude of the input signal, and a noise characteristic of the input signal.
40. The method of claim 39, further comprising: switching from the first mode to the second mode at an approximate completion of a modulation period of the modulated output signal; and switching from the second mode to the first mode at an approximate beginning of another modulation period of the modulated output signal.
41. The method of claim 26, wherein the modulated output signal comprises a pulse-modulated signal.
42. The method of claim 41, wherein the pulse-modulated signal comprises one of a pulse-width modulated signal and a pulse-density modulated signal.
43. The method of claim 26, wherein the unmodulated output signal comprises a continuous-time baseband signal.
44. The method of claim 26, wherein: the amplifier comprises a Class-D modulator; and the final output stage operates as an open-loop switched-mode driver in the first mode and operates as a continuous-time closed-loop amplifier in the second mode.
45. The method of claim 26, wherein when the final output stage is operating in the second mode, the amplifier comprises a first feedback loop including the signal feedback network and a second feedback loop coupled between the amplifier output and the intermediate output.
46. The method of claim 26, wherein switching between the first mode and the second mode comprises at least one of: switching from the first mode to the second mode; and switching from the second mode to the first mode.
47. The method of claim 1, wherein the first stage is switchable among a plurality of modes wherein one or more characteristics of the first stage are different among the plurality of modes.
48. The method of claim 47 further comprising, responsive to predicting the occurrence of the condition, switching between two modes of the plurality of modes of the first stage.
49. The method of claim 47, wherein: the first stage comprises an integrator; and the method further comprises, responsive to predicting the occurrence of the condition, modifying the one or more characteristics of the integrator in order to switch between two modes of the plurality of modes of the first stage.
50. The method of claim 47, wherein: the first stage comprises a first integrator and a second integrator in parallel with the first integrator; and the method further comprises, responsive to predicting the occurrence of the condition, switching between enabling the first integrator and enabling the second integrator in order to switch between two modes of the plurality of modes of the first stage.
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) First stage 22 may include any suitable analog front end circuit for conditioning analog input signal V.sub.IN for use by final output stage 24. For example, first stage 22 may include one or more analog integrators 30 and 32 cascaded in series, as shown in
(15) Final output stage 24 may include any suitable driving circuit for driving audio output signal V.sub.OUT as a function of intermediate signal V.sub.INT (thus, also making audio output signal V.sub.OUT a function of analog input signal V.sub.IN) wherein final output stage 24 is switchable among a plurality of modes including at least a first mode in which final output stage 24 generates audio output signal V.sub.OUT as a modulated output signal which is a function of intermediate signal V.sub.INT and a second mode in which final output stage 24 generates audio output signal V.sub.OUT as an unmodulated output signal which is a function of intermediate signal V.sub.INT. To carry out this functionality, final output stage 24 may include a class-D audio output stage 42 which may be enabled in the first mode (and disabled in the second mode) to generate audio output signal V.sub.OUT as a modulated output signal which is a function of intermediate signal V.sub.INT and a class-AB audio output stage 44 which may be enabled in the second mode (and disabled in the first mode) to generate audio output signal V.sub.OUT as an unmodulated output signal which is a function of intermediate signal V.sub.INT.
(16) Class-D audio output stage 42 may comprise any suitable system, device, or apparatus configured to amplify intermediate signal V.sub.INT and convert intermediate signal V.sub.INT into a series of pulses by pulse-width modulation, pulse-density modulation, or another method of modulation, such that intermediate signal V.sub.INT is converted into a modulated signal in which a characteristic of the pulses of the modulated signal (e.g., pulse widths, pulse density, etc.) is a function of the magnitude of intermediate signal V.sub.INT. After amplification by class-D audio output stage 42, its output pulse train may be converted back to an unmodulated analog signal by passing through a passive low-pass filter, wherein such low-pass filter may be inherent in output circuitry of class-D audio output stage 42 or a load driven by final output stage 24. As shown in
(17) Class-AB audio output stage 44 may comprise any suitable system, device, or apparatus configured to amplify intermediate signal V.sub.INT with a linear gain and convert intermediate signal V.sub.INT into an unmodulated audio output signal V.sub.OUT. For example, in some embodiments, unmodulated audio output signal V.sub.OUT may include a continuous-time baseband signal (e.g., an audio baseband signal). As shown in
(18) As shown in
(19) In some embodiments, a signal gain (e.g., V.sub.OUT/V.sub.INT) of final output stage 24 in the first mode may be approximately equal to the signal gain of final output stage 24 in the second mode. In these and other embodiments, an offset (e.g., direct current offset) of final output stage 24 in the first mode may be approximately equal to the offset of final output stage 24 in the second mode.
(20) As shown in
(21) Signal feedback network 26 may include any suitable feedback network for feeding back a signal indicative of audio output signal V.sub.OUT to the amplifier input of amplifier 16. For example, as shown in
(22) Thus, final output stage 24 may operate as an open-loop switched-mode driver in the first mode and may operate as a continuous-time closed-loop amplifier in the second mode. In addition, when the final output stage is operating in the second mode, amplifier 16 may comprise a first feedback loop including signal feedback network 26 and a second feedback loop coupled between the amplifier output and the intermediate output implemented by signal feedback network 50.
(23) Control circuit 28 may include any suitable system, device, or apparatus configured to receive information indicative of audio output voltage V.sub.OUT, intermediate signal V.sub.INT, and/or other operational characteristic of amplifier 16, and based at least thereon, control operation of one or more components of amplifier 16. For example, control circuit 28 may be configured to, based on a characteristic of analog input signal V.sub.IN (e.g., which may be determined from receiving and analyzing intermediate signal V.sub.INT and/or audio output signal V.sub.OUT) switch between the first mode and the second mode of final output stage 24. Such characteristic may include one or more of a frequency of analog input signal V.sub.IN, an amplitude of analog input signal V.sub.IN, a signal-to-noise ratio of analog input signal V.sub.IN, a noise floor of analog input signal V.sub.IN, or another noise characteristic of analog input signal V.sub.IN. For example, in some embodiments, control circuit 28 may be configured to switch final output stage 24 from the first mode to the second mode when an amplitude of analog input signal V.sub.IN decreases below a threshold amplitude, and may be configured to switch final output stage 24 from the second mode to the first mode when an amplitude of analog input signal V.sub.IN increases above the same threshold amplitude or another threshold amplitude. In some embodiments, to reduce audio artifacts associated with switching between modes, control circuit 28 may also be configured to switch between modes only when the amplitude of audio output signal V.sub.OUT is approximately zero (e.g., when a modulated signal generated by class-D audio output stage 42 is at its minimum voltage in its generated pulse train).
(24) In these and other embodiments, control circuit 28 may further be configured to, in order to reduce audio artifacts induced by switching between the two modes, cause final output stage 24 to switch between the first mode and the second mode at an approximate completion of a modulation period of the modulated output signal output by Class-D audio output stage 42, and cause final output stage 24 to switch between the second mode and the first mode at an approximate beginning of another modulation period of the modulated output signal output by Class-D audio output stage 42.
(25) In addition, control circuit 28 may also be configured to perform calibration of final output stage 24. For example, control circuit 28 may receive and analyze intermediate signal V.sub.INT and audio output signal V.sub.OUT to determine a gain of class-D audio output stage 42 (e.g., the signal gain of final output stage 24 in the first mode) and a gain of class-AB audio output stage 44 (e.g., the signal gain of final output stage 24 in the second mode), and based thereon, modify the gain of class-D audio output stage 42 and/or the gain of class-AB audio output stage 44 in order to calibrate the signal gain of final output stage 24 in the second mode to match the signal gain of final output stage 24 in the first mode. As another example, control circuit 28 may receive and analyze intermediate signal V.sub.INT and/or audio output signal V.sub.OUT to determine an offset (e.g., direct current offset) of class-D audio output stage 42 (e.g., the offset of final output stage 24 in the first mode) and an offset of class-AB audio output stage 44 (e.g., the offset of final output stage 24 in the second mode), and based thereon, modify the offset of class-D audio output stage 42 and/or the offset of class-AB audio output stage 44 in order to calibrate the offset of final output stage 24 in the second mode to match the offset of final output stage 24 in the first mode.
(26) In these and other embodiments, control circuit 28 may also be configured to control characteristics of first stage 22 (e.g., integrators 30 and/or 32) and/or signal feedback network 26. Control circuit 28 may maintain such characteristics and structure of first stage 22 and signal feedback network 26 as static when switching between the first mode and the second mode of final output stage 24 and when switching between the second mode and the first mode. Maintaining the characteristics and structure of first stage 22 and signal feedback network 26 as static when switching between modes allows the modes to share the same analog front end and feedback network, thus reducing or minimizing the likelihood of mismatched signal gain and offset between the modes, and thus reducing or minimizing audio artifacts caused by switching between modes. However, after control circuit 28 has switched final output stage 24 to the second mode (e.g., amplifier output driven by class-AB audio output stage 44), control circuit 28 may modify characteristics of first stage 22 and/or signal feedback network 26 in order to decrease a noise floor of amplifier 16. For example, in some embodiments, control circuit 28 may modify characteristics of integrator 32 (e.g., resistances and/or capacitances of filters internal to integrator 32) and/or other components of first stage 22 in order to decrease a noise floor of amplifier 16 when final output stage 24 operates in the second mode. As another example, in these and other embodiments, control circuit 28 may modify characteristics of signal feedback network 26 (e.g., resistances of variable feedback resistors 48) in order to decrease a noise floor of amplifier 16 when final output stage 24 operates in the second mode. When making such modification, control circuit 28 may, before switching final output stage from the second mode to the first mode, return such characteristics to their unmodified states. Thus, first stage 22 may be reconfigurable among different modes in which bandwidth, noise, linearity, power consumption, and/or one or more other characteristics first stage 22 may differ among modes. The stimulus or condition for switching among modes of first stage 22 may be similar or identical to the stimulus or condition for switching among modes of final output stage 24, as described elsewhere in this disclosure.
(27)
(28) First stage 22A may include any suitable analog front end circuit for conditioning analog input signal V.sub.IN for use by final output stage 24. For example, first stage 22A may include a first set of one or more analog integrators 30A and 32A cascaded in series and a second set of one or more analog integrators 30B and 32B cascaded in series such that the second set is a parallel path to that of the first set, as shown in
(29) Although
(30) When switching integrators in first stage 22A, steps may also be taken to maintain capacitance voltages between first stage 22A and final output stage 24 when switching between modes of first stage 22A, either by maintaining the same capacitances through parts of the signal path and/or by maintaining state variables (e.g., capacitance voltages) when switching among modes.
(31)
(32) At step 52, control circuit 28 may monitor intermediate signal V.sub.INT, audio output signal V.sub.OUT, or another signal indicative of analog input signal V.sub.IN, to determine if analog input signal V.sub.IN has decreased from above to below a threshold amplitude. If analog input signal V.sub.IN has decreased from above to below the threshold amplitude, method 50 may proceed to step 54. Otherwise, method 50 may remain at step 52 until such threshold amplitude crossing occurs.
(33) At step 54, control circuit 28 may monitor audio output signal V.sub.OUT to determine when the amplitude of audio output signal V.sub.OUT is approximately zero (e.g., when a modulated signal generated by class-D audio output stage 42 is at its minimum voltage in its generated pulse train). If audio output signal V.sub.OUT has reached approximately zero, method 50 may proceed to step 55. Otherwise, method 50 may remain at step 54 until audio output signal V.sub.OUT reaches approximately zero.
(34) At step 55, control circuit 28 may monitor audio output signal V.sub.OUT to determine when the modulated output signal output by Class-D audio output stage 42 is at an approximate completion of a modulation period. If the modulated output signal output by Class-D audio output stage 42 is at an approximate completion of a modulation period, method 50 may proceed to step 56. Otherwise, method 50 may remain at step 55 until the modulated output signal output by Class-D audio output stage 42 is at an approximate completion of a modulation period.
(35) At step 56, control circuit 28 may enable clamp 46, thus shorting the output terminals at the amplifier output of amplifier 16 together, forcing audio output signal V.sub.OUT to zero. At step 58, class-AB audio output stage 44 (or another auxiliary amplifier, not shown in
(36) Although
(37) Method 50 may be implemented using personal audio device 1 or any other system operable to implement method 50. In certain embodiments, method 50 may be implemented partially or fully in software and/or firmware embodied in computer-readable media and executable by a controller.
(38)
(39) At step 72, control circuit 28 may monitor intermediate signal V.sub.INT, audio output signal V.sub.OUT, or another signal indicative of analog input signal V.sub.IN, to determine if analog input signal V.sub.IN has increased from below to above a threshold amplitude (which may be the same threshold as that of step 52, or a different threshold). If analog input signal V.sub.IN has increased from below to above the threshold amplitude, method 70 may proceed to step 74. Otherwise, method 70 may remain at step 72 until such threshold amplitude crossing occurs.
(40) At step 74, control circuit 28 may monitor audio output signal V.sub.OUT to determine when the amplitude of audio output signal V.sub.OUT is approximately zero (e.g., when audio output signal V.sub.OUT experiences a zero crossing). If audio output signal V.sub.OUT is approximately zero, method 70 may proceed to step 75. Otherwise, method 70 may remain at step 74 until audio output signal V.sub.OUT is approximately zero.
(41) At step 75, control circuit 28 may monitor audio output signal V.sub.OUT to determine when the modulated output signal output by Class-D audio output stage 42 is at an approximate beginning of a modulation period. If the modulated output signal output by Class-D audio output stage 42 is at an approximate beginning of a modulation period, method 70 may proceed to step 76. Otherwise, method 70 may remain at step 75 until the modulated output signal output by Class-D audio output stage 42 is at an approximate beginning of a modulation period.
(42) At step 76, control circuit 28 may enable clamp 46, thus shorting the output terminals at the amplifier output of amplifier 16 together, forcing audio output signal V.sub.OUT to zero. At step 78, class-D audio output stage 42 (or another auxiliary amplifier, not shown in
(43) Although
(44) Method 70 may be implemented using personal audio device 1 or any other system operable to implement method 70. In certain embodiments, method 70 may be implemented partially or fully in software and/or firmware embodied in computer-readable media and executable by a controller.
(45)
(46) Zero-cross detection circuit 148 may include any suitable system, device, or apparatus for detecting the occurrence of a zero crossing of input signal V.sub.I (or a derivative thereof) and outputting a signal ZERO_DETECT indicating that a zero crossing of such signal has occurred. A zero crossing of a signal may occur when the waveform of such signal crosses a magnitude of zero or crosses another level within a threshold of zero and indicative of a zero crossing (e.g., a low signal level of lower than 70 dB or within a small number of least significant bits of zero).
(47) Signal tracking block 147 may comprise any suitable system, device, or apparatus for tracking a particular parameter of an audio signal, including without limitation a plurality of peaks of such audio signal and/or a signal envelope of such audio signal, and based thereon, generate an output signal TRACKING indicative of such tracked parameter.
(48) State machine 150 may receive signals COMP_OUT, TRACKING, and ZERO_DETECT, and based on one or more of such signals, generate one or more control signals (e.g. CLASS-AB ENABLE, CLASS D ENABLE, etc.) for switching between modes of amplifier 16, as described in greater detail elsewhere in this disclosure. For example, when the magnitude of input signal V.sub.I transitions from above to below a predetermined threshold magnitude (e.g., 24 dB), signal COMP_OUT may indicate such transition and in response, state machine 150 may wait until the occurrence of a zero crossing (as indicated by signal ZERO_DETECT), after which it may cause amplifier 16 to switch from the first mode (e.g., in which Class-D audio output stage 42 is enabled) to the second mode (e.g., in which Class-AB audio output stage 44 is enabled). By changing between modes at a zero crossing of input signal V.sub.I (or a derivative thereof), the change and any auditory artifacts associated with the change may be masked and therefore be unnoticeable or less noticeable to a listener of an audio device including audio IC 9.
(49) As another example, when the magnitude of input signal V.sub.I transitions from below to above a predetermined threshold magnitude (e.g., 24 dB), signal COMP_OUT may indicate such transition, and in response state machine 150 may cause amplifier 16 to switch from the second mode (e.g., in which Class-AB audio output stage 44 is enabled) to the first mode (e.g., in which Class-D audio output stage 42 is enabled). However, when transitioning to the first mode, it may not be desirable to wait for a zero cross of the output signal, as a transition from below to above the predetermined threshold magnitude may almost immediately lead to clipping of the audio signal. Accordingly, it may be desirable to predict whether the magnitude of input voltage V.sub.I is likely to cross such predetermined threshold and switch the amplifier mode responsive to such prediction at a zero crossing event of input voltage V.sub.I occurring before crossing of the predetermined threshold by input voltage V.sub.I. By applying such predictive techniques, examples of which are explained below and illustrated by
(50) As depicted in the example waveform graph for input signal V.sub.I versus time shown in
(51) Responsive to input voltage V.sub.I increasing above such secondary threshold, control circuit 28 may wait for the next zero-crossing event of input voltage V.sub.I (e.g., as detected by zero-cross detection circuit 148) which occurs at time t.sub.2 shown in
(52) In some embodiments, state machine 150 may also implement a timing element (e.g., a timer or counter) in connection with a secondary threshold to determine whether input voltage V.sub.I will increase above a primary threshold. To illustrate, to predict whether input voltage V.sub.I will increase above a primary threshold (e.g., 21 dB relative to full-scale voltage of input voltage V.sub.I) for switching from the second mode to the first mode, control circuit 28 may monitor (e.g., with comparator block 146) whether input voltage V.sub.I increases above a secondary threshold (e.g., 22 dB relative to input voltage V.sub.I) lower than the primary threshold, which occurs at time t.sub.4 shown in
(53) In these and other embodiments, control circuit 28 may employ signal tracking techniques to predict whether input voltage V.sub.I may increase above a secondary threshold. For example, control circuit 28 (e.g., via signal tracking block 147) may track a peak trend of the magnitude peaks of input voltage V.sub.I as shown in
(54) Although
(55) In addition or alternatively to the embodiments discussed above, control circuit 28 may employ a secondary threshold and a timing element to predict whether magnitude of input voltage V.sub.I is to decrease below a predetermined primary threshold and remain below such primary threshold, as illustrated in
(56) In addition or alternatively to the embodiments discussed above, control circuit 28 may employ one or more timing elements to disable switching between amplifier modes when the magnitude of input voltage V.sub.I hovers near a primary threshold, as illustrated in
(57) In addition or alternatively to the embodiments discussed above, control circuit 28 may be configured to predict when input voltage V.sub.I has a persistent pattern of magnitude relative to a primary threshold, as illustrated in
(58) Using the methods and systems herein disclosed, changes in an amplifier mode of a signal path and audio artifacts associated therewith may be masked by predicting an amplifier mode threshold-crossing and in response to such prediction, pre-emptively switching ahead of such threshold-crossing at a zero-crossing of an audio signal. In the case of quickly-rising signals that cross a threshold for switching between amplifier modes, such prediction and preemptive switching at a zero-crossing may not be necessary to avoid audio artifacts, as a quickly-rising transient nature of a signal may mask audio artifacts. However, in the case of a slower-rising signal that crosses an amplifier mode threshold-crossing, the transient effects may not mask audio artifacts, and thus the methods and systems disclosed herein for predicting an amplifier mode threshold-crossing and in response to such prediction may be employed to mask such artifacts.
(59) In addition to the foregoing functionality, state machine 150 may also be configured to determine a spectral content of a signal indicative of output voltage signal V.sub.OUT (e.g., input voltage V.sub.I) and may switch the amplifier mode based on the spectral content. To illustrate,
(60) Level detection circuit 164 may include any suitable system, device, or apparatus for receiving the filtered signal generated by filter 162, determining a magnitude of such signal, and outputting a signal indicative of such magnitude. Comparator block 166 may compare the output signal of level detection circuit 162 with a predetermined threshold magnitude, and based on such comparison, output a signal MODE_SELECT indicative of whether the filtered signal is greater or lesser than such predetermined threshold magnitude. The signal MODE_SELECT may indicate whether to change between amplifier modes of amplifier 16. For example, if the filtered signal generated by filter 162 is above the predetermined threshold magnitude, state machine 150 may switch amplifier 16 from the second mode (e.g., Class-AB audio output stage 44 enabled) to the first mode (e.g., Class-D audio output stage 42 enabled). On the other hand, if the filtered signal generated by filter 162 is below the predetermined threshold magnitude, state machine 150 may switch amplifier 16 from the first mode (e.g., Class-D audio output stage 42 enabled) to the second mode (e.g., Class-AB audio output stage 44 enabled).
(61) In these and other embodiments, the spectral content of output voltage signal V.sub.OUT may be used to vary other parameters associated with changing the amplifier mode of amplifier 16. For example, as described above, in some embodiments, state machine 150 may change amplifier modes based on a signal indicative of output voltage signal V.sub.OUT crossing a threshold magnitude (e.g., either from below to above the threshold magnitude or vice versa). In such embodiments, such threshold magnitude for changing amplifier modes may be based on the spectral content of a signal indicative of output voltage signal V.sub.OUT (e.g., input signal V.sub.I). In other words, in such embodiments, comparator block 166 of
(62) In yet other embodiments, the spectral content of the signal indicative of output voltage signal V.sub.OUT may be used as a basis of whether to change amplifier modes.
(63) 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.
(64) This disclosure encompasses all changes, substitutions, variations, alterations, and modifications to the exemplary 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 exemplary 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.
(65) All examples and conditional language recited herein are intended for pedagogical objects to aid the reader in understanding the invention 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 inventions 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.