beautypg.com

1 firmware library and ce memory configurations, 2 program and ram memory, 1 program memory – Maxim Integrated 78M6612 M-API Library User Manual

Page 10: Firmware library and ce memory configurations, Program and ram memory, Program memory

background image

78M6612 M-API Library User Guide

UG_6612_036

10

Rev. 1.00

3 Build Environment and Software/Firmware Configurations

The Metrology Application Programming Interface (MAPI) is built using Keil Compiler version 8.02,
although any Keil version 7.00 or higher is also compatible.

The MAPI is built using specific default configuration as listed below.

3.1 Firmware Library and CE Memory Configurations

Processing of ADC inputs is done by the CE. The MAPI libraries are built to link to the specific CE code
according to the specific hardware configuration. The table below shows the different libraries as built
with specific CE code to support different configurations:

Table 1: CE Configuration

Library Name

Default Accumulation Interval = 500ms

6612S22_WB_MAPI.lib Built for Wide-Band.

6612S22_NB_MAPI.lib

Built for Narrow-Band.

3.2 Program and RAM Memory

The embedded 80515 MPU within the 78M6612 has separate program memory (32K bytes) and data
memory (2K bytes).

3.2.1 Program Memory

The Flash program memory is non-volatile and is segmented into 512-byte pages. The last 2.5K (five
512-byte pages) of Flash space is reserved for CE data, CE code and default values used for Energy
Calibration and Measurement. The code for the Compute Engine program resides in the MPU program
memory (flash) and must begin on 1K-byte boundary.

Table 1 below shows the partitions of Flash memory.

Table 2: Flash Memory Map

Address (hex)

Type

Typical Usage

Wait States

(at 5 MHz)

Size (bytes)

0000-75FF

Non-volatile

Program and any non-volatile
data. Shared by the MAPI and
application layer.

0

29.5KB

7600-773E

Non-volatile

Reserved for MAPI energy
measurement constants
(defaults).

0

< ~350B

777F-7FFF

Non-volatile

Reserved for CE code and CE
data.

0

2KB