This application claims the benefit of Taiwan application Serial No. 106142117, filed Dec. 1, 2017, the subject matter of which is incorporated herein by reference.
The invention relates to a direct current (DC) removal circuit, and more particularly to a DC removal circuit capable of accurately compensating leakage caused by a local oscillator.
In a communication device, a radio-frequency (RF) module may convert a baseband signal to an intermediate-frequency (IF) signal or even to an RF signal by using a mixer and a local oscillator. A local oscillator generates leakage during operation, which results in a direct-current (DC) offset in an output signal of the RF module.
There are currently techniques that use a digital circuit to compensate the DC offset caused by a local oscillator. Taking a transmitting end for example, the transmitting end may first subtract a digital DC value from a digital signal before the digital signal is converted to an analog transmission signal through a digital-to-analog converter (DAC). An RF module can convert the analog transmission signal to an IF signal. Although a local oscillator causes leakage and hence a DC offset, the DC component in the IF signal can be alleviated or eliminated because the digital DC value has been previously subtracted. One advantage of using a digital circuit to compensate the DC offset is that an analog circuit is simpler in implementation. However, because an error between the DC offset and the digital DC value is restricted by the resolution of the DAC, the effect of DC removal is limited.
Therefore, there is a need for a solution that overcomes the above issues.
It is a primary object of the present invention to provide a direct current (DC) removal circuit capable of accurately compensating leakage caused by a local oscillator so as to improve the issues of the prior art.
The present invention discloses a DC removal circuit, which is coupled to a radio-frequency (RF) module including a local oscillator. The DC removal circuit is for compensating leakage caused by the local oscillator, and includes: a waveform generator, generating a digital waveform signal having an average value, which is smaller than a resolution of a converter coupled to the RF module; a digital adder, coupled to the waveform generator, adding the digital waveform signal to a digital DC value to generate an addition result; and a digital subtractor, subtracting the addition result from a digital signal to generate a subtraction result, so as to compensate the leakage caused by the local oscillator.
The above and other aspects of the invention will become better understood with regard to the following detailed description of the preferred but non-limiting embodiments. The following description is made with reference to the accompanying drawings.
To resolve the issues of the prior art, in which an error between a direct-current (DC) offset and a digital DC value is restricted by the resolution of a digital-to-analog converter (DAC) and hence a limited DC removal effect, apart from subtracting a digital DC value, the present invention further subtracts a digital waveform signal so as to more accurately compensate the leakage caused by a local oscillator.
More specifically,
The DC removal circuit 10 is coupled to a digital-to-analog converter (DAC) 14, and includes a waveform generator 16, a digital adder 19 and a digital subtractor 18. The DC removal circuit 10 receives a digital signal d1 to generate the baseband analog signal tBB, wherein the digital signal d1 may be a digital transmission signal to be transmitted by a transmitting end. The DAC 14 has a resolution Δ, which may be represented as Δ=VFSW/(2WL-1), where VFSW represents a voltage amplitude range (equivalent to a full swing range) acceptable to the DAC 14, and WL represents a bit count (equivalent to a wordlength) acceptable to the DAC 14. The waveform generator 16 generates a digital waveform signal w having an average value Ave, wherein the average value Ave is smaller than the resolution Δ of the DAC (that is, the average value Ave may be represented as Ave=r*Δ, where 0<r,1). The digital adder 19 is coupled to the waveform generator 16, and adds the digital waveform signal w to a digital DC value DT to generate an addition result DTw. The digital subtractor 18 subtracts the addition result DTw from the digital signal d1 so as to compensate the leakage caused by the local oscillator LO.
It should be noted that, the digital DC value DT is a digital DC value closest to the DC offset AT when the wordlength of the DAC 14 is WL, and the effect of approximating the DC offset AT by the digital DC value DT is limited due to the restriction of the resolution Δ of the DAC 14. In the present invention, the digital waveform signal w (having the average value Ave smaller than the resolution Δ) is generated by the waveform generator 16, such that an equivalent value of the addition result DTw having passed through DAC 14 and the RF module 12 better approximates the DC offset AT, thus more accurately compensating the leakage caused by the local oscillator LO.
More specifically, the digital waveform signal w may be a periodical pulse sequence signal and consists of multiple positive pulses. There are N pulse widths and k positive pulses in one period of the digital waveform signal w. When the positive pulse amplitude is one resolution Δ, the average value Ave of the digital waveform signal w may be Ave=(k/N)*Δ (i.e., r=k/N).
For example,
Further, the waveform generator 16 may generate periodical pulse sequence signals as the digital waveform signal w according to the number N of pulse widths and the number k of positive pulses in one period. The method according to which the waveform generator 16 generates periodical pulse sequence signals is not limited. For example, the waveform generator 16 may first generate a counter signal cnt, and adds the value of the counter signal cnt by 1 after one clock cycle of the digital circuit, and may subtract (N/k−1) from the counter value cnt when the value of the counter value cnt is greater than or equal to (N/k). On the other hand, when the value of the counter value cnt is 0 or is greater than or equal to (N/k), the waveform generator 16 outputs a positive pulse; when the value of the counter value cnt is smaller than (N/k), the waveform generator 16 outputs 0.
More specifically,
For example,
Further, when the number N of pulse widths in one period of the digital waveform signal w is constant, the number k of positive pulses may be set to 1, . . . and N−1 to generate respectively corresponding digital waveform signals w1, . . . and wN−1 (of which average values Ave are respectively ((1/N)*Δ, . . . and ((N−1)/N*Δ)). The digital waveform signals w1, . . . and wN−1 are respectively applied to the digital adder 19, and the DC removal effect thereof is recorded. Form the records, an optimal number k* of positive pulses and an optimal digital waveform signal wk* as well as the optimal number k* of positive pulses are respectively applied to the counter signal generator 32 and the output unit 34 to generate the digital waveform signal w as the optimal digital waveform signal wk*.
It is known from the above description that, in the present invention, a waveform generator is used to generate a periodical digital waveform signal (which may be a periodical pulse sequence signal), which has an average Ave represented as Ave=r*Δ, where r may be a rational number between 0 and 1. Thus, an equivalent value of the addition result DTw having passed through the DAC 14 and the RF module 12 better approximates the DC offset AT to more accurately compensate the leakage caused by the local oscillator LO.
For example, when N=10 and k=4, compared to the prior art (which uses merely the digital DC value for DC removal/compensation), the DC removal circuit of the present invention can reduce the residual DC component after the compensation by about 20 dB. When N=20 and k=9, compared to the prior art, the DC removal circuit of the present invention can reduce the residual DC component after the compensation by about 40 dB; that is, the present invention is capable of better compensating the leakage caused by the local oscillator LO.
It should be noted that, the foregoing embodiments are for explaining the concept of the present invention, and a person skilled in the art can accordingly make different modifications that are not limited by the above examples. For example, the amplitude of the positive pulses in the digital waveform signal w is not limited to being one resolution Δ, but may be any positive value, given that the average value Ave of the digital waveform signal w is smaller than the resolution Δ—such modification is within the scope of the present invention.
Further, the DC removal circuit of the present invention may be provided at a receiving end.
In conclusion, in the present invention, a periodical digital waveform signal is generated by a waveform generator, wherein an average value of the digital waveform signal is smaller than the resolution of a DAC (or an ADC), thus providing an enhanced DC removal effect.
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Number | Date | Country | Kind |
---|---|---|---|
106142117 | Dec 2017 | TW | national |