On 6/25/2012 7:46 AM, alan smith wrote: > I have a 15.5KHz PWM being provided to me, where of course the duty cycle= will adjust the "dc" value ranging over the 3.3V output of the device. So= what is the optimum values for the RC filter....calculate at a 50% duty cy= cle, or does it even matter? Just use 64.5uSec (roughly) and find some val= ues to fit that ? > > This being the PIC list and all... why don't you just use a PIC timer to=20 measure the incoming pulsewidth? Non-PIC solutions might include the=20 using the pulse to gate a clock signal into a counter which will count=20 up. Or an integrator to ramp up to the equivalent analog value. Any of=20 these is probably preferable to filtering the pulse. But that depends=20 on what you are really doing. There is no optimal solution until all=20 necessary constraints are discussed. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .