Presentation is loading. Please wait.

Presentation is loading. Please wait.

数字滤波器结构 DF (Digital Filter)

Similar presentations


Presentation on theme: "数字滤波器结构 DF (Digital Filter)"— Presentation transcript:

1 数字滤波器结构 DF (Digital Filter)

2 一、什么是数字滤波器 顾名思义:其作用是对输入信号起到滤波的作用;即DF是由差分方程描述的一类特殊的离散时间系统。
它的功能:把输入序列通过一定的运算变换成输出序列。不同的运算处理方法决定了滤波器的实现结构的不同。

3 数字滤波器介绍 Digital filters are used for two general purposes:
(1) separation of signals that have been combined, (2) restoration of signals that have been distorted in some way. signal separation and signal restoration Signal separation is needed when a signal has been contaminated with interference, noise, or other signals.  Signal restoration is used when a signal has been distorted in some way. audio recording made with poor equipment may be filtered to better represent the sound as it actually occurred.

4 研究DF实现结构意义 1.滤波器的基本特性(如有限长冲激响应FIR与无限长冲激响应IIR)决定了结构上有不同的特点。
2.不同结构所需的存储单元及乘法次数不同,前者影响复杂性,后者影响运算速度。 3.有限精度(有限字长)实现情况下,不同运算结构的误差及稳定性不同。 4.好的滤波器结构应该易于控制滤波器性能,适合于模块化实现,便于时分复用。

5 二、数字滤波器的工作原理 x(n) y(n) h(n) 则LTI系统的输出为:

6 三、数字滤波器表示方法 有两 种表示方法:方框图表示法;流图表示法. 数字滤波器中,信号只有延时,乘以常数和相加三种运算。
所以DF结构中有三个基本运算单元:加法器,单位延时,乘常数的乘法器。

7 1、方框图、流图表示法 方框图表示法: 信号流图表示法: 单位延时 系数乘 相加 a a Z-1 Z-1
把上述三个基本单元互联,可构成不同数字网络或运算结构,也有方框图表示法和流图表示法。

8 2.例子 例:二阶数字滤波器: 其方框图及流图结构如下: b0 b0 y(n) x(n) y(n) x(n) a1 Z-1 a1 Z-1
看出:可通过流图或方框图看出系统的运算步骤和运算结构。 以后我们用流图来分析数字滤波器结构。DF网络结构或DF运算结构二个术语有微小的差别,但大抵一样,可以混用。

9 四、数字滤波器的分类 滤波器的种类很多,分类方法也不同。 1.从功能上分;低、带、高、带阻。 2.从实现方法上分:FIR、IIR
3.从设计方法上来分:Chebyshev(切比雪夫),Butterworth(巴特沃斯) 4.从处理信号分:经典滤波器、现代滤波器 等等。

10 1、经典滤波器 假定输入信号x(n)中的有用成分和希望去除的成分,各自占有不同的频带。当x(n)经过一个线性系统(即滤波器)后即可将欲去除的成分有效地去除。但如果信号和噪声的频谱相互重叠,那么经典滤波器将无能为力。 |H(ejw)| |Y(ejw)| |X(ejw)| 无用 有用 wc w wc wc w

11 2.现代滤波器 它主要研究内容是从含有噪声的数据记录(又称时间序列)中估计出信号的某些特征或信号本身。一旦信号被估计出,那么估计出的信号将比原信号会有高的信噪比。 现代滤波器把信号和噪声都视为随机信号,利用它们的统计特征(如自相关函数、功率谱等)导出一套最佳估值算法,然后用硬件或软件予以实现。 现代滤波器理论源于维纳在40年代及其以后的工作,这一类滤波器的代表为:维纳滤波器,此外,还有卡尔曼滤波器、线性预测器、自适应滤波器。 本课程主要讲经典滤波器,外带一点卡尔曼滤波器.

12 3.模拟滤波器和数字滤波器 经典滤波器从功能上分又可分为: 低通滤波器(LPAF/LPDF):Low pass analog filter
带通滤波器(BPAF/BPDF):Bandpass analog filter 高通滤波器(HPAF/HPDF):High pass analog filter 带阻滤波器(BSAF/BSDF):Bandstop analog filter 即它们每一种又可分为:数字(Digital)和模拟(Analog)滤波器。

13 4.模拟滤波器的理想幅频特性 LPAF HPAF BPAF BSAF

14 5.数字滤波器的理想幅频特性 LPDF HPDF BPDF BSDF ……. ……. ……. …….

15 Analog filters and digital filters
Analog filters are cheap, fast, and have a large dynamic range in both amplitude and frequency. Digital filters, in comparison, are vastly superior in the level of performance that can be achieved. With analog filters, the emphasis is on handling limitations of the electronics, such as the accuracy and stability of the resistors and capacitors. digital filters are so good that the performance of the filter is frequently ignored. The emphasis shifts to the limitations of the signals, and the theoretical issues regarding their processing

16 linear filter has an impulse response, a stepresponse and a frequency response. Each of these responses contains complete information about the filter, but in a different form. The most straightforward way to implement a digital filter is by convolving the input signal with the digital filter's impulse response. another way to make digital filters, called recursion.

17 Recursive filters: using previously calculated values from the output, besides points from the input. Instead of using a filter kernel, recursive filters are defined by a set of recursion coefficients. recursive filters are also called Infinite Impulse Response or IIR filters. In comparison, filters carried out by convolution are called Finite Impulse Response or FIR filters.

18 Time Domain Parameters
Three parameters are important: (1) transition speed (risetime), shown in (a) and (b) (2) overshoot, shown in (c) and (d), (3) phase linearity (symmetry between the top and bottom halves of the step), shown in (e) and (f). the risetime (more jargon) is to quote the number of samples between the 10% and 90% amplitude levels. There are many reasons, noise reduction, inherent limitations of the data acquisition system, avoiding aliasing, etc.

19

20 overshoot in the step response
overshoot in the step response. Overshoot must generally be eliminated because it changes the amplitude of samples in the signal

21 the upper half of the step response be symmetrical with the lower half, as illustrated in (e) and (f). This symmetry is needed to make the rising edges look the same as the falling edges. This symmetry is called linear phase,

22 Frequency domain filters
The passband refers to those frequencies that are passed, while the stopband contains those frequencies that are blocked. The transition band is between.

23 cutoff frequency The division between the passband and transition band is called the cutoff frequency. In analog filter design,the cutoff frequency is usually defined to be where the amplitude is reducedto (i.e., -3dB). Digital filters are less standardized, and it is common to see 99%, 90%, 70.7%, and 50% amplitude levels defined to be the cutoff frequency.

24 Frequency Domain Parameters
roll-off ripple stopband attenuation

25 A fast roll-off means that the transition band is very narrow.

26 Passband frequencies to move through the filter unaltered, there must be no passband ripple,

27 stopband attenuation to adequately block the stopband frequencies, it is necessary to have good stopband attenuation, displayed in (e) and (f).

28

29 A high-pass filter kernel, (c), is formed by changing the sign of each sample in (a), and adding one to the sample at the center of symmetry. This action in the time domain inverts the frequency spectrum

30 The high-pass filter kernel, (c), is formed by changing the sign of every other sample in (a). As shown in (d), this flips the frequency domain left-for-right: 0 becomes 0.5 and 0.5 to 0

31

32

33 Moving Average Filters
The moving average is the most common filter in DSP, mainly because it is the easiest digital filter to understand and use. In spite of its simplicity, the moving average filter is optimal for a common task: reducing random noise while retaining a sharp step response.

34 the moving average is the worst filter for frequency domain encoded signals, with little ability to separate one band of frequencies from another. Relatives of the moving average filter include the Gaussian, Blackman, and multiplepass moving average.

35

36

37 Frequency Response The roll-off is very slow and the stopband attenuation is ghastly. Clearly, the moving average filter cannot separate one band of frequencies from another. Remember, good performance in the time domain results in poor performance in the frequency domain, and vice versa. In short, the moving average is an exceptionally good smoothing filter (the action in the time domain), but an exceptionally bad low-pass filter (the action in the frequency domain).

38

39 Recursive Implementation

40


Download ppt "数字滤波器结构 DF (Digital Filter)"

Similar presentations


Ads by Google