sine wave: how to set amplitude?

FPGA projects on this site, or abroad

sine wave: how to set amplitude?

Postby jasonkee » Mon Nov 30, 2009 3:26 am

Hi. If i generate a sine wave signal(Full Scale - 24bit - 5Vpp) using the altera NCO, how to generate a 0.8902 Vpp sine wave?

Thanks
jasonkee
 
Posts: 12
Joined: Sat Feb 07, 2009 2:18 am

Postby bluemind » Mon Nov 30, 2009 10:10 am

Divide it with a OpAmp with .8902/5 amplification.

But thats not what you want to hear.

You can divide the 24bit signal, by 5/.8902. guessing the DAC ore what you are going to do with the sine wave is linearly, it will do the trick.
bluemind
 
Posts: 44
Joined: Wed Aug 16, 2006 12:17 pm

Postby WadeH » Mon Nov 30, 2009 5:36 pm

Easiest would be to run your 24-bit value through a 24x24=48bit multiplier with the other input set = 0xCADE66, or 2^24*.89025. The upper 24-bits of the output would be sent to a DAC with a range (reference voltage) of 1 volt.

As long as we're assuming that you reconstruct the sine-wave with a DAC, you could modulate the reconstruction-DAC's reference voltage with another DAC. This would require another DAC (maybe another section of a multiple-output DAC, if each had its own Vref.)

Wade Hassler
WadeH
 
Posts: 13
Joined: Fri Apr 22, 2005 3:17 pm


Return to General projects