Forum Discussion
Altera_Forum
Honored Contributor
15 years agosine angle conversion
sir/mam can you plz help me to find sine or cosine angle in decimal range. like sine 30 in the range of 0 to 3954 etc.what is the formula to convert this?
Altera_Forum
Honored Contributor
15 years agoIf you have code for NCO then I assume you mean you have code for phase accummulator. Then all you have to do is portmap your accummulator result to theta_in and get sin/cos data from LUT.
If your accummulator width is wider than LUT address bits then discard some LSBs of accumulator.