Hi all 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? 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! Many thanks Tim -- 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