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.

Interface the ADS8328 SPI with the C5515 ezDSP board .

Other Parts Discussed in Thread: ADS8328

Hi,

I am trying to interface the Ti  ADS8328 with the C5515 ezDSP board. I trying to set  SPI_CS1  to be active low , but the CS1 line keep high 3.3V.

 anyone can help why  SPI_CS1 keep mode HIGH and not set to LOW 1.8V ?

Thanks.

The code with CSL_SPI lib. 

hSpi = NULL;

result = SPI_init();
if(CSL_SOK != result)
{
status = CSL_TEST_FAILED;
return (status);
}
else
{
printf ("SPI Instance Initialize successfully\n");
}

SYS_EXBUSSEL = 0x6100;

printf("EXBUSSEL = %02x\n", SYS_EXBUSSEL);

hSpi = SPI_open(SPI_CS_NUM_1, SPI_POLLING_MODE);
if(NULL == hSpi)
{
return (CSL_TEST_FAILED);
}
else
{
printf ("SPI Instance Opened successfully\n");
}

/** Set the hardware configuration */


hwConfig.spiClkDiv = SPI_CLK_DIV;
hwConfig.wLen = SPI_WORD_LENGTH_8;
hwConfig.frLen = SPI_FRAME_LENGTH;
hwConfig.wcEnable = SPI_WORD_IRQ_ENABLE;
hwConfig.fcEnable = SPI_FRAME_IRQ_DISABLE;
hwConfig.csNum = SPI_CS_NUM_1;
hwConfig.dataDelay = SPI_DATA_DLY_0;
hwConfig.csPol = SPI_CSP_ACTIVE_LOW;
hwConfig.clkPol = SPI_CLKP_LOW_AT_IDLE;
hwConfig.clkPh = SPI_CLK_PH_FALL_EDGE;

result = SPI_config(hSpi, &hwConfig);
if(CSL_SOK != result)
{
return (CSL_TEST_FAILED);
}
else
{
printf ("SPI Instance Configured successfully\n");
}

// Wait for SPI ready //
while((CSL_SPI_REGS->SPISTAT1 & 0x0001) != 0) {};