Manual

71M6541 Demo Board REV 3.0 User’s Manual
23 Rev 4.0
1.10 DEMO CODE
1.10.1 DEMO CODE DESCRIPTION
The Demo Board is shipped preloaded with Demo Code in the 71M6541F chip. The code revision can easily be
verified by entering the command >i via the serial interface (see section 1.8.1). Check with your local Maxim In-
tegrated representative or FAE for the latest revision.
The Demo Code is provided in two different versions:
Single-phase two-wire operation (EQU 0, with secondary tamper sensor). Energy measurement and
Wh/VARh pulses are based solely on VA (phase A voltage) and IA (phase A current). Energy and cur-
rent values for IB (secondary phase) are available as CE outputs to the MPU for processing of tamper-
ing events.
Single-phase three-wire operation (ANSI configuration, EQU 1). Energy measurements and Wh/VARh
pulses are based on VA (IA IB) / 2.
Both Demo Code versions use the same CE code, but with different settings of the
EQU register.
The Demo Code offers the following features:
It provides basic metering functions such as pulse generation, display of accumulated energy, fre-
quency, date/time, and enables the user to evaluate the parameters of the metering IC such as accu-
racy, harmonic performance, etc.
It maintains and provides access to basic household functions such as the real-time clock (RTC).
It provides access to control and display functions via the serial interface, enabling the user to view
and modify a variety of meter parameters such as Kh, calibration coefficients, temperature compensa-
tion etc.
It provides libraries for access of low-level IC functions to serve as building blocks for code de-
velopment.
A detailed description of the Demo Code can be found in the Software User’s Guide (SUG). In addition, the
comments contained in the library provided with the Demo Kit can serve as useful documentation.
The Software User’s Guide contains the following information:
Design guide
Design reference for routines
Tool Installation Guide
List of library functions
80515 MPU Reference (hardware, instruction set, memory, registers)
1.10.2 IMPORTANT MPU ADDRESSES
In the demo code, certain MPU XRAM parameters have been given addresses in order to permit easy external
access. These variables can be read via the command line interface (if available), with the )n$ command and
written with the )n=xx command where n is the word address. Note that accumulation variables are 64 bits long
and are accessed with )n$$ (read) and )n=hh=ll (write) in the case of accumulation variables.
The first part of the table, the addresses )00..)1F, contains adjustments, i.e., numbers that may need adjust-
ment in a demonstration meter, and so are part of the calibration for demo code. In a reference meter, these
may be in an unchanging table in code space.
The second part, )20..)2F, pertains to calibration, i.e., variables that are likely to need individual adjustments for
quality production meters.
The third part, )30…, pertains to measurements, i.e., variables and registers that may need to be read in a
demonstration meter.