摘要 |
In a device and method for providing electrical current to a Light Emitting diode (LED) via switch mode power converter, at least one Integrated Circuit (IC) is provided and uses a hardware description language; an electronic switch configurable to have a switching time period. An Analogue to Digital converter (ADC) is configured to obtain a digitized voltage input. A voltage comparator is configured to obtain a discharge time of an inductive element of the switch mode power converter at each time period. During operation, the IC obtains the digitized voltage input, the discharge time of the inductive element, the desired electrical current, a reference constant, and the switching time period of the electronic switch as inputs and calculates the switch-on time of the electronic switch at each switching time period, so that the switch-on time of the electronic switch regulates the electrical current flowing into the LED.
|