78M6618 PDU1 Firmware Quick Start Guide

Similar documents
78M6613 PSU Firmware Quick Start Guide

MAXREFDES44# MicroZed Quick Start Guide

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

Fremont (MAXREFDES6#) Nexys 3 Quick Start Guide

Campbell (MAXREFDES4#) Nexys 3 Quick Start Guide

Alameda (MAXREFDES24#) ZedBoard Quick Start Guide

Santa Fe (MAXREFDES5#) MicroZed Quick Start Guide

STEPPER-MOTOR-RD STEPPER MOTOR REFERENCE DESIGN KIT USER S GUIDE. 1. Kit Contents. 2. Kit Overview. Figure 1. Stepper Motor Reference Design Board

Carmel (MAXREFDES18#) LX9 MicroBoard Quick Start Guide

ToolStick-EK TOOLSTICK USER S GUIDE. 1. Kit Contents. 2. ToolStick Overview. Green and Red LEDs. C8051F321 provides USB debug interface.

Fresno (MAXREFDES11#) ZedBoard Quick Start Guide

Programming in the MAXQ environment

EPM900 - Overview. Features. Technical Data

MAXREFDES43# ZedBoard Quick Start Guide

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

SENSORLESS-BLDC-MOTOR-RD

Quick Start Guide for the Turbo upsd DK3300-ELCD Development Kit- RIDE

AC/DC. Adapter. Ribbon. Cable Serial. Serial. Adapter. Figure 1. Hardware Setup using an EC2 Serial Adapter

Corona (MAXREFDES12#) ZedBoard Quick Start Guide

)8-,768'HY.LW 2YHUYLHZ. )XMLWVX0LNURHOHNWURQLN*PE+ Am Siebenstein Dreieich-Buchschlag, Germany

Kinetis SDK Freescale Freedom FRDM-KL03Z Platform User s Guide

SENSORLESS-BLDC-MOTOR-RD

Instructions manual / DPC Touch Firmware Upgrade 1. DPC Touch Firmware Upgrade SERVICE MANUAL

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

MAXQ USB-to-JTAG EV Kit

MAXSANTAFEEVSYS User Manual

AC/DC Adapter. Figure 1. Hardware Setup

LPC2468 Industrial Reference Design Platform System Development Kit Version 1.2. August 2008

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual

ZCRMZNICE01ZEMG Crimzon In-Circuit Emulator

Corona (MAXREFDES12#) Nexys 3 Quick Start Guide

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

C8051F530A-DK C8051F530A DEVELOPMENT KIT USER S GUIDE. 1. Relevant Devices. 2. Kit Contents

Application Note 112 version 1.1 Installing a User program in EPROM on the Intel 8x930 4 Port USB Evaluation Board

Megawin 8051 OCD ICE

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

AC/DC. Adapter. Serial. Adapter. Figure 1. Hardware Setup

Quick-Start Guide. BNS Solutions. QSK62P Plus

MAXREFDES27# IO-Link Proximity Sensor Quick Start Guide

Evaluates: DS28E05. DS28E05 Evaluation Kit. General Description. Quick Start Driver Installation. Features

ice40 UltraPlus Image Sensor Elliptical Crypto Engine (ECC) Demo - Radiant Software User Guide

Evaluation board for NXP LPC2103. User Guide. Preliminary Version updated 27 th Aug TechToys Company All Rights Reserved

EQ7000. User Manual. Rev 1.00

MeshConnect ISP / WNA (ZIC2410USB-WNA-1) User Guide

Quick Start Guide for i.mx28 EVK. i.mx28 EVK Multimedia and connectivity

User Manual Rev. 0. Freescale Semiconductor Inc. FRDMKL02ZUM

Nuvoton 1T 8051-based Microcontroller NuTiny-SDK-N76E885 User Manual

MDP Based Face Detection Demonstration User Guide

Keil TM MDK-ARM Quick Start for. Holtek s HT32 Series Microcontrollers

FlashMaxII Operation Guide

VORAGO VA108x0 Bootloader application note

UM QN908x Quick Start. Document information. QN908x, Quick Start, Development Kit, QN9080 DK, QN9080 Development Kit

DC6688EMT User Manual

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite.

Evaluation Board Getting Started. TLE984x_EVB_1.x TLE9845_EVB_1.x

LPC1768 Industrial Reference Design Platform System Development Kit Version 1.3. May 2009

Kinetis Flash Tool User's Guide

QuickStart Instructions. Using Keil's ULINK and the Keil ARM/µVision3 Software Development Tool Chain

ToolStick-CapTouchSenseDC

AVRminiV3.1 Manual. 1. AVRminiV3.1 Overview. 2. AVRminiV3.1 Features and Specifications Standard Features: 2.2. Optional Features:

Versa-Kit-30xx Getting Started Guide Rev 1.0

EMX Development System

Z8 Encore! XP Family of Microcontrollers Development Kits

In-System Programming (ISP) of Sigma Z-Wave 500 series devices and modules

Avnet Zynq Mini Module Plus Embedded Design

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

Figure 1. JTAGAVRU1 application The JTAGAVRU1 is supported by AVR Studio. Updated versions of AVR Studio is found on

Note that FLIP is an Atmel program supplied by Crossware with Atmel s permission.

AN690. Si4010 DEVELOPMENT KIT QUICK-START GUIDE. 1. Purpose. 2. Kit Content. Table 1. Kit Content

LPC2148 DEV BOARD. User Manual.

ZIC2410 User Guide Device-Programmer Software Manual

Evaluates: DS28E80. DS28E80 Evaluation System. General Description. Benefits and Features. EV Kit Contents

UT32M0R500-EVB Development Board User Manual

Getting Started with FreeRTOS BSP for i.mx 7Dual

P89V51RD2 Development Board May 2010

R8C/Tiny. StarterKit Plus SKP8CMINI-15, SKP8CMINI-17. Clock Stop Detect

Intel Galileo gen 2 Board

MB95260H/MB95270H. MB95280H Series. MB95260H Series/MB95270H Series/

Interested users may wish to obtain additional components to evaluate the following modules:

HYDRA-X10. Power Application Controllers TM. PAC HYDRA-X User s Guide. Copyright 2014 Active-Semi, Inc.

ez80190 Development Kit Quick Start Guide

ADuC7XXX MicroConverter Get Started Guide

Also available for purchase separately are socket daughter boards for the QFN-11 and QFN-10 packages.

MegaAVR-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

AN LPC1700 secondary USB bootloader. Document information. LPC1700, Secondary USB Bootloader, ISP, IAP

Single Site Flash Programmer. User Guide. Supports GS1011MIE, GS1011MEx, GS1011MIP, GS1011MxxS, and GS1500M Modules

C8051F700-DK C8051F700 DEVELOPMENT KIT USER S GUIDE. 1. Relevant Devices. 2. Kit Contents. 3. Hardware Setup

MAXREFDES24EVSYS User Manual

Boot Loader for the Z51F6412 MCU

MAXQ622 Evaluation Kit Evaluates: MAXQ622

SIDE51 Quickstart Manual. SPJ Systems 101, Beaver Grandeur Baner Road Pune Tel Fax

GANG Programmer for flash micro computers. User s Manual. TESSERA Technology INC. Third Edition September

Getting Started with the MCU Flashloader

S USB-PC Connection (Cable Not Included) S USB Powered (No External Power Supply Required) S Real-Time Data Acquisition Through the USB

Z8 Encore! XP/Z8 Encore! Development Kits

Transcription:

78M6618 PDU1 Firmware Quick Start Guide July 2012 Rev. 0 UG_6618_122

Table of Contents 1 Introduction... 3 1.1 What s Included with an EVK?... 4 1.2 What s included with an SDK?... 5 1.3 Other Development Tools... 5 1.3.1 Socketed Flash Programming Board... 5 1.3.2 Compiler and Integrated Development Environment (IDE)... 6 1.3.3 In-Circuit Emulator (ICE)... 6 1.3.4 TFP2 Flash Programmer... 7 2 Getting Started with the EVK... 8 2.1 USB Driver Installation... 8 2.2 Connecting the Evaluation Board to the PC... 8 2.3 Getting Ready to Measure AC Energy... 8 2.4 Read Energy Measurement Data... 8 2.5 Calibration... 8 3 Getting Started with the SDK... 9 3.1 Required Hardware and Software Development Tools... 9 3.1.1 Running the PDU1 Application Software... 9 3.1.2 Modifying the Application Code... 9 3.2 Opening the Project with Keil uvision Tools... 9 3.3 Rebuilding the Application... 10 3.3.1 Without the Boot Loader... 10 3.3.2 With the Boot Loader and CRC... 10 3.4 Downloading the *.abs File to the Target... 11 4 Getting Started with Flash Programming... 12 4.1 Via the GUI... 12 4.2 Via thetfp2 Flash Programming Tool... 14 4.3 Via the ADM-51 Emulator... 17 5 Contact Information... 19 Revision History... 19

UG_6618_122 78M6618 PDU1 Firmware Quick Start Guide 1 Introduction The 78M6618 PDU1 Firmware is a turnkey energy measurement solution optimized for use in single-phase AC Power Distribution Units (PDUs). At the sensor interface, the 78M6618 with PDU1 Firmware provides eight sense inputs for current and two sense inputs for voltage (single-phase). At the host interface, either a UART or SPI interface can be used to issue configure the device and access the following measurement data: RMS Voltage RMS Current (Line1, Line2,..Line8) Active Power (Line1, Line2,..Line8) Apparent Power (Line1, Line2,..Line8) Reactive Power (Line1, Line2,..Line8) Power Factor (Line1, Line2,..Line8) Energy (Line1, Line2,..Line8) Line Frequency Fully functional demo code can be evaluated in an Evaluation Kit (EVK) and used as is in some applications. It can also serve as starting base for customization and adaptation to different system buses with an optional Software Development Kit (SDK). This document overviews the steps for Getting Started with the EVK Getting Started with the SDK Getting Started with Flash Programming Rev. 0 3

78M6618 PDU1 Firmware Quick Start Guide UG_6618_122 1.1 What s Included with an EVK? The PDU1 Evaluation Kit (EVK) includes the 78M6618 PDU1 Board (P/N 78M6618-PDU-1) demonstrating measurement and relay control of eight outlets using shunt resistors. The board incorporates the 78M6618 power and energy measurement IC, sensors, relays, and an isolated serial port connection to a Windows PC. ICE Adaptor Board USB Cable CD with GUI Software and Documentation 78M6618 PDU1 Board 12VDC Power Supply The 78M6618 on the board is pre-programmed with PDU1 Demo Code and calibrated at the factory. The energy measurement data and status is read back over the serial UART interface presented to the PC as a virtual COM port. The 78M6618 PDU1 Evaluation Kit requires a PC with Microsoft Windows XP or later with a USB port and a minimum 1024 x 768 video display resolution. An AC source and load complete the rest of the test setup needed to collect measurements. 2-wire Single-phase AC Source 78M6618 PDU1 Eval Kit Host PC USB Monitored Loads (up to 8) 4 Rev.0

UG_6618_122 78M6618 PDU1 Firmware Quick Start Guide 1.2 What s included with an SDK? The SDK contains all the required elements for a variety of usages. For the user who would like to evaluate the application in their own hardware, pre-built image files are available. Loading these image files into a 78M6618 will allow running the application as provided. A demonstration PC-based graphical user interface (GUI) is also provided and may be used to send configuration commands to and read out measurement data from the PDU1 application. Users who would like to develop their own applications have access to application level source code to use as a baseline. Energy measurement functions are provided in object code format and with a documented application programming interface (API). An SDK User Guide describes how to use development tools to modify the project code. Post processing tools, such as CRC insertion also included in the SDK package. The 78M6618 PDU1 SDK includes the following components: This Quick Start Guide 78M6618 PDU1 SDK 2.0 User Guide 78M6618 PDU1 Demo Application User Guide 78M6618 Firmware Boot Loader Functional Specification 78M6618 Programmer s Reference Manual EMSoC SDK 2.0 Serial Asynchronous Interface Protocol Specification EMSoC SDK 2.0 Serial Peripheral Interface (SPI) Protocol Specification 1.3 Other Development Tools This section describes other items available for purchase through Maxim directly or Maxim s distributors. 1.3.1 Socketed Flash Programming Board The 78M6618 Socket Board is a socketed fixture for flash programming 78M6618 devices in small quantities. It allows for loading program memory into 78M6618 SoCs via either the In-Circuit Emulator (ICE) interface, TFP2, or the serial Boot Loader (UART) interface if the device already contains the Boot Loader in flash. The 78M6618 Socket Board (P/N 78M6618-SOCKET68) includes: 78M6618 Socket Board and power supply CD with USB Driver, GUI software, and documentation Rev. 0 5

78M6618 PDU1 Firmware Quick Start Guide UG_6618_122 1.3.2 Compiler and Integrated Development Environment (IDE) Maxim recommends using the PK51 Professional Developer s Kit by Keil (www.keil.com), containing the µvision 4 Integrated Development Environment (IDE), complete with 8051 assembler, editor, C compiler, linker, and locator. The Demo Code shipped with the Demo Kits for Maxim AC Power Monitoring ICs was written using this tool. Keil offers the best support for the memory model of the 80515 core used in the 78M6618 ICs. It is possible to use alternative compilers, but the code for these is not supported by Maxim. While all Demo Code is written using the standard CA51 tool by Keil, significant improvements in memory usage can be made by using the PK51 Professional Developer s Kit by Keil. The PK51 contains the LX51 extended linker that can reduce code size using special optimization techniques. 1.3.3 In-Circuit Emulator (ICE) The Signum Systems ADM-51 (www.signum.com) is compatible with the Keil symbolic output format and supports the 78M6618. It is useful to perform the following tasks: Code emulation with breakpoints, watch windows, etc., with support of source code symbols Memory monitoring and manipulation (SFRs, XRAM, I/O RAM) Flash erase and code loading into flash memory of the 78M6618 Maxim supplies the ADM-51 to customers at a preferred price (P/N DB6612-ADM51) along with an isolated USB cable. 6 Rev.0

UG_6618_122 78M6618 PDU1 Firmware Quick Start Guide 1.3.4 TFP2 Flash Programmer The Signum ADM-51 can serve as a programmer for prototyping and small quantities. For programming production quantities, Maxim offers the TFP2 Flash Programming Module (P/N 80515-FPBM-TFP2), which is a stand-alone programmer that can be operated manually or in an ATE environment. The TFP2 offers the following features: Stand-alone or PC-controlled programming Variable flash memory size (selectable to match target device s memory size LEDs and signal outputs for PASS and FAIL Pushbutton and digital control inputs compatible with ATE Can erase and re-program ICs overriding the SECURE bit set For more information, see the Flash Programmer Model TFP2 User s Manual. Rev. 0 7

78M6618 PDU1 Firmware Quick Start Guide UG_6618_122 2 Getting Started with the EVK This section describes the necessary steps to get the pre-built application up and running. Note that some of the steps are only required once when the setup is installed for the first time. 2.1 USB Driver Installation The Evaluation Kit includes an isolated USB interface for serial communications with a PC. The FTDI USB controller IC FT232R performs the USB functions. Refer to the 78M6618 PDU1 Evaluation Board User Manual for information about USB Driver installation. 2.2 Connecting the Evaluation Board to the PC DO NOT APPLY AC POWER TO THE BOARD YET! Connect the 78M6618 PDU1 Evaluation Board to a USB port of the PC using the provided USB cable. The USB controller is powered through this connection. If installed for the first time, the PC will prompt you to install a USB-COM driver. Refer to the 78M6618 PDU1 Evaluation Board User Manual for more information. 2.3 Getting Ready to Measure AC Energy Refer to the included Safety Precautions application note and 78M6618 PDU1 Evaluation Board User Manual for detailed instructions if not already familiar with energy measurement, and for trouble shooting tips. Otherwise, connect AC source and loads to evaluation board along with external 12VDC power supply. 2.4 Read Energy Measurement Data The GUI application is now ready to be used to read energy measurement data and verify that the hardware and software work properly. Refer to the 78M6618 PDU1 Demo Application User Guide for more information. 2.5 Calibration All evaluation kits come pre-calibrated to a precision source. Note: Calibration requires connection of a reference power supply and a reference load that are more accurate than the desired calibrated accuracy. For more information, refer to the 78M661x Calibration Procedure. 8 Rev.0

UG_6618_122 78M6618 PDU1 Firmware Quick Start Guide 3 Getting Started with the SDK 3.1 Required Hardware and Software Development Tools 3.1.1 Running the PDU1 Application Software The PDU1 Demo Application can be used without purchasing software development tools. The prebuilt image file can be downloaded to the 78M6618 device via one of the following methods: The UART interface using the 78M6618 Boot Loader (target 78M6618 device must already have Boot Loader code resident in the flash memory) The ICE interface using TFP2 Flash Programmer tool (sold separately) The ICE interface using the ADM-51 Emulator (sold separately by Signum Systems Corporation) 3.1.2 Modifying the Application Code The project application code can be modified and adapted using the Keil development tool suite for the 8051 processor and the ADM-51 Emulator. Keil uvision4, version 9.0 and higher (http://www.keil.com/uvision) ADM-51 Emulator (http://www.signum.com/signum.htm) 3.2 Opening the Project with Keil uvision Tools The project is loaded into the development tools by opening the 6618_PDU1_APP_BL.uvproj file in the \Application folder. The project files are organized in folders, such as metrology, drivers, communication, etc, as can be seen below. Rev. 0 9

78M6618 PDU1 Firmware Quick Start Guide UG_6618_122 3.3 Rebuilding the Application The application can be built with or without inclusion of the Boot Loader utility. 3.3.1 Without the Boot Loader Building the application without the Boot Loader entails that software updates in the end product are possible only by connecting the TFP2 or ADM-51 tools to the ICE interface port. However, 1 KB of flash memory is freed when the Boot Loader is not included, which can be used by the application itself. Select target PDU_NO_BOOT from the drop down list (encircled in the figure above) and press F7 to build the project. A successful run produces two output files in the \Application\Obj folder. The *.abs file is most suited to be used by the emulator for debugging. The *.hex file is an image file best suited for the TFP2 programmer, and contains no debugging information. The *.hex file, as produced by the Keil compiler, is not suitable for the TFP2 unless the CHKSUM utility is first used to process the file into the proper format. 3.3.2 With the Boot Loader and CRC The Boot Loader requires 1 KB of memory and insertion of CRC codes into the image file. Building an application with the Boot Loader utility allows for subsequent firmware upgrades via the serial interface (RS-232 or RS-485) connected to the host. Select target PDU_BOOT from the drop-down list (encircled in the figure above) and press F7 to build the project. A successful run produces two output files in the \Application\Obj folder. The *.abs file is most suited to be used by the emulator for debugging. The *.hex file is an image file best suited for the TFP2 programmer, and contains no debugging information. See the Flash Programmer Model TFP2 User s Manual on how to use the CHKSUM utility. It should be noted that the *.hex output file needs to be post-processed in order to calculate and insert the CRC values. The Hex2CRCHex.exe application is included, in the tools folder of the SDK, to perform the post-compiling CRC insertion into the hex file. The resulting hex file is renamed with CRC added in the name. For example: 6618_PDU_CRC.hex is generated by the Hex2CRCHex.exe tool using input file 6618_PDU.hex. The project settings are such that this tool is invoked by default, as shown here: 10 Rev.0

UG_6618_122 78M6618 PDU1 Firmware Quick Start Guide 3.4 Downloading the *.abs File to the Target The ADM-51 Emulator is used to download the *.abs file to the EVM board. Once downloaded, the developer can run, stop and debug the application. Familiarity with the ADM-51 debugging tools is assumed for the purpose of this document. Rev. 0 11

78M6618 PDU1 Firmware Quick Start Guide UG_6618_122 4 Getting Started with Flash Programming 4.1 Via the GUI If the Firmware includes a Boot Loader, the following steps describe how to use the GUI to upgrade the Firmware using the Boot Loader: 1. On the SAI Commands tab, click the Invoke Boot Loader Mode button near the lower-left corner. 2. Power cycle the device, or send Watchdog Reset command. It will enter the Boot Load mode. This can be verified by observing the DIO4 pin, which produces 15 ms pulses when the boot loader is in operation. 12 Rev.0

UG_6618_122 78M6618 PDU1 Firmware Quick Start Guide 3. On the BootLoader tab, click the Load New Hex File button and select the hex file for the upgrade. 4. The GUI will show progress during the firmware upgrade. After the firmware upgrade is complete the new firmware application is running. Rev. 0 13

78M6618 PDU1 Firmware Quick Start Guide UG_6618_122 4.2 Via thetfp2 Flash Programming Tool Refer to the Flash Programmer Model TFP2 User s Manual for more detailed instructions if necessary. 1. Connect the TFP2 Programmer to the evaluation board via the ribbon cable and connect the serial cable to the PC. Make sure the 78M6618 is connected to 3.3V. The memory size switch must be set to 64 KB for the 78M6618 target device. 2. Start a terminal program. In the example, Hyper Terminal was used. Set the connection to the proper COM port and set it to 38400, N, 1, XONXOFF. A prompt should appear. 3. Type the H command at the > prompt on the terminal and select Transfer > Send Text File (as shown below). Do not select Send File. This.hex file must have previously been processed with the CHKSUM.exe utility. 14 Rev.0

UG_6618_122 78M6618 PDU1 Firmware Quick Start Guide 4. Wait for the hex file to get transferred to TFP2 internal EEPROM. Once complete, a PASS message should appear as seen below. Rev. 0 15

78M6618 PDU1 Firmware Quick Start Guide UG_6618_122 5. To program the device s flash using the flash image that was just programmed in the TFP2 s EEPROM in steps 3 and 4 above, type the P command at the > prompt or simply push the Program button on the TFP2. If the programming is successful, a PASS message will be displayed. The Firmware programming is now complete. 16 Rev.0

UG_6618_122 78M6618 PDU1 Firmware Quick Start Guide 4.3 Via the ADM-51 Emulator Refer to the Signum System ADM-51 Emulator documentation if necessary. 1. Connect the ADM-51 to the PC using the isolated USB cable. Connect the target board to ADM-51 emulator using the ribbon cable and power up the 78M6618 device. 2. Start the Wemu51 program from the connected PC. 3. Stop the CE by writing 0x00 at XRAM address 0x2000 (see the XDATA memory window below). 4. Use File->Load to select the hex file for programming. Rev. 0 17

78M6618 PDU1 Firmware Quick Start Guide UG_6618_122 5. Browse using the Hex File Type, or ABS file type (see Section 3.4). 6. Click OK to start the programming. The progress will be shown in the progress bar. 7. Once progress is 100%, the firmware programming is complete. 18 Rev.0

UG_6618_122 78M6618 PDU1 Firmware Quick Start Guide 5 Contact Information For more information about the 78M6618 or other Maxim products, contact technical support at www.maxim-ic.com/support. Revision History Revision Number Revision Date Description Pages Changed 0 7/12 First publication. Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are implied. Maxim reserves the right to change the circuitry and specifications without notice at any time. Maxim Integrated Products, Inc. 160 Rio Robles, San Jose, CA 95134 USA 1-408-601-1000 2012 Maxim Integrated Products is a registered trademark of Maxim Integrated Products. Rev. 0 19