This application claims priority to Chinese Application number 201610702026.X, entitled “Method and Device for Improving Acoustics of an AM Demodulation Output Signal,” filed on Aug. 22, 2016 by Beken Corporation, which is incorporated herein by reference.
The present application relates to an amplitude modulation (AM) receiver and more particularly, but not exclusively, to a method and device for improving acoustics of an AM demodulation output signal.
In a traditional AM receiver, there are abrupt changes in direct current (DC) and amplitude of the output signal and thus affects the sound quality of the output signal. The abrupt changes can be caused by the gain from an automatic gain control (AGC) module, an effect of (1−e−ω
in DC of the output signal and an abrupt change B/A in amplitude of the output signal.
To eliminate these abrupt changes, a new method and device for improving acoustics of AM demodulation output signal may be necessary.
According to an embodiment of the invention, a method and device use an AM compensator module to reduce the abrupt changes in DC and amplitude of the output signal and improve the sound quality of the output signal.
In an embodiment, a method comprises: amplifying and mixing, with an amplitude modulation (AM) front-end module, an analog AM signal and an automatic gain control (AGC) signal from an AGC module; converting and sampling, with an analog-digital converter and down-sampling module, the amplified and mixed signal to generate a digital AM signal; digitally mixing, with a digital mixer module, the digital AM signal to generate a first digital AM envelope signal; compensating, with an AM compensator module, the first digital AM envelope signal by an AM compensating AGC signal from the AM compensator module to generate a second digital AM envelope signal; demodulating, with a demodulation module, the second digital AM envelope signal to output a demodulated AM audio signal; and outputting, with an output module, a demodulated AM audio signal.
In another embodiment, the method further comprises: digitally rotating, with a cordic (coordinated rotation digital computer) module, the second digital AM envelope signal; filtering, with an AM high-pass filter module, the rotated signal; filtering, with an AM low-pass filter module, the rotated signal; and normalizing, with an AM normalization module, the signal filtered by the AM low-pass filter module and the signal filtered by the AM high-pass filter module to output the demodulated AM audio signal.
In another embodiment, a device comprises: an automatic gain control (AGC) module configured to generate an AGC signal for adjusting the gain; an amplitude modulation (AM) front-end module connected to the AGC module and configured to amplify and mix an analog AM signal and the AGC signal; an analog-digital converter (ADC) and down-sampling module connected to the AM front-end module and configured to convert and sample the amplified and mixed signal to generate a digital AM signal; a digital mixer module connected to the ADC and down-sampling module and configured to digitally mix the digital AM signal to generate a first digital AM envelope signal; an AM compensator module connected to the digital mixer module and to the AGC module and configured to compensate the first digital AM envelope signal by an AM compensating AGC signal from the AM compensator module to generate a second digital AM envelope signal; a demodulation module connected to the AM compensator module and configured to demodulate the second digital AM envelope signal to output a demodulated AM audio signal; and an output module connected to the demodulation module and configured to output a demodulated AM audio signal.
In still another embodiment, the device further comprises: a cordic module connected to the AM compensator module and configured to digitally rotate the second digital AM envelope signal; an AM high-pass filter module connected to the cordic module and configured to filter the rotated signal; an AM low-pass filter module connected to the cordic module and configured to filter the rotated signal; and an AM normalization module connected to the AM high-pass filter module and to the AM low-pass filter module and configured to normalize the signal filtered by the AM low-pass filter module and the signal filtered by the AM high-pass filter module to output the demodulated AM audio signal.
Non-limiting and non-exhaustive embodiments of the present invention are described with reference to the following figures, wherein like reference numerals refer to like parts throughout the various views unless otherwise specified.
Various aspects and examples of the invention will now be described. The following description provides specific details for a thorough understanding and enabling description of these examples. Those skilled in the art will understand, however, that the invention may be practiced without many of these details. Additionally, some well-known structures or functions may not be shown or described in detail, so as to avoid unnecessarily obscuring the relevant description.
The terminology used in the description presented below is intended to be interpreted in its broadest reasonable manner, even though it is being used in conjunction with a detailed description of certain specific examples of the invention. Certain terms may even be emphasized below, however, any terminology intended to be interpreted in any restricted manner will be overtly and specifically defined as such in this Detailed Description section.
In an embodiment, the AM front-end module 110 that is connected to the AGC module 120 receives an AM signal and an AGC signal from the AGC module 120. The AM signal is amplified and mixed in the AM front-end module 110 to output an analog AM signal with a frequency, for example, 125 KHz. The analog AM signal is A·(1+m cos(Ωt))·cos(ωt+σt). Wherein, the A is amplitude value of an amplitude modulation carrier wave, m is a degree of modulation, Ω is an angular frequency of an amplitude modulation audio signal, ω is an angular frequency of the amplitude modulation carrier wave, for example, 2*π*125K, and σ is an offset angular frequency of the carrier wave due to the frequency deviation of crystal. In the embodiment, the AGC signal is provided from the AGC module 120 to control the gain of the AM front-end module 110, that is, to control the size of A, and the A will quickly changes to B after the AGC signal is input into the AM front-end module. Wherein, the B=A·10(0.05*δ), and the value of gain change is δ dB (δ>0 represents the gain increases and δ<0 represents the gain decreases).
Then the analog AM signal with 125 KHz is input into the ADC and DS module 130. In the embodiment, the sampling clock of the ADC module is 16 MHz. The analog AM signal is first converted to a digital signal by sampling at 16 MHz, then the digital signal is down sampled by 16 times in the DS module. The ADC and DS module 130 outputs a digital AM signal, which is also A·(1+m cos(Ωt))·cos(ωt+σt) but with 1 MHz sampling rate. In the embodiment, the output of the module 130 changes from A·(1+m cos(Ωt))·cos(ωt+σt) to B·(1+m cos(Ωt))·cos(ωt+σt) due to the gain control from the AGC module 120.
The digital AM signal with 1 MHz sampling rate is input into the digital mixer module 140. Then the module 140 outputs an digital AM envelope signal, which is A·(1+m cos(Ωt))·cos(σt) and with 1 MHz sampling rate. In the embodiment, the output of the module 140 changes from A·(1+m cos(Ωt))·cos(σt) to B·(1+m cos(Ωt))·cos(σt) due to the gain control from the AGC module 120.
In the embodiment, the AM compensator module 150 then receives the signal A·(1+m cos(Ωt))·cos(σt) from the digital mixer module 140 and compensates the signal by an AM compensating AGC signal, i.e., multiplies the signal by the AM compensating AGC signal according to the AGC signal (the AGC signal is valid during the rising edge), the value of gain change δ, and a time of duration for gain change (AM_COMP_TC), and wherein a starting value of the AM compensating AGC signal is A/B and A/B=10(−0.05*δ).
Still in the embodiment, due to the gain control from the AGC module 120, after the signal received from the digital mixer module 140 changes from A·(1+m cos(Ωt))·cos(ωt) to B·(1+m cos(Ωt))·cos(ωt), a starting value of the output of the AM compensator module 150 is
Then the starting output A·(1+m cos(Ωt))·cos(σt) is transmitted to the demodulation module 160. As shown in
In one embodiment, the cordic module 210 receives and rotates the signal A·(1+m cos(Ωt))·cos(σt) from the AM compensator module 150 and outputs a starting value A·(1+m cos(Ωt)). Then the AM high-pass filter module 220 receives the rotated signal A·(1+m cos(Ωt)) from the cordic module 210 and wherein the passband of the high-pass filter module 220 is −3 dB and the corner frequency is ωHPF, for example, 2*π*100. Thus, the AM high-pass filter module 220 can remove the DC component from the signal A·(1+m cos(Ωt)) and output A·m cos(Ωt). At the same time, the AM low-pass filter module 230 also receives the rotated signal from the cordic module 210 and wherein the passband of the low-pass filter module 230 is −3 dB and the corner frequency is ωLPF, for example, 2*π*20. Thus, the low-pass filter module 230 can obtain the DC component from the signal A·(1+m cos(Ωt)) and output A. Then the AM normalization module 240 receives A·m cos(Ωt) and A from the AM high-pass filter module 220 and AM low-pass filter module 230 respectively and outputs in m cos(Ωt), i.e.,
Still in the embodiment, after the time of duration for gain change,
the value of the AM compensating AGC signal is 1, and an effect (1−e−ω
and B/A.
In another embodiment, as shown in
As shown in
In the embodiment, the analog AM signal in step 410 is A·(1+m cos(Ωt))·cos(ωt+σt), wherein the A is amplitude value of an AM carrier wave, m is a degree of modulation, Ω is an angular frequency of an AM audio signal, w is an angular frequency of the AM carrier wave, and σ is an offset angular frequency of the carrier wave, and wherein the A is changed to B after the AGC signal is input into the AM front-end module. The first digital AM envelope signal generated in step 430 is A·(1+m cos(Ωt))·cos(σt).
In further embodiment, compensating the first digital AM envelope signal A·(1+m cos(Ωt))·cos(σt) by the AM compensating AGC signal in step 440 comprises multiplying the first digital AM envelope A·(1+m cos(Ωt))·cos(σt) by the AM compensating AGC signal according to the AGC signal (the AGC signal is valid during the rising edge), a value of gain change δ, and a time of duration for gain change (AM_COMP_TC). Wherein, a starting value of the AM compensating AGC signal is A/B, and A/B=10(−0.05*δ). Thus, a starting value of the output of the AM compensator module is
In the embodiment, the starting signal A·(1+m cos(Ωt))·cos(σt) of the AM compensator module is input to the cordic module. Then the cordic module outputs A·(1+m cos(Ωt)). The AM high-pass filter module receives the signal A·(1+m cos(Ωt)), removes the DC component from the signal A·(1+m cos(Ωt)) and output A·m cos(Ωt)). At the same time, the AM low-pass filter module also receives the signal A·(1+m cos(Ωt)) from the cordic module, obtains the DC component from the signal A·(1+m cos(Ωt)) and output A. Then, the AM normalization module receives A·m cos(Ωt) and A from the AM high-pass filter module and AM low-pass filter module respectively and outputs a starting value in cos(Ωt), i.e.,
After the time of duration for gain change, i.e.,
the value of the AM compensating AGC signal is 1, and an effect (1−e−ω
For example, when δ=2 dB, the AM compensating AGC signal changes from the value A/B=10(−0.05*δ)=0.7943 to the value 1 after the time of duration for gain change, i.e.,
as shown in
As shown in
This written description uses examples to disclose the invention, including the best mode, and also to enable any person skilled in the art to practice the invention, including making and using any devices or systems and performing any incorporated methods. The patentable scope of the invention is defined by the claims, and may include other examples that occur to those skilled in the art. Such other examples are intended to be within the scope of the claims if they have structural components that do not differ from the literal language of the claims, or if they include equivalent structural components with insubstantial differences from the literal languages of the claims.
Number | Date | Country | Kind |
---|---|---|---|
2016 1 0702026 | Aug 2016 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
20070049223 | Nishizawa | Mar 2007 | A1 |
20130029621 | Nakata | Jan 2013 | A1 |