Use Spehro's PLL idea with an 8-bit counter in the feedback loop. Your signals are slow enough that it should be able to maintain good lock and provide evenly spaced pulses. Take a look at a 4046. -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Patrick J Sent: Tuesday, August 21, 2001 3:18 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: Howto make 0-50 hz into 0-400 ? >..or build a circuit that generates 8 pulses on each input edge - you >could probably do this with a 4017 CMOS counter. hmm, I had some wild idea about doing that.. but wonderd howto make the 8 pulses come evenly spaced and still not overlap into next 50 hz cycle if the pulses are too far apart it will still be dong pulse 7 or 8 when next 50 hz pulse comes. Tho you got me thinking.. maybe theres no need to have the pulses evenly spaced but just fire 8 times as fast as it can take it basically - should work. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics