Scope and purpose This document provides hints for using the RGB LED Lighting Shield to drive and control LED strip lights.



Similar documents
SLE 66R01L Intelligent 512 bit EEPROM with Contactless Interface compliant to ISO/IEC Type A and support of NFC Forum Type 2 Tag Operation

Anti-Tampering Solution for E-Meter Application

Power Management & Multimarket

TLE7368 Pre-regulator Filters Dimensioning

About this document. Table of Contents. Application Note

About this document. 32-bit Microcontroller Series for Industrial Applications AP Application Note

AURIX, TriCore, XC2000, XE166, XC800 Families DAP Connector

Evaluation Kit. 3D Magnetic Sensor 2 Go Kit. User s Manual. for 3D Magnetic Sensor TLV493D-A1B6. Rev Sense & Control

Power Management & Multimarket

For XMC1000 Family CPU-13A-V1. XMC1300 CPU Card. Board User's Manual. Revision 2.0, Microcontroller

High Precision Hall Effect Latch for Consumer Applications

Colour LED Card. inlight_rgb_v3. Board User's Manual. Microcontroller. For XMC1000 Family. Colour LED Card. Revision 1.

Power Management & Multimarket

Power Management & Multimarket

BGA725L6. Data Sheet. RF & Protection Devices

Microcontroller Series for Industrial Applications

32-bit Microcontroller Series for Industrial Applications AP Application Note

Power Management & Multimarket

TriCore AURIX Family. PCB design Guidelines. Application Note. 32-bit (TC23x, TC22x) AP32261 V

BFP740ESD. Data Sheet. RF & Protection Devices. Robust Low Noise Silicon Germanium Bipolar RF Transistor. Revision 1.1,

EiceDRIVER. High voltage gate driver IC. Application Note. Revision 1.0,

BGB707L7ESD. Data Sheet. RF & Protection Devices. Wideband MMIC LNA with Integrated ESD Protection. Revision 3.3,

Revision: Rev

TLV493D-A1B6 3D Magnetic Sensor

For XMC4000 Family. Standard Human Machine Interface Card. Board User s Manual. Revision 1.0,

Analog Barometric Air Pressure Sensor IC. Analog Absolute Pressure Sensor. Revision 1.0,

XMC 2Go Kit with XMC1100

(Single E n d C ap T8) C onverter with I C L8201

Revision: Rev

BGT24AR2. Data Sheet. RF & Protection Devices. Silicon Germanium 24 GHz Twin IQ Receiver MMIC. Revision 3.0,

Motor Control Shield with BTN8982TA for Arduino

Position Feedback for Motor Control Using Magnetic Sensors

24 GHz Radar. Revision: Rev

Angle Sensor TLE5009. Data Sheet ATV SC. GMR-Based Angular Sensor TLE5009-E2000 TLE5009-E1000 TLE5009-E2010 TLE5009-E1010. Rev. 1.

BGT24MTR12. Data Sheet. RF & Protection Devices. Silicon Germanium 24 GHz Transceiver MMIC. Revision 3.2,

How To Program A Canbs On An Xm4000 With A Microsoft Xm4400 (Xm4000) With A Flash On A Microsuspect) On A Pc Or Ipad (Xc4000) On An Ip

6.6 mm x 4.5 mm x 0.6 mm

BGT24ATR12. Data Sheet. RF & Protection Devices. Silicon Germanium 24 GHz Transceiver MMIC. Revision 3.1,

TLE4966V-1K. Data Sheet. Sense & Control. In Plane Sensing with Vertical Dual Hall Effect Latch for Automotive Applications. Revision 1.

Revision: Rev

RGB Wall Washer Using ILD4035

XMC4000 Microcontroller Series for Industrial Applications

AN 210 Effective ESD Protection Design at System Level Using VF-TLP Characterization Methodology

For XMC4000 Family. General Purpose Motor Drive Card. Board User s Manual. Revision 1.0,

Ballast Design for 54W T5 Fluorescent Lamp (Voltage Mode Preheating) with Controller IC ICB2FL03G & 600V CoolMOS

Protocol Examples for ISM Band Applications

Recommendations for Printed Circuit Board Assembly of Infineon WLL Packages

Intended audience The application note addresses experienced hardware engineers who have already basic knowledge of the 6EDL family 2 nd generation.

XMC1400 Boot Kit UG_201512_PL30_005. About this document. Table of Contents. Scope and purpose

Maintenance Security Target Lite M7892 B11 Maintenance Security Target Lite

Remote Control Transmitter Keyfob Application Example for TDA7110F

Intended audience This document is intended for design engineers who want to design CCM PFC boost converter.

Angle Sensor TLE5012B. Data Sheet. Sense & Control. GMR-Based Angle Sensor. Rev. 2.0,

PMA71xx / PMA51xx. Application Note. Sense & Control. SmartLEWIS TM MCU

Power Management & Supply. Design Note. Version 1.0, Nov DN-EVALMF2ICE2A CoolSET 35W DVD Power Supply with ICE2A265.

Application Note, V1.0, Nov AN Using the NTC inside a power electronic module IMM INP LP

Application Note, Rev.1.0, September 2008 TLE8366. Application Information. Automotive Power

6 0 0 V h i g h c u r r e n t H i g h S p e e d 3 I G B T o p t i m i z e d f o r h i g h - s w i t c h i n g s p e e d

55 W Flyback converter design using the IRS2982S controller IRXLED04

XC83x AP Application Note. Microcontrollers. intouch Application Kit - LED Matrix Display V1.0,

O p t i m u m M O S F E T S e l e c t i o n f o r S y n c h r o n o u s R e c t i f i c a t i o n

Infineon Chip Card & Security Security for the connected world

OptiMOS 3 Power-Transistor

OptiMOS Power-Transistor Product Summary

Application Note, V 2.2, Nov AP32091 TC1766. Design Guideline for TC1766 Microcontroller Board Layout. Microcontrollers. Never stop thinking.

OptiMOS 3 Power-Transistor

DAVE Software Development Kit overview. Preparing the workbench. Creating a simple APP. Step 1: Create a new APP project

DAP miniwiggler V3. Application Note. Microcontrollers AP56004 V

SIPMOS Small-Signal-Transistor

How to design SMPS to Pass Common Mode Lightning Surge Test

OptiMOS TM Power-Transistor

Guide to using the DALI LightNet tool

MAX17061A Evaluation Kit/Evaluation System

Boot mode handling for XMC1000

Secure egovernment Where convenience meets security.

VADC Versatile Analog to Digital Converter. XMC Microcontrollers August 2014

Chip Card & Security ICs Mifare NRG SLE 66R35

BAT64... BAT64-02W BAT64-02V BAT64-04 BAT64-04W BAT64-05 BAT64-05W BAT64-06W

Fiber Optics. Integrated Photo Detector Receiver for Plastic Fiber Plastic Connector Housing SFH551/1-1 SFH551/1-1V

BAV70... BAV70 BAV70W BAV70S BAV70U. Type Package Configuration Marking BAV70 BAV70S BAV70U BAV70W

System Security Solutions for the connected world.

0.9V Boost Driver PR4403 for White LEDs in Solar Lamps

Security & Chip Card ICs SLE 44R35S / Mifare

AND8480/D. CrM Buck LED Driver Evaluation Board APPLICATION NOTE

Application Note, V1.0, 2008 AN Thermal equivalent circuit models. replaces AN Industrial Power

Automotive MOSFETs in Linear Applications: Thermal Instability

IDB45E60. Fast Switching EmCon Diode. Product Summary V RRM 600 V I F 45 A V F 1.5 V T jmax 175 C

IDB04E120. Fast Switching EmCon Diode. Product Summary V RRM 1200 V I F 4 A V F 1.65 V T jmax 150 C

TLI4946. Datasheet TLI4946K, TLI4946-2K, TLI4946-2L. Sense and Control. May 2009

1ED Compact A new high performance, cost efficient, high voltage gate driver IC family

IDB09E120. Fast Switching EmCon Diode. Product Summary V RRM 1200 V I F 9 A V F 1.65 V T jmax 150 C

IDB30E120. Fast Switching EmCon Diode. Product Summary V RRM 1200 V I F 30 A V F 1.65 V T jmax 150 C

BAS16... Silicon Switching Diode For high-speed switching applications Pb-free (RoHS compliant) package 1) Qualified according AEC Q101 BAS16S BAS16U

Python for Series 60 Platform

Isolation of Battery Chargers Integrated Into Printed Circuit Boards

Transcription:

XMC1000 32-bit Microcontroller Series for Industrial Applications D riving LED Strips with the RGB LED Lighting Shield Application Note About this document Scope and purpose This document provides hints for using the RGB LED Lighting Shield to drive and control LED strip lights. Intended audience This document is intended for engineers interested in evaluating or making prototypes with the RGB LED Lighting Shield. Applicable Products XMC1202 References Infineon: DAVE, http://www.infineon.com/dave Infineon: XMC Family, http://www.infineon.com/xmc The application code can be downloaded from http://www.infineon.com/arduino 1 V1.0, 2015-08

Table of Contents Table of Contents 1 Introduction... 3 2 Driving LED Strip Lights... 5 3 How to Reconfigure the Shield for LED Strips... 7 4 Revision History... 9 Application Note 2 V1.0, 2015-08

Introduction 1 Introduction The RGB LED Lighting Shield is designed to drive up to 3 parallel LED strings with constant current. This constant current can be modulation-dimmed to control brightness and color. Figure 1 RGB LED Lighting Shield with LED strings connected (original by shabaz from here) The RGB LED Lighting Shield contains 3 inverted buck converters with current feedback. Each buck converter can maintain constant current at its output. However, the output voltage depends on the connected LED string and cannot be controlled by the buck converter. Application Note 3 V1.0, 2015-08

Introduction Figure 2 Typical modulation dimmed output current LED strips are more than LED strings. LED strings behave like diodes and require constant current. LED strips contain current control circuitry and require constant voltage, typically 12V or 24V. They can be modulationdimmed by turning this voltage on-off. The current control circuitry is typically either a series resistor or a linear LED driver IC, such as BCR421U. Figure 3 RGB LED Lighting Shield with LED strips connected Application Note 4 V1.0, 2015-08

Driving LED Strip Lights 2 Driving LED Strip Lights If the RGB LED Lighting Shield is used to drive LED strips that require constant voltage, its current control feature must be turned off. The input voltage to the shield has to be the same as what the strip requires, for example, 24V. The inductors and schottky diodes located on the shield are not used. The LED current is controlled by built-in logic in each LED strip. Figure 4 Typical modulation dimmed output current when LED strips are connected The shield does not have to perform current control which means the onboard XMC1202 microcontroller has resources available for fast overcurrent protection. For example, it can shut down an LED strip within 200ns if the LED current exceeds 900mA (or any other user-defined value). Color and dimming level control are unchanged. They are performed by pulse density modulated signals from the BCCU module in the microcontroller and can be controlled by the same Colour Intensity and Dimming commands over I 2 C. Application Note 5 V1.0, 2015-08

Driving LED Strip Lights Figure 5 Modulation dimming and overcurrent protection Application Note 6 V1.0, 2015-08

How to Reconfigure the Shield for LED Strips 3 How to Reconfigure the Shield for LED Strips Registers in the XMC1202 microcontroller on board the RGB LED Lighting Shield can be accessed directly without the use of the pre-defined I 2 C commands. This is described in detail in the RGB LED Lighting Shield with XMC1202 for Arduino board manual. Information on the XMC1202 registers can be found in the XMC1200 Reference Manual. Reconfiguring the registers requires 4 steps: 1. Set current limit to the desired overcurrent level a. The Peak Current Reference commands, such as CURRENT_RED, are limited to about 781mA. b. I2CWRITE_DIRECTACCESS command with DIRECTACCESS_MOVE parameter is recommended. 2. Reprogram CCU4 inputs a. When the LED current reaches the reference level it causes a TRAP event rather than a CLEAR event and the output channel is shut down to protect the circuitry. b. I2CWRITE_DIRECTACCESS command with DIRECTACCESS_MOVE parameter is recommended. 3. Increase the free running duty cycle to 100% a. The MOSFET should be always on when modulation enables it. There is no need for switched-mode current control. b. I2CWRITE_DIRECTACCESS command with DIRECTACCESS_MOVE parameter is recommended. 4. Clear TRAP in all channels a. This enables all channels. b. I2CWRITE_DIRECTACCESS command with DIRECTACCESS_MOVE parameter is recommended. The following Arduino code snippet performs these 4 steps. Application Note 7 V1.0, 2015-08

How to Reconfigure the Shield for LED Strips //-------------------------------------------------------------------------------------------------------------------- // Reconfigure RGB LED Lighting Shield for constant voltage LED load (e.g. LED strip) // set current limit to 900mA --> if the current goes above, the channel will be shut down immediately (TRAP) I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x5003003C, 148); // BCCU0_INTS0 = 148; --> ~900mA I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x50030064, 148); // BCCU0_INTS2 = 148; --> ~900mA I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x500300B4, 148); // BCCU0_INTS6 = 148; I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x50030018, 0x00000045); // BCCU0_CHSTRCON = 0x00000045; // reprogram CCU4 inputs (no more peak-current control, overcurrent protection instead: TRAP) I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x48040200, 0x00100100); // CCU40_CC41INS = 0x00100100; I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x48040300, 0x00100100); // CCU40_CC42INS = 0x00100100; I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x48040400, 0x00100100); // CCU40_CC43INS = 0x00100100; I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x48040204, 0x00020000); // CCU40_CC41CMC = 0x00020000; I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x48040304, 0x00020000); // CCU40_CC42CMC = 0x00020000; I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x48040404, 0x00020000); // CCU40_CC43CMC = 0x00020000; I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x48040214, 0x03420100); // CCU40_CC41TC = 0x03420100; I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x48040314, 0x03420100); // CCU40_CC42TC = 0x03420100; I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x48040414, 0x03420100); // CCU40_CC43TC = 0x03420100; // 100% duty cycle (no off-time needs to be generated anymore) I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x4804023C, 0x00000000); // CCU40_CC41CRS = 0; I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x4804033C, 0x00000000); // CCU40_CC42CRS = 0; I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x4804043C, 0x00000000); // CCU40_CC43CRS = 0; I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x48040010, 0x00001110); // CCU40_GCSS = 0x00001110; // clear TRAP in all channels (in case it accidentally occurred while rewiring) I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x480402B0, 0x00000C00); // CCU40_CC41SWR = 0x00000C00; I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x480403B0, 0x00000C00); // CCU40_CC42SWR = 0x00000C00; I2CWRITE_DIRECTACCESS (ADDRESS, DIRECTACCESS_MOVE, 0x480404B0, 0x00000C00); // CCU40_CC43SWR = 0x00000C00; //------------------------------------------------------------------------------------------------------------------ An example project is available at the RGB LED Lighting Shield with XMC1202 for Arduino website. Figure 6 RGB LED Lighting Shield with LED Linear VarioLED Flex VENUS RGB Application Note 8 V1.0, 2015-08

Revision History 4 Revision History Current Version is V1.0, 2015-08 Page or Reference V1.0, 2015-08 Description of change Initial Version Application Note 9 V1.0, 2015-08

Trademarks of Infineon Technologies AG AURIX, C166, CanPAK, CIPOS, CIPURSE, CoolGaN, CoolMOS, CoolSET, CoolSiC, CORECONTROL, CROSSAVE, DAVE, DI-POL, DrBLADE, EasyPIM, EconoBRIDGE, EconoDUAL, EconoPACK, EconoPIM, EiceDRIVER, eupec, FCOS, HITFET, HybridPACK, ISOFACE, IsoPACK, i- Wafer, MIPAQ, ModSTACK, my-d, NovalithIC, OmniTune, OPTIGA, OptiMOS, ORIGA, POWERCODE, PRIMARION, PrimePACK, PrimeSTACK, PROFET, PRO-SIL, RASIC, REAL3, ReverSave, SatRIC, SIEGET, SIPMOS, SmartLEWIS, SOLID FLASH, SPOC, TEMPFET, thinq!, TRENCHSTOP, TriCore. Other Trademarks Advance Design System (ADS) of Agilent Technologies, AMBA, ARM, MULTI-ICE, KEIL, PRIMECELL, REALVIEW, THUMB, µvision of ARM Limited, UK. ANSI of American National Standards Institute. AUTOSAR of AUTOSAR development partnership. Bluetooth of Bluetooth SIG Inc. CATiq of DECT Forum. COLOSSUS, FirstGPS of Trimble Navigation Ltd. EMV of EMVCo, LLC (Visa Holdings Inc.). EPCOS of Epcos AG. FLEXGO of Microsoft Corporation. HYPERTERMINAL of Hilgraeve Incorporated. MCS of Intel Corp. IEC of Commission Electrotechnique Internationale. IrDA of Infrared Data Association Corporation. ISO of INTERNATIONAL ORGANIZATION FOR STANDARDIZATION. MATLAB of MathWorks, Inc. MAXIM of Maxim Integrated Products, Inc. MICROTEC, NUCLEUS of Mentor Graphics Corporation. MIPI of MIPI Alliance, Inc. MIPS of MIPS Technologies, Inc., USA. murata of MURATA MANUFACTURING CO., MICROWAVE OFFICE (MWO) of Applied Wave Research Inc., OmniVision of OmniVision Technologies, Inc. Openwave of Openwave Systems Inc. RED HAT of Red Hat, Inc. RFMD of RF Micro Devices, Inc. SIRIUS of Sirius Satellite Radio Inc. SOLARIS of Sun Microsystems, Inc. SPANSION of Spansion LLC Ltd. Symbian of Symbian Software Limited. TAIYO YUDEN of Taiyo Yuden Co. TEAKLITE of CEVA, Inc. TEKTRONIX of Tektronix Inc. TOKO of TOKO KABUSHIKI KAISHA TA. UNIX of X/Open Company Limited. VERILOG, PALLADIUM of Cadence Design Systems, Inc. VLYNQ of Texas Instruments Incorporated. VXWORKS, WIND RIVER of WIND RIVER SYSTEMS, INC. ZETEX of Diodes Zetex Limited. Last Trademarks Update 2014-07-17 www.infineon.com Edition 2015-08 Published by Infineon Technologies AG 81726 Munich, Germany 2015 Infineon Technologies AG. All Rights Reserved. Do you have a question about any aspect of this document? Email: erratum@infineon.com Document reference Legal Disclaimer THE INFORMATION GIVEN IN THIS APPLICATION NOTE (INCLUDING BUT NOT LIMITED TO CONTENTS OF REFERENCED WEBSITES) IS GIVEN AS A HINT FOR THE IMPLEMENTATION OF THE INFINEON TECHNOLOGIES COMPONENT ONLY AND SHALL NOT BE REGARDED AS ANY DESCRIPTION OR WARRANTY OF A CERTAIN FUNCTIONALITY, CONDITION OR QUALITY OF THE INFINEON TECHNOLOGIES COMPONENT. THE RECIPIENT OF THIS APPLICATION NOTE MUST VERIFY ANY FUNCTION DESCRIBED HEREIN IN THE REAL APPLICATION. INFINEON TECHNOLOGIES HEREBY DISCLAIMS ANY AND ALL WARRANTIES AND LIABILITIES OF ANY KIND (INCLUDING WITHOUT LIMITATION WARRANTIES OF NON- INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OF ANY THIRD PARTY) WITH RESPECT TO ANY AND ALL INFORMATION GIVEN IN THIS APPLICATION NOTE. Information For further information on technology, delivery terms and conditions and prices, please contact the nearest Infineon Technologies Office (www.infineon.com). Warnings Due to technical requirements, components may contain dangerous substances. For information on the types in question, please contact the nearest Infineon Technologies Office. Infineon Technologies components may be used in life-support devices or systems only with the express written approval of Infineon Technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system or to affect the safety or effectiveness of that device or system. Life support devices or systems are intended to be implanted in the human body or to support and/or maintain and sustain and/or protect human life. If they fail, it is reasonable to assume that the health of the user or other persons may be endangered.