On Mon, 21 Aug 2000, Andrew Kunz wrote:

> I need to generate a 48-63 Hz sine as part of a PLL for a power system (sync the
> output to the line, slightly out of phase due to the power-generation lag time).
> I have LOTS of time to make it do it's thing.

That's the kind of thing I wrote this for:

http://www.dattalo.com/technical/software/pic/picsine.html

The phase accumulators can be directly fed from a PLL.

Scott

ps. Beware, it's overly commented :).

--
http://www.piclist.com hint: To leave the PICList
mailto:piclist-unsubscribe-request@mitvma.mit.edu