Simplifying System Integration
TM
USER GUIDE
6612_OMU_S2+2_URT_V1_14
Firmware Description Document
March 5, 2010
Rev. 1.0
UG_6612_017
6612_OMU_S2+2_URT_V1_14 Firmware Description Document
UG_6612_017
© 2010 Teridian Semiconductor Corporation. All rights reserved.
Teridian Semiconductor Corporation is a registered trademark of Teridian Semiconductor Corporation.
Simplifying System Integration is a trademark of Teridian Semiconductor Corporation.
All other trademarks are the property of their respective owners.
Teridian Semiconductor Corporation makes no warranty for the use of its products, other than expressly
contained in the Company’s warranty detailed in the Teridian Semiconductor Corporation standard Terms
and Conditions. The company assumes no responsibility for any errors which may appear in this
document, reserves the right to change devices or specifications detailed herein at any time without
notice and does not make any commitment to update the information contained herein. Accordingly, the
reader is cautioned to verify that this document is current by comparing it to the latest version on
http://www.teridian.com or by checking with your sales representative.
Teridian Semiconductor Corp., 6440 Oak Canyon, Suite 100, Irvine, CA 92618
TEL (714) 508-8800, FAX (714) 508-8877, http://www.teridian.com
2
Rev. 1.0
UG_6612_ 017
6612_OMU_S2+2_URT_V1_14 Firmware Description Document
Table of Contents
1
2
3
4
Introduction ................................................................................................................................... 5
Description of Basic Measurement Equations ............................................................................. 5
Serial Communication ................................................................................................................... 6
Command Line Interface ............................................................................................................... 7
4.1 Identification and Information Commands................................................................................. 7
4.2 Reset Commands .................................................................................................................... 7
4.3 MPU Data Access Command ................................................................................................... 8
4.3.1 Individual Address Read .............................................................................................. 8
4.3.2 Consecutive Read ....................................................................................................... 8
4.3.3 Block Reads ................................................................................................................ 9
4.3.4 Concatenated Reads ................................................................................................... 9
4.3.5 MPU/XDATA Access Commands .............................................................................. 10
4.4 Auxiliary Commands .............................................................................................................. 11
4.4.1 Repeat Command ..................................................................................................... 11
4.5 Calibration Commands........................................................................................................... 12
4.5.1 Complete Calibration Command (“Single Command Calibration”) .............................. 12
4.5.1.1 CAL Command............................................................................................ 12
4.5.1.2 CALW Command ........................................................................................ 13
4.5.2 Atomic Calibration Commands................................................................................... 14
4.5.2.1 CLV Command............................................................................................ 14
4.5.2.2 CLI Command ............................................................................................. 14
4.5.2.3 CLP Command............................................................................................ 14
4.5.2.4 CLT Command ............................................................................................ 15
4.6 CE Data Access Commands .................................................................................................. 16
4.6.1 Single Register CE Access ........................................................................................ 16
4.6.2 Consecutive CE Reads.............................................................................................. 16
4.6.3 U Command .............................................................................................................. 17
4.7 CE Control Commands .......................................................................................................... 18
4.7.1 CE Data Write ........................................................................................................... 18
4.7.2 Turn Off CE Command .............................................................................................. 18
4.7.3 U Command .............................................................................................................. 18
4.7.4 Turn On CE Command .............................................................................................. 18
4.8 I/O RAM (Configuration RAM) Command ............................................................................... 19
MPU Measurement Outputs ........................................................................................................ 20
Configuration Parameter Entry ................................................................................................... 40
6.1 MPU Parameters ................................................................................................................... 40
6.2 CE Parameters ...................................................................................................................... 48
Address Content Summary ......................................................................................................... 52
Contact Information..................................................................................................................... 57
5
6
7
8
Revision History .................................................................................................................................. 57
Rev. 1.0
3
6612_OMU_S2+2_URT_V1_14 Firmware Description Document
UG_6612_017
Tables
Table 1: Measurement Equations Definitions ........................................................................................... 5
Table 2: Outlet 1 MPU Outputs for Narrowband Method......................................................................... 20
Table 3: Outlet 1 MPU Outputs for Wideband Method ............................................................................ 24
Table 4: Outlet 2 MPU Outputs for Narrowband Method......................................................................... 28
Table 5: Outlet 2 MPU Outputs for Wideband Method ............................................................................ 32
Table 6: Combined Outlets MPU Outputs for Narrowband Method ......................................................... 36
Table 7: Combined Outlets MPU Outputs for Wideband Method ............................................................ 38
Table 8: MPU Parameters ..................................................................................................................... 40
Table 9: CE Parameters ........................................................................................................................ 48
Table 10: MPU Output Summary Chart .................................................................................................. 52
Table 11: MPU Input Summary Chart .................................................................................................... 55
Table 12: CE Input Summary Chart ....................................................................................................... 56
4
Rev. 1.0
UG_6612_ 017
6612_OMU_S2+2_URT_V1_14 Firmware Description Document
1 Introduction
This document describes the firmware 6612_OMU_S2+2_URT_V1_14, which can be used with the
Teridian 78M6612 power and energy measurement IC. This firmware provides simple methods for
calibration, relay control, and access to measurement data such as Watts, Voltage, Current, accumulated
Energy and line frequency. It is optimized for measurement of up to two single phase AC loads using
current shunts as the current sensors, but Current Transformer (CT) sensors may also be used if desired.
All measurement calculations are computed by the 78M6612 and communicated to the host processor
over a serial interface (UART0) on the TX and RX pins of the 78M6612 device. RTC (real time clock),
LCD Driver, and Battery Modes are not supported by this firmware. Additional 78M6612 hardware
utilized by this firmware includes:
•
•
•
•
DIO20 used as a configurable status alarm output pin
DIO4, DIO5, and DIO8 as LED outputs for Active, Ready, and Fault status
DIO7 and DIO19 used as configurable relay control ouputs
DIO6 used as an optional pulse output
The following sections detail the commands to be sent by the host to configure the 78M6612 and for
accessing measurement information.
2 Description of Basic Measurement Equations
The Teridian 78M6612 with firmware 6612_OMU_S2+2_URT_V1_14 provides the user with two types of
continuously updating measurement data (on 1 second increments by default). One is defined as
“Narrowband” (NB) and the other is defined as “Wideband” (WB).
Narrowband measurements are typically used by utilities where the measured waveforms are
assumed to be sinusoidal.
Wideband measurements are generally of interest when measuring nonlinear systems such as
switched mode power supplies that tend to have non-sinusoidal waveforms. This firmware
utilizes an effective sampling rate of 3641 samples per second.
Table 1 lists the basic measurement equations for the Narrowband and the Wideband methods.
Table 1: Measurement Equations Definitions
Symbol
V
I
P
Q
S
PF
PA
Parameter
RMS Voltage
RMS Current
Active Power
Reactive
Power
Apparent
Power
Power Factor
Phase Angle
Narrowband Equation
V =
√∑
v
(t)
I = S/V
P =
∑
(i
(t) *
v
(t))
Q =
∑
(i
(t) *
v
(t)shift 90º)
S =
√(P
+ Q )
P/S
ACOS (P/S)
2
2
2
Wideband Equation
V =
√∑
v
(t)
I =
√∑
i
(t)
2
2
P =
∑
(i
(t) *
v
(t))
Q =
√(S
– P )
S=V*I
P/S
ACOS (P/S)
2
2
Both types of measurement outputs are continuously available to the user. To obtain measurement
outputs, the serial UART interface between the 78M6612 and the host processor must be set up and is
described in the next section.
Rev. 1.0
5