![Teridian 71M6513 Скачать руководство пользователя страница 30](http://html1.mh-extra.com/html/teridian/71m6513/71m6513_user-manual_1088921030.webp)
71M6513/71M6513H Demo Board User’s Manual
Page: 30 of 112
©
2005-2006 TERIDIAN Semiconductor Corporation
Revision 5.6
1.9.5 AUTOMATIC GAINS CALIBRATION
Starting with Demo Code revision 3.04, it is possible to perform a simple automatic calibration. This calibration
is performed for resistive loads only and will not correct phase angle. The steps required for the calibration are:
1. Enter operating values for voltage and current in I/O RAM. The voltage is entered at address 0x2029
(e.g. with the command
)29=+2400
for 240V), the current is entered at 0x202A (e.g. with the command
)2A=+300
for 30A) and the duration measured in accumulation intervals is entered at 0x2028.
2. The operating voltage and current defined in step 1 must be applied to the meter (Demo Board).
3. The CLB (Begin Calibration) command must be entered via the serial interface. The operating voltage
and current must be maintained accurately while the calibration is being performed.
4. The calibration procedure will automatically reset CE addresses 08, 09, 0x0A, 0x0B, 0x0C, and 0x0D
to nominal values (0x4000), and 0x0E, 0x0F and 0x10 to zero prior to starting the calibration.
Automatic calibration also reads the chip temperature and enters it in CE location 0x11 for proper
temperature compensation.
5. The LCD showing the “HELLO” message will signal completion of the automatic calibration. Enter M3
or another serial interface command to bring the display back to normal.
6. CE addresses 08, 09, 0x0A, 0x0B, 0x0C, and 0x0D will now show values other than 0x4000. These
values can be stored in EEPROM by issuing the CLS command.
Tip: Current transformers of a given type usually have very similar phase angle for identical operating
conditions. If the phase angle is accurately determined for one current transformer, the corresponding
phase adjustment coefficient PHADJ_X can be entered for all calibrated units.
1.9.6 LOADING THE 6513_DEMO.HEX FILE INTO THE DEMO BOARD
Hardware Interface for Programming:
The 71M6513/6513H IC provides an interface for loading code into the
internal flash memory. This interface consists of the following signals:
E_RXTX (data)
E_TCLK (clock)
E_RST (reset)
These signals, along with V3P3 and GND are available on the emulator header J14. Production meters may be
equipped with much simpler programming connectors, e.g. a 5x1 header.
Programming of the flash memory requires a specific in-circuit emulator, the ADM51 by Signum Systems
(http//www.signumsystems.com) or the Flash Programmer (TFP-1) provided by TERIDIAN Semiconductor. A
gang programmer is available for high-volume production.
In-Circuit Emulator:
If firmware exists in the 71M6513/6513H flash memory, this memory has to be erased
before loading a new file into memory. Figure 1-8 and Figure 1-9 show the emulator software active. In order to
erase the flash memory, the RESET button of the emulator software has to be clicked followed by the ERASE
button (Figure 1-8).
Once the flash memory is erased, the new file can be loaded using the commands File followed by Load. The
dialog box shown in Figure 1-9 will then appear making it possible to select the file to be loaded by clicking the
Browse button. Once the file is selected, pressing the OK button will load the file into the flash memory of the
71M6513/6513H IC.
At this point, the emulator probe (cable) can be removed. Once the 71M6513/6513H IC is reset using the reset
button on the Demo Board, the new code starts executing.
Flash Programmer Module (TFP-1):
Follow the instructions given in the User Manual for the TFP-1.
http://www.datasheetcatalog.com/