Page 2
71M6513/71M6513H Demo Board User’s Manual TERIDIAN Semiconductor Corporation makes no warranty for the use of its products, other than expressly contained in the Company’s warranty detailed in the TERIDIAN Semiconductor Corporation standard Terms and Conditions. The company assumes no responsibility for any errors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time without notice and does not make any commitment to update the information contained herein.
Updating Calibration Data in Flash Memory without Using the ICE or a Programmer........29 1.9.5 Automatic Gains Calibration .......................... 30 1.9.6 Loading the 6513_demo.hex file into the Demo Board.................. 30 1.9.7 The Programming Interface of the 71M6513/6513H ..................32 1.10 Demo Code..............................33 1.10.1 Demo Code Description..........................33 1.10.2 Demo Code MPU Parameters ........................
Page 5
Figure 1-2: Block diagram for the TERIDIAN D6513T3B2 Demonstration Meter with Debug Board......... 12 Figure 1-3: Block diagram for the TERIDIAN D6513T3C1 and D6513T3D2 Demo Boards with Debug Board ....13 Figure 1-4: Hyperterminal Sample Window with Disconnect Button (Arrow) ..............15 Figure 1-5: Port Speed and Handshake Setup (left) and Port Bit setup (right)..............
Debug Board that allows a connection to a PC through a RS232 port. The demo board allows the evaluation of the 71M6513 or 71M6513H energy meter chip for measurement accuracy and overall system use.
PC through a 9 pin serial port. For serial communication between the PC and the TERIDIAN 71M6513/71M6513H, the Debug Board needs to be plugged with its connector J3 into connector J2 of the Demo Board.
71M6513/71M6513H Demo Board User’s Manual 1.7.1 POWER SUPPLY SETUP There are several choices for meter power supply: • Internal (using phase A of the AC line voltage). The internal power supply is only suitable when phase A exceeds 220V RMS.
71M6513/71M6513H Demo Board User’s Manual The “HELLO” message should be followed by the display of accumulated energy: The decimal dot in the leftmost segment will be blinking, indicating activity of the MPU inside the 71M6513/6513H. If contacts 3 and 5 of J2 are shorted with a jumper (or if the “DISPLAY SEL” switch SW2 on the Debug Board is pressed and held down), the display will show a series of incrementing numbers (1 through 12) in the leftmost digit(s) followed by the default date (2001.01.01) at number 10.
3.04 or later. >? USING THE DEMO BOARD The 71M6513/6513H Demo Board is a ready-to-use meter prepared for use with an external current trans- former. Using the Demo Board involves communicating with the Demo Code via the command line interface (CLI). The CLI allows all sorts of manipulations to the metering parameters, access to the EEPROM, initiation of auto-cal sequences, selection of the displayed parameters, changing calibration factors and many more operations.
71M6513/71M6513H Demo Board User’s Manual 1.8.1 SERIAL COMMAND LANGUAGE The Demo Code residing in the flash memory of the 71M6513/6513H provides a convenient way of examining and modifying key meter parameters. Once the Demo Board is connected to a PC or terminal per the instructions given in Section 1.7.2 and 1.7.4, typing ‘...
Page 18
71M6513/71M6513H Demo Board User’s Manual Commands to Display Help on the CLI Commands: HELP Command help available for each of the options below. Description: Command Command line interpreter help menu. combinations: Display help on access CE data RAM Display help on access MPU RAM...
Page 19
DIO or Configuration RAM space is the address range 0x2000 to 0x20FF. This RAM contains registers used for configuring basic hardware and functional properties of the 71M6513/6513H and is organized in bytes (8 bits). 0x2000 offset is automatically added when the command RI is typed.
Page 20
71M6513/71M6513H Demo Board User’s Manual Commands for EEPROM Control: EEPROM CONTROL Allows user to enable read and write to EEPROM. Description: EE [option] [arguments] Usage: EECn EEPROM Access (1 Enable, 0 Disable) Command combinations: EERa.b Read EEPROM at address 'a' for 'b' bytes.
Page 21
71M6513/71M6513H Demo Board User’s Manual Commands controlling the Auto-Calibration Function: AUTO-CALIBRATION CONTROL Allows the user to initiate auto-calibration and to store calibration values. Description: CL [option] Usage: Begin auto-calibration. Prior to auto-calibration, the calibration Command coefficients are automatically restored from flash memory. If...
Page 22
71M6513/71M6513H Demo Board User’s Manual Commands for Identification and Information: INFORMATION MESSAGES Allows user to read and write information messages. Description: I [option] [argument] Usage: Displays complete version information Command combinations: Displays Demo Code version string I1=abcdef Change Demo Code version string...
Page 23
71M6513/71M6513H Demo Board User’s Manual Commands for Controlling the Metering Values Shown on the LCD Display: METER DISPLAY CONTROL (LCD) Allows user to select internal variables to be displayed. Description: M [option]. [option] Usage: Displays “HELLO” message Command combinations: Disables display updates Temperature (C°...
Page 24
71M6513/71M6513H Demo Board User’s Manual Commands for Controlling the RMS Values Shown on the LCD Display: METER RMS DISPLAY CONTROL (LCD) Allows user to select meter RMS display for voltage or current. Description: MR [option]. [option] Usage: MR1. [phase] Displays instantaneous RMS current...
Page 25
Read fuse 5 (TRIMBGA) Read fuse 6 (TRIMBGB). Reads the TRIMM fuse. Example: These commands are only accessible for the 71M6513H (0.1%) parts. When used on a 71M6513 (0.5%) part, the results will be displayed as zero. Reset Commands: W, Z...
1.8.3 ADJUSTING THE KH FACTOR FOR THE DEMO BOARD The 71M6513/6513H Demo Board is shipped with a pre-programmed scaling factor Kh of 3.2, i.e. 3.2Wh per pulse. In order to be used with a calibrated load or a meter calibration system, the board should be connected to the AC power source using the spade terminals on the bottom of the board.
If, for example, IMAX = 208A are applied to a CT with a 2500:1 ratio, only 83.2mA will be generated on the se- condary side, causing only 141mV. The steps required to adapt a 71M6513 Demo Board to a transformer with a...
Regardless of the calibration procedure used, parameters (calibration constants) will result that will have to be applied to the 71M6513/6513H chip in order to make the chip apply the modified gains and phase shifts necessary for accurate operation. Table 1-4 shows the names of the calibration constants, their function, and their location in the CE RAM.
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.
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.
71M6513/71M6513H Demo Board User’s Manual 1.9.7 THE PROGRAMMING INTERFACE OF THE 71M6513/6513H Flash Downloader/ICE Interface Signals The signals listed in Table 1-5 are necessary for communication between the Flash Downloader or ICE and the 71M6513/6513H. Signal Direction Function E_TCLK Output from 71M6513/6513H...
1.10.1 DEMO CODE DESCRIPTION The Demo Board is shipped preloaded with Demo Code revision 3.0.4 or later in the 71M6513 or 71M6513H chip. The code revision can easily be verified by entering the command >i1 via the serial interface (see section 1.8.1).
71M6513/71M6513H Demo Board User’s Manual 1.10.2 DEMO CODE MPU PARAMETERS In the Demo Code, certain MPU XRAM parameters have been given fixed addresses in order to permit easy external access. These variables can be read via the serial interface, as described in section 1.7.1, with the )n$ command and written with the )n=xx command where n is the word address.
71M6513/71M6513H Demo Board User’s Manual The nominal external RMS voltage that corresponds to 250mV peak at 0x09 6000 VMAX the ADC input. The meter uses this value to convert internal quantities to external. LSB=0.1V The nominal external RMS current that corresponds to 250mv peak at...
71M6513/71M6513H Demo Board User’s Manual MPU Input Parameters for Pulse Generation XDATA Default Word Name Description Value Address This address contains a number that points to the selected pulse source. 0x07 PULSEW_SRC Selectable pulse sources are listed in Table 1-9.
71M6513/71M6513H Demo Board User’s Manual MPU INSTANTANEOUS OUTPUT VARIABLES The Demo Code processes CE outputs after each accumulation interval. It calculates instantaneous values such as VRMS, IRMS, W and VA as well as accumulated values such as Wh, VARh, and VAh. Table 1-10 lists the calculated instantaneous values.
71M6513/71M6513H Demo Board User’s Manual MPU STATUS WORD The MPU maintains the status of certain meter and I/O related variables in the Status Word. The Status Word is located at address 0x21. The bit assignments are listed in Table 1-11.
71M6513/71M6513H Demo Board User’s Manual MPU ACCUMULATION OUTPUT VARIABLES Accumulation values are accumulated from XFER cycle to XFER cycle (see Table 1-12). They are all in 64-bit format. The 6513 has an LSB of 9.4045*10 *VMAX*IMAX*In_8 Wh. Accumulated values are calculated by summing the CE XFER outputs into 64 bit variables.
V3 pin (pin 86). The analog data measured on this pin is referenced to the VBIAS pin (pin 81). The ICs supplied with the 71M6513/6513H Demo Kits may contain firmware versions with and without neutral current. On the CD-ROM containing the firmware sources and documentation, the files supporting neutral current code end with "NC".
71M6513/71M6513H Demo Board User’s Manual The neutral current is available for display. The help text for the MR command describes how to display neutral current on the display. For the "M" command of the CLI for current, phase 4 signifies the neutral current.
71M6513/71M6513H Demo Board User’s Manual APPLICATION INFORMATION 2.1 CALIBRATION THEORY A typical meter has phase and gain errors as shown by φ , and A in Figure 2-1. Following the typical meter convention of current phase being in the lag direction, the small amount of phase lead in a typical current sensor is represented as -φ...
Page 44
71M6513/71M6513H Demo Board User’s Manual From the voltage measurement, we determine that We use the other two measurements to determine φ and A φ − φ − − cos( cos( cos( φ cos( φ φ − − − − cos(...
71M6513/71M6513H Demo Board User’s Manual And we calculate the new calibration current gain coefficient, including compensation for a slight gain increase in the phase calibration circuit. π − − − − − PHADJ PHADJ π cos( − − − −...
It is essential for a valid meter calibration to have the voltage stabilized a few seconds before the current is applied. This enables the Demo Code to initialize the 71M6513/6513H and to stabilize the PLLs and filters in the CE. This method of operation is consistent with meter applications in the field as well as with metering standards.
The calibration procedures described below should be followed after interfacing the voltage and current sensors to the 71M6513/6513H chip. When properly interfaced, the V3P3 power supply is connected to the meter neutral and is the DC reference for each input. Each voltage and current waveform, as seen by the 71M6513/6513H, is scaled to be less than 250mV (peak).
Tip: Step 2 and the energy measurement at 0° of step 3 can be combined into one step. 2.2.3 CALIBRATION PROCEDURE FOR ROGOWSKI COIL SENSORS Demo Code containing CE code that is compatible with Rogowski coils is available from TERIDIAN Semi- conductor.
PREVIOUS 2.2.4 CALIBRATION SPREADSHEETS Calibration spreadsheets are available from TERIDIAN Semiconductor. They are also included in the CD-ROM shipped with any Demo Kit. Figure 2-3 shows the spreadsheet for three measurements. Figure 2-4 shows the spreadsheet for five measurements with three phases.
Page 50
71M6513/71M6513H Demo Board User’s Manual A spreadsheet is also available for Rogowski coil calibration (see Figure 2-5). Data entry is as follows: All nominal values are entered in the fields of step one. The applied voltage is entered in the yellow field labeled “Input Voltage Applied” of step 2. The entered value will automatically show in the green fields of the two other channels.
71M6513/71M6513H Demo Board User’s Manual 71M6511/71M6513/71M6515 Calibration Worksheet Three Measurements Enter values in yellow fields Results will show in green fields… Date: 10/25/2005 AC frequency: Author: [Hz] (click on yellow field to select from pull-down list) PHASE A fraction Voltage Energy reading at 0°...
71M6513/71M6513H Demo Board User’s Manual Calibration Procedure for Rogowski Coils Enter values in yellow fields! Results will show in green fields… Step 1: Enter Nominal Values: Nominal CAL_V 16384 Resulting Nominal Nominal CAL_I 16384 Values: X Date: 11/18/2005 PHADJ -3973 Kh (Wh) 0.440...
71M6513/71M6513H Demo Board User’s Manual 2.2.5 COMPENSATING FOR NON-LINEARITIES Nonlinearity is most noticeable at low currents, as shown in Figure 2-6, and can result from input noise and truncation. Nonlinearities can be eliminated using the QUANT variable. error I [A] Figure 2-6: Non-Linearity Caused by Quantification Noise The error can be seen as the presence of a virtual constant noise current.
71M6513/71M6513H Demo Board User’s Manual POWER SAVING MEASURES In many cases, especially when operating the TERIDIAN 71M6513/71M6513H from a battery, it is desirable to reduce the power consumed by the chip to a minimum. This can be achieved with the measures listed in Table 2-1.
2.9V in all cases in order to keep the hardware watchdog timer enabled). For proper debugging or loading code into the 71M6513/6513H mounted on a PCB, it is necessary to have a provision like the header JP1 shown above R1 in Figure 2-7. A shorting jumper on this header pulls V1 up to V3P3 disabling the hardware watchdog timer.
71M6513/71M6513H Demo Board User’s Manual 2.4.3 OSCILLATOR The oscillator of the 71M6513 drives a standard 32.768kHz watch crystal (see Figure 2-9). Crystals of this type are accurate and do not require a high current oscillator circuit. The oscillator in the 71M6513 has been designed specifically to handle watch crystals and is compatible with their high impedance and limited power handling capability.
Using a small coupling capacitor, two general-purpose diodes and a reservoir capacitor, a 5VDC voltage is generated which can be fed back into the VLCD pin of the 71M6513. The LCD drivers are enabled with the I/O register LCD_ON; I/O register LCD_FS is used to adjust contrast, and LCD_MODE selects the operation mode (LCD type).
2.4.6 OPTICAL INTERFACE The 71M6513 IC is equipped with two pins supporting the optical interface: OPT_TX and OPT_RX. The OPT_TX pin can be used to drive a visual or IR light LED with up to 20mA, a series resistor (R in Figure 2-13) helps limiting the current).
ICs. The Rx pin (serial port receive pin) of the 71M6513/6513H is internally clamped to the V3P3 supply as shown in Figure 2-16. This means, the voltage of signals applied to this pin will be clamped to V3P3D + 0.6V, i.e.
71M6513/71M6513H Demo Board User’s Manual If inputs higher than 3.6V are expected at the RX pin, e.g. when interfacing to 5V-based driving circuitry such as RS-232 transceivers/receivers, TTL or CMOS logic, a resistor attenuator should be used in order to restrict the RX input voltage.
2.5 TESTING THE DEMO BOARD This section will explain how the 71M6513/6513H IC and the peripherals can be tested. Hints given in this section will help evaluating the features of the Demo Board and understanding the IC and its peripherals.
71M6513/71M6513H Demo Board User’s Manual Figure 2-19: Calibration System Screen 2.5.2 EEPROM Testing the EEPROM provided on the Demo Board is straightforward and can be done using the serial command line interface (CLI) of the Demo Code. To write a string of text characters to the EEPROM and read it back, we apply the following sequence of CLI commands: >EEC1...
2.5.4 HARDWARE WATCHDOG TIMER The hardware watchdog timer of the 71M6513/6513H is disabled when the voltage at the V1 pin is at 3.3V (V3P3). On the Demo Boards, this is done by plugging in a jumper at TP10 between the V1 and V3P3 pins.
Writes the hex value 0x24 to register 0x2021 clearing bit 0 – LCD flicker is visible now >RI21=25 Writes the original value back to LCD_CLK 2.6 TERIDIAN APPLICATION NOTES Please contact your local TERIDIAN sales representative for TERIDIAN Application Notes. Available application notes are listed below. Number Title...
Two-pin headers. When both jumpers are installed, ex- PS_SEL[2] ternal power is not required for the Debug Board that attaches to the 71M6513/71M6513H demo board at J2. Normally left open. Caution! When JP2/JP3 are plugged in, there is NO ISOLATION between the Demo Board and the Debug Board.
Supply and Four-pin header. Terminals 1 and 3 can be used to Optical Test Point measure the supply voltage to the 71M6513/71M6513H IC. Terminal 2 monitors the TX_OPT output of the IC. Terminal 4 monitors the OPT_RX input to the IC.
71M6513/71M6513H Demo Board User’s Manual Reference Item # Name Designator JP10 VLCD Select Three-pin header for selecting the voltage to the LCD. The top pin is 5V and the bottom pin is 3.3V. The default setting for the jumper is 5V.
71M6513/71M6513H Demo Board User’s Manual D6513T3C1 BOARD DESCRIPTION: JUMPERS, SWITCHES AND TEST POINTS The items described in the following tables refer to the flags in Figure 3-2. Item # Reference Name Designator PS_SEL[0] Two-pin header. When the jumper is installed the on- board power supply (AC signal) is used to power the demo board.
5V, VLCD, Three-pin header for selecting the voltage to the LCD. The top pin V3P3 is 5V (supplied by the charge pump in the 71M6513/6513H) and the bottom pin is 3.3V. The default setting for the jumper is 5V. EMULATOR 2x10 emulator connector compatible with the plug uses by the Signum ADM-51 ADM51 in-circuit emulator.
TP10 GND, V1, V3P3 Plugging a jumper between pins 2 and 3 disables the watch dog timer of the 71M6513 so that the emulator and/or flash programmer can be used. V3P3, V1IN, V2IN, Plugging a jumper between pins 3 and 4 provides power to the resistor divider R83/R86 for V1.
71M6513/71M6513H Demo Board User’s Manual IC_IN Three-pin header for connecting the CT of the phase C. Item # Reference Name Designator NEUTRAL Spade connector on the back side of the PCB for connecting the NEUTRAL wire. JP16 VA_IN Two-pin header. When the jumper is installed the on- board power supply (AC signal) is used to power the demo board.
VLCD LCD power supply. 32,33,36, 42,43,44, No Connect 47,55,90,95 Table 4-5: 71M6513/71M6513H Pin Description Table 1/3 Analog Pins: Name Type Description Line Current Sense Inputs: These pins are voltage inputs to the internal A/D converter. Typically, they are connected to the output of a current transformer.
Figure 4-32: TERIDIAN 71M6513/71M6513H epLQFP100: Pinout (top view) User’s Manual: This User’s Manual contains proprietary product definition information of TERIDIAN Semiconductor Corporation (TSC) and is made available for informational purposes only. TERIDIAN assumes no obligation regarding future manufacture, unless agreed to in writing.
Page 113
This datasheet has been downloaded from: www.DatasheetCatalog.com Datasheets for electronic components. Downloaded from: http://www.datasheetcatalog.com/...
Need help?
Do you have a question about the 71M6513 and is the answer not in the manual?
Questions and answers