AnsweredAssumed Answered

ADSP21364 - SPORT

Question asked by savinat on Jul 10, 2009
Latest reply on Jul 13, 2009 by jeyanthi.jegadeesan

Hi, to all

I have to configure the SPORT on ADSP21364 to transmit and recieve in I2S mode.Is there any examples wich bits exactly i need to use.I have done only this, but i `m not sure whether is enough????

 

void Init_Sport0(void)
{

// Sport0A - reciever
// Externally generating Clock and Frame sync
* (volatile int *) DIV0 = 0; //externaly generating clock and frame sync
* (volatile int *) SPCTL0 = (SPEN_A | SDEN_A | SLEN16 | OPMODE | PACK| FRFS | LAFS );
}

 

void Init_Sport1(void)
{

/* Sport1A - transimer */
/* Externally generating Clock and Frame sync*/
* (volatile int *) DIV1 = 0;  /* externally generating clock and frame sync */
* (volatile int *) SPCTL1 = (SPEN_A |  SDEN_A | SLEN16 | OPMODE | SPTRAN | PACK| FRFS | LAFS);

}

Outcomes