2 demo code options and program size, Demo code options and program size, Table 5-3: demo code versions – Maxim Integrated 71M6534 Energy Meter IC Family Software User Manual

Page 47: Table 5-4: current sensing options

Advertising
background image

71M653X Software User’s Guide

There is a known defect in version 7.50a of the Keil compiler:

Memory types must be explicitly defined in local variables. Using a predefined type is not explicit
enough, i.e. "char xdata c;" is ok. "typedef char int8_t; ... int8_t data c;" is OK,

but "typedef char data int8d_t; ... int8d_t c;" is not OK.

5.2 DEMO CODE OPTIONS AND PROGRAM SIZE

Since the 71M6531 is single phase, and the 71M6534 is tree-phase, different versions of the Demo Code are provided
that take into account the different features (see Table 5-3). An attempt has been made to provide the most common
features in each version of the Demo Code. Flexibility is provided by the source code for users when recompiling the
source code: If a certain feature is not required, it can be left out and replaced with a different feature.

The object files contained in the Demo Kits have been generated with the following Keil compiler versions:

C compiler: C51.exe, V8.05a

Assembler: A51.exe, V8.00b

• Linker/Locator:

BL51.exe, V6.05

• Librarian:

LIB51.exe, V4.24

Hex-converter: OH51.exe, V2.6

Version

Flash

Code Size

Description

Single Phase

~45KB Demonstrates a single phase meter. The software offers calibration and nonvolatile

energy registers. It utilizes one set of CE code for 1 element two wire meters, and
another set for 1 element three wire, and 2 element three wire delta.

Three Phase

~49KB

Demonstrates a three-phase meter. The software is easy to reconfigure by recompiling.
It has calibration and nonvolatile energy registers. The software demonstrates a full
feature set.

Table 5-3: Demo Code Versions

In addition to providing flexibility, an attempt has been made to leave a certain amount of unoccupied memory space
when generating the Demo Code. This should provide some room for users who want to modify the Demo Code and
experiment with small changes.

The tables presented below show the features available for the three versions of the Demo Code plus the code size
required for each feature. Entries for code size are approximated and depend on code module combination.

Y means that the feature is implemented, N means that it is not. N/opt means that the feature may be implemented if
enough memory space is available.

Feature

Code

Size

1

φ

3

φ

Description

CT and shunt
resistors

1KB to

2.5KB

Y

Y

Configurations include all 2 element 3 wire delta, and
3 element 4 wire wye with neutral current. These
were selected for demonstration because they permit
easy measurements of individual elements.

Rogowski coils

2.5KB

N

N

Needs special CE code; contact factory

Table 5-4: Current Sensing Options

v1.1v1.1

TERIDIAN Proprietary

47 of 116

© Copyright 2005-2008 TERIDIAN Semiconductor Corporation

Advertising
This manual is related to the following products: