Gurjeet- > i am working on c5402 and using 16 bit codec AD50,how > can is convert the sampled data which is 16 bit to DAC > which is 12 bit. The AD50 already has 16-bit output. Why do you want to convert? Jeff Brower DSP sw/hw engineer Signalogic |
|
Re: 16 Bit data on 12 bit Dac
Started by ●August 9, 2002
Reply by ●August 10, 20022002-08-10
Gurjeet- > My objective is to take the analog signal through > ad50 and send it out on DAC .Now my problem is when > AD50 ADC conevert the analog signal to 16 bit samples > which is received in DSP5402 serial port 0x0021.now i > want to sent the sample word to DAC TLV5639 which is > 12 bit .AD50 digital sample is signed. If both ADC and DAC are signed: DAC = ADC >> 4; If DAC is unipolar (unsigned): DAC = (ADC >> 4) + 2048; You will lose least significant 4x lsb of AD50 samples, but that's the way it is. Jeff Brower DSP sw/hw engineer Signalogic > --- Jeff Brower <> wrote: > > Gurjeet- > > > > > i am working on c5402 and using 16 bit codec > > AD50,how > > > can is convert the sampled data which is 16 bit to > > DAC > > > which is 12 bit. > > > > The AD50 already has 16-bit output. Why do you want > > to convert? > > > > Jeff Brower > > DSP sw/hw engineer > > Signalogic |