www.piclist.com/techref/method/math.htm?key=sin

BY : Peter L. Peres email (remove spam text)

On Wed, 4 Nov 1998, Scott Dattalo wrote:

{Quote hidden}

Hello,

a reasonably bright idea has just struck me. I have been following this

thread for some time and I am familiar with the table method of generating

a sine (quarter wave stored).

My idea is, that since the Bresenham circle algorythm exists, it is

possible to compute the 'next' value for a phase continuous sine wave

without storing any table and by obtaining results directly in integers

(no floats no lookups no nothing).

Any single DTMF tone starts at phase 0. So, one can use the Bresenham

circle algorythm to approximate the 1st quarter wave of a sine. This

should replace the quarter sine table.

Because of the way the Bresenham algorythms work it should be possible

to arrange for only an 8 bit accumulator to be necessary for calculations.

I have not pursued the idea further for now, but based on a paper sketch

it should work out on 8 bit unsigned for an output precision of 6 bits

(for each sine wave). How does this strike you ?

Peter

In reply to: <Pine.GSO.3.95q.981104081401.21519A-100000@unix.sri.com>

See also: www.piclist.com/techref/method/math.htm?key=sin