beautypg.com

Utilities, Io_merge, Ce_merge – Maxim Integrated 71M6513H Power Meter IC Family Software User Manual

Page 15

background image

71M651x Software User’s Guide

2.3.UTILITIES

Two utilities are offered that make it possible to perform certain operations on the object (HEX) files without having to
use a compiler:

IO_MERGE.EXE allows combining the object file with a text script in order to change certain default settings
of the program. For example, modified calibration coefficients resulting from an actual calibration can be
inserted into the object file.

CE_MERGE.EXE allows combining the object file with an updated image of the CE code.

Both utilities are executed from a DOS window (DOS command prompt). To invoke the DOS window, the “command
prompt” option is selected after selecting Start – All Programs – Accessories.

2.3.1. IO_MERGE

Any changes to I/O RAM (Configuration RAM) can be made permanent by merging them into the object file. The first
step for this is to create a maco file (macro.txt) containing the commands adjusting the I/O RAM, such as the following
commands affecting calibration:

]8=+16381

]9=+16397

]E=+237

The io_merge program updates the 6511_demo.hex file with the values contained in the macro file. The io_merge
program must be in the same directory as the source files, or a path to the executable must be declared. Executing
the io_merge program with no arguments will display the syntax description. To merge the file macro.txt and the object
file old_6511_demo.hex into the new object file new_6511_demo.hex, use the command:

io_merge old_6511_demo.hex macro.txt new_6511_demo.hex

2.3.2. CE_MERGE

The ce_merge program updates the 6511_demo.hex file with the CE program image contained in the CE.CE file and
the data image CE.DAT. Both CE.CE and CE.DAT must be in Intel HEX format, i.e. both files are not in the source
format but in the compiled format (Verilog HEX). These files will be made available from Teridian in the cases when
updates to the CE images are necessary.

To merge the object file old_6511_demo.hex with CE.CE and CE.DAT into the new object file new_6511_demo.hex,
use the command:

ce_merge old_6513_demo.hex ce.ce ce.dat 6513_demo.hex

Revision 2.4

TERIDIAN Proprietary

15 of 137

© Copyright 2005-2006 TERIDIAN Semiconductor Corporation