SwingeyP
Member
Hello.
I am trying to figure out how the equation for the AD9850 works.
The data sheet -->http://www.analog.com/static/imported-files/data_sheets/AD9850.pdf describes the formula on page 8
This VERY USEFUL utility -->http://designtools.analog.com/dt/dds/ad9850.html tells you what the 5 words should be for a given frequency.
I have attached some code.
I would have expected the fout to correspond some way to the four data bits to be sent. If I put these values into the utility I get something in the 60mhz range :-(
I feel my maths is all wrong.
Also I'll need to split the fout into 4 words - I was thinking a function that would loop 8 times with shift right on each of the bits. Can you do this to a variable? Examples only seem to do this with a port.
Can someone point me in the right direction with the maths please? (maths failure at school)
Regards - Paul
I am trying to figure out how the equation for the AD9850 works.
The data sheet -->http://www.analog.com/static/imported-files/data_sheets/AD9850.pdf describes the formula on page 8
This VERY USEFUL utility -->http://designtools.analog.com/dt/dds/ad9850.html tells you what the 5 words should be for a given frequency.
I have attached some code.
I would have expected the fout to correspond some way to the four data bits to be sent. If I put these values into the utility I get something in the 60mhz range :-(
I feel my maths is all wrong.
Also I'll need to split the fout into 4 words - I was thinking a function that would loop 8 times with shift right on each of the bits. Can you do this to a variable? Examples only seem to do this with a port.
Can someone point me in the right direction with the maths please? (maths failure at school)
Regards - Paul