Hi I am having lots of trouble interfacing an ADC3101 evm-k with my c5515 ezDSP kit, I am using i2S2 interface ane have configured the EBSR register correctly, I have my AIC3204 configured as a Master and my ezdsp as slave, basically all I am doing is trying to replace the AIC3204 codec with the ADC3101 by odyfying the loopback example code that comes with the ezdsp kit, however I am unable to get any results, is there anything I am missing.
I configure the EBSR as follows:
CSL_FINST(CSL_SYSCTRL_REGS->EBSR, SYS_EBSR_PPMODE, MODE1)
I then cintinue to replace the I2S intance0 with instance 2
Int16 USBSTK5505_I2S_init( )
{
I2S_Config hwConfig;
Int16 result = 0;
/* Open the device with instance 0 */
hI2s = I2S_open(I2S_INSTANCE2, I2S_POLLED, I2S_CHAN_STEREO);
/* Set the value for the configure structure */
hwConfig.dataType = I2S_STEREO_ENABLE;
hwConfig.loopBackMode = I2S_LOOPBACK_DISABLE;
hwConfig.fsPol = I2S_FSPOL_LOW;
hwConfig.clkPol = I2S_RISING_EDGE;
hwConfig.datadelay = I2S_DATADELAY_ONEBIT;
//hwConfig.datapack = I2S_DATAPACK_ENABLE;
//hwConfig.signext = I2S_SIGNEXT_DISABLE;
hwConfig.datapack = I2S_DATAPACK_DISABLE;
hwConfig.signext = I2S_SIGNEXT_ENABLE;
hwConfig.wordLen = I2S_WORDLEN_16;
hwConfig.i2sMode = I2S_SLAVE;
hwConfig.FError = I2S_FSERROR_ENABLE;
hwConfig.OuError = I2S_OUERROR_ENABLE;
/* Configure hardware registers */
result += I2S_setup(hI2s, &hwConfig);
result += I2S_transEnable(hI2s, TRUE);
return result;
}
and poll the recieve interrupt flag as follows
void USBSTK5505_I2S_readRight(Int16* data)
{
ioport CSL_I2sRegs *regs;
regs = hI2s->hwRegs;
while((0x08 & regs->I2SINTFL) == 0); // Wait for receive interrupt to be pending
*data = regs->I2SRXRT1 ; // 16 bit left channel receive audio data
}
but I stll get absolutely no data, any help would be greatly appreciated.
Cheers