Page 1 of 1

minimalistic sine wave generation algorithmn

PostPosted: Fri Feb 14, 2014 4:44 pm
by chris
The generation algorithmen needs only one multiplication and 3 additions.
( there is also a division through 65536 but this is only for scaling
to integer reasons. The division may be replaced by a shift operation
and a compare to keep the sign )

History:
I was trying to simulate a spring-mass-system. It was possible to
reduce the equations for this system to the algorthmen below to generate a
sine wave.

Re: minimalistic sine wave generation algorithmn

PostPosted: Tue Aug 12, 2014 11:27 am
by chris
My further optimized version.
A discussion about this topic you can find here:
http://www.mikrocontroller.net/topic/324429#3534636

Re: minimalistic sine wave generation algorithmn

PostPosted: Sat Aug 23, 2014 5:20 am
by chris
Diagram for DDS sin wave generation:
http://www.96khz.org/oldpages/limitsofdds.htm

Re: minimalistic sine wave generation algorithmn

PostPosted: Sat Sep 27, 2014 12:35 pm
by chris
Fast int16 sine wave calculation in C:
http://www.atwillys.de/content/cc/sine- ... dded-in-c/