AnsweredAssumed Answered

SW9 button en ADSP-21489 EZ-Kit

Question asked by pereira on Aug 12, 2016
Latest reply on Oct 18, 2016 by pereira

Hi,

I'm trying to make the SW9 button work on the ADSP-21489 EZ-Kit.

I took an example code : C:\Program Files (x86)\Analog Devices\VisualDSP 5.1.2\214xx\Examples\ADSP-21489 EZ-Board\Talkthrough_IIR_Accelerator

and add a little change :

 

//Map the IRQ1 and IRQ2 interrupt to its handler

void    Setup_ADSP21489()

{

    asm("#include<def21489.h>");

 

    // SW8

    asm("bit set MODE2 IRQ1E;");

    *pSYSCTL|=IRQ1EN;

    interrupts(SIG_IRQ1,IRQ1_ISR);

   

    //SW9

    asm("bit set MODE2 IRQ2E;");

    *pSYSCTL|=IRQ2EN;

    interrupts(SIG_IRQ2,IRQ2_ISR);

}

 

I don't understand why the SW9 button remains ineffective...

 

I added my code, inspired from IIR_accelerator code. Did I miss something ?

Attachments

Outcomes