Class D amplifier circuit, integrated circuit and electronic device including the same
By introducing a signal selector block and controller into the Class D amplifier circuit, switching the operating mode according to the signal amplitude, the problems of high power consumption and strict noise characteristics of Class D amplifier circuit in portable devices are solved, and high efficiency and low power consumption are achieved Signal amplification.
Patent Information
- Application Number
- CN202010777936.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2014-08-29
- Filing Date
- 2015-08-24
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2035-08-24
AI Technical Summary
Existing Class D amplifier circuits have high power consumption and strict noise characteristics at low signal amplitude, making it difficult to achieve efficient amplification in portable devices, and are limited in size and power efficiency.
By introducing a signal selector block and a signal selection controller in a Class D amplifier circuit, the operation mode is dynamically switched according to the amplitude of the input signal, thereby using an error signal for closed-loop operation at high signal amplitude and switching to open-loop at low signal amplitude Operation reduces the use of feedback error signals and reduces the noise requirements for ADC.
It realizes reducing power consumption and size at low signal amplitude, improving power efficiency while maintaining high signal quality, and avoiding the increase in noise caused by feedback error signals in conventional amplifiers.
Smart Images

Figure CN111900935B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with the application date of August 24, 2015, application number 201580058056.5, and name “Class D Amplifier Circuit”. Technical Field
[0002] The present invention relates to class D amplifier circuits and, more particularly, to a class D amplifier that selectively varies a signal component used to drive an amplifier output stage based on the signal amplitude. Background Art
[0003] Figure 1 An embodiment of a conventional class D amplifier is illustrated. The modulator 101 controls the class D output stage 102 based on the input signal, which is the digital input signal Din in this embodiment, to generate an output signal Vout. The output stage 102 includes a plurality of switches for switching the output stage 102 between a plurality of voltages (e.g., a power supply voltage VDD and a ground voltage, or a positive power supply voltage +VDD and a negative power supply voltage -VDD). As will be appreciated by those skilled in the art, the output stage 102 may include a half-bridge switch arrangement or a full-bridge switch arrangement, and is switched to output an analog output signal Vout, which may be a differential output signal in some embodiments.
[0004] The modulator 101 receives an input signal (which is a digital signal Din in this embodiment) and derives at least one appropriate control signal for an output stage 102. A standard digital modulator 101 has a well-defined transfer function, for example, flat and with a defined gain over a certain passband frequency range. Ideally, this digital domain signal processing provides high performance and avoids the non-zero signal attenuation associated with noise, component mismatch, and nonlinearity that analog circuit systems have.
[0005] However, the output signal Vout is an analog signal, and its performance is limited by the analog effects in any output driver stage of the amplifier. For example, output driver transistor on-resistance, finite rise and fall times, propagation delays, power supply ripple, and output impedance. In addition, any power supply ripple will cause a proportional gain change in the output driver stage.
[0006] Negative feedback techniques are often used to suppress signal distortion caused by these reasons. Figure 1 The class D amplifier thus has a feedback path including an analog-to-digital converter (ADC) 103 and a subtractor 104 .
[0007] ADC 103 is adapted to receive an analog output signal Vout and generate a digital signal representing this output signal. This digital signal is then subtracted from the digital input signal Din by subtractor 104 to generate an error signal. Loop filter 105 (which may be, for example, a digital integrator) filters the error signal to generate a modulator input signal that is supplied to digital modulator 101.
[0008] The performance of such an amplifier circuit is limited by the noise, resolution, and linearity of the ADC 103. To avoid introducing unwanted noise into the amplifier circuit, the ADC must have good noise characteristics, which typically requires the use of a relatively high performance continuous time ADC. Such an ADC is relatively large (in terms of silicon area in the integrated circuit) and has a relatively high power consumption in use.
[0009] Typically, class D amplifier circuits have been used in relatively high power applications, such as mains powered audio equipment, where size and power consumption are not critical. However, class D amplifiers are increasingly being considered for applications in portable devices and the like. With the move to smaller geometries in silicon manufacturing processes, it is advantageous to use circuits that are primarily digital. Class D amplifiers may include a largely digital architecture, and therefore class D amplifiers are increasingly being proposed for driving small speakers, such as portable devices, or even for earbud applications / headphone applications where power is typically relatively low. In such applications, size and power efficiency are factors to consider for the amplifier circuits. Summary of the invention
[0010] It would therefore be desirable to provide a class D amplifier circuit that alleviates at least some of the above-mentioned disadvantages.
[0011] According to the present invention, there is provided a class D amplifier circuit for receiving a digital input signal and outputting an analog output signal, comprising:
[0012] a Class D output stage;
[0013] a digital modulator for generating at least one control signal for controlling the class-D output stage based on a modulator input signal;
[0014] an error block for generating an error signal based on the output signal and the digital input signal;
[0015] a signal selector block configured to receive the error signal at a first input, receive a version of the digital input signal at a second input, and generate the modulator input signal; wherein:
[0016] The signal selector block is operable in a first mode of operation and a second mode of operation, wherein:
[0017] In a first mode, the modulator input signal is based at least in part on the error signal; and
[0018] In a second mode, the modulator input signal is based on the digital input signal and is independent of the error signal; and
[0019] A signal selection controller is configured to control an operating mode of the signal selector block based on an indication of the magnitude of the digital input signal.
[0020] The signal selector block may include a first signal path between the first input and a selector module, and include a second signal path between the second input and the selector module. The selector module may be configured to generate the modulator input signal from signals from the first signal path and the second signal path.
[0021] The selector module may be operated in a combiner state to combine a signal from the first signal path with a signal from the second signal path to provide the modulator input signal, and / or may be operated in a pass-through state to provide a signal from the second signal path as the modulator input signal. The signal selection controller may be configured to control the selector module in a combiner state in a first mode and to control the selector module in a pass-through state in a second mode.
[0022] In some embodiments, the selector module is configured to select a signal from the first signal path or a signal from the second signal path to provide the modulator input signal. The signal selection controller can be configured to control the selector module to select a signal from the first signal path in a first mode and to select a signal from the second signal path in a second mode.
[0023] In some embodiments, the first signal path includes at least one variable gain element. The signal selection controller can be configured to control the at least one variable gain element to provide a first gain setting in the first mode and a second gain setting in the second mode. The second gain setting can be zero.
[0024] In some embodiments, the signal selection controller is configured to control the at least one variable gain element to provide a controlled gain transition between the first gain setting and the second gain setting involving at least one intermediate gain setting. The controlled gain transition may include a gain ramp.
[0025] In some embodiments, the variable gain element includes a multiplier.
[0026] The first signal path may include a loop filter. The at least one variable gain element may be located in the first signal path downstream of the loop filter. Additionally or alternatively, in some embodiments, the loop filter has a variable gain, and the at least one variable gain element may include the loop filter. The loop filter may include an integrator, and the signal selection controller may be configured to control an integrator time constant of the integrator to change the gain of the loop filter. The signal selection controller may be configured to enable the loop filter in a first mode and disable the loop filter in a second mode.
[0027] In some embodiments, the error block includes an analog-to-digital converter (ADC) coupled to receive the output signal. The error block may also include a subtractor that may generate an error signal based on the output of the ADC and the digital input signal. The signal selection controller may be configured to enable the analog ADC in a first mode and disable the ADC in a second mode.
[0028] The amplifier circuit may further comprise an envelope detector for determining an envelope value of the digital input signal. The signal selection controller may be configured to use the envelope value as an indication of the amplitude of the digital input signal.
[0029] The envelope detector may impose a predetermined delay between any detected drop in the signal envelope and a reduction in the envelope value.In some embodiments, the envelope detector receives a version of the digital input signal.
[0030] In some embodiments, the signal selection controller is configured to receive an indication of a volume control setting and use the indication of the volume control setting as an indication of the amplitude of the digital input signal.
[0031] The signal selection controller may be configured to transition from the first mode of operation to the second mode of operation if the indication of the amplitude of the digital input signal falls below a first amplitude threshold. It may also be configured to transition from the second mode of operation to the first mode of operation if the indication of the amplitude of the digital input signal rises above a second amplitude threshold. The first threshold may be the same as the second threshold, or the thresholds may be different.
[0032] The signal selection controller may be configured to initiate any transition between the first mode and the second mode when the amplitude of the input signal is at or below a first amplitude level. The class D amplifier circuit may include a low level detector for detecting when the amplitude of the input signal is at or below the first amplitude level.
[0033] Embodiments are also directed to an integrated circuit comprising a class D amplifier circuit as described in any of the above variations. Still other embodiments are directed to an electronic device comprising such an integrated circuit or an amplifier circuit as described in any of the above variations. The device may be at least one of: a portable device; a battery-powered device; a computing device; a communication device; a gaming device; a mobile phone; a personal media player; a laptop, tablet, or notebook computing device.
[0034] According to another aspect of the present invention, there is provided a method of operating a Class D amplifier circuit, comprising: receiving a digital input signal; and providing a modulator input signal to a digital modulator so as to control a Class D output stage to produce an output signal; wherein the method comprises selectively changing between a first operating mode and a second operating mode based on an indication of the amplitude of the digital input signal; wherein, in the first operating mode, the modulator input signal is at least partially based on an error signal, which is generated based on the output signal and the digital input signal; and in the second operating mode, the modulator input signal is based on the digital input signal and is independent of the error signal.
[0035] In yet another aspect of the present invention, there is provided a Class D amplifier circuit for receiving an input signal and outputting an output signal, the amplifier circuit comprising: a Class D output stage; a controller for generating at least one control signal to control the output stage; and an error block for deriving an error signal from the output signal and the input signal; wherein the controller is capable of operating in a first operating mode, wherein the at least one control signal is at least partially based on the error signal, and is also capable of operating in a second operating mode, wherein the at least one control signal is based on the input signal and does not include any component from the error signal; and wherein the controller is configured to selectively change between the first operating mode and the second operating mode based on an indication of the amplitude of the input signal.
[0036] In yet another aspect, a class D amplifier circuit is provided that changes between open-loop and closed-loop operation based on an indication of an input signal amplitude.
[0037] In yet another aspect of the present invention, a class D amplifier circuit is provided that controllably transitions between an open-loop mode of operation and a closed-loop mode of operation in response to a characteristic of an amplitude of an input signal.
[0038] In yet another aspect of the present invention, there is provided a class D amplifier circuit for amplifying an input signal, the class D amplifier circuit selectively switching between an open-loop operation mode and a closed-loop operation mode in response to characteristics of an amplitude of the input signal.
[0039] In yet another aspect of the present invention, there is provided a class D amplifier circuit for receiving a digital input signal and outputting an analog output signal, comprising:
[0040] a Class D output stage;
[0041] a digital modulator for generating at least one control signal for controlling the class-D output stage based on a modulator input signal;
[0042] an error block for generating an error signal, the error block comprising an analog-to-digital converter for receiving an indication of the analog output signal, and a subtractor for generating the error signal based on an output of the analog-to-digital converter and the digital input signal;
[0043] A signal selector block, including:
[0044] A selector module;
[0045] a first signal path between a first input for receiving the error signal and the selector module; and
[0046] a second signal path between a second input for receiving the digital input signal and the selector module;
[0047] wherein the selector module is configured to generate the modulator input signal from signals from the first signal path and the second signal path; and
[0048] A signal selection controller is configured to vary a gain applied in the first signal path based on an indication of the amplitude of the digital input signal.
[0049] In yet another aspect of the present invention, there is provided a Class D amplifier circuit for receiving an amplifier input signal and outputting an output signal, comprising: a Class D output stage; a modulator for generating at least one control signal for controlling the Class D output stage based on the modulator input signal; an error block for generating an error signal based on the output signal and the amplifier input signal; a signal selector block configured to receive the error signal at a first input and the digital input signal at a second input, and generate the modulator input signal; and a signal selection controller configured to control the amplifier circuit to change the extent to which the error signal contributes to the modulator input signal based on an indication of the amplitude of the amplifier input signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 An embodiment of a known class D amplifier circuit is illustrated;
[0051] Figure 2 A class D amplifier circuit according to an embodiment of the present invention is illustrated;
[0052] Figure 3 A flow chart illustrating one embodiment of a method of swapping between a first operating mode and a second operating mode;
[0053] Figure 4 One embodiment of an analog-to-digital converter suitable for use in one embodiment of the present invention is illustrated;
[0054] Figure 5 An embodiment of a current controlled oscillator is illustrated;
[0055] Figure 6 An embodiment of a digital modulator is illustrated;
[0056] Figure 7 One embodiment of an output driver stage suitable for use in one embodiment of the present invention is illustrated;
[0057] Figure 8One embodiment of a loop filter suitable for use in one embodiment of the present invention is illustrated;
[0058] Fig. 9 illustrates a class D amplifier circuit according to another embodiment of the present invention;
[0059] Fig.10 A class D amplifier circuit according to yet another embodiment of the present invention is illustrated;
[0060] Fig.11 A class D amplifier circuit according to yet another embodiment of the present invention is illustrated;
[0061] Fig.12 illustrates a class D amplifier circuit according to another embodiment of the present invention; and
[0062] Fig.13 A device having a class D amplifier circuit according to an embodiment of the present invention is illustrated. DETAILED DESCRIPTION
[0063] As previously mentioned, a class D amplifier for receiving an input signal and generating an output signal typically includes a modulator for controlling a class D output stage based on a modulator input signal. An error block may be provided, which may, for example, include an ADC and a subtractor in a feedback path to generate an error signal based on an output signal and an input signal, for example, a difference between a converted version of the output signal and an input signal. Embodiments of the present invention relate to a class D amplifier circuit, wherein the degree of contribution of the error signal to the modulator input signal is variable based on an indication of the amplitude of the input signal. In some embodiments, the amplifier circuit may selectively vary between at least two operating modes based on the amplitude of the input signal. In a first operating mode, the modulator input signal may be based at least in part on the error signal. In a second operating mode, the modulator input signal may be based on the input signal, but may be independent of the error signal. At a relatively high signal amplitude, the amplifier may operate in a first operating mode, and at a relatively low signal amplitude, the amplifier may operate in a second mode (e.g., an open-loop operating mode).
[0064] Therefore, at high signal levels, the error signal is used to help reduce any distortion in the output signal. However, at low signal levels, the degree of any distortion is less significant, and therefore the feedback error signal is not used. Since the error signal is only used at relatively high signal levels, the noise requirements of the components (such as ADC) of the error block are relaxed compared to the conventional implementation that always uses the error signal during steady-state operation. In fact, at low signal levels (where the noise floor of the amplifier circuit is more significant), the error signal is not used. This means that, for example, a smaller and / or lower-power ADC than would otherwise be required can be implemented in the error block, thereby reducing the size of the amplifier circuit and / or increasing the power efficiency of the amplifier circuit, but without any significant reduction in signal quality or noise performance. In some embodiments, as will be described in more detail later, some components associated with generating an error signal or processing an error signal can even be disabled in the second operating mode to provide additional power savings.
[0065] Figure 2 A class D amplifier circuit is illustrated in accordance with one embodiment of the present invention, generally indicated at 200. A modulator 201 (in this example a digital modulator) controls the Figure 1 Depicted class D output stage 202. In some embodiments, output driver stage 202 may be a full H-bridge class D amplifier output stage or a half-bridge class D amplifier output stage or any other suitable amplifier output stage.
[0066] exist Figure 2 In the embodiment of FIG. 2 , the input of the digital modulator 201 is the modulator input signal Dm received from the signal selector block 203. The signal selector block 203 receives the error signal ε at a first input 204 from the error block 205. The signal selector block also receives a version of the input signal Din at a second input 206.
[0067] The error block 205 generates an error signal ε from the digital input signal Din and the analog output signal Vout. In this embodiment, the error signal is based on a comparison between the digital input signal Din and the analog output signal Vout.
[0068] like Figure 2, the error block 205 may include an analog-to-digital converter (ADC) 207 that receives an analog output signal Vout and outputs a digital signal representing the analog output signal. A digital subtractor 208 receives the output of the ADC 207 and a version of the digital input signal Din and generates an error signal ε. In some embodiments, the analog output signal Vout may be input to the ADC 207 after being filtered by a low-pass filter 209. This helps provide suppression of any high-frequency signals and transients at the output to prevent them from being mixed down to the audio frequencies due to imperfections of the ADC.
[0069] The signal selector block 203 is operable to autonomously change the extent to which the error signal ε contributes to the modulator input signal Dm based on an indication of the amplitude of the input signal Din. In one embodiment, the signal selector block 203 is operable in two operating modes. In the first mode, the modulator input signal Dm is at least partially based on the error signal. Therefore, the first mode corresponds to a closed-loop operating mode of the amplifier circuit. However, in the second mode, the modulator input signal Dm is based on the digital input signal Din and is independent of the error signal ε. Therefore, the second mode corresponds to an open-loop operating mode of the amplifier circuit.
[0070] The signal selector block 203 thus includes a first signal path between its first input 204 and a first input of a selector module 210, and a second signal path between its second input 206 and a second input of the selector module 210. The selector module 210 is configured to obtain a signal from one or both of the first signal path and the second signal path to provide a modulator input signal Dm. The signal selector module 210 can be implemented in a variety of ways, as will be described in more detail later.
[0071] The first signal path is therefore the signal path of the error signal ε. This signal path may include a loop filter 211 for filtering the error signal ε in the same manner as described above with respect to Figure 1 The error signal is filtered in a similar manner as described. The open loop gain of the loop including the loop filter 211 should preferably be high at audio frequencies and also remain stable at higher frequencies. The loop filter 211 can therefore be, for example, a first order integrator or possibly a high order filter with high gain at the audio signal band and low gain at higher frequencies.
[0072] The second signal path is a signal path of the input signal Din. Figure 2 No signal processing is illustrated in the second signal path, but if desired there may be one or more signal conditioning components such as filters located in this signal path.
[0073] As mentioned above, the signal selection block 203 can operate in a first mode in which the modulator input signal is at least partially based on the error signal. Therefore, in the first operating mode, there is an error signal component from the first signal path to the modulator input signal Dm. In the second operating mode, the modulator input signal is based on the input signal Din and is independent of the error signal, so in the second operating mode, there is an input signal component from the second signal path to the modulator input signal Dm, and there is actually no signal component from the first signal path (at least no signal component corresponding to the error signal).
[0074] There are many ways to enable the first mode of operation and the second mode of operation, and as mentioned above, the selector module 210 can take many forms. For example, in some embodiments, the selector module can receive signal components from the first signal path and the second signal path, and can select the signal from the first signal path or the second signal from the second signal path to provide the modulator input signal Dm. The selector module 210 can therefore include a switch module that switches its output between the two signal paths. The selector module 210 can be controlled by a signal selection controller 212. The switch module can include one or more physical switch elements and / or can be implemented by a digital switch, which can be a physical multiplexer including a combinational logic element, or can, for example, change the address of a register from which signal data is obtained. Therefore, in such an embodiment, the signal from the first signal path (e.g., the filtered error signal) is used in the first mode (without the component from the second signal path), and the signal from the second signal path (e.g., the input signal Din) is used in the second mode without any component from the first signal path. However, in such an implementation, there may be a gross transient switching between modes, for example, because the loop filter is settling after the change to the first mode, or because error components are removed when switching to the second mode.
[0075] Therefore, in some embodiments, the selector module 210 can be a combiner for combining the signals from the first signal path and the second signal path to provide the modulator input signal Dm at least in the first mode. In the first mode, the selector module 210 can therefore be a combiner used as an adder. In such an embodiment, the filtered error signal from the first signal path can be added to the input signal from the second signal path in the first mode. In the second mode, the signal from the second signal path can be the only contribution to the modulator input signal Dm.
[0076] The combiner selector module 210 is thus operable in two states: state 1, which is a combiner operating state to combine signals from the first signal path and the second signal path in a first mode; and state 2, which is a low-pass operating state in which only the signal from the second signal path is used. The relevant operating state of the selector module 210 can be controlled by the controller 212. Additionally or alternatively, the amplifier circuit can be configured so that no signal-related component of the error signal is received at the selector module 210 in the second mode. In other words, in the second mode, the signal from the second signal path received at the combiner selector module 210 has a constant, non-signal-related static value, such as zero. In this case, the selector module 210 may include a simple adder or the like. The adder may operate in the same manner in the first mode and the second mode, but in the second mode, there is no signal component received from the error signal at the adder, and therefore the modulator input signal Dm will be independent of the error signal. However, in some embodiments, it is preferred that the controller 212 operates the combiner selector module 210 in a pass-through state in the second operating mode even when there are no signal-related components received from the second signal path to avoid the computational overhead of repeatedly adding zeros to the signal from the first signal path.
[0077] There are many ways to remove the contribution of the error signal to the input of the selector module 210. For example, the signal in the first signal path can be effectively blocked or attenuated to zero in the second mode. In some embodiments, there may be at least one variable gain element 213 located in the first signal path that applies a controlled gain. The signal selection controller 212 can be configured to control at least one variable gain element 213 to provide a first gain setting in the first mode, which is a nominal non-zero gain setting. In the second mode, the gain can be set to zero. Additionally or alternatively, the loop filter 211 can have a variable gain, which can be set to zero by the controller 212 in the second operating mode.
[0078] In some embodiments, an error signal may not be generated in the second operating mode. For example, one or more components of the error block 205 may be controlled so that the output of the error block is a constant zero, so that in the second operating mode there is no error signal received at the first input of the signal selector block 203, and therefore no error signal related component received at the selector module.
[0079] It will therefore be clear that in some embodiments, when the signal selection block 203 operates in the first mode, the (signal-dependent) error signal is added to the input signal from the second signal path to form the modulator input signal Dm. However, in the second mode, only the input signal from the second signal path is used for the modulator input signal. In such embodiments, any total transients involved in switching between modes may be lower than the total transients discussed above with respect to embodiments that simply step between using only the input signal or only the error signal.
[0080] In some embodiments, to minimize or eliminate any undesirable transients, there may be a controlled gain transition applied in the first signal path during a mode change between the first mode and the second mode. For example, as mentioned, there may be a variable gain element, such as digital multiplier 213, in the first signal path. Figure 2 The variable gain element 213 located downstream of the loop filter 211 is illustrated, but similarly, the gain element can be located upstream of the loop filter 211 in addition or alternatively and / or as mentioned, the gain of the loop filter 211 itself can be variable. The signal selection controller 212 can be configured to control at least one variable gain element, for example, a multiplier 213, to provide the first non-zero gain setting in the first mode and to provide a second gain setting in the second mode. The second gain setting can be zero, but in some embodiments can be a non-zero gain setting lower than the first gain setting. The variable gain element can be controlled to provide a controlled gain transition involving at least one intermediate gain setting between the first gain setting and the second gain setting. For example, there may be a gain ramp within a specific time period. For example, considering that the signal selector block changes the mode from the first operating mode to the second operating mode. In the first operating mode, the gain applied to the first signal path is at the first gain setting. The controller 212 can then initiate a controlled gain transition during the mode change to the second mode. The gain applied by the multiplier 213 can then be controllably ramped down to a second gain setting within a defined time period. The second gain setting can be zero, in which case the second mode is enabled when the gain reaches zero. However, in other embodiments, the second gain setting can be a small but not zero gain setting that is low enough so that if the selector module 210 is switched to a pass-through state in the second operating mode, there will be no noticeable transients.
[0081] The signal selection controller 212 determines whether to operate in the first operating mode or the second operating mode based on an indication of the magnitude of the input signal Din. Figure 2As illustrated in , an envelope detector 214 may be provided to derive an envelope value ENV of the digital input signal, which envelope value ENV is provided to the controller 212. In some embodiments, the envelope detector 214 may receive the input digital signal Din. However, in some embodiments, as an alternative, a signal from the signal path of the amplifier circuit may be used to determine the envelope value, for example, a signal derived from the modulator 201. However, it should be appreciated that, alternatively, an indirect indication of the amplitude of the digital input signal Din may be provided, for example, the volume control signal Vol may be considered as an indication of the maximum amplitude. In other arrangements, a signal (such as an envelope value) may be determined upstream and provided to the amplifier circuit, or a downstream load characteristic may be used as an indication of the signal amplitude.
[0082] exist Figure 2 In some embodiments, the controller 212 receives an envelope value ENV and determines whether to operate in a first operating mode or a second operating mode. If ENV indicates that the input signal has a relatively large amplitude, the first operating mode is selected, i.e., the closed-loop operating mode of the amplifier. If ENV indicates that the input signal has a relatively small amplitude, the second operating mode is selected, i.e., in this embodiment, the open-loop operating mode. In some embodiments, the signal selection controller 212 can be configured to transition from the first operating mode to the second operating mode if the envelope value (i.e., an indication of the amplitude of the digital input signal Din) drops below a first amplitude threshold, and to transition from the second operating mode to the first operating mode if the envelope value rises above a second amplitude threshold. The first amplitude threshold and the second amplitude threshold can be the same or can be different, for example, to apply some hysteresis.
[0083] Therefore, when the signal is relatively low, the error signal is not used because the low amplitude input signal results in an output signal that is less affected by any inherent distortion in the output driver stage (e.g., caused by any potential power supply ripple or other error source). The noise floor of the amplifier system is therefore mainly determined by the digital modulator 201, which can be designed accordingly. However, when the amplitude of the digital input signal Din is relatively high, the output signal will suffer more inherent distortion. Therefore, at higher amplitudes, the amplifier is operated in a closed-loop mode so that the errors caused by these distortions can be reduced. Therefore, the components of the error block (such as ADC 207) are designed to reduce distortion, etc. at higher signal levels. However, at higher signal levels, the noise floor performance of ADC 207 is not so important, and therefore ADC 207 can be designed under relaxed constraints compared to conventional class D amplifiers with such feedback loops that always operate in steady-state operation. This dual operating mode (i.e., open-loop operating mode / closed-loop operating mode) of the Class D amplifier advantageously allows the use of a smaller ADC and / or an ADC that consumes less power than would otherwise be the case. By being able to switch between a closed-loop operating mode and an open-loop operating mode, the system as a whole enables optimization of the power consumption of the ADC while still maintaining a high performance response. Furthermore, being able to transition between a closed-loop operating mode and an open-loop operating mode in a controlled manner advantageously minimizes any output signal artifacts.
[0084] Figure 3 An example of an embodiment according to the present invention is shown in Figure 2 A flow chart of one embodiment of how an amplifier may transition between modes is illustrated in FIG.
[0085] If the signal peak level decreases 301a, the envelope detector value ENV may be decreased 302a according to the decay time constant and possibly the hold time of the envelope detector. To avoid often unnecessary changes between modes, the envelope detector 214 may apply a hold time before reducing the envelope value in response to a decrease in the peak signal level, and may apply a relatively slow decay constant. If the signal peak level increases 301b, the envelope detector value ENV may be increased 302b according to the attack time constant. If the envelope detector block 214 employs a relatively short attack time, this will ensure that a fast spike in the digital input signal Din will result in a fast reaction of the envelope detection circuit 214, and thus a fast response may be made to transfer to a closed-loop operating mode, and to ensure that a feedback loop is implemented to reduce any errors caused by higher signals in the output driver stage. In contrast, a long decay time will avoid unnecessary switching of operating modes, as it is likely that a high amplitude signal peak will be followed in rapid succession by another high amplitude signal. In some embodiments, pre-emphasis filtering may also be used to increase and accelerate the rising edge of the signal.
[0086] The signal selection controller 212 monitors a signal 303 indicating the amplitude of the input signal, for example, an envelope value. The controller 212 may, for example, compare the signal ENV to at least one predetermined threshold to automatically determine whether to enter an open-loop mode (second mode) or a closed-loop mode (first mode). There may be a single amplitude threshold, or there may be different amplitude thresholds: one threshold for changing from the first mode to the second mode; and another different threshold for changing from the second mode to the first mode to apply hysteresis to the mode change.
[0087] If the amplitude of the signal does not change relative to the associated predetermined threshold, then the operating mode does not change and the signal selection controller continues to monitor the indication signal ENV 303 .
[0088] If the indication signal ENV drops below the relevant predetermined threshold, the signal selection controller 212 will decide to enter the open-loop mode (i.e., the second mode), as in step 304. In this embodiment, the gain applied by the variable gain element (such as, multiplier 213) in the first signal path is set to slow down to zero from the first gain in step 305. A predetermined gain ramp will be applied in a relatively short time period, but sufficient time periods will not cause significant transients in the output signal. Once the gain has reached zero, ADC 207 and / or loop filter 211 can be disabled in step 306. Disabling ADC and / or loop filter when not needed helps save power and improves the efficiency of the amplifier circuit. In step 307, the selector module 210 can also be placed in a pass-through mode to use only the input signal from the second signal path. By allowing the gain ramp applied by the variable gain element 212 to become zero before disabling the ADC or placing the selector module in the pass-through mode, any total transient is reduced, and thus the output signal artifacts that will only be caused by suddenly disabling the ADC or switching the selector module (i.e., step change) to the pass-through mode are reduced. It should be noted that both step 306 and step 307 are optional and one or both steps may not be used in some embodiments. In addition, the order of step 306 and step 307 may be reversed. In addition, in some embodiments, only when the signal amplitude remains low within a certain time period and / or when the signal amplitude drops below another lower limit threshold, the step 306 of disabling a component (such as, loop filter) is implemented. It may take time and / or power to re-enable the loop filter, and therefore it may only be disabled when it may be disabled for more than a very short time, for example.
[0089] Referring back to step 303, if the indication signal ENV exceeds the relevant predetermined threshold, the signal selection controller 212 will decide to enter the closed-loop mode (first mode), as in step 308. In this embodiment, ADC 207 and / or loop filter 211 are first enabled in step 309. This may involve waiting for a short time period to allow the ADC / loop filter to stabilize. Because the amplifier circuit is still in open-loop mode at this stage, the gain applied by the variable gain element (e.g., multiplier 213) will have been set to zero, although if the loop filter 211 is a variable gain element and has been disabled, it should be re-enabled with zero gain. If the filter 211 has been running, it can have a non-zero output that may be incorrect, and therefore the output of the loop filter 211 can be reset to zero. In step 311, the selector module is placed in a combiner state, in which it combines signals from the first signal path and the second signal path. However, because the gain applied to the first signal path is still zero, there is no component from the first signal path at this stage, and therefore there is no transient. In step 312, the gain applied by the variable gain element (e.g., multiplier 213) is then ramped up to the nominal first gain setting of the first signal path, the ramp being applied over a suitable time frame to avoid any noticeable transients. Similar to what is described above, this control by the signal selection controller 212 helps reduce any overall transients in the signal and therefore helps reduce artifacts in the signal that would otherwise be audible.
[0090] To further reduce any transients that occur on transitions between modes, the signal selector controller 212 can be configured to initiate transitions between modes only when the instantaneous value of the input signal is at or below a low amplitude level or threshold (e.g., at or near zero). The amplifier circuit can include a low level detector, such as a zero crossing detector, to detect low instantaneous signal amplitudes, and the signal selector controller can wait for the zero crossing to initiate transitions between modes.
[0091] In the open-loop mode, the amplifier gain from Din to Vout is defined by the gain of the digital modulator and output driver and the gain of any other element included in the signal path from Din to Vout. In the closed-loop mode, the gain from Din to Vout is defined by the inverse of the conversion gain of the ADC and a similar allowance for any gain scaling in the signal path from Vout and Din to the subtractor 208, independent of the value of the gain of the variable gain element in the loop filter path if the open-loop loop gain is high enough. These open-loop amplifier gains and closed-loop amplifier gains can be designed, calibrated, or continuously adjusted to be nominally equal in use. However, any signal artifacts caused by the mismatch of the amplifier gain from Din to Vout between the first mode and the second mode will also be reduced by the gradually controlled transition or ramp of the variable gain.
[0092] As mentioned above, embodiments of the present invention may be implemented with an ADC that consumes less space and / or power than ADCs used in conventional amplifier circuits without a corresponding degradation in amplifier noise performance.
[0093] Figure 4 An example of ADC 207 according to an embodiment of the present invention is illustrated. In this example, ADC 207 includes a voltage to current conversion block 401 and a current controlled oscillator 402. The number of pulses at the output of the current controlled oscillator 402 is counted by a counter 403. The counter output is output as an ADC output signal via a calibration block 404. Compared with a voltage control circuit, the transfer function of the current control circuit is less affected by process and temperature.
[0094] like Figure 5 As shown in , the current controlled oscillator 402 may be implemented by a simple ring oscillator of CMOS inverters, as will be appreciated by those skilled in the art.
[0095] The conversion gain of the current controlled oscillator 402 is process dependent and can be adjusted by calibration at startup under the control of the calibration engine 405. This will generate an overall gain correction factor p that can be applied by the calibration block 404 and / or by the coefficient q i Polynomial correction.
[0096] The noise characteristics of ADC 207 may thus dominate the overall amplifier noise performance in closed loop mode, but because closed loop mode is only used at high signal amplitudes, the noise floor is not as significant. For low signal levels, open loop mode is used, and the digital modulator performance thus defines the system performance in terms of noise.
[0097] The digital modulator 201 may be, for example, Figure 66 is a simple digital ramp modulator. The modulator input signal Dm can be latched (i.e., temporarily stored) in a storage element, such as a clock control register 601 controlled by a clock signal CK. The output of the storage element 601 is compared with the output signal of a counter 603 by a digital comparator 602. The counter 603 is supplied with a relatively fast clock signal CKF and a clock signal CK also supplied to the register 601, and generates a digital ramp signal, as will be understood by those skilled in the art. The digital ramp signal output from the counter 603 will be a PWM type signal with a cycle period defined by a relatively slow clock signal CK and a pulse timing resolution defined by a fast clock CKF. Of course it will be appreciated that a closed loop ramp modulator or a hysteresis self-oscillating modulator may be implemented if desired.
[0098] As mentioned above, the output stage may be any suitable class-D output stage. Figure 7 An example of an output driver stage 202 that can be implemented in one embodiment of the present invention is illustrated. In this embodiment, the output driver stage 202 includes a pre-driver and a class D three-level half bridge. It should be appreciated that, as an alternative, a 2-level half bridge or a 2-level full bridge or a 3-level full bridge can be implemented.
[0099] Using a 3-level half bridge has the advantage that for small signals, the output is grounded most of the time. Therefore, the availability of a ground signal can reduce EMI and switching power consumption, and can improve the power supply rejection of the output driver stage 202.
[0100] Figure 8 An example of a loop filter 209 according to an embodiment of the present invention is illustrated. This is an example of a digital integrator loop filter in which the integrator time constant can be changed by changing α. This effectively changes the gain applied to the error signal ε by the loop filter. It should be appreciated that a second order loop filter could also be used.
[0101] Fig. 9 A class D amplifier circuit according to an embodiment of the present invention is illustrated. Figure 2 Components similar to those described are given the same reference numerals.
[0102] As can be seen, multiple signal conditioning blocks 901 can be implemented in multiple signal paths and at multiple different locations within the amplifier circuit. These signal conditioning blocks 901 can include multiple signal conditioning circuits and perform multiple signal conditioning functions, as those skilled in the art will readily appreciate and understand. A non-exhaustive list of embodiments of such signal conditioning blocks that can be used in a variety of configurations and combinations includes: filter blocks (high pass / low pass / band pass, etc.); gain blocks; attenuation blocks; up samplers; down samplers; interpolators; word length reduction / increase blocks, etc. In addition, in this embodiment, the positions of the variable gain element 213 and the loop filter 211 have optionally been reversed.
[0103] Other intermediate operations may also be included. For example, if the loudspeaker acts as a load receiving the analog output signal Vout, the class D amplifier circuit may include a loudspeaker voice coil excursion limiting function. The impedance of the coil may be extracted based on the voice coil current and voltage, and the excursion of the voice coil may be estimated from this. Alternatively, the voice coil excursion may be predicted based on the input digital signal and a predetermined or calibrated electromechanical model of the voice coil. If the excursion of the voice coil indicates that there is a risk of causing mechanical damage or overheating of the loudspeaker, the digital input signal may be attenuated.
[0104] In addition to the above reference Figure 2 and Figure 3 Outside of the normal control mechanisms described, there may be other conditions where an open loop mode of operation is desired. For example, these conditions may include a fault condition where the output appears to be accidentally overloaded or the loop appears to oscillate or lock up, perhaps due to a gross EMI event. Thus, the envelope detector 214 may also receive a signal from the digital modulator 201, the loop filter 211, or an output node via the ADC indicating that there is some clipping at a particular node or that another fault condition has occurred.
[0105] Fig.10 A class D amplifier circuit according to an embodiment of the present invention is illustrated. Figure 2 Components similar to those described are given the same reference numerals.
[0106] In this implementation, error block 205 includes a digital-to-analog converter (DAC) 1001 that receives a digital input signal and outputs an analog signal representative of the digital input signal, which is input to analog subtractor 1002 along with output signal Vout. ADC 207 has been relocated to receive a signal from the output of analog subtractor 1002. This has the advantage that the ADC now only has to receive the analog error signal, which may be a relatively small signal, so that the error signal is not directly proportional to the reference signal. Figure 2 Compared to the described embodiment, the requirements on the ADC may be even more relaxed.
[0107] Fig.11 A class D amplifier circuit according to an embodiment of the present invention is illustrated. Figure 2 Components similar to those described are given the same reference numerals.
[0108] In this embodiment, the input signal is an analog input signal Ain.
[0109] The analog input signal Ain may be supplied to a main signal path 1101 which outputs a digital input signal Din representing the analog input signal Ain. This digital input signal is supplied to the signal selector block 203 as a digital input signal.
[0110] In this embodiment, the error block 205 receives an analog input signal Ain instead of a digital input signal Din. Ain is input to the analog subtractor 1002 together with the analog output signal Vout.
[0111] Similar to reference Fig.10 In the depicted embodiment, ADC 206 has been repositioned to receive the error signal from the output of analog subtractor 1002 .
[0112] The envelope detector 114 may be an analog envelope detector that receives an analog input signal Ain or it may receive a digital version Din generated by the ADC 1101 .
[0113] Fig.12 A class D amplifier according to an embodiment of the present invention is illustrated. Figure 2 Components similar to those described are given the same reference numerals.
[0114] In this embodiment, the error block includes only an analog subtractor 1002 and receives an analog input signal Ain and an analog output signal Vout. The error signal thus generated is analog, and the signal selector block 203 receives the analog input signal and the analog error signal. The ADC 1201 is then positioned to receive the output of the signal selector block, which functions similarly to the reference block except that it implements analog components. Figure 2 as described, and outputs a digital signal for input to the digital modulator 201.
[0115] As mentioned above, the class-D amplifier circuit according to an embodiment of the present invention is particularly suitable for use in portable devices, such as mobile phones or laptops, notebook computers, or tablet computing devices, among others.
[0116] Fig.13An apparatus 1300 including a class D amplifier circuit according to an embodiment of the present invention is illustrated. The apparatus may have wireless communication capabilities and may receive transmissions, for example, via an antenna 1301. The apparatus has at least one speaker 1302. It should be appreciated that there may be more than one antenna and more than one speaker. An audio hub 1303 receives audio signals from many possible sources. For example, the audio hub 1303 (i.e., an audio codec) may receive signals from a modem 1304, which may encode the received signal from the antenna into a digital format. The audio hub 1303 may transfer the audio signal thus received to a class D amplifier 1305 according to the present invention, which outputs an analog signal to be input to the speaker 1302. Additionally or alternatively, audio data may be received from an audio data memory 1306 at the audio hub 1303. Additionally or alternatively, in some cases, the class D amplifier may be supplied with signal data, coefficient data, or software code stored in a program / data memory 1307. This memory may be, for example, an EEPROM or static RAM, and stores data or code in a persistent or non-transitory form. The device may include a power supply 1308 and a form of user interface 1309, which may be a keyboard, touch screen, or external controller. The device may be a portable device, such as an mp3 player or a portable computer, or a portable communication device, such as a cellular phone or a tablet computer.
[0117] As used herein, the term block refers to a functional unit or functional module that can be implemented by one or more circuit components, and which may, for example, include a dedicated circuit system. A block may additionally or alternatively include, for example, one or more software modules running on a general-purpose processor or an appropriately programmed FPGA array, etc. The components of a block need not be physically co-located, and some components of one block may be shared with some components of another block in some applications.
[0118] With respect to signal selection blocks, it will be appreciated that the inputs to a signal selection block are not necessarily defined terminals of the amplifier circuit and the input to the relevant block may simply be any node along the relevant signal path leading to the components forming that block.
[0119] It should be noted that the embodiments mentioned above illustrate rather than limit the present invention, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. The word "comprising" does not exclude the presence of elements or steps other than those listed in the claims, "a" or "one" does not exclude a plurality, and a single feature or other unit may implement the functions of several units recited in the claims. In addition, the term "gain" does not exclude "attenuation", and vice versa. Any reference signs or annotations in the claims should not be interpreted as limiting their scope.
Claims
1. A class D amplifier circuit for receiving an amplifier input signal and outputting an amplifier output signal, comprising: a Class D output stage; a digital modulator for generating at least one control signal for controlling the class-D output stage based on a modulator input signal; an error block for generating an error signal indicative of a difference between the amplifier output signal and the amplifier input signal; a controller configured to vary the extent to which the error signal contributes to the modulator input signal based on an indication of the amplitude of the amplifier input signal; The error block includes an analog-to-digital converter, which is configured to receive an analog-to-digital converter input signal based on the amplifier output signal, and the analog-to-digital converter includes a current controlled oscillator and a counter, wherein the current controlled oscillator responds to the analog-to-digital converter input signal and the counter is coupled to the output of the current controlled oscillator.
2. The class D amplifier circuit of claim 1, wherein the analog-to-digital converter comprises a voltage-to-current conversion block for converting the analog-to-digital converter input signal into a current signal for driving the current controlled oscillator. 3 . The class D amplifier circuit of claim 1 , wherein the counter is configured to count the number of pulses of the output of the current controlled oscillator.
4. The class D amplifier circuit of claim 1, wherein the current controlled oscillator comprises a ring oscillator.
5. The class D amplifier circuit of claim 1, comprising a calibration block for applying a controlled correction to the counter output to provide the analog-to-digital converter output.
6. The class D amplifier circuit of claim 5, comprising a calibration engine for controlling the calibration block.
7. The class-D amplifier circuit of claim 6, wherein the calibration engine is configured to control a gain correction factor applied by the calibration block.
8. The class-D amplifier circuit of claim 6, wherein the calibration engine is configured to control coefficients of a polynomial correction applied by the calibration block.
9. The class D amplifier circuit of claim 1, wherein the analog-to-digital converter input signal is a version of the amplifier output signal.
10. The class D amplifier circuit of claim 9, comprising a digital subtractor for subtracting the output of the analog-to-digital converter from a digital version of the amplifier input signal to provide the error signal.
11. The Class D amplifier circuit of claim 1 , wherein the error block comprises an analog subtractor for subtracting an analog version of the amplifier input signal from the amplifier output signal, and the analog-to-digital converter is configured to receive the output of the analog subtractor as the analog-to-digital converter input signal and output the error signal.
12. A Class D amplifier circuit according to claim 1, wherein the controller is capable of operating in a first closed-loop operating mode and also in a second open-loop operating mode, wherein in the first closed-loop operating mode, the modulator input signal is at least partially based on the error signal, and in the second open-loop operating mode, the modulator input signal is based on the amplifier input signal and does not include any component from the error signal.
13. A Class D amplifier circuit according to claim 12, wherein the controller is configured to transition from the first closed-loop operation mode to the second open-loop operation mode if the indication of the amplitude of the amplifier input signal drops below a first amplitude threshold, and to transition from the second open-loop operation mode to the first closed-loop operation mode if the indication of the amplitude of the amplifier input signal rises above a second amplitude threshold.
14. The class D amplifier circuit of claim 13, wherein the first amplitude threshold is the same as the second amplitude threshold.
15. The Class D amplifier circuit of claim 1, wherein the controller includes a signal selector block configured to receive the error signal at a first input and a version of the amplifier input signal at a second input and generate the modulator input signal.
16. The class D amplifier circuit of claim 1, further comprising an envelope detector for determining an envelope value of the amplifier input signal, wherein the controller is configured to use the envelope value as an indication of the amplitude of the amplifier input signal.
17. An integrated circuit comprising a class D amplifier circuit as claimed in any preceding claim.
18. An electronic device comprising the class D amplifier circuit according to any one of claims 1 to 16 or the integrated circuit according to claim 17.
19. The electronic device of claim 18, wherein the device is at least one of: a portable device; a battery-powered device; a computing device; a communication device; a gaming device; a mobile phone; a personal media player; a laptop, tablet or notebook computing device.
20. A class D amplifier circuit for receiving an amplifier input signal and outputting an amplifier output signal, comprising: a Class D output stage; a digital modulator for controlling the class D output stage; an analog-to-digital converter in a feedback path, the analog-to-digital converter configured to receive an analog-to-digital converter input signal based on the amplifier output signal; a controller configured to control the extent to which the output of the analog-to-digital converter contributes to the input of the digital modulator based on an indication of the amplitude of the amplifier input signal; The analog-to-digital converter includes a current controlled oscillator and a counter, wherein the current controlled oscillator is responsive to the analog-to-digital converter input signal and the counter is coupled to the output of the current controlled oscillator.
