Hi All,
I am new to DSP & this forum. I am trying to interface ADS8361 EVM Rev.B with TMS320VC5510 DSK using 5-6K Rev.B board.
Mode II: M1 open, M0 closed, A0 Closed.
MCBSP_Config mcbspCfg0 = {
0x0000, /* Serial Port Control Register 1 */
0x0200, /* Serial Port Control Register 2 */
0x0060, /* Receive Control Register 1 */
0x0004, /* Receive Control Register 2 */
0x0000, /* Transmit Control Register 1 */
0x0001, /* Transmit Control Register 2 */
0x0013, /* Sample Rate Generator Register 1 */
0x2013, /* Sample Rate Generator Register 2 */
0x0000, /* Multichannel Control Register 1 */
0x0000, /* Multichannel Control Register 2 */
0x0600, /* Pin Control Register */
};
void McBSP0Rcv_ISR(void)
{
/* Wait until a value is received then read it */
while (!MCBSP_rrdy(hMcbsp0));
ad_temp = MCBSP_read32(hMcbsp0);//>>1;
ad_buffer[i++]=ad_temp>>1;
if ( i % 2 == 0 )
Chan1[j++]=ad_temp>>1;
else
Chan2[k++]=ad_temp>>1;
if (i >= BLOCK_SZ ) /* Reset index? */
{
i=0;
j=0;
k=0;
MCBSP_read(hMcbsp0); /* Flush receive register */
MCBSP_read(hMcbsp0); /* Flush receive register */
MCBSP_read(hMcbsp0); /* Flush receive register */
}
}
I can see some data but they looks like mixed from both channel. I have tried to seperate them but unable to get any success. It would be a great help if anyone have any example code. I am not sure about the McBSP settings and CS pin.
Thanks in advance.
Shekhar