This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320C5505: Not getting spi clock

Part Number: TMS320C5505
Other Parts Discussed in Thread: ADS1174

dear 

following is my code

i am not getting spi clock..i tried sample code too..here i am interfacing ads1174 to tms320c5505..

void spiInit()
{

Uint16 temp;
temp = SPICCR;
SPICCR = temp & 0xBFFF;
SPICDR = 0x0004;
SPICCR =~(1<<15); // reset the SPI_CLK
// SPICDR = 0x0031; // SPI_CLK = (SPI_IP FREQ/(CLKDIV+1))=120MHz/11+1=7.692MHz
SPIDCR1=0x0000;


SPICMD1 = 0x000F; // 16 character, FLEN+1, no interrupts
SPICMD2 = 0x00F1; // CLEN, type of transaction,read,30bits
SPICCR =(1<<15); // Enable the SPI_CLK*/
}

int main(void)
{

ProgramPLL_100MHz();

SYS_PCGCR1=0;
SYS_PCGCR2=0;


SYS_EXBUSSEL =0x3000;
// SYS_EXBUSSEL = 0x1A00; //spi mode1+gpio

i=0;j=0;

spi_reset();

spiInit();

FrameLength_setup(3);
adcInit();

while(get_spi_busy_status());


while(1)
{
while(!((SPISTAT1 & 3) ^ 2)& 2); //temporary use. most likely will need to consider the other reserved
//bits to not interfere with the correctness of the result.
SPIDAT12_clear();
SPICMD2 = SPICMD2_READ;
adcOutCh5[i]=(SPIDAT2 & 0x00FF);
adcOutCh5[i]=adcOutCh5[i]<<8+SPIDAT1;
printf("%d\n",adcOutCh5[i]);
i=i+1;
// SPI_dataSend ('k', 8);
}


*/

}