AnsweredAssumed Answered

How to use FLAG0/IRQ0 as Interrupt source...

Question asked by Glorfindel1972 on Sep 13, 2010
Latest reply on Sep 13, 2010 by Glorfindel1972

Hello,

 

I am using an ADSP21369 DSP and i am trying to get an Interrupt from an external source on FLAG0/IRQ0 Pin 124 at the DSP.

 

...so just some simple Questions:

 

- How do i use the Flag0/IRQ0 as an external Interrupt source (Hardwired connection within the Hardware-Layout).

     (Edge-Sensitive, 3.3 V Logic Level..)

- do i have to config the SRU - Unit to do so ...?

 

Here is the code i use to configure the Int:

 

ASM:

 

_init_IRQ:
     leaf_entry;
        //Enable the pin as IRQ0
        ustat3=dm(SYSCTL);
        bit set ustat3 IRQ0EN;
        dm(SYSCTL)=ustat3;

 

        //Set the IRQ pins to be edge sensitive
        bit set mode2 IRQ0E;

 

        //Set up the interrupt hardware and enable Interrupts to handle external signal
        bit clr IRPTL IRQ0I;
        bit set IMASK IRQ0I;

 

        //-----------------------------------------------------------------
        // Enable interrupts (globally)
        BIT SET MODE1 IRPTEN;    
    leaf_exit;
_init_IRQ.END:
    RTS;

 

C:

int debug = 0

 

void main( void )
{   
    InitPLL_SDRAM();
    init_IRQ();
   
    interrupt(SIG_IRQ0,IRQ0_routine);
   
    for(;;)
    {
        //raise(SIG_IRQ0); // For Debug only
        debug++;
    }
}

 

void IRQ0_routine(int sig_int)
{
    debug++;
}

 

Connecting the Flag0/IRQ0 Pin on my DSP with 3.3V does not trigger the Interrupte.g. the breakpoint on debug++ in the ISR is not reached.

 

Thx for any kind of Help...

Outcomes