Skip to main content
michalt
Associate
January 20, 2017
Question

Sine waveform generator

  • January 20, 2017
  • 2 replies
  • 808 views
Posted on January 20, 2017 at 23:58

Hello,

here, 

http://www.st.com/content/ccc/resource/technical/document/application_note/05/fb/41/91/39/02/4d/1e/CD00259245.pdf/files/CD00259245.pdf/jcr:content/translations/en.CD00259245.pdf

  on page 15 is a formula for a y

SineDigital

and my question is why in this formula is 0xFFF + 1 and not just 0xFFF? 

    This topic has been closed for replies.

    2 replies

    T J
    Senior III
    January 20, 2017
    Posted on January 21, 2017 at 00:14

    hi,

    it is normal for computer to start counting at Zero.

    Zero has a right to life like any other number... and in the cybersphere  Zero is usually the dominant processing flag

    So, if you have 12 bit resolution it reads maximum 0xFFF, but it includes the entity called zero.

    in fact you formula on page 15 is exactly that, Maximum value and the zero = 0xFFF + 1.= 4096

    4096 counts = 12bit, the count starts with the 1st entity called Zero and ends at 0xFFF.

    john doe
    Senior III
    January 21, 2017
    Posted on January 21, 2017 at 04:59

    someone has to start the slow clap