Accessing MAX11040 from C6713B DSP

Status
Not open for further replies.

jkengg

Newbie level 1
Joined
Jan 5, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Bangalore
Activity points
1,291
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:
 

Attachments

  • MAX11040.pdf
    354.8 KB · Views: 87

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…