NEW DATABASE - 350 MILLION DATASHEETS FROM 8500 MANUFACTURERS
SLVA259 TLC5940 SLYT225 SLYT238 OUT15 SN74LVC1G04 OUT0-OUT15 SLVA253 SLVS515 - Datasheet Archive
SLVA259 September 2006 TLC5940 One-Wire Control Eliminating Microprocessor Control for Integrated LED Driver Michael
Application Report SLVA259 SLVA259 September 2006 TLC5940 TLC5940 One-Wire Control Eliminating Microprocessor Control for Integrated LED Driver Michael Day . PMP - Portable Power DC-DC Applications ABSTRACT LED drivers such as the TLC5940 TLC5940 provide many integrated features that require a microprocessor interface to use. When these features are not needed, the TLC5940 TLC5940 can be configured with a single-wire interface for simple on/off control. This provides a low-cost solution to drive multiple LEDs with tight current matching while still allowing for PWM dimming in applications such as backlighting or general illumination. The Texas Instruments TLC5940 TLC5940 LED driver provides up to 120 mA of constant-current sink for driving multiple LEDs. This LED driver includes features such as 16 individually controlled outputs, 1% current matching, 6-bit dot correction, 12-bit PWM dimming, controlled inrush current, error detection, and a 30-MHz data bus. It is ideal for applications such as large screen LED displays, LED signboards, and LED backlighting. In high-end applications such as large screen LED displays and LED signboards, a microprocessor programs the IC to independently control the brightness of each LED with dot correction and/or PWM dimming (also referred to as grayscale dimming). See TI Literature numbers SLYT225 SLYT225 and SLYT238 SLYT238 for more information on dot correction and PWM dimming. Lower end lighting applications require a constant-current source to drive LEDs but do not require the sophisticated control available in these devices. This application report shows how to use a Texas Instruments TLC5940 TLC5940 constant-current LED driver without microprocessor control. Figure 1 shows the TLC5940 TLC5940 16-channel LED driver in a typical configuration driving 16 individual LEDs. Each LED's cathode is connected to the constant-current sinks OUT0 to OUT15 OUT15, which provides exceptional LED brightness control. In this configuration, a microprocessor interfaces to the seven control signals to individually control each LED's brightness. The maximum LED current is set at the IC level with the Iset resistor, R1. This current is calculated with I MAX + 1.24V 31.5 R1 (1) where Imax is the maximum programmed LED current, R1 is the resistor connected between Iref and ground, 1.24V is the internal reference voltage of the TLC5940 TLC5940, and 31.5 is a constant-current gain parameter internal to the IC. The microprocessor then programs the TLC5940 TLC5940 with dot correction and PWM dimming information to adjust each LED's brightness. SLVA259 SLVA259 September 2006 Submit Documentation Feedback TLC5940 TLC5940 One-Wire Control Eliminating Microprocessor Control for Integrated LED Driver 1 www.ti.com VCC VCC TLC5940 TLC5940 OUT0 GSCLK Microcontroller BLANK DCPRG OUT15 OUT15 SCLK SIN XLAT VPRG VCC VCC IREF GND Figure 1. TLC5940 TLC5940 Controlled by MCU Careful examination of the control signals and timing diagrams shows that the IC can be configured with a single-wire interface to provide a simple enable function. In this configuration, the IC turns all LEDs on and off at the same time. When on, each LED's current is set by the resistor connected to Iref. The single-wire interface is achieved by replacing the microprocessor with a SN74LVC1G04 SN74LVC1G04 logic inverter and using a single control signal for on/off control. Figure 2 shows the TLC5940 TLC5940 single-wire on/off control implementation. The inputs to the IC are connected as follows: · DCPRG = GND. Sets the TLC5940 TLC5940 to use its internal EEPROM for dot correction. · VPRG = VCC. Sets the TLC5940 TLC5940 to dot correction. · SCLK = GND. Disables the input · SIN = GND. Disables the input · XLAT = GND. Disables the input · BLANK = ENABLE. Pulling ENABLE low enables the IC. Pulling ENABLE high disables the IC. · GSCLK = inverted and delayed BLANK signal. 2 TLC5940 TLC5940 One-Wire Control Eliminating Microprocessor Control for Integrated LED Driver SLVA259 SLVA259 September 2006 Submit Documentation Feedback www.ti.com VCC VCC TLC5940 TLC5940 SN74LVC1G04 SN74LVC1G04 1 kW GSCLK OUT0 BLANK OUT15 OUT15 33 pF ENABLE DCPRG SCLK SIN XLAT VPRG VCC VCC IREF Figure 2. TLC5940 TLC5940 Controlled With One PWM/ENABLE Signal Connecting DCPRG to ground configures the IC to use its internal EEPROM, which eliminates the need to externally program each individual output's dot correction value. This EEPROM can be programmed by the customer at final assembly or left at the default setting. If not programmed by the customer, the EEPROM's default setting is 111111 binary, or 3Fh, which provides 100% dot correction (full current brightness) to all LEDs. VPRG is connected to VCC to set the IC to dot correction mode, which is required to use the internal EEPROM. A single, external ENABLE signal drives both the BLANK and GSCLK pins. The GSCLK signal must be inverted and delayed by at least 10 nS to meet the IC's timing requirements, which are shown in Figure 3. The SN74LVC1G04 SN74LVC1G04 provides the inversion while the RC filter provides the delay. Pulling BLANK low, waiting longer than 10 nS, then pulling GSCLK high turns on all outputs, OUT0-OUT15 OUT0-OUT15. All outputs turn off with the falling edge of the BLANK signal. If ENABLE is pulled low and held low, the LEDs stay on indefinitely because the TLC5940 TLC5940's internal grayscale counter stays at a count of 1. The next rising edge of ENABLE turns off all outputs and resets the grayscale counter. All other inputs to the IC are disabled by pulling them to ground. SLVA259 SLVA259 September 2006 Submit Documentation Feedback TLC5940 TLC5940 One-Wire Control Eliminating Microprocessor Control for Integrated LED Driver 3 www.ti.com GS PWM Cycle n BLANK t wl1 t wh1 t h4 GSCLK 1 OUT0 (Current) OUT1 (Current) t pd2 t pd2 + td 2 t pd4 t wh3 4096 3 t wl1 GS PWM Cycle n+1 t su4 1 t pd4 nxt d t pd4+ n x t d t pd2 + 14 x td OUT15 OUT15 (Current) t pd3 XERR Figure 3. TLC5940 TLC5940 Grayscale PWM Cycle Timing Chart Figure 4 shows the BLANK and GSCLK signals at turnon. When BLANK goes low, the SN74LVC1G04 SN74LVC1G04 inverts the signal. The RC filter delays the rising edge of the GSCLK signal to meet the required setup time of 10 nS. This setup time is represented by tsu4 in the TLC5940 TLC5940 data sheet. Although the schematic in Figure 2 shows a 33-nS time constant, the actual time constant is higher due to board capacitance and the input capacitance of the IC. The waveform in Figure 4 shows that the actual rise time of the GSCLK signal is longer than the required 10 nS. Pulling ENABLE low turns the current on. Pulling ENABLE high turns the current off. Figure 5 shows the IC operating with PWM dimming to provide 30% dimming. Figure 4. TLC5940 TLC5940 Control Signal Waveforms at Turnon 4 TLC5940 TLC5940 One-Wire Control Eliminating Microprocessor Control for Integrated LED Driver SLVA259 SLVA259 September 2006 Submit Documentation Feedback www.ti.com Figure 5. TLC5940 TLC5940 PWM Dimming Some applications require more than 16 LEDs. This circuit can easily be expanded with additional LED drivers. Only one logic inverter and RC filter are needed to generate the delayed GSCLK signal for all LED drivers used. Other applications may require a higher current drive than 120 mA per LED. In these applications, OUT0 to OUT15 OUT15 can be connected in parallel to increase the drive current. With all outputs connected in parallel, the TLC5940 TLC5940 can drive a single LED with 1.92 A. See TI application report (SLVA253 SLVA253) for more information on paralleling outputs. For more advanced applications, the internal EEPROM can be programmed at assembly to provide a different current for each constant-current sink OUT0 to OUT15 OUT15. An example of this application would be to connect a red, a green, and a blue LED to different outputs. The EEPROM can be factory-programmed to drive the three LEDs to the appropriate current levels to generate any desired color. References 1. TLC5940 TLC5940, 16 Channel LED Driver With Dot Correction and Grayscale PWM Control data sheet (SLVS515 SLVS515) 2. TLC5940 TLC5940 EVM User's Guide (SLVU139 SLVU139) 3. TLC5940 TLC5940 dot correction compensates for variations in LED brightness application report (SLYT225 SLYT225) 4. TLC5940 TLC5940 PWM dimming provides superior color quality in LED video displays application report (SLYT238 SLYT238) 5. LED DriverParalleled Outputs Provide High-Current Outputs application report (SLVA253 SLVA253) 6. SN74LVC1G04 SN74LVC1G04, Single Inverter Gate data sheet (SCES214 SCES214) SLVA259 SLVA259 September 2006 Submit Documentation Feedback TLC5940 TLC5940 One-Wire Control Eliminating Microprocessor Control for Integrated LED Driver 5 IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All products are sold subject to TI's terms and conditions of sale supplied at the time of order acknowledgment. TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI's standard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by government requirements, testing of all parameters of each product is not necessarily performed. TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and applications using TI components. To minimize the risks associated with customer products and applications, customers should provide adequate design and operating safeguards. TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information published by TI regarding third-party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI. Reproduction of information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for such altered documentation. Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements. Following are URLs where you can obtain information on other Texas Instruments products and application solutions: Products Applications Amplifiers amplifier.ti.com Audio www.ti.com/audio Data Converters dataconverter.ti.com Automotive www.ti.com/automotive DSP dsp.ti.com Broadband www.ti.com/broadband Interface interface.ti.com Digital Control www.ti.com/digitalcontrol Logic logic.ti.com Military www.ti.com/military Power Mgmt power.ti.com Optical Networking www.ti.com/opticalnetwork Microcontrollers microcontroller.ti.com Security www.ti.com/security Low Power Wireless www.ti.com/lpw www.ti.com/telephony www.ti.com/video Wireless Mailing Address: Telephony Video & Imaging www.ti.com/wireless Texas Instruments Post Office Box 655303 Dallas, Texas 75265 Copyright 2006, Texas Instruments Incorporated