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.

accessing max11040 4 channel 24 bit ADC from 6713B DSP through Mcbsp.

 

Hi 

I am trying to access Max11040 4 channel 24 bit ADC form 6713B DSP through Mcbsp.I f given A command like 0xFO to the ADC it will send all data together 96bits.How can read data each channel from my DSP.I am using DRDY as interrupt.Reading section of my code is given below.Mcbsp clock is at 8.3MHz.

 

/*******************************CODE********************************/

while (!MCBSP_xrdy(hMcbsp)); //Waiting for xrdy interrupt

5315.MAX11040.pdf

 MCBSP_write(hMcbsp,0xF0); //Sending Read Command to ADC

 

while (!MCBSP_rrdy(hMcbsp)); //Waiting for rrdy interrupt  

       

CH_A_DATA = MCBSP_read(hMcbsp); //Reading channel A from ADC

 

while (!MCBSP_rrdy(hMcbsp)); //Waiting for rrdy interrupt

 

CH_B_DATA = MCBSP_read(hMcbsp);   //Reading channel B from ADC

while (!MCBSP_rrdy(hMcbsp)); //Waiting for rrdy interrupt

 

CH_C_DATA = MCBSP_read(hMcbsp); //Reading channel C from ADC

while (!MCBSP_rrdy(hMcbsp)); //Waiting for rrdy interrupt

 

CH_D_DATA = MCBSP_read(hMcbsp); //Reading channel D from ADC

 

 

/*******************************CODE********************************/