Power integrations InnoSwitch3-Pro Getting Started

Code library using arduino

Advertisement

Quick Links

Title
Author
Document
Number
Date
Revision
Summary
InnoSwitch3-Pro is a digitally controllable CV/CC QR Flyback Switcher IC with integrated
High Voltage MOSFET, Synchronous Rectification and FluxLink Feedback.
RDK-641 is a reference design board rated for 40W output power and is programmable
from 3V to 20V output voltage. This reference design features an on board PIC16F18325
microcontroller and uses the InnoSwitch3-Pro integrated power supply IC.
This application note describes use of Arduino code libraries provided by Power
Integrations to develop control logic and firmware for customizing RDK-641.
Information presented in this application note was used to develop firmware for Arduino
UNO.
PATENT INFORMATION
The products and applications illustrated herein (including transformer construction and circuits external to the products) may
be covered by one or more U.S. and foreign patents, or potentially by pending U.S. and foreign patent applications assigned
to Power Integrations. A complete list of Power Integrations' patents may be found at www.powerint.com. Power Integrations
grants its customers a license under certain patent rights as set forth at
property-licensing/.
Getting Started with InnoSwitch
Code Library using Arduino
Applications Engineering Department
Application Note 77 (AN-77)
September 6, 2018
1.0
Power Integrations
5245 Hellyer Avenue, San Jose, CA 95138 USA.
Tel: +1 408 414 9200 Fax: +1 408 414 9201
www.power.com
TM
https://www.power.com/company/intellectual-
3-Pro

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the InnoSwitch3-Pro and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Power integrations InnoSwitch3-Pro

  • Page 1 U.S. and foreign patents, or potentially by pending U.S. and foreign patent applications assigned to Power Integrations. A complete list of Power Integrations' patents may be found at www.powerint.com. Power Integrations grants its customers a license under certain patent rights as set forth at https://www.power.com/company/intellectual-...
  • Page 2: Table Of Contents

    AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 Table of Contents Introduction ........................ 3 System Requirements ....................4 Hardware Overview ....................5 Headers and Jumpers Settings ................5 InnoSwitch3-Pro Arduino Code Library ..............7 Library Installation ....................7 Library Installation Complete ................8 Library Examples ....................
  • Page 3: Introduction

    Introduction This application note describes the structure and the application interface of the InnoSwitch3-Pro Arduino Code Library as well as using it on a demo application. The code was designed to be highly portable to other microcontroller platforms, and was written in C++ language to be compatible with the Arduino library standards.
  • Page 4: System Requirements

    InnoSwitch3-Pro IC Figure 3 – Arduino Uno Rev 3 System Requirements The following are required to run the InnoSwitch3-Pro Arduino demo application  Arduino Software version 1.8.2 or later  Arduino UNO Rev3 SMD  RDK – 641 Board rev C ...
  • Page 5: Hardware Overview

    C Master and InnoSwitch3-Pro as slave device. SDA and SCL lines pull-up resistors R24 and R23 respectively are available on the board. The output of the InnoSwitch3-Pro provides 3.6V pull up voltage from its μVCC output pin. To further ease in development, the following documents are available and recommended as supplemental reference resources I RDR-641 - 40 W Variable Output (3 V to 8 V, 5 A;...
  • Page 6 AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 By configuring the I C lines isolation jumpers, the RDK-641 board can be controlled using Arduino UNO. Connection details: Remove Jumpers J6 and J7 and retain Jumper J3 Connect J4 to Arduino Uno I C lines (SDA, SCL and GND).
  • Page 7: Innoswitch3-Pro Arduino Code Library

    AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 InnoSwitch3-Pro Arduino Code Library To simplify the technicalities on controlling the InnoSwitch3-Pro, a simple code library is provided as a reference. The library contains all the registers needed for controlling the device. These registers are organized as Command Registers and Telemetry registers.
  • Page 8: Library Installation Complete

    AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 Library Installation Complete Images below shows the InnoSwitch3-Pro library was added to the Arduino Library Power Integrations Tel: +1 408 414 9200 Fax: +1 408 414 9201 Page 8 of 28 www.power.com...
  • Page 9: Library Examples

    AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 For windows users, the library can be viewed on this directory: C:\Users\username\Documents\Arduino\libraries\ Library Examples File > Examples The Library will be available to use in sketches, Power Integrations Tel: +1 408 414 9200 Fax: +1 408 414 9201 Page 9 of 28 www.power.com...
  • Page 10 AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 Power Integrations Tel: +1 408 414 9200 Fax: +1 408 414 9201 Page 10 of 28 www.power.com...
  • Page 11: Folder Contents

    AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 Folder Contents The InnoSwitch3-Pro Arduino Code library consists of various folders and files as shown below Folder and files summary: Examples Contains the InnoSwitch3-Pro Main Application Examples (*.ino) Documentation Contains the Doxygen HTML Documentation *.cpp and .h...
  • Page 12: File Description

    API’. The Library architecture block diagram is schematically presented in Figure3 Below is a brief description of each layer: InnoSwitch3-Pro API Simple Control Interface to control InnoSwitch3-Pro. This handles Command Sequences and Timings, Register Settings, Threshold Calculations, Parity Implementation, Telemetry Related Files: Inno3Pro.h...
  • Page 13 AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 Figure 3 – Firmware Architecture Power Integrations Tel: +1 408 414 9200 Fax: +1 408 414 9201 Page 13 of 28 www.power.com...
  • Page 14: Application Example

    InnoSwitch3-Pro Initialization Before continuous execution of the main code, the status of System Ready Signal is monitored to ensure the InnoSwitch3-Pro is ready to receive I C commands. Afterwards initialization commands are sent to the device to configure the default settings. This initialization routine disables the watchdog timer and Fast VI Limit.
  • Page 15: Basic Control Functions

    AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 6.1.4 Basic Control Functions Updates the Output Voltage and Constant Current Setting  Follows a certain sequence of I C commands in order to avoid inadvertent triggering of UV or OV faults ...
  • Page 16: Basic Code Examples

    Basic Code Examples 6.1.5.1 Example 1 - Inno3Pro_Basic.ino Demonstrates the basic usage of InnoSwitch3-Pro Arduino Library. Initial commands are sent using the InnoSwitch3-Pro Initialization Routine.  The Main Routine using write VI sets the output voltage to 5V and constant current ...
  • Page 17 06-Sep-18 6.1.5.2 Example 2 - Inno3Pro_Basic_Volts_Amps_OV_UV.ino Demonstrates the basic usage of InnoSwitch3-Pro Arduino Library. Initial commands are sent using the InnoSwitch3-Pro Initialization Routine.  Output Over voltage is set to 6.2V and Output Under voltage is programmed to 3.6V ...
  • Page 18: Building The Project

    AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 Building the Project Arduino board selection Under tools menu, Select Arduino UNO board Make sure your Arduino Uno is already connected to your computer through the usb port Select the Active Com Port...
  • Page 19: Verify / Compile

    AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 Verify / Compile Click the check icon to Verify After few seconds , “Done Compiling” should show up on the Notification Area This means the sketch is ready for uploading to the Arduino board...
  • Page 20: Demonstration Of Operation

    Running the Program This section demonstrates code Example 1 or Example 2 in action. Upon power up, the Arduino program is uploaded to InnoSwitch3-Pro. 100VAC was applied to the AC input terminals and output terminals were connected to a Chroma DC electronic load. Arduino Uno board is connected to a USB port.
  • Page 21: Constant Voltage Operation

    AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 Constant voltage operation Image below shows the operation of RDK-641 at constant voltage of 5V and Full load of 5.1A Constant current operation Image below shows the operation of RDK-641 at constant current mode...
  • Page 22: Doxygen Documentation

    The main public interfaces that are expected to be used by user code are summarized in the Doxygen Documentation Folder. Opening html file Search the InnoSwitch3-Pro code library folder and Browse to documentation folder ,then Open the *.html File Image below shows the doxygen html file:...
  • Page 23: Viewing The Api Functions

    AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 Viewing the API Functions Under Inno3_Application Class List, Select and Open Function Summary and Description: Power Integrations Tel: +1 408 414 9200 Fax: +1 408 414 9201 Page 23 of 28 www.power.com...
  • Page 24: Functions Summary

    AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 Functions summary This section provides details and summary of how the function works. Click for Function Definition Power Integrations Tel: +1 408 414 9200 Fax: +1 408 414 9201 Page 24 of 28...
  • Page 25: Functions Definition

    AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 Functions definition This section provides the actual body and implementation of the function Power Integrations Tel: +1 408 414 9200 Fax: +1 408 414 9201 Page 25 of 28 www.power.com...
  • Page 26: Examples

    AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 Examples This section provides different examples that showcase the use of the library functions Power Integrations Tel: +1 408 414 9200 Fax: +1 408 414 9201 Page 26 of 28 www.power.com...
  • Page 27: Revision History

    AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 Revision History Date Author Revision Description & changes Reviewed 06-Sep-18 Initial Release Apps and Mktg Power Integrations Tel: +1 408 414 9200 Fax: +1 408 414 9201 Page 27 of 28 www.power.com...
  • Page 28 AN-77 Getting Started with InnoSwitch3-Pro using Arduino 06-Sep-18 Power Integrations Tel: +1 408 414 9200 Fax: +1 408 414 9201 Page 28 of 28 www.power.com...

Table of Contents