Locale Icon
English
  • Forums

    Popular Forums

    • LTspice
    • Video
    • Power Management
    • RF & Microwave
    • Precision ADCs
    • FPGA Reference Designs

    Product Forums

    • Amplifiers
    • Clocks & Timers
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Power Management
    • Processors & DSP
    • Processors & Microcontrollers
    • Switches & Multiplexers
    • Sensors
    • Voltage References
    View All

    Application Forums

    • A2B Audio Bus
    • Audio
    • Automated Test Equipment (ATE)
    • Condition-Based Monitoring
    • Depth, Perception & Ranging Technologies
    • LiDAR Solutions
    • Motor Control Hardware Platforms
    • Speech Processing Solutions
    • Video

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools & Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Precision Studio
    • Power Studio Designer
    • Power Studio Planner
    • Reference Designs
    • Robot Operating System (ROS) SDK
    • Signal Chain Designer
    • Software Interface Tools
  • Learn

    Highlighted Webinar

    Open RAN 5G Radio Design: SDR SoCs for Energy-Efficient, Secure Deployments

    Building Secure and Energy‑Efficient 5G Networks with Software Defined Radios. The rapid evolution of 5G networks is driving new requirements for performance...

    Places

    • ADI Academy
    • ADI Webinars
    • EZ Blogs
    • Video Annex
    • Virtual Classroom

    Libraries

    • 3D ToF Depth Sensing Library
    • Continuous-Wave CMOS Time of Flight (TOF) Library
    • Embedded Vision Sensing Library
    • Gigabit Multimedia Serial Link (GMSL) Library
    • Optical Sensing Library
    • Other Products Library
    • Precision Technology Signal Chains Library
    • Software Modules and SDKs Library
    • Supervisory Circuits Library
    • Wireless Sensor Networks Library

    Upcoming Learning & Events

    • Humanoid Robotics: Deterministic Motion Control & Edge AI Systems
    • Power Integrity for High Performance Measurement Systems
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC Quizzes AQQ302 about Bang Gap Reference Generation

      1.Quote of the month: "People Who Say They Sleep Like a Baby usually don't have one" - unknown 2. New quiz AQQ302 about Band Gap Reference Voltage...

    View All

    What's Brewing

      Read a Blog, Take this Quiz for Another Chance to Win a Gift Card! - Watts Going On? — The AI Power Delivery Quiz

      Important: Read the blog first . The quiz questions are all based on the content of the blog: Reimagining Power for AI: Shaping the Future of AI Acceleration...

    View All

    Places

    • Community Help
    • Analog Dialogue Quiz
    • Logic Lounge
    • Super User Program

    Resources

    • EZ Code of Conduct
    • EZ How To Help Articles
    • Getting Started Guide
    • ADI: Words Matter
    • Community Help Videos
    View All
  • ContentZone

    Visit ContentZone

    Search content by industry or technology.
    • Blogs
    • Technical Articles
    • Tutorials
    • Videos
    • Webinars
    Your ADI content all in one place.
    View ContentZone

    The Latest Read

    JESD204 Bring-Up: From Link-Up to Data Integrity

    This blog presents a structured bring-up methodology for the ZCU102 + ADRV9009 platform, stepping through each initialization phase in sequence and identifying...

    New Release

    Signal Chain Designer: DC Error Simulation
    Signal Chain Designer: DC Error Simulation

    This video covers the DC error calculation capabilities of Signal Chain Designer. DC error is unique in that often requires calibration and has so many...

    Recent Technical Insights

    Latest Technical Article from Analog.com
    Game of DronesPart 1: How IMU Navigation Architectures Make or Break a Drone

    This article explains why industrial-grade UAVs require fundamentally different architectures than consumer drones. It highlights the need for inertial...

EngineerZone
EngineerZone
SigmaDSP Processors & SigmaStudio Dev. Tool
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
SigmaDSP Processors & SigmaStudio Dev. Tool
  • Processors & DSP
SigmaDSP Processors & SigmaStudio Dev. Tool
Documents My IIR filter is outputting a value, even when the input goes to zero. Is this a bug?
  • Q&A
  • Docs/FAQs
  • File Uploads
  • Members
  • Tags
  • Cancel
  • Documents
  • SigmaDSP YouTube Channel - Dave Thib
  • +AD193x: FAQ
  • +ADAU1401AEBZ: FAQ
  • +ADAU144x: FAQ
  • +ADAU1452: FAQ
  • +ADAU145x: FAQ
  • +ADAU1701: FAQ
  • +ADAU1701MINIZ- FAQ
  • +ADAU1761: FAQ
  • +ADAU1772: FAQ
  • +ADI: FAQ
  • +AN-951: FAQ
  • +bitwise logic: FAQ
  • +Compressor Table Format: FAQ
  • +Creating a simple balance crossfade control: FAQ
  • +Creating constant-dB envelope decay using an existing linear decay algorithm: FAQ
  • +Crossover with more than 3 bands: FAQ
  • +E2PROM: FAQ
  • +EEPROM: FAQ
  • +EVAL DAU144XEBZ: FAQ
  • +EVAL-ADAU1781Z: FAQ
  • +Excluding Cells from the Exported System Files: FAQ
  • +GPIO button: FAQ
  • +GPIOs or Aux ADCs: FAQ
  • +How do I execute a software safeload write?: FAQ
  • +IIR coefficient filter: FAQ
  • -IIR filter: FAQ
    • My IIR filter is outputting a value, even when the input goes to zero. Is this a bug?
  • +Peak Full Range Compressor: FAQ
  • +Preserving "Ear-candy": FAQ
  • +Push Button Volume: FAQ
  • +self-boot EEPROM image: FAQ
  • +Sigma300 Family Products: FAQ
  • +SigmaDSP: FAQ
  • +SigmaStudio: FAQ
  • +single precision VS double precision: FAQ
  • +Stimulus-Probe Capability and Limitations: FAQ
  • +Stopwatch to Count Successive Samples: FAQ
  • +Toolbox into the schematic tab: FAQ
  • +USB communications between the PC and SigmaDSP: FAQ
  • +Using Hierarchy Boards to create re-usable code: FAQ
  • New SigmaStudio 3.2.0 beta version available
  • SigmaStudio 3.3 Released
  • SigmaStudio 3.9.2 Beta Available for Download
  • SigmaStudio Rev 3.15.2 Bug Report for SPI EEPROM Write Speed

My IIR filter is outputting a value, even when the input goes to zero. Is this a bug?

I have a tone generator in SigmaStudio connected to a filter and then a peak detector. When I turn the tone on, I get the expected peak value. However, when I turn the tone off, the value doesn't quite reach zero. It just decays to a very small number. When I remove the filter and try again, the output value goes to zero. What's going on? Is this a bug?

This is not a bug. What you are seeing is a limitation in the biquad implementation of the IIR filters. IIR filters in the biquad architecture have several feedback loops that are summed with the input signal.

(image from Wikimedia Commons)

If the input signal instantly goes to zero, then x[n] becomes 0, and on the subsequent sample x[n-1] becomes 0, and on the subsequent sample x[n-2] becomes 0. However, -a1*x[n-1] and –a2*x[n-2] are being added back into the input signal, and b1*x[n-1] and b2*x[n-2] are being added into the output signal, y[n].

With infinite precision, the output will eventually fade to zero. However, a fixed-point DSP does not have infinite precision. The coefficients (a1, a2, b0, b1, b2) are quantized when they are stored in memory, along with the audio data. This means that at some point, the audio signal and the coefficients become very small, but due to rounding in the calculation, they may reach an idle value (or oscillating idle tone) instead of decaying completely to zero.

Slide 12 of this lecture from the University of Texas shows a good example of how quantization of coefficients causes the impulse response of a filter to decay to a nonzero value.

In this example image (taken from the lecture in the above link), the filter's impulse response decays to a fixed value. In some cases, the filter output decays to an oscillating signal with a fixed amplitude instead of a single value. This is referred to as a “Limit Cycle.”

More information on this topic can also be found here at the Bores DSP course site.

So, this is not a SigmaDSP or SigmaStudio bug. It’s just a limitation of fixed-point IIR filter design.

Switching to double-precision filters usually will alleviate this limit cycle issue.

This FAQ was generated from the following discussion: My IIR filter is outputting a value, even when the input goes to zero. Is this a bug?

Tags: filter sigmastudio SigmaDSP limit_cycle
  • Share
  • History
  • More
  • Cancel
 
Related Content
  • RE: My IIR filter is outputting a value, even when the input goes to zero. Is this a bug?
    ADIApproved
    This is not a bug. What you are seeing is a limitation in the biquad implementation of the IIR filters. IIR filters in the biquad architecture have several feedback loops that are summed with the input...
  • My IIR filter is outputting a value, even when the input goes to zero. Is this a bug?
    ADIApproved
    I have a tone generator in SigmaStudio connected to a filter and then a peak detector. When I turn the tone on, I get the expected peak value. However, when I turn the tone off, the value doesn't quite...
  • RE: My IIR filter is outputting a value, even when the input goes to zero. Is this a bug?
    EZAdministrator
    This question has been closed by the EZ team and is assumed answered.
 
Related Content
  • RE: My IIR filter is outputting a value, even when the input goes to zero. Is this a bug?
    ADIApproved
    This is not a bug. What you are seeing is a limitation in the biquad implementation of the IIR filters. IIR filters in the biquad architecture have several feedback loops that are summed with the input...
  • My IIR filter is outputting a value, even when the input goes to zero. Is this a bug?
    ADIApproved
    I have a tone generator in SigmaStudio connected to a filter and then a peak detector. When I turn the tone on, I get the expected peak value. However, when I turn the tone off, the value doesn't quite...
  • RE: My IIR filter is outputting a value, even when the input goes to zero. Is this a bug?
    EZAdministrator
    This question has been closed by the EZ team and is assumed answered.
analog-devices logo

About Analog Devices

  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
  • Instagram page
  • Twitter page
  • Linkedin page
  • Youtube page
  • Facebook
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved

analog-devices

About Analog Devices

Down Up
  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

Down Up
  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
Instagram page Facebook Twitter page Linkedin page Youtube page
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved