Notch filter (Notch Filter) filter and the peak (Peak Filter)

Notch filter (Notch Filter):

The notch filter is a band stop filter, the stop-band is very narrow, and therefore also known as point-stop filter. Often fixed for removing a frequency component or narrow stopband place. As for removing a DC component removing specific frequency components.

Peak filter with a notch filter on the contrary, the peak filter is a band-pass filter, which is a very narrow channel. Often narrow place for reserving a fixed frequency components or channels.

Notch filter design:

Here, a design application to DC.

designing process:

By filterDesigne design, "Response Type" select "Notching", in the "Filter Order" input 1, then fill "Fs" and "Bandwidth" Apass and the like. Finally, it will be a first-order IIR filter.

Num = [0.9983, -0.9983]; when = [1, -0.9967];

DC filter to limit the wave

When FPGA implementation, some indicators can be adjusted to optimize the coefficient, it does not use multiplier DSP.

Coefficient before and after contrast optimization

Thus, when the FPGA implementation, only need to be taken to cut off the way.

y(n) = \frac{(2^{k}-1)*(y(n-1)+x(n)-x(n-1))}{2^{k}}

or,

dc(n) = \frac{x(n)}{2^{k}}+\frac{(2^{k}-1)*y(n-1)}{2^{k}}

and (n) = x (n) - dc (n)

When implemented, the shift multiply add replacement, 2^{k}division replaced with truncation.

\frac{xn}{2^k}=xn[msb:k]=xn>>k

\frac{xn*(2^k-1)}{2^{k}}=(\left \{xn,\left \{k\left \{1'b0 \right \} \right \} \right \}-xn)>>k=((xn<<k)-xn)>>k

Guess you like

Origin blog.csdn.net/kemi450/article/details/90287707