Thanks, Scott. That'll be interesting reading. I'm working the PLL from the angle of changing time between steps rather than amplitude in order to keep phase locked (my only input is a zero-crossing detector). I also have to generate multiple waves, since I'm generating "real" power not just a 110V household socket. Andy Scott Dattalo on 08/21/2000 10:20:51 AM Please respond to pic microcontroller discussion list To: PICLIST@MITVMA.MIT.EDU cc: (bcc: Andrew Kunz/TDI_NOTES) Subject: Re: [PIC]: Sine table 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 -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu