การออกแบบตัวกรอง IIR
แนะนำใหม่
7:22
การประมวลผลสัญญาณดิจิทัล
Digital signal processing rebuilds the continuous theory for samples, where arithmetic is exact: N samples in, N numbers out, and every promise can be…
บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้
ในบทเรียนนี้
| English | ความหมาย |
|---|---|
| IIR/ˌaɪ aɪ ˈɑː/ | การตอบสนองต่อพัลส์ไม่จำกัด |
| bilinear transform/baɪˈlɪnɪə trænsˈfɔːm/ | การแปลงแบบบิลิเนีย |
| warp/wɔːp/ | การบิดเบี้ยว |
| prewarped/prɪˈwɔːpt/ | การบิดเบี้ยวล่วงหน้า |
Five numbers instead of 67
- The FIR filter in lesson 1204 needed 67 taps. An IIR 无限脉冲响应 filter feeds its own output back, so a few coefficients give a long response: a second-order low-pass needs only 5.
- It gets there by reusing a century of analog filter designs through one substitution.
Biquad มีสัมประสิทธิ์ตัวเศษสามตัวและตัวส่วนสามตัว ตัวหนึ่งถูก normalise เป็น 1 ต้องเก็บสัมประสิทธิ์ทั้งหมดกี่ตัว?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
สามตัวเศษบวกสองตัวส่วน สัมประสิทธิ์ F IR 67 tap เก็บไว้ 67 ตัว
The bilinear transform
- The bilinear transform 双线性变换 substitutes $s = \dfrac{2}{T}\cdot\dfrac{1 - z^{-1}}{1 + z^{-1}}$ into an analog filter.
- It maps the analog left half-plane inside the unit circle, so every stable analog filter becomes a stable digital one.
จับคู่แต่ละส่วนของ s-plane กับตำแหน่งที่ bilinear transform นำไปวาง
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
เพราะขั้วอนาล็อกที่เสถียรจะตกอยู่ในวงกลม ความเสถียรจึงสืบทอดมาโดยอัตโนมัติ
Warp and prewarp
- The whole analog frequency axis is squeezed once around the unit circle. This warp 弯曲 grows towards the Nyquist frequency.
- So each critical frequency is prewarped 预畸变 first: $\omega_{a} = \dfrac{2}{T}\tan\left(\dfrac{\omega_{d}T}{2}\right)$.

ที่ f_s = 1 kHz ตัวกรองต้องตัดที่ 200 Hz ความถี่อะนาล็อกที่ถูกปรับระยะก่อนการแปลงควรใช้ค่าเท่าไรในหน่วย rad/s? ระบุจำนวนเต็มที่ใกล้เคียงที่สุด
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
$2000\tan(0.2\pi) = 2000 \times 0.7265 = 1453$ rad/s สูงกว่า $2\pi \times 200 = 1257$ มาก
Worked example: the biquad
- 2nd-order Butterworth, 100 Hz, $f_{s} = 1$ kHz. Prewarp: $\omega_{a} = 2000\tan(0.1\pi) = 649.8$ rad/s, so $K = 1/\tan(0.1\pi) = 3.078$.
- $\dfrac{1}{s^{2} + 1.4142s + 1}$ becomes $H(z) = \dfrac{1 + 2z^{-1} + z^{-2}}{14.82 - 16.94z^{-1} + 6.12z^{-2}}$.
Worked example: verify it
- DC: the denominator sums to 4.00, and so does the numerator, so $H(1) = 1$. At 100 Hz the response is exactly $-3.0$ dB. The poles sit at $|z| = 0.643$, inside the circle.
- Skip the prewarp and the cutoff lands at 96.9 Hz. Also set $T = 1$ ($K = 1$) and it lands at 250 Hz.
H(z) มีตัวเศษเป็น 1 + 2z^(−1) + z^(−2), และผลรวมสัมประสิทธิ์ของตัวส่วนคือ 4 ค่า DC gain คืออะไร?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
ที่ DC, z = 1: ส่วนหัวมีค่า 1 + 2 + 1 = 4, และ 4/4 = 1
การออกแบบที่ 100 Hz ทำโดยไม่ใช้ prewarping โดยใช้ 2π × 100 rad/s โดยตรง จุด −3 dB จะอยู่ที่ไหน?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
The warp squeezes frequencies, so an unwarped design lands low. 250 Hz is the different slip of setting T = 1.
The cost
- 5 coefficients against 67 taps, but they buy less. A second-order filter rolls off at only 12 dB per octave, far gentler than the 67-tap FIR's 50 Hz transition; a sharp IIR needs a higher order. And the phase is not linear, especially near the cutoff.
- In fixed-point arithmetic the denominator coefficients are sensitive: rounding 6.12 moves the cutoff.
การออกแบบด้วย T = 1 (K = 1) ตั้งจุดตัดไว้ที่หนึ่งในสี่ของอัตราการสุ่มตัวอย่าง สำหรับ f_s = 8 kHz จุดนี้จะอยู่ที่กี่ Hz?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
เมื่อ K = 1 จุด cut-off อยู่ที่ $\tan(\omega T/2) = 1$, ซึ่งเท่ากับ $f_{s}/4 = 2000$ เฮิรตซ์
Three common slips
- Skipping the prewarp. 96.9 Hz instead of 100 is small; 2.86 kHz instead of 4 kHz at $f_{s} = 10$ kHz is not.
- $T = 1$ with frequencies in hertz. The cutoff moves to a quarter of the sample rate.
- Expecting linear phase. IIR phase bends most near the poles.
เช่นเดียวกับ symmetric FIR filter, IIR biquad มี linear phase อย่างแท้จริง
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
phase ของมันเบี่ยงเบนใกล้จุด cut-off หากรูปร่างคลื่นสำคัญ ให้ใช้ symmetric FIR
Recap
- Bilinear: the left half-plane maps inside the unit circle, so stability is automatic.
- Prewarp every critical frequency with $\dfrac{2}{T}\tan(\omega_{d}T/2)$.
| IIR | FIR | |
|---|---|---|
| Feedback | yes | no |
| Coefficients here | 5 | 67 taps |
| Phase | bends near the poles | linear |
| Stability | must be checked | always stable |
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้