everyone assumes the input is a pwm stream ,if so what frequency . what if the input is actually an analog level ?
ditto for the output. there not enough info in this question