Locale Icon
English
  • Forums

    Popular Forums

    • LTspice
    • RF and Microwave
    • Video
    • Power Management
    • Precision ADCs
    • FPGA Reference Designs
    • Linux Software Drivers

    Product Forums

    • Amplifiers
    • Microcontrollers
    • Clock and Timing
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy Monitoring and Metering
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Power Management
    • Processors and DSP
    • Switches/Multiplexers
    • Temperature Sensors
    • Voltage References
    View All

    Application Forums

    • A2B
    • 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 and Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Reference Designs
    • Signal Chain Power (SCP)
    • Software Interface Tools
    • System Demonstration Platform (SDP) Support
  • Learn

    Highlighted Webinar

    Simulation and Modeling: Tools for Reducing Risk and Getting to Market

    Models have the potential to accelerate engineers' design process, offering an interactive platform for using and evaluating products. A simulation model...

    Places

    • ADI Education Home
    • ADI Webinars
    • GMSL U
    • StudentZone (Analog Dialogue)
    • 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
    • Precision Technology Signal Chains Library
    • Software Modules and SDKs Library
    • Supervisory Circuits Library
    • Wireless Sensor Networks Library

    Latest Webinars

    • Design Smarter: Integrated Precision Signal Chains for Scientific Instrumentation
    • Simulation and Modeling: Tools for Reducing Risk and Getting to Market
    • Simplifying Connectivity - Remote Controlled (RC) Nodes in a Software Defined Vehicle (SDV)
    • Simplify High-Accuracy Instrumentation Design with Latest Precision Data Converters
    • Design High Performance Power Systems with Ultralow Noise Technology
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes AQQ288 about an amazing Equations System

      1. First, the quote of the week: " The chief function of the body is to carry the brain around " - Thomas A. Edison 2. And here is the new challenge...

    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 " Keeping Up with LTspice " so be sure to review it carefully before...

    View All

    Places

    • Community Help
    • 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
  • Blogs

    Highlighted Blogs

    Corporate Clichés and the Intelligent “Analog” Edge

    What if the concept of the “Intelligent Edge” were made a little easier to understand? Einstein famously said, " If you can't explain it simply, you don...

     

    Keeping Up with LTspice

    I don't think I'm alone when I say: I love SPICE . Circuit simulation is no substitute for building and testing actual circuits, but simulation can be...

    Latest Blogs

    • GMSL Debugging: Detecting the Pixel Clock
    • When Signals Go South: Preventing Transceiver Failures with Fault Protection
    • Are Some Diagnostics Self-checking?
    • Future-Proof Your Network: Benefits of Integrating Cellular DAS Remote Access Unit: Part 3 of 4
    • Field Monitoring and the Continuous Pursuit of Functional Safety
    Read All Blogs

    ADI Blogs

    • EZ Spotlight
    • The Engineering Mind
  • ContentZone

    Visit ContentZone

    ContentZone

    Technical articles. Blogs. Videos. Your ADI content, all in one place.

    View ContentZone

    Featured Content

    Featured Content Title

    Blurb About Content

    View Content By Industry

    • Aerospace and Defense Systems
    • Automotive Solutions
    • Consumer Technology Solutions
    • Data Center Solutions
    • Energy Solutions
    • Healthcare Solutions
    • Industrial Automation Technology Solutions
    • Instrumentation and Measurement Solutions
    • Intelligent Building Solutions
    • Internet of Things (IoT)
    • Wireless Communication Solutions

    View Content By Technology

    • A2B Audio Bus
    • ADI OtoSense Predictive Maintenance Solutions
    • Dynamic Speaker Management
    • Gallium Nitride (GaN) Technology
    • Gigabit Multimedia Serial Link (GMSL)
    • Industrial Vision
    • Power Solutions
    • Precision Technology
    • RF
    • Security Solutions
    • Sensor Interfaces
    • SmartMesh
  • Partners

    Partner Forums

    • Boston Engineering
    • PalmSens
    • Richardson RFPD

    Partner Libraries

    • Calian, Advanced Technologies Library
    • Clockworks Signal Processing Library
    • Colorado Engineering Inc. (DBA CAES AT&E) Library
    • Epiq Solutions Library
    • Fidus Library
    • Tri-Star Design, Inc. Library
    • VadaTech Library
    • Vanteon Library
    • X-Microwave Library
EngineerZone
EngineerZone
Audio
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
Audio
Audio
Documents ADAU1860: Setting an Interrupt on ADAU1860.
  • Q&A
  • FAQs/Docs
  • Members
  • Sub-Groups
  • Tags
  • Cancel
  • +Documents
  • +AD1853: FAQ
  • +AD73322: FAQ
  • +AD73311: FAQ
  • +AD73360: FAQ
  • EVAL-SSM2518Z evaluation board documentation and DLL for I2C control
  • Gerber files for Eval board
  • Whether it is pin compatible with TI TPA2010, On-Semi NCP2820?
  • +32-bit Audio Converters: FAQ
  • +AD1835: FAQ
  • +AD1836: FAQ
  • +AD1836A: FAQ
  • +AD1845: FAQ
  • +AD1852: FAQ
  • +AD1854: FAQ
  • +AD1862: FAQ
  • +AD1871: FAQ
  • +AD1877: FAQ
  • +AD1881: FAQ
  • +AD1896: FAQ
  • +AD1937: FAQ
  • +ad1938: FAQ
  • +AD1939: FAQ
  • +AD193x: FAQ
  • +AD1955: FAQ
  • +ad1970: FAQ
  • +AD1974: FAQ
  • +AD1981: FAQ
  • +AD1986: FAQ
  • +AD1992: FAQ
  • +adau1381: FAQ
  • +ADAU1472: FAQ
  • +ADAU1761: FAQ
  • +ADAU1772: FAQ
  • -ADAU1860: FAQ
    • ADAU1860: Using SDK to configure Audio Path
    • ADAU1860: Changing Master Clock avoiding audio glitches
    • ADAU1860: Understanding Priorities in ADAU1860 with XEA2
    • ADAU1860: Setting an Interrupt on ADAU1860.
    • ADAU1860: Installing Tools for Xtensa Xplorer
    • ADAU1860: Moving audio data to Hifi3z Core Sample by Sample
    • ADAU1860: Moving Data to Hifi3z Block Based
  • +ADAU1966: FAQ
  • +ADMP441Z: FAQ
  • +ADMP504: FAQ
  • +CODEC: FAQ
  • +Digital Microphone: FAQ
  • +DS4420: FAQ
  • +EVAL-MICT5818Z: FAQ
  • +HD Audio Codecs: FAQ
  • MAX4063: FAQ
  • +MAX4063ETE+: FAQ
  • +MAX4364ESA+: FAQ
  • +MAX4409ETP+: FAQ
  • +MAX4466EUK: FAQ
  • +MAX4469EKA+: FAQ
  • +MAX5407: FAQ
  • +MAX9709EVKIT: FAQ
  • +MAX9720AEUE+: FAQ
  • +MAX97220AETE+: FAQ
  • MAX9722A: FAQ
  • +MAX9722AETE+: FAQ
  • +MAX9723: FAQ
  • +MAX9730ETI+: FAQ
  • MAX9737ETG+: FAQ
  • +MAX9737ETG+T: FAQ
  • +MAX9738EWP+G45: FAQ
  • +MAX9742ETX+: FAQ
  • MAX9744: FAQ
  • +MAX9744ETH+: FAQ
  • +MAX9759: FAQ
  • +MAX9768BETG+T: FAQ
  • +MAX9788ETI+: FAQ
  • MAX9814: FAQ
  • +MAX9814EBC+T: FAQ
  • +MAX9814ETD+T: FAQ
  • +MAX98300: FAQ
  • +MAX98306ETD+: FAQ
  • MAX98307: FAQ
  • +MAX98307ETE+: FAQ
  • +MAX98307ETE/V+: FAQ
  • MAX98357A: FAQ
  • +MAX98357ADEV#TQFN: FAQ
  • MAX98357AETE+: FAQ
  • +MAX98357AETE+T: FAQ
  • +MAX98357AEWL+T: FAQ
  • +MAX98357BETE+: FAQ
  • +MAX98358EVSYS#WLP: FAQ
  • +MAX98360AENL+T: FAQ
  • +MAX98365AEWC+: FAQ
  • MAX98372: FAQ
  • +MAX98372ETJ+: FAQ
  • +MAX98374EFF+: FAQ
  • +MAX98380: FAQ
  • +MAX98390CEWX+T: FAQ
  • +MAX98390EVSYS#: FAQ
  • MAX98390EWX+: FAQ
  • +MAX98390EWX+T: FAQ
  • +MAX98395EVSYS#: FAQ
  • +MAX98395EWG+: FAQ
  • +MAX98396EVSYS#: FAQ
  • +MAX98396EWB+: FAQ
  • +MAX98400BETG+: FAQ
  • +MAX98500EWE+: FAQ
  • +MAX9850EVKIT#: FAQ
  • +MAX98927EWX+: FAQ
  • +MEMS mics: FAQ
  • +Power supplies, capacitors, and application schematics: FAQ
  • REGEN and THERM: FAQ
  • +SigmaStudio: FAQ
  • +ssm2166: FAQ
  • +SSM2250: FAQ
  • +SSM2302: FAQ
  • +SSM2306: FAQ
  • ssm2311: FAQ
  • +SSM2315: FAQ
  • +SSM2380: FAQ
  • ssm2518: FAQ
  • +SSM2529: FAQ
  • +ssm2602: FAQ
  • +SSM2603: FAQ
  • +SSM3302: FAQ

ADAU1860: Setting an Interrupt on ADAU1860.

5417.FDSP_IRQ.zip

Disclaimer: The code and project was tested with the following versions of the sw:

  • Xtensa Xplorer 9.0.20
  • Xtensa OCD 15.03
  • Core Configuration: hifi3z_lark_RI_2022_10
  • Xtensa Build Tools: RI 2022_10
  • Lark SDK 3.3.1

The following code snippet shows how to configure an interupt using the ADAU1860 SDK. For a full implementation please download the code attached.

The code also shows how to use the generated c-files from Lark Studio to load a FDSP program using the Hifi3z Core.

 /*
* First is to configure the pin that want to be used as an interrupt source
*/

err = adi_lark_mp_set_pin_mode(&device, gpio_number, API_LARK_MP_MODE_IRQ_IN);


/*
* Now we configure it if we want active high/low/rising/falling edge
* and we configure the time debounce to avoid multiple signals
*/

err = adi_lark_int_set_mp_input_irq_mode(&device, IRQ1, 2); //0 = Active Low; 1 = Active High; 2 = Rising Edge; 3 = Falling Edge
LARK_ERROR_RETURN(err);
err = adi_lark_mp_set_irq_input_debounce(&device, API_LARK_MP_DEBOUNCE_5MS);
LARK_ERROR_RETURN(err);

/*
* The interrupts can be linked to 3 different channels MP_IRQ_IN 1, 2 or 3.
* In this case we are linking it with the IRQ1. Multiple pins can be linked
* to the same IRQ
*/

err = adi_lark_int_enable_mp_input_irq(&device, IRQ1, (1 << gpio_number), 1);
LARK_ERROR_RETURN(err);

/*
* Then we get the id of the interrupt.
*/

err = adi_lark_int_get_soc_irq_id(&device, API_LARK_SOC_IRQ_MP_IN_IRQ1, &button_irq_id);
LARK_ERROR_RETURN(err);

/*
* We clear the interrupt flag before enabling the interrupt
*/

err = adi_lark_int_clr_mp_input_irq(&device, IRQ1);
LARK_ERROR_RETURN(err);

/*
* Finally we enable the interrupt.
* the interrupt is linked with the handler button_irq_handler() that was defined before
*/

_xtos_set_interrupt_handler_arg(button_irq_id, button_irq_handler, NULL);
_xtos_interrupt_enable(button_irq_id);

Tags: Integrated/Special Purpose A/D Converters adau1860 Audio CODECs
  • Share
  • History
  • More
  • Cancel
 
Related Content
  • ADAU1860: Using SDK to configure Audio Path
    EngineerZone
    AudioPathAPI.zip Disclaimer : The code and project was tested with the following versions of the sw: Xtensa Xplorer 9.0.20 Xtensa OCD 15.03 Core Configuration: hifi3z_lark_RI_2022_10 Xtensa...
  • err
    err
    $core_v2_language.Truncate($item.HtmlDescription('Web'), 200, "...")
  • ADAU1860: Changing Master Clock avoiding audio glitches
    EngineerZone
    Disclaimer : The code and project was tested with the following versions of the sw: Xtensa Xplorer 9.0.20 Xtensa OCD 15.03 Core Configuration: hifi3z_lark_RI_2022_10 Xtensa Build Tools: RI 2022_10...
 
Related Content
  • ADAU1860: Using SDK to configure Audio Path
    EngineerZone
    AudioPathAPI.zip Disclaimer : The code and project was tested with the following versions of the sw: Xtensa Xplorer 9.0.20 Xtensa OCD 15.03 Core Configuration: hifi3z_lark_RI_2022_10 Xtensa...
  • err
    err
    $core_v2_language.Truncate($item.HtmlDescription('Web'), 200, "...")
  • ADAU1860: Changing Master Clock avoiding audio glitches
    EngineerZone
    Disclaimer : The code and project was tested with the following versions of the sw: Xtensa Xplorer 9.0.20 Xtensa OCD 15.03 Core Configuration: hifi3z_lark_RI_2022_10 Xtensa Build Tools: RI 2022_10...
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

©2025 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

©2025 Analog Devices, Inc. All Rights Reserved