Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540

Ads

Discussion Groups

Discussion Groups | TMS320C54x | Re: 16 Bit data on 12 bit Dac

Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).

  

Post a new Thread

Re: 16 Bit data on 12 bit Dac - Jeff Brower - Aug 9 13:22:00 2002



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






(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )

Re: 16 Bit data on 12 bit Dac - Jeff Brower - Aug 10 15:18:00 2002

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





(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )