jkengg
Newbie level 1
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.
while (!MCBSP_xrdy(hMcbsp)); //Waiting for xrdy interrupt
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
Thanks
8-O:idea:
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.
while (!MCBSP_xrdy(hMcbsp)); //Waiting for xrdy interrupt
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
Thanks
8-O:idea: