Hello, we have interfaced ADSP 21060 to AD1836 in our designed board.we are transmitting lookup table(48 samples) to generate 2Khz sinewave at DAC output.And output of this DAC,looping it back to ADC.At both DAC and ADC we are getting 2khz sinewave. I need to read back the values from ADC (which is connected to Receive pin of ADSP 21060) using interrupt method.I tried to read back those values,but i am not getting valid data.there is loss of data(missing samples)we have implemented in TDM mode of operation. The settings of SPORT and Codec are: *(int *)SRCTL0=0x00; *(int *)STCTL0=0x00; *(int *)STCTL0=0x001802F0; *(int *)SRCTL0=0x078c12F0; *(int *)STCTL0=0x001c02F0; *(int *)MTCS0=0x00000000; *(int *)MRCS0=0x00000000; *(int *)MTCS0=0x000000FF; *(int *)MRCS0=0x000000FF; command_SPI(0xD280); //ADC control reg2 command word command_SPI(0xD280); //ADC control reg2 command word command_SPI(0x0390); //DAC control reg1 command word command_SPI(0x0390); //DAC control reg1 command word command_SPI(0x1008); //DAC control reg2 command word command_SPI(0x23FF); //volume control1 register command_SPI(0x33FF); //volume control2 register command_SPI(0x53FF); //volume control4 register command_SPI(0x63FF); //volume control5 register command_SPI(0x73FF); //volume control6 register command_SPI(0x8800); //ADC peak level data register1 command_SPI(0x9800); //ADC peak level data register2 command_SPI(0xA800); //ADC peak level data register3 command_SPI(0xB800); //ADC peak level data register4 please let me know what is problem? thanking you, smitha
problem in receiving data
Started by ●February 8, 2006