AnsweredAssumed Answered

ADSP-21489  sport single word transmit

Question asked by tree on Aug 27, 2012
Latest reply on Aug 28, 2012 by Harshit.Gaharwar

Hi,

     I am using sport5 of ADSP-21489 to transmit a single word.I used the internal generate CLK and FS ,my program is as follows,

    

void Init_SPORT5()

{

//为防止出现错误,首先禁用sport5口

unsigned  int phase_ave1;

*pSPMCTL5=0;

*pSPCTL5=0;

*pDIV5=20;

//相位检测,只需要传输一位相位差数据

phase_ave1=0x4500048;

*pTXSP5A=phase_ave1;

*pSPCTL5 = (OPMODE | SLEN32 | SPEN_A | SDEN_A | SPTRAN | IFS | ICLK | CKRE | FSR);

delay(2);

}

My SRU register is set as

SRU(SPORT5_DA_O,DAI_PB13_I);

SRU(SPORT5_DB_O,DAI_PB14_I);

SRU(SPORT5_CLK_O,DAI_PB15_I);

SRU(SPORT5_FS_O,DAI_PB16_I);

     But i can not receive the right data ,can you help me and tell me where the problem is.

Outcomes