Page 3
71M6531 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.
1.9.4 Updating Calibration Data in EEPROM or Flash ..................31 1.9.5 Loading the 6531_demo.hex file into the Demo Board................31 1.9.6 The Programming Interface of the 71M6531 ....................33 1.10 Demo Code ..............................34 1.10.1 Demo Code Description ..........................34 1.10.2...
GETTING STARTED GENERAL The TERIDIAN Semiconductor Corporation (TSC) 71M6531 Demo Board is an energy meter IC demonstra- tion board for evaluating the 71M6531D/F device for residential electronic energy metering applications. It incorporates a 71M6531D/F integrated circuit, peripheral circuitry such as a serial EEPROM, emulator port, and on-board power supply as well as a companion Debug Board that allows a connection to a PC through a RS232 port.
Figure 1-2: Demo Board: Ribbon Cable Connections The 71M6531 Demo Board block diagram is shown in Figure 1-3. It consists of a stand-alone meter Demo Board and an optional Debug Board. The Demo Board contains all circuits necessary for operation as a meter, including display, calibration LED, and power supply.
GND_DBG JP21 4/12/2007 Figure 1-3: The TERIDIAN 6531 Demo Board with Debug Board Block Diagram (CT Configuration) Note: All analog input signals are referenced to the V3P3A net (3.3V power supply to the chip). 1.6.1 POWER SUPPLY SETUP There are several choices for meter the power supply: •...
71M6531 Demo Board User’s Manual 1.6.2 CABLE FOR SERIAL CONNECTION For connection of the DB9 serial port to a PC, either a straight or a so-called “null-modem” cable may be used. JP1 and JP2 are plugged in for the straight cable, and JP3/JP4 are empty. The jumper configuration is reversed for the null-modem cable, as shown in Table 1-3.
71M6531 Demo Board User’s Manual 1.6.4 SERIAL CONNECTION SETUP FOR THE PC After connecting the DB9 serial port to a PC, start the HyperTerminal application (or any other suitable communication program) and create a session using the communication parameters shown in Table 1-4.
1.7.1 CYCLING THE LCD DISPLAY The Demo Codes for the 71M6531 Demo Board allow cycling of the display using the PB button. By briefly pressing the button, the next available parameter from Table 1-5 is selected. This makes it easy to navigate various displays for Demo Boards that do not have the CLI.
71M6531 Demo Board User’s Manual Step Text Display Displayed Parameter Accumulated real energy [Wh]. The default display setting after power-up or reset. VARh Accumulated reactive energy [VARh]. Hours Expired hours after power-up or reset Time Time of day (hh.mm.ss). Date Date (yyyy.mm.dd).
Page 17
71M6531 Demo Board User’s Manual Commands for CE Data Access: CE DATA ACCESS Remarks Description: Allows user to read from and write to CE data space. Usage: ] [Starting CE Data Address] [option]…[option] Command ]??? Read consecutive 16-bit words in Decimal...
Page 18
71M6531 Demo Board User’s Manual Commands for I/O RAM (Configuration RAM) and SFR Control: DIO AND SFR CONTROL Remarks Description: Allows the user to read from and write to I/O RAM and special function registers (SFRs). Usage: R [option] [register] … [option] Command RIx…...
Page 19
71M6531 Demo Board User’s Manual Commands controlling the CE: COMPUTE ENGINE Remarks CONTROL Description: Allows the user to enable and configure the compute engine. Usage: C [option] [argument] Command Compute Engine Enable (1 Enable, 0 Disable) combinations: Select input n for TMUX output pin. Enter n in hex notation.
Page 20
71M6531 Demo Board User’s Manual Commands for Controlling the Metering Values Shown on the LCD Display: METER DISPLAY Remarks CONTROL (LCD) Description: Allows user to select internal variables to be displayed. Usage: M [option]. [option] Command kWh Total Consumption (display wraps around at 999.999) combinations: Temperature (C°...
Page 21
71M6531 Demo Board User’s Manual Commands for Controlling the RTC: REAL TIME CLOCK Remarks CONTROL Description: Allows the user to read and set the real time clock. Usage: RT [option] [value] … [value] Command RTDy.m.d.w: Day of week (year, month, day, weekday [1 = Sunday]). Weekday is combinations: automatically set if omitted.
71M6531 Demo Board User’s Manual Commands for Error Recording: ERROR RECORDING Remarks Description: Allows the user display and clear the error log. Usage: ER [option] [value] Command Clears all errors from error log combinations: Displays error log ERS+n Enters error number n in error log...
71M6531 Demo Board User’s Manual As opposed to the standardized Hex-records that offer three possible types (data, termination, segment base), six different types are supported for communicating with the 71M6531D/F. These data types basically encode command types (read/write) along with the data source or destination, as listed in Table 1-7.
71M6531 Demo Board User’s Manual Spaces in between the fields (to increase readability), as in the example above, are ignored by the Demo Boards. If a hex record is accepted, the Demo Board returns a " ". If the hex record is not accepted, the Demo Board sends a "...
71M6531 Demo Board User’s Manual mode, and the command prompt “B” will be visible on the terminal connected to the Demo Board, followed by the “>” sign: B> The LCD displays a decimal dot in the left-most digit to indicate that it is in Brownout mode, as shown below: The following commands can be entered via the CLI in Brownout mode: •...
1.8.3 ADJUSTING THE KH FACTOR FOR THE DEMO BOARD The 71M6531 Demo Board is shipped with a pre-programmed scaling factor Kh of 1.0, i.e. 1.0 Wh 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.
1.8.6 WIRING OF THE DEMO BOARD AND A SHUNT RESISTOR The 71M6531 Demo Kits are shipped with a pre-wired shunt resistor (400µΩ), as shown in Figure 1-6. This shunt resistor has to be connected to the 71M6531 Demo Board, as shown in Figure 1-7.
71M6531 Demo Board User’s Manual to IA reference to IA_IN to meter power supply from LOAD NEUTRAL Figure 1-6: Pre-wired shunt resistor Important safety precautions apply when operating the Demo Board in shunt mode: In shunt configuration, the whole Demo Board will be at line voltage! Touching the board or any...
71M6531 Demo Board User’s Manual SHUNT NEUTRAL Low crosstalk demands that these current paths These wires must be not share a common connected directly at wire. the shunt resistor BLUE LOAD WHITE Power supply and Signal for reference for voltage...
71M6531 Demo Board User’s Manual CALIBRATION PARAMETERS 1.9.1 GENERAL CALIBRATION PROCEDURE Any calibration method can be used with the 71M6531D/F chips. This Demo Board User’s Manual presents calibration methods with three or five measurements as recommended methods, because they work with most manual calibration systems based on counting "pulses"...
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-2) provided by TERIDIAN Semiconductor. Chips may also be programmed before they are soldered to the board. The TGP1 gang programmer suitable for high-volume production is available from TERIDIAN.
71M6531 Demo Board User’s Manual At this point, the emulator probe (cable) can be removed. Once the 71M6531D/F IC is reset using the reset button on the Demo Board, the new code starts executing. Figure 1-9: Emulator Window Showing Reset and Erase Buttons Figure 1-10: Emulator Window Showing Erased Flash Memory and File Load Menu Flash Downloader Module (TFP-2): Follow the instructions given in the User Manual for the TFP-2.
71M6531 Demo Board User’s Manual Emulators or other test equipment should never be connected to a live meter without proper isolation! USB isolators are available from various vendors (see the printed Safety Notice shipped with the emulator). 1.9.6 THE PROGRAMMING INTERFACE OF THE 71M6531D/F...
It provides libraries for access of low-level IC functions to serve as building blocks for code development. The Demo Code source files provided with the TERIDIAN Demo Kits contain numerous routines that are not implemented. However, by recompiling the code using different compile-time options, many code variations with different features can be generated.
Page 35
71M6531 Demo Board User’s Manual Name Purpose Function or LSB Value L in XDATA bits Starting current, 0x0000 SQSUM IThrshldA element A 0 in this position disables creep logic for both element A and B. Configure meter bit 0:** reserved...
Page 36
71M6531 Demo Board User’s Manual Name Purpose Function or LSB Value L in XDATA bits Current value to be Nominal RMS current applied to 0x0023 Ical used for autocalibra- all elements during auto-calibra- tion tion (LSB = 0.1V). Power factor must be 1.
Page 37
71M6531 Demo Board User’s Manual Name Purpose Function or LSB Value L in XDATA bits Vrms, element A 0x004C SQSUM Vrms_A Irms, element A 0x0050 SQSUM Irms_A Vrms, element B 0x0054 SQSUM Vrms_B Irms, element B 0x0058 SQSUM Irms_B (reserved)
71M6531 Demo Board User’s Manual Name Purpose Function or LSB Value L in XDATA bits LSB of W0SUM Exported VARh, all 0x00EC VARhe elements. Exported VARh, “ 0x00F4 VARhe_A element A Exported VARh, “ 0x00FC VARhe_B element B (reserved) 0x0104...
71M6531 Demo Board User’s Manual Table 1-13 lists the possible entries for the PULSEWSOURCE and PULSEVSOURCE registers. Decimal Value in Decimal Value in PULSEWSOURCE, Selected Pulse Source PULSEWSOURCE, Selected Pulse Source PULSEVSOURCE PULSEVSOURCE EQU= 0: W0SUM if W0SUM > W1SUM, W1SUM (reserved) if W1SUM >...
71M6531 Demo Board User’s Manual Table 1-14 explains the bits of the STATUS register. Significance Significance CREEP: All elements are in creep mode. The pulse variables will be “jammed” with a constant value on BATTERY_BAD: The battery voltage is below every accumulation interval to prevent spurious VBatMin.
71M6531 Demo Board User’s Manual MPU ACCUMULATION OUTPUT VARIABLES Accumulation values are accumulated from XFER cycle to XFER cycle (see Table 1-15). They are organized as two 32-bit registers. The first register stores the decimal number displayed on the LCD. For example, if the LCD shows “001.004”, the value in the first register is 1004.
71M6531 Demo Board User’s Manual APPLICATION INFORMATION 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
71M6531 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( cos( −...
71M6531 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( − π − − −...
71M6531 Demo Board User’s Manual φ − tan( tan( ⎛ ⎞ − ⎜ ⎜ ⎟ ⎟ φ − ⎝ ⎠ tan( Now that we know the A , and φ errors, we calculate the new calibration voltage gain coefficient from the previous ones: We calculate PHADJ from φ...
71M6531 Demo Board User’s Manual is determined by comparing applied real energy with the measured apparent energy (and CAL_IA compensating for the change applied to CAL_VA ⋅ 16384 ⋅ applied ⋅ measured The derivation of these formulae is shown in the Appendix.
Store the new calibration factors CAL_IA, CAL_VA, and PHADJ_A in the EEPROM of the meter. If the calibration is performed on a TERIDIAN Demo Board, the methods shown in sections 1.9.2 can be used.
Check the calibration factors established by the automatic procedure. 2.2.5 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 with three phases in use (only one phase needs to be used for the 71M6531D/F chip).
71M6531 Demo Board User’s Manual 71M6511/71M6513/71M6515 Calibration Worksheet Five Measurements Results will show in green fields… Enter values in yellow fields! Date: 10/25/2005 AC frequency: [Hz] (click on yellow field to select from pull-down list) fraction PHASE A Voltage Energy reading at 0°...
71M6531 Demo Board User’s Manual 2.2.6 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.
Page 53
The value obtained for IMAX_SHUNT is stored at the MPU address 0x0A, using the command IMAX_SHUNT of the Demo Code supplied by TERIDIAN. Compute WRATE_SHUNT based on IMAX_SHUNT and VMAX and the formula given in 1.8.3: WRATE_SHUNT = (IMAX_SHUNT * VMAX * 47.1132) / (Kh * In_8 *...
71M6531 Demo Board User’s Manual That is, if the chip reports an error of -2.5%, CAL_IB should be adjusted to a value of (16384 * (1 - (-2.5/100)). Since CAL_VA and CAL_IA have already been adjusted for channel A, these registers should not be updated.
Demo Code adjusts the oscillator within very narrow limits. The MPU Demo Code supplied with the TERIDIAN Demo Kits has a direct interface for these coefficients and it directly controls the PREG[16:0] and QREG[1:0] registers. The Demo Code uses the coefficients in the...
Figure 2-8: Meter with Calibration System TERIDIAN Demo Boards are not calibrated prior to shipping. However, the Demo Board pulse outputs are tested and compared to the expected pulse output. Figure 2-9 shows the screen on the controlling PC for a typical Demo Board.
The jumper on JP4 should be moved to position 1-2 in order to save the current required to supply the ICE_E pin. TERIDIAN APPLICATION NOTES Please contact your local TERIDIAN sales representative for TERIDIAN Application Notes. Page: 58 of 83 v1.5...
71M6531 Demo Board User’s Manual 71M6531N12A2 DEMO BOARD BILL OF MATERIAL Digi-Key/Mouser Part Item Reference Part Part Number Manufacturer Footprint Number 2200uF radial P5143-ND ECA-1CM222 Panasonic C2,C4,C22 10uF RC1812 478-1672-1-ND TAJB106K010R RC0603 PCC2224CT-ND ECJ-1VB1C105K Panasonic C5,C17,C19,C20,C23,C27,C28, 0.1uF RC0603 445-1314-1-ND C1608X7R1H104K...
71M6531 Demo Board User’s Manual DEBUG BOARD BILL OF MATERIAL Item Quantity Reference Part PCB Footprint Digi-Key Part Number Part Number Manufacturer 445-1349-1-ND C1-C3,C5-C10,C12-C23 0.1uF RC0805 C2012X7R1H104K 33uF, 10V RC1812 478-1687-1-ND TAJB336K010R 10uF, 16V RC1812 478-1673-1-ND TAJB106K016R D2,D3 RC0805 160-1414-1-ND...
71M6531 Demo Board User’s Manual TERIDIAN 71M6531D/F PIN-OUT INFORMATION Power/Ground/NC Pins Name Type Circuit Description GNDA Analog ground: This pin should be connected directly to the ground plane. GNDD Digital ground: This pin should be connected directly to the ground plane.
Page 81
71M6531 Demo Board User’s Manual Digital Pins: Name Type Circuit Description COM3, COM2, LCD Common Outputs: These 4 pins provide the select signals for the LCD COM1, display. COM0 SEG0…SEG2, Dedicated LCD Segment Output pins. SEG7, SEG8, SEG12…SEG18 COM3, COM2,...
(top-view). User Manual: This User 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. If and when manufactured and sold, this product is sold subject to the terms and conditions of sale supplied at the time of order acknowledgment, including those pertaining to warranty, patent infringement and limitation of liability.
Need help?
Do you have a question about the 71M6531 and is the answer not in the manual?
Questions and answers