AnsweredAssumed Answered

Generate PCG interrupt

Question asked by ItamarEliyahu on May 19, 2014
Latest reply on May 19, 2014 by Jithul_Janardhanan

Hi

I am trying to generate intrrupt based on PCG sync pulse ( Rising edge).

i do so as follows ;

 



   //configure sync pulse

   *pPCG_CTLA0 &= ~ENFSA|~ENCLKA;

   asm("nop;");

   *pPCG_PW = 0x00000006;//SYNC PULKSE WIDTH (*4nsec) 

    *pPCG_CTLA0 = 0x000030D3;

    NT_22_I);

     *pPCG_CTLA0 |= ENFSA|ENCLKA;

 

// cinfigure interrupt

   SRU(PCG_FSA_O,DAI_INT_22_I);

     *pPCG_CTLA0 |= ENFSA|ENCLKA; 

   REG(DAI_IMASK_RE) |= (SRU_EXTMISCB0_INT); //unmask LOW (clear appropriate bit) mask interrupt

    REG(DAI_IRPTL_PRI) &= ~(SRU_EXTMISCB0_INT);                    //unmask LOW (clear appropriate bit) priority interrupt

interrupt(SIG_DAIL, Handler);

 

//under the Handler

interrupt_reg = REG(DAI_IRPTL_L);

 

 

 

my problem is that i jump to the Handler , but DAI_IRPTL_L doesn't cleared after reading and the process always got interrupted....

it seeme like i have any problem in the masking,

the pulse sync works well.

 

Itamar

Outcomes