LED dimming engine: switch mode dimmable LED driver solution based on 8-bit MCU

This article is from the electronic enthusiasts August theme month technical feed, please indicate the source, author Mark Pallones, application engineer of 8-bit microcontroller product department of Microchip Technology Inc.

Switch mode dimmable LED drivers are known for their high efficiency and precise control of LED current. This type of LED driver also provides dimming, allowing end users to reduce their power consumption while creating fantastic lighting effects. 8-bit microcontroller (MCU)-based solutions provide the necessary modules for such applications, enabling communication, customization, and intelligent control. In addition, integrated core-independent peripherals provide significant flexibility compared to pure analog or ASIC implementations, extending the functionality of lighting products while shaping product differentiation for innovation. This type of intelligent lighting solution with features such as fault prediction and maintenance, energy monitoring, color temperature maintenance, and remote communication and control is so numerous that it will be favored.

While LED drivers have many advantages over previous lighting solutions, there are many challenges in their implementation. But you don't have to worry, after reading this article, you will learn how to use 8-bit MCUs to easily address these design challenges, creating a high-performance switch-mode LED driver solution that is so rich that traditional solutions can only be seen .

The 8-bit microcontroller can independently control up to four LED channels, a unique capability not found in most off-the-shelf LED driver controllers. In Figure 1, the LED dimming engine can be constructed from peripherals provided in a microcontroller. These engines have separate, closed channels that require little or no central processing unit (CPU) intervention to control the switch mode power converter. This frees up the CPU to perform other important tasks, such as monitoring, communication, or new intelligence in the system.

LED dimming engine: switch mode dimmable LED driver solution based on 8-bit MCU

LED dimming engine: switch mode dimmable LED driver solution based on 8-bit MCU

Figure 1: Graphical representation of four LED strings controlled by Microchip's PIC16F1779 8-bit microcontroller

LED dimming engine

In Figure 2, the LED driver based on the current mode boost converter is controlled by an LED dimming engine. The engine is mainly independent of the core by complementary output generator (COG), digital signal modulator (DSM), comparator, programmable ramp generator (PRG), operational amplifier (OPA) and pulse width modulator 3 (PWM3). Peripheral (CIP) composition. These CIPs are combined with other on-chip peripherals such as fixed voltage regulators (FVRs), digital-to-analog converters (DACs), and capture/compare/PWM (CCP) to form a complete engine. The COG supplies a high frequency switching pulse to the MOSFET Q1 to transfer energy and supply current to the LED string. The switching period of the COG output is set by the CCP and duty cycle to maintain the constant current of the LED, depending on the comparator output. The comparator generates an output pulse whenever the voltage across Rsense1 exceeds the output of the PRG module. The input to the PRG is derived from the OPA output in the feedback circuit, which is configured as a slope compensator to counteract the effects of the intrinsic subharmonic oscillations when the duty cycle is greater than 50%.

The OPA module is implemented as an error amplifier (EA) with a Type II compensator configuration. The FVR is used as a DAC input to provide a reference voltage for the OPA non-inverting input based on the LED constant current specification.

USB Cable

USB Cable :1.Type A: almost every USB cable has a standard flat rectangular interface at one end. Most computers have a usb-a port to connect to only one USB port.

2.Type-B: almost square connector for printers and other active devices connected to computers. They are not common now because most devices have been moved to smaller connections.

3.Mini USB: a smaller connector type that was standard for mobile devices before micro USB. It's not common today, but you'll see it on some cameras, PlayStation 3 controllers, MP3 players, etc.

4.Micro USB: the current standard for mobile and portable devices, even smaller than Mini USB. Although you can still find micro USB on smartphones, tablets, USB battery packs and game controllers, some have turned to usb-c

5.Type-C: the latest USB standard, which is a reversible cable, promises higher transmission speed and higher power than previous USB types. It can also take into account a variety of functions.

USB Cable

ShenZhen Antenk Electronics Co,Ltd , https://www.atkconnectors.com