On Wednesday 12 February 2003 07:52 am, you wrote: > I need to be able to round off the square wave coming from the HWPM > on my PIC. The HPWM output is being used to generate sound. I am > currently using the standard 2 Rs + 2 caps which works in a fashion > but is still rather harsh. The freq range is potentionaly from 247 > hz up to 12.5 kHz so an active filter is needed (I think). Can any > body point me in the right direction? Another strategy is to use a PIC that has two HW PWMs and use one to drive the clock on a clock-programmable digital active filter IC (like the Maxim MAX7490). > > In return for the favour I can post a rather neat interrupt routine > for the PIC 18 series that will take a series of MIDI codes and > time statements in a DB list and turn that in to a tune on RC2. > Just give it a tune no, set the start flag and away it goes all by > it's self. It includes sub looping! I'd love to see it! -- Ned Konz http://bike-nomad.com GPG key ID: BEEA7EFE -- 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