A Maxim Integrated Products Brand USER GUIDE 6613_PSU_1+1S_URT_v1_00 Firmware Description Document October 29, 2010 Rev. 1.
6613_PSU_1+1S_URT_V1_00 Firmware Description Document UG_6613_040 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, 120 San Gabriel Drive, Sunnyvale, CA 94086 408- 737-7600 2010 Maxim Integrated Products Maxim is a registered trademark of Maxim Integrated Products.
UG_6613_ 040 6613_PSU_1+1S_URT_V1_00 Firmware Description Document Table of Contents 1 Introduction ......................................................................................................................................... 5 2 Measurement Description .................................................................................................................. 6 2.1 Basic Measurement Equations ............................................................................................
6613_PSU_1+1S_URT_V1_00 Firmware Description Document UG_6613_040 Tables Table 1: Measurement Equations Definitions ............................................................................................... 6 Table 2: MPU Outputs ................................................................................................................................. 19 Table 3: MPU Parameters.......................................................................................................................
UG_6613_ 040 6613_PSU_1+1S_URT_V1_00 Firmware Description Document 1 Introduction This document describes the 6613_PSU_1+1S_URT_v1_00 firmware, which is used with the Teridian 78M6613 power and energy measurement IC. This firmware provides simple methods for calibration and access to measurement data such as Instantaneous Power, Voltage, Current, Power Factor, and Line Frequency.
613_PSU_1+1S_URT_V1_00 Firmware Description Document UG_6613_040 2 Measurement Description 2.1 Basic Measurement Equations The Teridian 78M6613 with firmware 6613_PSU_1+1S_URT_v1_00 provides the user with measurement data referred to as “Wideband” (WB). Wideband measurements are generally of interest when measuring non-sinusoidal current/voltage, a typical condition in switched mode power supplies or similar systems.
UG_6613_ 040 6613_PSU_1+1S_URT_V1_00 Firmware Description Document 3 Serial Communication The serial communication with the 78M6613 takes place over a UART (UART0) interface.
6613_PSU_1+1S_URT_V1_00 Firmware Description Document UG_6613_040 6 Command Line Interface The 6613_PSU_1+1S_URT_v1_00 firmware implements an instruction set called the Command Line Interface (CLI), which facilitates communication via UART between the 78M6613 and the host processor. 6.1 Identification and Information Commands The I command is used to identify the revisions of the 6613_PSU_1+1S_URT_v1_00 firmware code and the embedded CE code.
UG_6613_ 040 6613_PSU_1+1S_URT_V1_00 Firmware Description Document 6.3 MPU Data Access Command All the measurement calculations are stored in the MPU data addresses of the 78M6613. The host requests measurement information using the MPU data access command which is a right parenthesis ) To request information, the host sends the MPU data access command, the address (in hex) which is requested, the format in which the data is desired (Hex or Decimal) and a carriage return.
6613_PSU_1+1S_URT_V1_00 Firmware Description Document 6.3.3 UG_6613_040 Block Reads The block read command can also be used to read consecutive registers: )saddr:eaddr? For decimal format or )saddr:eaddr$ for hex format where saddr is the start address and eaddr is the final address. The following block read command requests the information contained in Table 2 in decimal format: >)20:3D? 6.3.4 Concatenated Reads Multiple commands can also be added on a single line.
UG_6613_ 040 Examples: Rev. 1.0 6613_PSU_1+1S_URT_V1_00 Firmware Description Document )U Updates the default values of the MPU Data permanently in the flash. )08$ Reads data word at MPU address location 0x08 in hex format. )08$$ Reads data words at MPU address location 0x08, 0x09 in hex format. )08$$$ Reads data words at MPU address location 0x08, 0x09, 0x0A in hex format. )28:4D$ Read data words in hex. )08? Reads data word at MPU address location 0x08 in decimal format.
6613_PSU_1+1S_URT_V1_00 Firmware Description Document UG_6613_040 6.4 Auxiliary Commands 6.4.1 Repeat Command The repeat command can be useful for monitoring measurements and is efficient in demands from the host.
UG_6613_ 040 6613_PSU_1+1S_URT_V1_00 Firmware Description Document 6.5 Calibration Commands Using the precision source method, the user provides a precision voltage and precision current load to the device for calibration. The 6613_PSU_1+1S_URT_v1_00 firmware provides commands to calibrate the measurement units. For linear current sensors, such as current shunt, no phase calibration is necessary. There are two types of calibration commands. The first type provides complete calibration.
6613_PSU_1+1S_URT_V1_00 Firmware Description Document 6.5.2 UG_6613_040 Atomic Calibration Commands The atomic calibration commands provide individual calibration of voltage, current, temperature, watts and a sequence of these results in providing full calibration for the unit. 6.5.2.1 CLV Command An example of an atomic calibration command would be to calibrate voltage with the CLV command. The CLV command calibrates voltage to the target value and tolerance and saves the coefficients to flash.
UG_6613_ 040 6613_PSU_1+1S_URT_V1_00 Firmware Description Document 6.5.2.4 CLT Command The CLT command is used for the temperature calibration. This command adjusts the Temperature Nominal at MPU location 0xA6, saves to flash and will initiate temperature gain compensation.
6613_PSU_1+1S_URT_V1_00 Firmware Description Document 6.6.2 UG_6613_040 Consecutive CE Reads The host can request information from consecutive addresses by adding additional ? for decimal or additional $ for hex.
UG_6613_ 040 Examples: Rev. 1.0 6613_PSU_1+1S_URT_V1_00 Firmware Description Document ]40$ Reads CE data word at address location 0x40 in the hex format. ]40$$ Reads CE data word at address location 0x40 and 0x41 in the hex format. ]40$$$ Reads CE data word at address location 0x40,0x41 and 0x42 in the hex format. ]40? Reads CE data word at address location 0x40 in the decimal format. ]40?? Reads CE data word at address location 0x40 and 0x41 in the decimal format.
6613_PSU_1+1S_URT_V1_00 Firmware Description Document UG_6613_040 The commands that follow are included for reference only. 6.7 CE Control Commands The most pertinent command is the CE enable command, CEn. It is mainly used to turn the CE on or off. The CE is normally enabled but in order to update the CE data entry to flash, the CE must first be turned off using the CE0 command. 6.7.1 Disable CE Command The CE can be disabled by using the following command: >CE0 6.7.
UG_6613_ 040 6613_PSU_1+1S_URT_V1_00 Firmware Description Document 7 MPU Measurement Outputs This section describes the measurement outputs that can be obtained in Manual CLI Mode. Energy outputs are accumulated numbers. The host accessing the measurement information from the 78M6613 more frequently than the accumulation interval will not result in any update in the information. Table 2 lists the wideband measurement outputs.
6613_PSU_1+1S_URT_V1_00 Firmware Description Document Output Location (hex) LSB Comment Vrms Under Voltage Event Count 24 Counter increments on each edge event. Vrms Over Voltage Event Count 25 Counter increments on each edge event. Vrms A 26 mV Vrms voltage Watts A 27 mW Active power measurement (per second). Wh A 28 mWh Active accumulated energy measurement (per hour). Total Cost A 29 mUnits Cost of Wh A. Irms A 2A mA rms current measurement.
UG_6613_ 040 6613_PSU_1+1S_URT_V1_00 Firmware Description Document Output Location (hex) LSB Comment Reserved 2F – Reserved Vrms A Min 30 mV Minimum Vrms measured Vrms A Max 31 mV Maximum Vrms measured Watts A Min 32 mW Minimum active power measured (per second) Watts A Max 33 mW Maximum active power measured (per second) Irms A Min 34 mArms Minimum rms current measured. Irms A Max 35 mArms Maximum rms current measured.
6613_PSU_1+1S_URT_V1_00 Firmware Description Document Output Location (hex) LSB Comment UG_6613_040 Example VAs A Max 39 mW Maximum apparent power measured (per second). Power Factor A Min 3A – Minimum power factor measured. Minimum is defined as the most negative or least positive number. Power Factor A Max 3B – Maximum power factor measured. Maximum is defined as the most positive or least negative number. Phase Angle A Min 3C – Minimum phase angle measured.
UG_6613_ 040 6613_PSU_1+1S_URT_V1_00 Firmware Description Document 8 Configuration Parameter Entry 8.1 MPU Parameters Table 3 lists the MPU parameters configurable by the 6613_PSU_1+1S_URT_v1_00 Firmware. Table 3: MPU Parameters MPU Parameter VMAX A Location (hex) A0 LSB mVrms Default Comment +471.500 External rms voltage corresponding to 250 mVpk at the VA input of the 78M6613. It must be set high enough to account for overvoltages. Usually set to 471.500 V (471.500d). +0.
6613_PSU_1+1S_URT_V1_00 Firmware Description Document UG_6613_040 MPU Parameter Location (hex) LSB Default Comment Example Cost/kWh AA mUnits +0.150 Cost per kWh (kilowatt hour) in milliunits. If the cost per kWh is to be 10 units: )AD=+10.000 To enter US Dollars: USD 4-byte string describing unit of cost (e.g. USD, EURO etc.). There must be 4 characters. If entering US dollars, USD, there needs to be a space after the D to make it a four character string.
UG_6613_ 040 MPU Parameter 6613_PSU_1+1S_URT_V1_00 Firmware Description Document Location (hex) LSB Default Comment Example If the target load current for calibration is 2A, enter the following: >)C2=+2 Calibration Current C2 mArms +1.000 Target load current (rms) used for calibration. Calibration Phase C3 0.1° +0 Target Phase (voltage to current). Normally set to zero. +0.
6613_PSU_1+1S_URT_V1_00 Firmware Description Document MPU Parameter Tolerance on Watts Average Count for Watts Max Iteration for Watts Calibration WRATE Calibration Temperature Calibration Watts Temp Alarm Min Threshold Temp Alarm Max Threshold 26 Location (hex) CA CB CC CD CE CF D0 D1 LSB mW 1 1 1 0.1°C mW 0.1°C 0.1°C UG_6613_040 Default Comment Example +0.
UG_6613_ 040 MPU Parameter Frequency Minimum Threshold Frequency Maximum Threshold SAG Voltage Alarm Threshold Min Voltage Alarm Threshold 6613_PSU_1+1S_URT_V1_00 Firmware Description Document Location (hex) D2 D3 D4 D5 LSB 0.01Hz 0.01Hz mVpk mVrms Default Comment +59.00 Minimum Frequency Alarm Threshold. A frequency below this threshold will set the alarm (bit 2 of the Alarm Status Register). +61.00 Maximum Frequency Alarm Threshold.
6613_PSU_1+1S_URT_V1_00 Firmware Description Document MPU Parameter Location (hex) LSB Unused DA - DB – PFA_ Neg Threshold PFA_ Pos Threshold DC DD – – UG_6613_040 Default Comment Example -0.700 Power Factor Negative Threshold. A less negative power factor than this threshold will set an alarm (bit 11 of the Alarm Status Register). Only available if )F2 bit 2 is set to 1. If the negative power factor threshold is to be changed from the default to -0.6 then set as follows: +0.
UG_6613_ 040 6613_PSU_1+1S_URT_V1_00 Firmware Description Document 8.2 CE Parameters Table 4 lists the CE parameters configurable by the 6613_PSU_1+1S_URT_v1_00 Firmware. The user does not need to alter any of these parameters. Table 4: CE Parameters CE Parameter Location( hex) LSB CAL IA 08 16384 is the default and is a gain of 1. 32767 is max giving a gain of 2. Unused 09 CAL VA 0A Unused 0B PHASE_ ADJ_IA 0C Unused 0D CESTATE 0E 16384 is the default and is a gain of 1.
6613_PSU_1+1S_URT_V1_00 Firmware Description Document CE Parameter Location( hex) LSB WRATE 0F Kh = VMAX A * IMAX A / (WRATE * X) 1.6826E+0 1 WattSec Reserved 10 Reserved 11 VMAX A *4.2551E07 (Vpk) +168225 The voltage threshold for SAG warnings. The default value is 80 Vpk if VMAX = 600 V. QUANTA 12 VMAX A * IMAX A * 1.8541E10 (Watt) 0 Compensation added to the Watt calculation. Used for compensation at low current levels. Keep below 10000d.
UG_6613_ 040 6613_PSU_1+1S_URT_V1_00 Firmware Description Document 9 Address Content Summary Table 5: MPU Output Summary Chart Address Common Data Wideband Data Min/Max Data Rev. 1.
6613_PSU_1+1S_URT_V1_00 Firmware Description Document UG_6613_040 Table 6: MPU Input Summary Chart Voltage A0 Vmax Current A1 Imin (Creep A) A2 Imax (A) Unused A3 - A5 Unused Temperature A6 TEMPERATURE NOMINAL A7 Reserved A8 PPMC A9 PPMC2 AA Cost per KWh AB Cost Unit string Cost Reserved AC - BC Misc.
UG_6613_ 040 Voltage Unused Current Power Factor 6613_PSU_1+1S_URT_V1_00 Firmware Description Document D4 SAG Voltage Alarm Threshold D5 Min Voltage Alarm Threshold D6 Max Voltage Alarm Threshold D7 Unused D8 Unused D9 Max Current Alarm Threshold DA Unused DB Unused DC Power Factor Alarm - Threshold DD Power Factor Alarm + Threshold Unused DE-DF Unused Unused Unused E0 – E5 Alarm Mask for Status Regs E6 Alarm Mask for Status Alarm Mask for Alarm DI/O E7 Alarm Mask for Alarm D
6613_PSU_1+1S_URT_V1_00 Firmware Description Document UG_6613_040 10 Digital IOs DIO17 is a dedicated SAG status pin that is set high when SAG Voltage alarm triggers. SAG Voltage alarm status is checked every MUX cycle for low latency detection of AC fault conditions. Both the instantaneous voltage alarm threshold and sample count for the SAG alarm are configurable. See CE STATE and SAG Threshold registers for more information.
UG_6613_ 040 6613_PSU_1+1S_URT_V1_00 Firmware Description Document Document Revision History Version Date History 1.0 10/29/2010 First publication. Rev. 1.