AnsweredAssumed Answered

How to generate interrupt using external clock and frame sync?

Question asked by SmartIC on Mar 15, 2014
Latest reply on Mar 18, 2014 by Jithul_Janardhanan

DSP: 21489

Audio Codec:AD73322L

Operation mode: Using AD73322L generate bit clock,frame sync.

Question: The DMA is work,but no interrupt generate.When using Internal clock the DMA interrupt enter. Why & How to do?

Thanks.

 

Init code:

section("seg_dmda") unsigned short RxBlock_A0[64];

section("seg_dmda") unsigned short RxBlock_A1[sizeof(RxBlock_A0)];

  //Set up the TCBs to rotate automatically

int TCB_RxBlock_A0[4] = { 0, sizeof(RxBlock_A0), 1, 0};

int TCB_RxBlock_A1[4] = { 0, sizeof(RxBlock_A0), 1, 0};

 

   *pSPCTL1 |= (SLEN16 | FSR | DIFS | CKRE | LFS | SDEN_A | SCHEN_A);

    TCB_RxBlock_A0[0] = (unsigned int) TCB_RxBlock_A1 + 3 - OFFSET + PCI ;

    TCB_RxBlock_A0[3] = (int) RxBlock_A0 - OFFSET ;

    TCB_RxBlock_A1[0] = (unsigned int) TCB_RxBlock_A0 + 3 - OFFSET + PCI ;

    TCB_RxBlock_A1[3] = (int) RxBlock_A1 - OFFSET ;

   *pCPSP1A = (unsigned int)TCB_RxBlock_A0 - OFFSET + 3;  

   *pSPCTL1 |= ( SPEN_A);

Outcomes