Protected Switch Shield with PROFETTM+ 24V for Arduino 24V Protected Switch Shield with BTT6030-2EKA and BTT6020-1EKA About this document Scope and purpose This document describes how to use the 24V Protected Switch Shield with BTT6030-2EKA and BTT6020-1EKA. Intended audience Engineers, hobbyists and students who want to switch 24 V loads in their Arduino projects. Table of Contents About this document ............................................................................................................................1 Table of Contents .................................................................................................................................1 1 24V Protected Switch Shield introduction ............................................................................ 2 1.1 24V Protected Switch Shield overview ...............................................................................................2 1.2 Key features .......................................................................................................................................2 1.3 Blockdiagram of a bi-directional Motor Control..................................................................................4 2 24V Protected Switch Shield board description ......................................................................5 2.1 Schematics ......................................................................................................................................... 5 2.2 Layout ................................................................................................................................................6 2.3 Pin assignment ................................................................................................................................... 7 2.4 Pin definitions and functions ..............................................................................................................8 3 BTT6030-2EKA overview .................................................................................................... 10 3.1 Key features of the BTT6030-2EKA PROFETTM +24V ........................................................................ 10 3.2 Blockdiagram ................................................................................................................................... 11 3.3 Pin assignment ................................................................................................................................. 12 3.4 Pin definitions and functions BTT6030-2EKA ................................................................................... 12 4 BTT6020-1EKA overview .................................................................................................... 13 4.1 Keyfeatures of the BTT6030-2EKA PROFETTM +24V......................................................................... 13 4.2 Block diagram .................................................................................................................................. 14 4.3 Pin assingsment ............................................................................................................................... 14 4.4 Pin assingsment ............................................................................................................................... 15 5 Getting Started ................................................................................................................. 16 5.1 Target applications ........................................................................................................................... 16 5.2 Typical target applications ............................................................................................................... 16 5.2.1 Getting started: Shield ................................................................................................................ 16 5.2.2 Getting started: Software ............................................................................................................ 17 5.2.3 Software hints .............................................................................................................................20 Revision History ................................................................................................................................. 22 User Manual www.infineon.com <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino 1 24V Protected Switch Shield introduction 1.1 24V Protected Switch Shield overview The 24V Protected Switch Shield adds advanced driving and diagnostic of generic loads to the Arduino projects. The shield can be controlled with the general logic IO-Ports of a microcontroller. Either an Arduino Uno R3, the XMC1100 Boot Kit or the more powerful XMC4700 Relax Kit and XMC4800 Relax Kit from Infineon can be used as the master. TM On board of the 24V Protected Switch Shield are two BTT6030-2EKA and one BTT6020-1EKA PROFET +24V. Each of the BTT6030-2EKA features two 32 m Smart high-side power switch-channels, whereas the BTT60201EKA features a single 20 m channel. In total the shield provides five Smart High-Side Power Switch Channels. Each is built by a vertical N-channel power MOSFET with charge pump. Due to the integrated charge pump the channels can be controlled by standard digital IOs (3.3 V and 5 V supported). The 24V Protected Switch Shield can be easily connected to any Arduino compatible board like the XMC1100 Boot Kit via headers. Figure 1 1.2 24V Protected Switch Shield photo Key features The 24V Protected Switch Shield has the following features: An Arduino Uno R3, XMC1100 Boot Kit, or similar board connected to the shield can control the five power channels via the general IO pins. Drives resistive, capacitive and inductive loads with PWM or in DC (eg. truck bulbs, car bulbs, valves, motors, relays, capacitors, LEDs...) User Manual 2 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino Infineon PROFETTM devices have an integrated charge pump, internal protection features and a current feedback to the ADC of the microcontroller o Supply voltage: Functional range: 5 V - 48 V; Nominal range: 8 V - 36 V o Nominal Current up to 5 A per channel restricted due to the limited power dissipation of the PCB (BTT6020-1EKA nominal Current: 7 A) o PWM (Pulse Width Modulation) via input pins up to 400 Hz higher frequencies possible depending on load, input voltage and duty cycle Diagnosis of the load / current feedback o Accurate feedback on the state of the load to the ADC of the microcontroller (current measurement & Fault detection). o Possibility to build feedback loops from the load side to the microcontroller Protection of load and driver circuit o Protection against overcurrent on the load side via diagnosis feedback o thermal protection of the driver o Overcurrent protection on the driver side (see datasheet) o Fault detection via IS pin o Protection against high transient voltages (ESD, ISO pulses) o Low conducted emissions Reverse current blocking with IPD50P04P4L-11 o Figure 2 User Manual 24V Protected Switch Shield driving a valve and water pump 3 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino 1.3 Block diagram of an automotive light control Figure 3 depicts the Block diagram of the 24V Protected Switch shield. The IS pins of all 3 devices used for the current sensing could be connected to a single analog digital converter at the C. But for simplification each IS pin is connected to an own analog digital converter. The microcontroller and its power supply are not part of the shield. Figure 3 User Manual Application circuit for a 5 channel automotive light control with BTT6030-2EKA 4 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino 2 24V Protected Switch Shield board description For a safe and sufficient functionality, discrete components are necessary. Refer to the Datasheet to check which components are needed. Figure 4, Figure 5 and Figure 6 show the schematics plus the corresponding layout of the 24V Protected Switch Shield. The Bill Of Material (BOM) can be found in Figure 7Figure 7. 2.1 Schematics In Figure 4 the schematics of the 24V Protected Switch Shield is shown. The schematics are based on the application circuit in the BTT6030-2EKA Datasheet. Figure 4 User Manual Schematics 24V Protected Switch Shield with PROFETTM+ 24V for Arduino 5 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino 2.2 Layout Figure 5 and Figure 6 show the layout of the 24V Protected Switch Shield. Figure 5 24V Protected Switch Shield - Bottom and top layers Figure 6 24V Protected Switch Shield with PROFETTM+ 24V for Arduino - Layout User Manual 6 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino Part Value EXAMPLE: C19, C4, C22, C21, C12, C16, C7, C6, C24, C1, C9, C27 1 F C1, C2, C4, C5, C7 10n /50V C3, C6, C8 100p /50V Device Package Description C-EUC0402 CAP0603-CAP CAP0603-CAP C0402 0603-CAP 0603-CAP CAPACITOR, European symbol Capacitor Capacitor Description2 Qty Place_YES/NO Provided_by_customer_YES/NO Distributor Ordernumber Weblink 12 YES 5 yes 3 yes C9 C10, C11, C12 68n /50V 100n /50V CAP0603-CAP CAP0603-CAP 0603-CAP 0603-CAP Capacitor Capacitor 1 yes 3 yes D1, D3, D5 6.8V SMD-PACKAGES_ZMM SMD-PACKAGES_SOD80 3 yes D2, D4, D6 BAS21 BAS21 SOT23 Zener Diode Silicon Schottky Diode D7 10V D8 IPD50P04P4L R1, R2, R3, R4, R5, R13, R14, R16, R17, R19, R34 R6, R18, R25, R26, R27, R28 R7, R22, R29 R9, R20, R31 R10, R11 R21, R23, R32 SMD-PACKAGES_SOD80 1 yes 58V Supressor Diode SMA HW_INFINEON_IPD50P04P4L-11 HW_INFINEON_IPD50P04P4L-11 TO-252-3-313-L Supressor MOSFET 1 yes 1 yes 10k 4.7k 0.027k 1.2k 47k 11 yes 6 yes 3 yes 3 yes 5 yes RESISTOR0603-RES RESISTOR0603-RES RESISTOR0603-RES RESISTOR 1206 RESISTOR0603-RES 0603-RES 0603-RES 0603-RES R1206 0603-RES Resistor Resistor Resistor Resistor Resistor INFINEON_BTS5030-2EKA INFINEON_BTS5020-1EKA IFX_PG_DSO_14_40_EP IFX_PG_DSO_14_47_EP 2Ch PROFET+24V 1Ch PROFET+24V 2 yes 1 yes RESISTOR0603-RES 0603-RES Resistor MKDS 1/ 8-3,5 TERMINAL BLOCK PLUGGABLE, 8 POSITION 9 no X2 JP1 PINHD-1X5 1X05 Arduino Pins Arduino Pins Figure 7 2.3 1 yes 5-pin 2.54mm male long header 1 yes 6-pin 2.54mm male long header 1 yes 8-pin 2.54mm male long header 10-pin 2.54mm male long header Arduino Pins Farnell Best. Nr.: 1414650RL beta Farnell Best.Nr.: 1097205RL 3 yes Zener Diode BTT6030_2EKA INFINEON_BTS5030-2EKA BTT6020_1EKA INFINEON_BTS5020-1EKA (R8), (R12), (R15), (R24), (R30), (R33) R(35), R(36), R(37) 10k SMD-PACKAGES_ZMM YES 2 yes 1 yes Farnell Best.Nr.: 1081361 Farnell Best.Nr.: 1579006RL yes yes yes Farnell Order Nr.: 1787882 Farnell Order Nr.: 1593414 Farnell Order Nr.: 1593415 Farnell Order Nr.: 1593416 Farnell Order Nr.: 1593417 24V Protected Switch Shield with PROFETTM+ 24V for Arduino - Bill of Material (BOM) Pin assignment To use the 24V Protected Switch Shield the necessary control signals can be applied directly at the connectors. There is no need to use a microcontroller compatible with Arduino or XMC 1100 Boot Kit to get the 24V Protected Switch Shield into an application. The control pins are logic level inputs which can be driven by any other microcontroller or with logic level signals. Besides the supply voltage Vbat has to be provided to the Vbat connector. Figure 8 shows the pinout/connectors of the 24V Protected Switch Shield. User Manual 7 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino DSEL_0 IN1_0 IN0_1 DEN_1 DSEL_1 IN1_1 IN0_2 DEN_0 TM 3x PROFET + 24V: TM PROFET +2 BTT6020-1EKA 2 Vbat TM GND PROFET +1 1 BTT6030-2EKA OUT0_2 OUT1_1 TM 0 OUT0_1 OUT1_0 OUT0_0 PROFET +0 BTT6030-2EKA IS_0 DEN0_0 IN0_0 IS_2 IS_1 IS_1 IS_0 Figure 8 24V Protected Switch Shield connectors 2.4 Pin definitions and functions Table 1 Pin Symbol I/O Function GND GND - Ground D2 DSEL_0 I Diagnostic select PROFETTM+ 0 Selects if the diagnosis of channel 0 or 1 is muxed to the IS Pin (PROFETTM+ 0) D3 IN1_0 I Input 1 PROFETTM+ 0 Input to switch channel 1 on PROFETTM+ 0 D4 IN0_1 I Input 0 PROFETTM+ 1 Input to switch channel 0 on PROFETTM+ 1 User Manual 8 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino D5 DEN_1 I Diagnosis enable PROFETTM+ 1 Turns diagnosis for PROFETTM+ 1 on or off D6 DSEL_1 I Diagnostic select PROFETTM+ 1 Selects if the diagnosis of channel 0 or 1 is muxed to the IS Pin (PROFETTM+ 1) D7 IN1_1 I Input 1 PROFETTM+ 1 Input to switch channel 1 on PROFETTM+ 1 D8 IN0_2 I Input PROFETTM+ 2 Input to switch channel on PROFETTM+ 2 D9 DEN_2 I Diagnosis enable PROFETTM+ 2 Turns diagnosis for PROFETTM+ 2 on or off A0 IS_0 O Sense PROFETTM+ 0 Current sense of PROFETTM+ 0 A1 IS_1 O Sense PROFETTM+ 1 Current sense of PROFETTM+ 1 A2 IS_2 O Sense PROFETTM+ 2 Current sense of PROFETTM+ 2 A3 IN0_0 I Input 0 PROFETTM+ 0 Input to switch channel 0 on PROFETTM+ 0 A4 DEN_0 I Diagnosis enable PROFETTM+ 0 Turns diagnosis for PROFETTM+ 0 on or off OUTy_x OUTy_x O Power output of channel y on PROFETTM+ x Vbat VS - Supply User Manual 9 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino 3 BTT6030-2EKA overview The BTT6030-2EKA is a 32 m dual channel Smart High-Side Power Switch, embedded in a PG-DSO-14-40 EP, Exposed Pad package, providing protective functions and diagnosis. The power transistor is built by an Nchannel vertical power MOSFET with charge pump. The device is integrated in Smart6 HV technology. It is specially designed to drive lamps up to 2 x P21 W 24 V or 1 x 70 W 24 V, as well as LEDs in the harsh automotive environment. For details please refer to the Datasheet. 3.1 Key features of the BTT6030-2EKA PROFETTM +24V Two channel device Very low stand-by current 3.3 V and 5 V compatible logic inputs Electrostatic discharge protection (ESD) Optimized electromagnetic compatibility Logic ground independent from load ground Very low power DMOS leakage current in OFF state Green product (RoHS compliant) AEC qualified Figure 9 User Manual PG-DSO-14-40EP 10 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino 3.2 Block diagram Chann el 0 VS voltage se nso r interna l power supply IN0 DEN over temperature driver logi c ESD protection IS gate co ntr ol & charge pu mp T clamp for indu ctive l oad over cu rrent switch limi t OUT 0 load curre nt sense a nd ope n lo ad detection forward vo ltag e d rop detection VS Chann el 1 T IN1 Control and protectio n circuit e quivalent to channe l 0 DSEL OUT 1 GND Figure 10 User Manual VisioDocument Block diagram BTT6030-2EKA 11 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino 3.3 Figure 11 Pin assignment Pin assignment BTT6030-2EKA (top view) 3.4 Pin definitions and functions BTT6030-2EKA Table2 Pin 1 2 Symbol GND IN0 Function Ground 3 DEN 4 5 IS DSEL Diagnostic ENable; Digital signal to enable/disable the diagnosis of the device Sense; Sense current of the selected channel 6 7, 11 IN1 NC INput channel 1; Input signal for channel 1 activation Not Connected; No internal connection to the chip 8, 9, 10 OUT1 OUTput 1; Protected high side power output channel 1 12, 13, 14 OUT0 OUTput 0; Protected high side power output channel 0 Cooling Tab VS Voltage Supply; Battery voltage User Manual INput channel 0; Input signal for channel 0 activation Diagnostic SELection; Digital signal to select the channel to be diagnosed 12 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino 4 BTT6020-1EKA overview The BTT6020-1EKA is a 20 m single channel Smart High-Side Power Switch, embedded in a PG-DSO-14-47 EP, Exposed Pad package, providing protective functions and diagnosis. The power transistor is built by an Nchannel vertical power MOSFET with charge pump. The device is integrated in Smart6 technology. It is specially designed to drive lamps up to 5 x P21 W 24 V or 1 x 70 W 24 V, as well as LEDs in the harsh automotive environment. For details please refer to the Datasheet. 4.1 Keyfeatures of the BTT6030-2EKA PROFETTM +24V One channel device Very low stand-by current 3.3 V and 5 V compatible logic inputs Electrostatic discharge protection (ESD) Optimized electromagnetic compatibility Logic ground independent from load ground Very low power DMOS leakage current in OFF state Green product (RoHS compliant) AEC qualified Figure 12 User Manual PG-TO263-7-1 13 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino 4.2 Block diagram VS voltage se nso r interna l power supply driver logi c IN DEN over temperature gate co ntr ol & charge pu mp ESD protection T clamp for indu ctive l oad over cu rrent switch limi t load curre nt sense a nd ope n lo ad detection OUT IS forward vo ltag e d rop detection GND Figure 13 4.3 Figure 14 User Manual Block diagram.emf Block diagram BTT6020-1EKA Pin assingsment Pin assignment BTT6020-1EKA (top view) 14 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino 4.4 Pin assingsment Table 3 Pin 1, 2, 7, 8, 9, 13, 14 3 4 Symbol NC Function Not Connected; No internal connection to the chip GND IN Ground 5 DEN 6 10, 11, 12 IS OUT Diagnostic ENable; Digital signal to enable/disable the diagnosis of the device Sense; Sense current of the selected channel OUTput; Protected high side power output channel Cooling Tab VS Voltage Supply; Battery voltage User Manual INput channel; Input signal for channel activation 15 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino 5 Getting Started 5.1 Target applications The application targeted by the BT60xx devices is driving lamps in 24V Trucks and Transportation systems. Besides lamps any other inductive, resistive and capacitive load within the electrical characteristics of the PROFETTM+24V can be driven by the BT60xx. In the 24V Protected Switch Shield two BTT6030-2EKA and one BTT6020-1EKA are used. Each channel of the BTT6030 is capable of driving up to 4 A (both channels active). The single channel of the BTT6020 is capable of driving up to 7 A. The limited thermal performance of the Shield PCB limits the recommended maximum current to 5 A. 5.2 Typical target applications With the 24V Protected Switch Shield up to five 24 V loads can be driven. The switches are controlled via the INx (Input x) pins. The BTT60xx also provide a sense current at the IS pin. The Shield provides a fast and easy access to 24 V load switching up to 1 x 5 A + 4 x 4 A. 5.2.1 Getting started: Shield Choose loads compatible within the electrical characteristics in the Datasheets of the BTT60xx o E.g. 1 x 70 W 24 V lamp and 4 x 21 W 24 V lamps (Truck bulbs) Choose a DC adapter. The nominal input of the Shield is 8 - 36 V DC. Maximum Voltage is 48 V Connect the Shield to Arduino Uno R3 or XMC 1100 Boot Kit. Connect power supply (5 V) to the Arduino Uno R3 or XMC 1100 Boot Kit (Micro USB). For the XMC Boot Kit a standard mobile phone charger can be used. Program the controller board with the lamp switching software (see 5.2.2). Connect the Out connectors of the shield o 70 W to OUT0_2 o 21 W to Out0_1, Out 1_1, Out 0_0 and Out 1_1 Connect the DC adapter to the Power Shield (Vbat, GND). User Manual 16 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino DSEL_0 IN1_0 IN0_1 DEN_1 DSEL_1 IN1_1 IN0_2 DEN_0 TM 3x PROFET + 24V: TM PROFET +2 DEN0_0 Vbat GND BTT6020-1EKA TM PROFET +1 BTT6030-2EKA OUT0_2 OUT1_1 TM PROFET +0 OUT0_1 OUT1_0 OUT0_0 BTT6030-2EKA DEN0_0 IN0_0 IS_2 IS_1 IS_0 Figure 15 24V Protected Switch Shield connectors 5.2.2 Getting started: Software A simple example software for the XMC1100 Boot Kit is provided. Connect the XMC 1100 Boot Kit with a micro USB cable to the USB port of your PC. Download and install DAVETM - Free Development Platform for Code Generation from the Infineon website DAVETM. Download the software example from the Infineon website: Infineon24V_ProtectedSwitchShield_with_Profet+24V_for_Arduino_DAVE_Example_V10.zip-SW-v01_00EN.zip Start DAVETM and import project file "Infineon-24V_ProtectedSwitchShield_with_Profet+24V_for_Arduino_DAVE_Example_V10.zip-SWv01_00-EN.zip": User Manual 17 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino 1: Select File Import: 2: Choose InfineonDAVE Project: 3: Select archive fileBrowse for the downloaded fileselect the projectclick finish: User Manual 18 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino 4: Build the code: 5: Start the Debugger 6: The first time you start the Software a new debug configuration needs to be created. Select the GDB SEGGER J-Link Debugger and click on new launch configuration. Keep all default values and click on Debug User Manual 19 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino 7: Confirm the perspective switch 8: Run the code the loads will be powered via PWM 5.2.3 Software hints The Software will drive the 5 channels in different PWM configurations. Here is the mapping between Profet channel and PWM configuration: Channel Dutycycle Frequency PROFET0 Channel 0 100% --- PROFET0 Channel 1 50% 200Hz PROFET1 Channel 0 75% 320Hz PROFET1 Channel 1 60% 400Hz PROFET2 80% 120Hz These values can be changed either via double click on the corresponding PWM APP: User Manual 20 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino Or during runtime using the API. To get information about the API right click on the APP and select APP Help: The Help will open in a new Window. Selecting Apps Methods shows a documentation of all available methods for this type of APP. The Software does not only drive the loads in PWM. It also measures continuously the Sense signal and calculates out of it the load current during the high phase of the PWM period. The calculated currents are then stored in global variables enabling the user to process the values in his code e.g. for a protection strategy or to calculate the power consumption. For more details on how the load current is calculated check the documentation in the code. The provided software is an example and is not a reference software. User Manual 21 <2016-07-19> Protected Switch Shield with PROFETTM+ 24V for Arduino Revision History Major changes since the last revision Page or Reference Description of change V 1.0 Created the document User Manual 22 <2016-07-19> Trademarks of Infineon Technologies AG AURIXTM, C166TM, CanPAKTM, CIPOSTM, CoolGaNTM, CoolMOSTM, CoolSETTM, CoolSiCTM, CORECONTROLTM, CROSSAVETM, DAVETM, DI-POLTM, DrBladeTM, EasyPIMTM, EconoBRIDGETM, EconoDUALTM, EconoPACKTM, EconoPIMTM, EiceDRIVERTM, eupecTM, FCOSTM, HITFETTM, HybridPACKTM, InfineonTM, ISOFACETM, IsoPACKTM, i-WaferTM, MIPAQTM, ModSTACKTM, my-dTM, NovalithICTM, OmniTuneTM, OPTIGATM, OptiMOSTM, ORIGATM, POWERCODETM, PRIMARIONTM, PrimePACKTM, PrimeSTACKTM, PROFETTM, PRO-SILTM, RASICTM, REAL3TM, ReverSaveTM, SatRICTM, SIEGETTM, SIPMOSTM, SmartLEWISTM, SOLID FLASHTM, SPOCTM, TEMPFETTM, thinQ!TM, TRENCHSTOPTM, TriCoreTM. Trademarks updated August 2015 Other Trademarks All referenced product or service names and trademarks are the property of their respective owners. Edition <2016-07-19> Published by Infineon Technologies AG 81726 Munich, Germany (c) 2016 Infineon Technologies AG. ifx1owners. All Rights Reserved. Do you have a question about this document? Email: erratum@infineon.com Document reference AppNote Number IMPORTANT NOTICE The information contained in this application note is given as a hint for the implementation of the product only and shall in no event be regarded as a description or warranty of a certain functionality, condition or quality of the product. Before implementation of the product, the recipient of this application note must verify any function and other technical information given herein in the real application. Infineon Technologies hereby disclaims any and all warranties and liabilities of any kind (including without limitation warranties of noninfringement of intellectual property rights of any third party) with respect to any and all information given in this application note. The data contained in this document is exclusively intended for technically trained staff. It is the responsibility of customer's technical departments to evaluate the suitability of the product for the intended application and the completeness of the product information given in this document with respect to such application. For further information on the product, technology, delivery terms and conditions and prices please contact your nearest Infineon Technologies office (www.infineon.com). WARNINGS Due to technical requirements products may contain dangerous substances. For information on the types in question please contact your nearest Infineon Technologies office. Except as otherwise explicitly approved by Infineon Technologies in a written document signed by authorized representatives of Infineon Technologies, Infineon Technologies' products may not be used in any applications where a failure of the product or any consequences of the use thereof can reasonably be expected to result in personal injury.