Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Need help for DC removal.

Status
Not open for further replies.

faye_hongdou

Member level 1
Joined
Nov 21, 2003
Messages
34
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,288
Activity points
280
I want to coding a digital QAM/QPSK demodulator. In input interface module, I should remove the DC offset that added to the input data. How can I realize this using HDL?

I saw a plan which can be summarized as follows.
The IF digital input data is 12 bits. The upper 10 bits is used, and lower 2bits are not used. The DC offset is symboled as dc_bias.
They accumulate N samples to a 24-bit register, then output its high 8 bits. And N=2^14=16384.

I understand that the dc_bias is the average of the signal, and is updated every N samples. But why output the high 8 bits, not the high 14 bits?

Anyone can explian this for me? Thanks a lot.
 

Your algorithm may be correct if the bias is small.
Here is the characteristic of the HPF for that purpose
which is implemented successfully in G723 vocoder.

H(z) = (1 - z ^-1)/( 1- 127/128*z^-1)

It is calculated as:

Yi = Xi -X(i-1)+ Y(i-1)-Y(i-1)/128

which is rather simple.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top