Manual

71M6541 Demo Board REV 3.0 User’s Manual
19 Rev 4.0
Table 1-4: CE RAM Locations for Calibration Constants
Coefficient
CE Ad-
dress
(hex)
Description
CAL_VA
0x11
Adjusts the gain of the voltage channels. +16384 is the typical value. The
gain is directly proportional to the CAL parameter. Allowed range is 0 to
32767. If the gain is 1% slow, CAL should be increased by 1%.
CAL_IA
CAL_IB
0x10
0x13
Adjusts the gain of the current channels. +16384 is the typical value. The
gain is directly proportional to the CAL parameter. Allowed range is 0 to
32767. If the gain is 1% slow, CAL should be increased by 1%.
PHADJ_A
LCOMP2_B
0x12
0x15
This constant controls the phase compensation. No compensation occurs
in a phase when PHADJ_A = 0 or when LCOMP2_n = 16384. As
LCOMP2_n is increased, more compensation is introduced.
CE codes for CT configuration do not use delay adjustment. These codes
use phase adjustment (
PHADJ_n).
1.9.2 CALIBRATION MACRO FILE
The macro file in Figure 1-4 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-4: Typical Calibration Macro File
It is possible to send the calibration macro file to the 71M6541F 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 sending it with the transfer
send text file procedure of HyperTerminal.
Use the Transfer
Send Text File command!
1.9.3 UPDATING THE DEMO CODE (HEX FILE)
The d_merge program updates the hex file (usually named 6541_1p2b_19jan09.hex or similar) with the values
contained in the macro file. This program is executed from a DOS command line window. Executing the
d_merge program with no arguments will display the syntax description. To merge macro.txt and
old_6541_demo.hex into new_6541_demo.hex, use the command:
d_merge old_6541_demo.hex macro.txt new_6541_demo.hex
The new hex file can be written to the 71M6541F/71M6541H through the ICE port using the ADM-51 in-circuit
emulator or the TFP-2 flash programmer.
CE0 /disable CE
]10=+16022 /CAL_IA (gain=CAL_IA/16384)
]11=+16381 /CAL_VA (gain=CAL_VA/16384)
]12=+115 /PHADJ_A (default 0)
CE1 /enable CE