CLASS-D AMPLIFIER, A METHOD OF CONTROLLING A GAIN OF AN INPUT AUDIO SIGNAL IN A CLASS-D AMPLIFIER
20220224293 · 2022-07-14
Inventors
Cpc classification
H03F3/2175
ELECTRICITY
H03G3/3005
ELECTRICITY
H03F2200/351
ELECTRICITY
International classification
Abstract
A class-D amplifier includes: a gain control unit that amplifies an input audio signal in accordance with a compensation gain to generate an input signal Vin; and a pulse width modulator that generates a first pulse Vp whose pulse width changes according to the input signal Vin within a first input range A1 where a value of the generated input signal Vin is higher than a first boundary Vb1, and that generates a second pulse Vn whose pulse width changes according to the generated input signal Vin within a second input range A2. The gain control unit controls the compensation gain so that first inclination of an input/output characteristic of the class-D amplifier in a first section in which the pulse width modulator outputs both the first pulse Vp and the second pulse Vn and second inclination of the input/output characteristic in a second section other than the first section are similar to each other.
Claims
1. A class-D amplifier comprising: a gain control unit configured to amplify an input audio signal in accordance with a compensation gain to generate an input signal; and a pulse width modulator configured to generate: a first pulse whose pulse width changes according to the generated input signal within a first input range where a value of the generated input signal is higher than a first boundary; and a second pulse whose pulse width changes according to the generated input signal within a second input range, the second input range is the range where value of the generated input signal is lower than a second boundary and partially overlapping the first input range, wherein the gain control unit controls the compensation gain so that first inclination of an input/output characteristic of the class-D amplifier in a first section where the pulse width modulator outputs both the first pulse and the second pulse and second inclination of the input/output characteristic in a second section other than the first section are similar to each other.
2. The class-D amplifier according to claim 1, wherein the compensation gain in the second section is twice as large as the compensation gain in the first section.
3. The class-D amplifier according to claim 2, further comprising: a detector configured to detect the first section or the second section, wherein the gain control unit holds a value of the input audio signal at a time point when the detector detects that the input audio signal has entered the second section from the first section, and the gain control unit uses the held value as the first boundary or the second boundary to control the compensation gain.
4. The class-D amplifier according to claim 1, wherein the detector detects the first section or the second section based on the first pulse and the second pulse.
5. The class-D amplifier according to claim 1, wherein the detector detects the first section or the second section based on the generated input signal.
6. The class-D amplifier according to claim 1, wherein, in a state where the level of the generated input signal is zero, the duty ratio of the first pulse and the duty ratio of the second pulse are each less than 50%.
7. The class-D amplifier according to claim 2, wherein, in a state where the level of the generated input signal is zero, the duty ratio of the first pulse and the duty ratio of the second pulse are each less than 50%.
8. The class-D amplifier according to claim 3, wherein, in a state where the level of the generated input signal is zero, the duty ratio of the first pulse and the duty ratio of the second pulse are each less than 50%.
9. The class-D amplifier according to claim 4, wherein, in a state where the level of the generated input signal is zero, the duty ratio of the first pulse and the duty ratio of the second pulse are each less than 50%.
10. The class-D amplifier according to claim 5, wherein, in a state where the level of the generated input signal is zero, the duty ratio of the first pulse and the duty ratio of the second pulse are each less than 50%.
11. A method of controlling a gain of an input audio signal in a class-D amplifier, the method comprising: amplifying the input audio signal in accordance with a compensation gain to generate an input signal; and generating a first pulse whose pulse width changes according to the generated input signal within a first input range where a value of the generated input signal is higher than a first boundary; generating a second pulse whose pulse width changes according to the generated input signal within a second input range where the value of the generated input signal is lower than a second boundary while partially overlapping the first input range; and wherein the amplifying controls the compensation gain so that inclination of an input/output characteristic of the class-D amplifier in a first section where the pulse width modulator outputs both the first pulse and the second pulse and inclination of the input/output characteristic in a second section other than the first section are similar to each other.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
DESCRIPTION OF EMBODIMENTS
[0019] Hereinafter, embodiments will be described with reference to the drawings.
[0020]
[0021] In
[0022] A carrier wave generator 132 is a circuit that generates a periodic carrier wave C. The carrier wave C in the present embodiment is a triangular wave in which a rising section with a constant gradient and a falling section with a constant gradient are alternately repeated.
[0023] The pulse width modulator 131 outputs pulses Vp and Vn that are pulse-width modulated according to the input signal Vin based on the input signal Vin and the carrier wave C. More specifically, the pulse width modulator 131 compares a signal C+Vofs obtained by adding a positive offset voltage +Vofs to the carrier wave C with the input signal Vin, and compares a signal C−Vofs obtained by adding a negative offset voltage −Vofs to the carrier wave C with the input signal Vin. Then, the pulse width modulator 131 outputs the first pulse Vp and the second pulse Vn. The first pulse Vp is ON (H level or “1”) in a period in which the value (voltage) of the signal Vin is higher than the value (voltage) of the carrier wave C+Vofs, and Vos is otherwise OFF (L level or “0”). The second pulse Vn is ON (H level or “1”) in a period in which the value of the signal Vin is lower than the value of the carrier wave C−Vofs, and is otherwise OFF (L level or “0”). That is to say, the pulse width modulator 131 generates the first pulse Vp whose pulse width changes according to the input signal Vin within the first input range in which the value of the input signal Vin is larger than a first boundary Vb1 (=−A+Vofs). Also, the pulse width modulator 131 generates the second pulse Vn whose pulse width changes according to the input signal Vin within a second input range in which the value of the input signal Vin is smaller than a second boundary Vb2 (=+A−Vofs) and partially overlaps the first input range. Therefore, the pulse width modulator 131 has three states in total: a section (a positive second section) in which only the first pulse Vp changes according to the input signal Vin; a section (a first section) in which both the first pulse Vp and the second pulse Vn change; and a section (a negative second section) in which only the second pulse Vn changes according to the input signal Vin.
[0024] An output stage 140 amplifies the first pulse Vp and the second pulse Vn, and outputs the amplified pulses as a first pulse P and a second pulse N from the terminals 151 and 152 to the LC filters 161 and 162. The first pulse Vp and the first pulse P have the same shape. The second pulse Vn and the second pulse N have the same shape. The positive-side input of the speaker SP is supplied with a positive-side voltage of an audio signal obtained as a result of the LC filter 161 removing a high-frequency component from the first pulse P. The negative-side input of the speaker SP is supplied with a negative-side voltage of the audio signal obtained as a result of the LC filter 162 removing the high-frequency component from the second pulse N by. The feedback circuit 170 generates the above-described feedback signal Vf as a result of removing the high-frequency component of the first pulse P and the second pulse N, and supplies the feedback signal Vf to the subtractor 111. As a result of negatively feeding back the feedback signal Vf, the audio signal supplied to the speaker SP has a voltage waveform having substantially the same shape as the input audio signal Ain.
[0025] A detector 180 is a circuit that detects the state (at least one of the three states described above) of the pulse width modulator 131 according to the value of the input signal Vin. The detector 180 is, for example, a circuit that monitors the first pulse Vp and the second pulse Vn output from the pulse width modulator 131, and detects the first section in which both the first pulse Vp and the second pulse Vn are generated. The detector 180 sets a detection signal DET to the H level (or “1”) in the first section in which both the first pulse Vp and the second pulse Vn are generated, and sets the detection signal DET to the L level (or “0”) in a second section other than the first section.
[0026] In the first section, for example, when the input signal Vin changes in the positive direction, the pulse width modulator 131 outputs the first pulse Vp whose pulse width increases in accordance with the change in the positive direction and the second pulse Vn whose pulse width decreases in accordance with the change in the positive direction. First inclination of the input/output characteristic of the class-D amplifier 1 in the first section is twice as large as second inclination of the input/output characteristic of the class-D amplifier 1 in the positive second section in which only the first pulse Vp is output, or in the negative second section in which only the second pulse Vn is output. For this reason, unless some sort of measure is taken, second inclination of the input/output characteristic of the class-D amplifier 1 in the second section becomes half of first inclination of the input/output characteristic in the first section, and the input/output characteristic of the class-D amplifier 1 becomes nonlinear. As a result, the total harmonic distortion factor is higher than that in the case where inclination of the input/output characteristic is linear in all sections.
[0027] Accordingly, in the present embodiment, the pulse width modulator 131 and the gain control unit 120 are connected in series in the section between the input terminal 101 and the terminals 151 and 152. Specifically, the gain control unit 120 is provided in a preceding stage of the pulse width modulator 131.
[0028] The gain control unit 120 is configured to compensate for a nonlinear input/output characteristic of the class-D amplifier 1 to make it linear. On the basis of the detection signal DET, for example, the gain control unit 120 is a circuit that performs control such that first of the input/output characteristic of the class-D amplifier 1 in the first section and second inclination of the input/output characteristic of the class-D amplifier 1 in the second section other than the first section are similar to each other or become the same. Specifically, the gain control unit 120 sets the gain (inclination of the input/output characteristic) of the gain control unit 120 when the detection signal DET is at the L level to be twice as large as the gain of the gain control unit 120 when the detection signal DET is at the H level.
[0029] The configuration of the class-D amplifier 1 has been described above.
[0030] Next, operations of the present embodiment will be described. In the present embodiment, the duty ratio of the first pulse P and the duty ratio of the second pulse N when there is no signal depend on the offset voltages ±Vofs. As the absolute values of the offset voltages ±Vofs increase, the two duty ratios decrease. In the present embodiment, by appropriately setting the offset voltages ±Vofs, the two duty ratios are each set to an appropriate duty ratio of less than 50%, for example, about 10%.
[0031] In the present embodiment, when an input audio signal Ain varying within a voltage range from the maximum value A to the minimum value −A is supplied to the input terminal 101, and then when an input signal Vin is supplied to the pulse width modulator 131, the first pulse P and the second pulse N that have been pulse-width modulated according to the input signal Vin are output from the terminals 151 and 152.
[0032]
[0033] In
[0034] In the present embodiment, the first pulse P whose pulse width changes according to the input signal Vin is output within the first input range in which the value of the input signal Vin is higher than the first boundary Vb1 (=−A+Vofs). Also, the second pulse N whose pulse width changes according to the input signal Vin is output within the second input range in which the value of the input signal Vin is lower than the second boundary Vb2 (=+A−Vofs) and partially overlaps the first input range.
[0035] In
[0036]
[0037] As shown in
[0038] In
[0039] Accordingly, unless some sort of measure is taken, second inclination of the input/output characteristic of the class-D amplifier 1 in the second section T2 (the gain in the second section T2) becomes half of the gain G in the first section T1, and the input/output characteristic becomes nonlinear, and thus the total harmonic distortion factor increases.
[0040] In the present embodiment, the gain control unit 120 provided in the preceding stage of the pulse width modulator 131 performs control to set the gain G2 of the gain control unit 120 in the second section T2 to be twice as large as the compensation gain G1 of the first section T1 (G1×2). Specifically, when the signal Ain is within the first section, the gain control unit 120 amplifies the signal Ain with the compensation gain G1, and outputs a signal Vin having a value of Ain×G1. When the signal Ain is within the positive second section, the gain control unit 120 amplifies the signal Ain with the compensation gain G2 that is twice as large as the compensation gain G1 (=G1×2), and outputs a signal Vin having a value of (Ain×2−Vb2)×G1. When the signal Ain is within the negative second section, the gain control unit 120 amplifies the signal Ain with the compensation gain G2 that is twice as large as the compensation gain G1, and outputs a signal Vin having a value of (Ain×2−Vb1)×G1. The analog circuit can be shared between the positive and negative second sections because only the boundaries that are used are different.
[0041] It is difficult to generate accurate analog values of the boundaries Vb1 and Vb2, and the boundaries Vb1 and Vb2 may vary depending on temperature, moisture, and the like. Accordingly, the signal Ain at the time of the signal Ain entering the second section from the first section may be sampled and held, and the held value Vh may be used as the boundaries Vb1 and Vb2. Specifically, when the signal Vin enters the positive second section from the first section, +A−Vofs is held as the value Vh, and when the signal Vin enters the negative second section from the first section, −A+Vofs is held as the value Vh. Then, when the signal Ain is within the second section, the gain control unit 120 outputs a signal Vin having a value of Vh×G1+(Ain−Vh)×2×G1=(Ain×2−Vh)×G1. The boundary to be used is automatically switched, and it is not necessary to distinguish whether the second section is the positive second section or the negative second section. The boundaries Vb1 and Vb2 obtained are highly accurate.
[0042] As a result, the input/output characteristic of the class-D amplifier 1 becomes linear as illustrated in
[0043] As described above, according to the present embodiment, the pulse width modulator 131 that generates the first pulse Vp whose pulse width changes according to the input signal Vin in the first input range A1 in which the value of the input signal Vin is higher than the first boundary Vb1 (=−A+Vofs), and that generates the second pulse Vn whose pulse width changes according to the input signal Vin in the second input range A2 in which the value of the input signal Vin is lower than the second boundary Vb2 (=+A−Vofs) and partially overlaps the first input range A1; and the gain control unit 120 that causes first inclination of the input/output characteristic in the first section T1 in which the pulse width modulator 131 outputs both the first pulse Vp and the second pulse Vn and second inclination of the input/output characteristic in the second section T2 other than the first section T1 to be similar to each other are provided. Therefore, the power consumption in the small output region can be reduced, and the total harmonic distortion factor can be suppressed.
[0044] Furthermore, according to the present embodiment, because the duty ratio of the first pulse P and the second pulse N when there is no signal is smaller than 50%, the power consumption of the class-D amplifier and the load when there is no signal is reduced. Accordingly, the class-D amplifier according to the present embodiment can achieve a quiet acoustic system in which the operation of an air-cooling fan is reduced. Furthermore, by using the class-D amplifier according to the present embodiment in a battery-driven acoustic system such as a powered speaker, the battery life of the acoustic system can be extended.
Other Embodiments
[0045] While the embodiments have been described above, other embodiments are conceivable. Other embodiments are as follows, for example.
[0046] (1) The embodiments can be applied to a wide range of class-D amplifiers such as a class-D amplifier with a high output exceeding 100 W and a class-D amplifier with a low output installed in a cellular phone or the like. For a class-D amplifier with a low output, LC filters 161 and 162 may be omitted.
[0047] (2) In the above embodiment, the pulse width modulator 131 generates the pulse by comparing the input signal with a signal obtained by adding the offset voltage to the carrier wave. However, instead of this, the pulse may be generated by comparing the carrier wave with a signal obtained by adding the offset voltage to the input signal. Alternatively, the pulse may be generated by comparing a signal obtained by adding the offset signal and the carrier wave to the input signal with a threshold value.
[0048] (3) In the embodiment described above, the gain control unit 120 sets the gain of the gain control unit 120 in the second section T2 to be twice as large as the gain in the first section T1. However, instead of this, the gain of the gain control unit 120 in the first section T1 may be half as large as the gain in the second section T2. Also, instead of changing only the gain of one of the first section T1 and the second section T2 in this manner, the gain of both sections may be changed so that first inclination of the input/output characteristic in the first section T1 and second inclination of the input/output characteristic in the second section T2 are the same. In short, in the gain control unit 120, by changing at least one of the gain in the first section T1 and the gain in the second section T2 of the gain control unit 120 and setting the ratio of the two gains to 1:2, inclinations of the input/output characteristics of two sections of the class-D amplifier may be made the same.
[0049] (4) In the above-described embodiment, a triangular wave is used as a carrier wave for pulse-width modulation, but a carrier wave having a waveform other than a triangular wave, such as a sawtooth wave, may be used.
[0050] (5) In the above embodiment, the gain control unit 120 performs control such that first inclination of the input/output characteristic in the first section T1 is the same as second inclination of the input/output characteristic in the second section T2. However, inclinations of the input/output characteristics in the first section T1 and in the second section T2 may not strictly be the same. Even if inclinations of the input/output characteristics in the two sections are not exactly the same, if inclinations are made somewhat similar to each other, the total harmonic distortion factor is reduced by the amount they were made similar to each other.
[0051] (6)
[0052] In the present embodiment, the detector 180 in the above embodiment is replaced with a detector 180A. The detector 180 in the above embodiment detects the low output section, based on the output state of the first pulse Vp and the second pulse Vn in the pulse width modulator 131. In contrast, the detector 180A detects the low output section by comparing the input audio signal Ain that is supplied from the input terminal 101 with first and second threshold values.
[0053] Specifically, the detector 180A sets the detection signal DET to the H level when the value of the input audio signal Ain is within the input range A3 in which both the first pulse Vp and the second pulse Vn are generated, that is to say, when the value of the input audio signal Ain is within the range from the first boundary Vb1 (=−A+Vofs) to the second boundary Vb2 (=+A−Vofs), and otherwise sets the detection signal DET to the L level. The operations of other units are the same as those of the above embodiment. Also in the present embodiment, the same effect as that of the above embodiment can be obtained.
[0054] (7)
[0055] The class-D amplifier 1B is provided with an ADC (Analogue Digital Converter) 190B that performs A/D conversion on the input analog signal Ain. The class-D amplifier 1B does not include components corresponding to the subtractor 111, the integrator 112, the carrier wave generator 132, and the feedback circuit 170 of the above embodiment (
[0056] In the class-D amplifier 1B, the gain control unit 120B, the pulse width modulator 131B, the detector 180B, and the output stage 140 may be digital circuits, or may be functions realized by a processor such as a DSP (Digital Signal Processor) executing a program.
[0057] In
[0058] Specifically, the pulse width modulator 131B generates the first pulse Vp that is at the H level when the value of the digital input signal Din is larger than the value obtained by adding the offset value +Vofs to the value corresponding to the carrier wave C (triangular wave) of the above embodiment (