sine wave: how to set amplitude?

Discussion in 'Embedded Systems and Microcontrollers' started by jasonkee111, Nov 29, 2009.

  1. jasonkee111

    Thread Starter New Member

    Mar 7, 2009
    4
    0
    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
     
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    This is very simple. The bit weight as I like to call it is given by (range)/(2^(number of bits)) so in you case it will be 5/(2^24)=bw
    If you want to create a value equal to 0.4551 volt with your DA volt. just calculate 0.4551/bw = 1527062.20032. Then write the rounded value 1527062 to your AD
     
Loading...