Hey. I am trying to learn DDS and how to create a varying frequency sine wave using DAC.

I am using formula above to calculate sample values for my sine wave. In my case, I am using 1024 points and full scale is 4095.
When n=1, the calculated value is 25,126
when n=2, the calculated value is 50.25 (Assume zero value is 0)
I am checking my calculations with the sine look up table generator:

And I can see that the value n[0] is 2048 which is half of the maximum value 4095,
n[1] is 2060 which is 12 higher then 2048, however, in my case I have calculated it to be 25,126. Any ideas why would that be?

I am using formula above to calculate sample values for my sine wave. In my case, I am using 1024 points and full scale is 4095.
When n=1, the calculated value is 25,126
when n=2, the calculated value is 50.25 (Assume zero value is 0)
I am checking my calculations with the sine look up table generator:

And I can see that the value n[0] is 2048 which is half of the maximum value 4095,
n[1] is 2060 which is 12 higher then 2048, however, in my case I have calculated it to be 25,126. Any ideas why would that be?
Attachments
-
215.9 KB Views: 3
Last edited: