摘要 |
A method includes receiving a sense signal having multiple pulses, where the sense signal is based on an output of a dimmer. The method also includes, for each of multiple sampling periods, (i) identifying at least one pulse duty cycle for at least one pulse in the sense signal during that sampling period and (ii) generating an output value identifying a duty cycle for driving one or more light emitting diodes (LEDs). The output value is based on the at least one pulse duty cycle. The method further includes filtering the output values using a filter and adjusting the filter based on a rate at which the output of the dimmer changes. The filter could be adjusted by controlling whether an additional resistor forms part of an RC filter based on a sampling state. |