![Teridian 71M6513 Скачать руководство пользователя страница 29](http://html1.mh-extra.com/html/teridian/71m6513/71m6513_user-manual_1088921029.webp)
71M6513/71M6513H Demo Board User’s Manual
Page: 29 of 112
©
2005-2006 TERIDIAN Semiconductor Corporation
Revision 5.6
1.9.2 CALIBRATION MACRO FILE
The macro file in Figure 1-7 contains a sequence of the serial interface commands. It is a simple text file and
can be created with Notepad or an equivalent ASCII editor program. The file is executed with HyperTerminal’s
Transfer->Send Text File
command.
Figure 1-7: Typical Calibration Macro file
It is possible to send the calibration macro file to the 71M6513/71M6513H for “temporary” calibration. This will
temporarily change the CE data values. Upon power up, these values are refreshed back to the default values
stored in flash memory. Thus, until the flash memory is updated, the macro file must be loaded each time the
part is powered up. The macro file is run by first issuing the ce0 command to turn off the compute engine and
then sending the file with the
transfer
Æ
send text file
procedure.
Use the
Transfer
Æ
Send Text File
command!
1.9.3 UPDATING THE 6513_DEMO.HEX FILE
The io_merge program updates the 6513_demo.hex file with the values contained in the macro file. This
program is executed from a DOS command line window. Executing the io_merge program with no arguments
will display the syntax description. To merge macro.txt and old_6513_demo.hex into new_6513_demo.hex, use
the command:
io_merge old_6513_demo.hex macro.txt new_6513_demo.hex
The new hex file can be written to the 71M6513/71M6513H through the ICE port using the ADM51 in-circuit
emulator. This step makes the calibration to the meter permanent.
1.9.4 UPDATING CALIBRATION DATA IN FLASH MEMORY WITHOUT USING THE
ICE OR A PROGRAMMER
It is possible to make data permanent that had been entered temporarily into the CE RAM. The transfer to flash
memory is done using the following serial interface command:
>]U
Thus, after transferring calibration data with manual serial interface commands or with a macro file, all that has
to be done is invoking the U command.
Similarly, calibration data can also stored in EEPROM using the CLS command.
After reset, calibration data is copied from the EEPROM, if present. Otherwise, calibration
data is copied from the flash memory. Writing 0xFF into the first few bytes of the EEPROM
deactivates any calibration data previously stored to the EEPROM.
]8=+16022/ CAL_IA (gain=CAL_IA/16384)
]9=+16381/ CAL_VA
(gain=CAL_VA/16384)
]a=+16019/ CAL_IB
(gain=CAL_IB/16384)
]b=+16370/ CAL_VB
(gain=CAL_VB/16384)
]c=+15994/ CAL_IC
(gain=CAL_IC/16384)
]d=+16376/ CAL_VC
(gain=CAL_VC/16384)
]e=+115/
PHADJ_A (default 0)
]f=+113/
PHADJ_B (default 0)
]10=+109/
PHADJ_C (default 0)
ce1
http://www.datasheetcatalog.com/