Thanks, Dave. I couldn't see the forest for the trees. Lance > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Dave Tweed > Sent: Sunday, April 20, 2003 11:38 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: PIC encoder simulator > > > Lance Beck wrote: > > The encoder I want to simulate sends 60 pulses per shaft revolution. > > ... > > Am I missing something? > > Yes, a factor of 60. Your encoder converts RPM directly to PPS, so your > pulse rate varies from 10 to 500 pps (not 600 to 30000). > > > Assuming the first problem can be solved, would a lookup table be the > > easiest way to handle feeding values to whatever method I use > to vary the > > pulse times or is there a simpler way? > > Another good application for DDS techniques. Many references in the > archives. > > -- Dave Tweed > > -- > 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