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
    • Embedded Vision Sensing Library
    • Motor Control Hardware Platforms
    • Precision Technology Signal Chains Library
    • Video
    • Wireless Sensor Networks Reference Library

    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

    Fast-Track Certification: Leveraging IC Safety App Notes for Functional Safety Designs

    Stop guessing, start certifying. Learn how to use IC safety application notes to streamline your FMEDA and meet IEC 61508 and ISO 13849 standards with...

    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
  • Community Hub

    Challenge Yourself!

      New KCC Quiz AQQ299 about Opamp Open Loop Gain and LTspice

      A kind proposal from Al Butvidas 1. Quote of the month: " A good friend calls you in jail. A great friend bails you out of jail. Your best friend sits...

    View All

    What's Brewing

      Read a Blog, Take this Quiz for Another Chance to Win a Gift Card

      Important: Read the blog first . The quiz questions are all based on the content from the blog: The Power Problem Inside Every AI Breakthrough Everyone...

    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

    Master FPGA-Based DSP Design: The Complete Building Blocks Guide You Need to Read

    The Engineering Mind Blog on EngineerZone presents an exceptional five-part series titled " DSP Building Blocks " that walks engineers through the essential...

    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
    PSM Integration for Enhanced Module Solutions in 48 V Data Centers

    The integration of the LTC2971 into quarter brick solutions for 48 V data centers enhances monitoring, control, and reliability by providing high precision...

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 True peak-to-peak detection in SigmaStudio
  • Q&A
  • 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
  • +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
    • Can I have multiple versions of SigmaStudio installed simultaneously?
    • How are the audio inputs routed in SigmaStudio's Input cell?
    • How can I change parameters on-the-fly in an application without SigmaStudio?
    • How do I change the sample rate of my SigmaStudio system?
    • How do I report a SigmaStudio bug?
    • New SigmaStudio 3.3 Beta Version Available
    • New SigmaStudio Download Site
    • Sigma 300 (ADAU145x) Exponential Slewing
    • SigmaStudio consulting services...
    • The ADAU1372 is not on the list of compatible processors or under Processors/DSPs on Sigmastudio 3.11.1 or 3.11. Can you please tell me how I can use the EVAL board with ADAU1372?
    • Third Party Algorithm Plugins in SigmaStudio
    • True peak-to-peak detection in SigmaStudio
    • Using compressors to avoid output clipping
    • Using stopwatch with feedback loop to create periodic test signal
    • What operating systems are supported to run SigmaStudio?
    • Where can I download SigmaStudio?
    • Where can I find a description of the changes made in the latest version of SigmaStudio?
    • Where can I send my questions I don't want to post in a public forum?
    • Why can't I control any of the knobs or sliders in my SigmaStudio project?
  • +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

True peak-to-peak detection in SigmaStudio

True peak-to-peak detection in SigmaStudio by BrettG

The peak envelope detectors in SigmaStudio work well for normal audio signals that have a DC offset close to 0. Their output represents the (nearly) instantaneous peak value of the signal at their input.

A SigmaStudio user recently asked me if there was a way to do true peak-to-peak detection. I came up with a solution that has one prerequisite: the signal must be crossing or touching the "zero line" in order to get an accurate reading. This means that your DC offset shouldn't be so large that the signal fails to ever cross the center line.

My peak-to-peak detector in SigmaStudio uses two half-rectifiers (built from simple logic blocks) and two peak envelope followers. The project file is attached. It runs on the ADAU1761 but could be converted for use with any SigmaDSP. I tested it and it seems to work fine, given the restriction I mentioned above. The project includes a full-scale Sine generator that can be half-rectified by clicking the switch. When the full-scale sine tone is input to the peak-to-peak detector, it reads "2" as expected. When the signal is half-rectified (cutting off all negative values), the Pk-Pk output value reads as "1", as expected.

This project is a good example of how basic logic blocks can be used in SigmaStudio in order to create functionality not included in the default library.

https://ez.analog.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-75/125a218d8672f28f44c9ac0e8e582778.bin

TruePeakToPeakDetector.dspproj
  • Share
  • History
  • More
  • Cancel
 
Related Content
  • peak
    peak
    $core_v2_language.Truncate($item.HtmlDescription('Web'), 200, "...")
  • 3peak
    3peak
    $core_v2_language.Truncate($item.HtmlDescription('Web'), 200, "...")
  • RE: Urgent : Peak envelope and decay variable
    DaveThib
    Hello electrojim, I did draw up this diagram for Semi. There were several issues but it was all a matter of setting parameters in a matter that does not cover up something else going on. Her application...
 
Related Content
  • peak
    peak
    $core_v2_language.Truncate($item.HtmlDescription('Web'), 200, "...")
  • 3peak
    3peak
    $core_v2_language.Truncate($item.HtmlDescription('Web'), 200, "...")
  • RE: Urgent : Peak envelope and decay variable
    DaveThib
    Hello electrojim, I did draw up this diagram for Semi. There were several issues but it was all a matter of setting parameters in a matter that does not cover up something else going on. Her application...
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