The backlights used in some LCD panels are not exactly economical: typical current draws of 20 mA to 100 mA are common. Normally the current is determined by a series resistor, which leads to additional power losses. It is considerably more efficient, if a little more complex, to use a switching regulator IC. Alternatively, it is often the case that driving the LCD panel is a microcontroller, which we can press into service to provide regulation in software. Fortunately, the regulation does not need to be exceptionally precise. At the heart of our circuit is T1, a p-channel MOSFET, which is driven by an inverted (active low) pulse-width modulated signal from the microcontroller. Component s D1, L1 and C1 form the remainder of the standard step-down switching regulator configuration. In the circuit diagram the LCD backlight is represented by two LEDs; the current flowing through these LEDs is measured by a shunt resistor, filtered, and finally amplified to a level suitable for input to ...