Home

71M6533 Demo Board User`s Manual

image

Contents

1. 55 Table 3 2 71M6533 DB Demo Board 56 Table 3 3 71M6533 DB Demo Board 57 Table 4 1 71M6533 DB Demo Board of Material 0200000001111 63 Table 4 2 71M6533 71M6533H Pin Description Table 1 3 70 Table 4 3 71M6533 71M6533H Pin Description Table 2 3 nennen nnne nenne nnn 70 Table 4 4 71M6533 71M6533H Pin Description Table 33 72 5 0175 3 71M6533 DB Demo Board User s Manual Page 6 of 75 REV 3 1 2 1 3 1 4 GETTING STARTED GENERAL The Teridian 71M6533 DB Demo Board is a demonstration board for evaluating the 71M6533 device for 3 phase electronic power metering applications It incorporates a 71 6533 integrated circuit peripheral circuitry such as a serial EEPROM emulator port and on board power supply as well as a USB to serial adapter that allows a connection to a PC through the USB port The demo board allows the evaluation of the 71M6533 energy meter chip for measurement accuracy and overall system use The board is pre programmed with a demo program in the flash memory of the 71M6533 IC This embedded application is developed to exercise all low level function calls to directly manage the peripherals flash programming and CPU clock
2. 7 1 4 Board Versions direct oen vo diris as Ceca cus ar aaaea oaia 7 tS errs 8 1 6 Suggested Equipment not aaa au ipsa uae cse eens 8 1 7 Board Test Set py a E 8 1 7 1 Setup witht USB to Serial Adapter a poteit d so terio etu deed 9 72 Power SuDDly SGUD __ 10 729 2 Operatorami TM E 10 Iud Sena Conneclon 11 1 5 Using the Demo Boa Been 13 1 8 1 is de sb idee sanete 13 1 8 2 Using the Demo Board for Energy 21 1 8 3 Adjusting the Kh Factor for the Demo 21 1 8 4 Adjusting the Demo Boards to Different Current 21 1 8 5 Adjusting the Demo Boards to Different Voltage Dividers 22 1 9 Calibration Pabameters eee a o Depos neue Sio E cou ee 23 1 9 1 General Calibration Procede tud
3. 49 25 2 EE 51 __ _ ___ 51 254 Hardware Watendog 52 52 2 6 Application Notes 53 3 lt RUDI SENE EOS KR QE 55 3 1 71M6533 Board Description Jumpers Switches and Test Points 22 22 21 55 3 4 Board Hardware Specificallohls i EcL iei e 58 4 APPEND T M D E ID 59 4 1 71M6533 DB Demo Board Electrical Schematic 4 442422 60 4 2 71M6533 DB Demo Board Bill of Malerlal inier eie nea 63 4 3 71M6533 DB Demo Board Layout Dco oai Fa ceca n ra COS Maas eve npa 64 AA X 1M6533 Pin Out InformallOD cere 70 5 REVISION HISTORY 75 List of Figures Figure 1 1 Block Diagram for the 71M6533 DB Demo Board with Debug 9 Figure 1 2 DB6534T14A3 Demo Board with USB to Serial 10 Figure
4. ins Dessus uud 23 1 9 2 XEalibrauon etat Meta cta 24 1 9 3 SWidating the Demo Gode Tex TIG one ae eaae supe ses eu eh eese seats 24 194 Updating Calibration Data in Flash or nnns nsns nans 24 195 Automatic Gains anon re puo ae aeu n uu aues ud EU S 25 1 9 6 Loading the Code for the 6533 into the Demo nnns 25 197 The Programming Intemace orine 71065939 adeat eo tipos inp 27 1 10 E 27 1 10 1 oS coe 27 1 10 2 Important Demo Code MPU Parameters 2 000000000000000 27 1 10 3 Useful Commands Involving the MPU and 33 2 APPLICATION INFORMATION Ce eec nc eon c odio Ress 35 24 Gallbration m EA 35 2 1 1 Calibration with Three 0000001000001 nnne aan nnn 35 2 1 2 Galibration with Five Measurements pane a
5. GND Figure 2 7 Voltage Divider for V1 On the 71M6533 DB Demo Board this feature is implemented with resistors R83 R86 capacitor C31 and TP10 See the board schematics in the Appendix for details RESET CIRCUIT Even though a functional meter will not necessarily need a reset switch the 71M6533 DB Demo Boards provide a reset pushbutton that can be used when prototyping and debugging software see Figure 2 8 For a production meter the RESET pin should be pulled down hard to GNDD Page 46 of 75 REV V3P3D V3P3D 71 6533 1kO Reset Switch RESET DGND Figure 2 8 External Components for RESETZ 2 4 3 OSCILLATOR The oscillator of the 71M6533 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 71M6533 has been designed specifically to handle watch crystals and is compatible with their high impedance and limited power handling capability The oscillator power dissipation is very low to maximize the lifetime of any battery backup device attached to the VBAT pin Ferrite Figure 2 9 Oscillator Circuit It is not necessary to place an external resistor across the crystal ir hd For better resistance to EMI the GND connection for the capacitors should be through a d ferrite bead 2 4 4 EEPROM EEPROMs should be connected to the pins DIO4
6. gt gt IBN gt gt ICN 22 IDN Figure 4 3 71M6533 DB Demo Board Electrical Schematic 3 3 SEG31 DIO11 EG30 DIO10 SEG41 DIO21 EG40 DIO20 SEGS39 DIO19 SEG23 2022 56221 SEG64 DIO44 5 63501015 234 01014 52502 EGO1 SEGOO EG38 DIO18 SEG3 DIO1 7 2 C61 33 2A2B 2C 2DP 31 SA3B 3C 3DP 29 4 o D O 11 27 12 5A5B 5C 5DP 25 i 6A6B 6C 6DP 23 13 7A7B 7C 7DP 21 11 COMO VIM 828 DP U8 PSDI L C63 EE Note 36 COMI 35 SEG20 34 EG43DIO23 33 SEG18 32 EG1 31 SEG16 30 SEG15 29 SEG14 28 SEG13 27 SEG12 26 SEGSS DIO13 25 SEG63DIO43 24 SEG65 DIO45 23 5 08 22 52307 21 5 3601016 20 SEG49 DIO29 19 COMO J18 1 2 3 4 5 6 7 8 9 10 GND SPI Interface Populate J14 or J17 but not both RXTX RST_EMUL 97 N HEADER 10X2 98 417 EMULATOR C26 C27 ORF PASE NC 2 ICE Header OUTPUTS Ex TX gt gt DIO56 71M6533 4L DB Neutral Current Capable gt J gt gt CKTEST Thursday March 27 2008 3 4 2 71 6533 DEMO BOARD BILL OF MATERIAL PCB Digi Key Mouser Part Reference Footprint Number Part Number Manufacturer 5517520 22 285 9 86063 445 314 tND CiG08X7RiH
7. 47 Fig ure 2 9 6 ES 47 EN 48 2 11 BEST 48 Figure 2 12 Optical Interface Block 49 Figure 2 13 Meter with Calibration System 0000 00010001 50 Figure 2 14 Calibration System Screen 2444022 0 50 Figure 2 15 Wh Load Line in Differential Mode at Room Temperature 2 nennen 51 Figure 3 1 71M6533 DB Demo Board Board Description esee nennen nnns 57 Figure 4 1 71M6533 DB Demo Board Electrical Schematic 1 3 60 Figure 4 2 71M6533 DB Demo Board Electrical Schematic 2 3 eene 61 Figure 4 3 71M6533 DB Demo Board Electrical Schematic 33 nennen nnns 62 Figure 4 4 71M6533 DB Demo Board Top 64 Figure 4 5 71M6533 DB Demo Board Top 022 0000000000 01000000 aan nsns naa nnns 65 Figure 4 6 71M6533 DB Demo Board Middle Layer 1 Ground nennen 66 Figure 4 7 71M6533 DB Demo Board Middle Layer 2 Supply nnns 67 Figure 4 8 71M6533 DB Demo Board
8. 2 tan 60 10 60 sin Page 37 of 75 REV 3 2 2 125 Eso tan 60 2 Now that we know the and errors we calculate the new calibration voltage gain coefficient from the previous ones AL CAL M eI CAL V We calculate PHADJ from the desired phase lag tan 1 0 27 20 2 cos 2f T 1 2 sinf T tan l 1 2 cos 2af T And we calculate the new calibration current gain coefficient including compensation for a slight gain increase in the phase calibration circuit CAL I 1 27 2 27 2 1 2 2 7 1 20 2 2 7 1 27 PHADJ 22 CAL CALIBRATION PROCEDURES Calibration requires that a calibration system is used i e equipment that applies accurate voltage load current and load angle to the unit being calibrated while measuring the response from the unit being calibrated in a repeatable way By repeatable we mean that the calibration system is synchronized to the meter being calibrated Best results are achieved when the first pulse from the meter opens the measurement window of the calibration system This mode of operation is opposed to a calibrator that opens the measurement window at random time and that therefore may or may not catch certain pulses emitted by the meter It is essential for a valid meter ca
9. Teridian Smart Grid Solutions Page 1 of 75 1 d 1 Jp ayo S _ ph 7 453 LES zs VBAT THP s Bav i gt is TP13 GND AI gt AT gt CZO R7 29070 GND i 21095 1 SEG28 D1008 Pe b1pse 7 TERIDIAN TAI ooo WILE ILI fae D amp 533 4L NC BOARD E END b REV 2 0 3580655311482 T amp LUN lt an hes LN mta LI 71M6533 DB Demo Board USER S MANUAL REV 3 AVLAZCLA Teridian Smart Grid Solutions 71M6533 3 Phase Energy Meter IC DEMO BOARD 71M6533 DB USER S MANUAL Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product No circuit patent licenses are implied Maxim reserves the right to change the circuitry and specifications without notice at any time Maxim Integrated Products Inc 160 Rio Robles San Jose 95134 USA 1 408 601 1000 O 2012 Maxim Integrated Products MAXIMA a registered trademark of Maxim Integrated Products Inc Page 2 of 75 3 Table of Contents 1 GETTING STAR TED 7 1 1 7 12 and ESD 7 L3
10. PooEcrND ERJ8GEYOR0ov Panasonic swsw Peosiscrno Panasonic 4 Keystone 7 Bavesbw 501565 BAVSSDW FDICEND BAVeSDW TF DIODES L6 3 ue TERIDAN __10149 100 184B61 Yamaich REGULATOR 196 296 1288 1 ND TL431AIDR Texas Instruments 32 768kHz E XC1195CT ND 327 12 5 17 Table 4 1 71M6533 DB Demo Board of Material Page 63 of 75 REV 3 71M6533 DB Demo Board User s Manual 4 3 71M6533 DB DEMO BOARD PCB LAYOUT HIGH WOLTAGE EE mi x H k a c i XI E 7 m PT E Jann E _ IN E n DPT T3 DT 21 i ICE EN gt VBAT SM E A f M e g esr impair UE A _ 22 TELK wu HMO END zz FIBI VBAT 4 6063 GAD x VBAT a m 3 S ie s o
11. 1 1 2 cos2zf T Page 36 of 75 3 Finally we calculate the new calibration current gain coefficient including compensation for a slight gain increase in the phase calibration circuit CAL I 1 27 PHADJ 2 2 PHADJ 2 1 2 cosQzf T 1 200 2 cos22f T 0 22 CAL 2 1 2 CALIBRATION WITH FIVE MEASUREMENTS The five measurement method provides more orthogonality between the gain and phase error derivations This method involves measuring Ev Eo E180 and Again set all calibration factors to nominal i e CAL 16384 CAL VA 16384 PHADJA First calculate Axy from Ev t gt Ay 1 Calculate from Eo E180 E IV Ay Ay cos 0 2 cos 0 9 IV A cos 180 9 3 lt 1 A cos 1 5 180 008 0 4 2 Ay COS G 2 BE dia 2cos g o ies E 2 1 Use above results along with and to calculate _ IV Ay Ay cos 60 9 7 v IV cos 60 A Ay cos Ay Ay tan 60 sin 1 _ IV Ay Ay cos 60 zs 8 E iii IV cos 60 Ay Ay tan 60 sin 1 Subtract 8 from 7 9 E Eq 2A Ay tan 60 sin use equation 5 2 11
12. Bits per second 9600 Country region United States 1 Enter the area code without the long distance prefix Data 714 Phone number Connect using COM27 Stop bits 1 How contro Xon Use country region code and area code busy Restore Defaults Figure 1 4 Port Speed and Handshake Setup left and Port Bit setup right Once the connection to the demo board is established press lt CR gt and the command prompt gt should appear Type gt to see the Demo Code help menu Type gt i to verify the demo code revision Page 12 of 75 REV 3 1 8 1 8 1 29 ID Mama ser s Manual 3535 0656 U ser s Manual USING THE DEMO BOARD The 71M6533 DB Demo Board is a ready to use meter prepared for use with external current transformers CTs 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 Before evaluating the 71M6533 on the Demo Board users should get familiar with the commands and responses of the CLI A complete description of the CLI is provided in section 1 8 1 SERIAL COMMAND LANGUAGE The Demo Code residing in the flas
13. Exit Cancel FE StartF 3 8 AdjOpticFa4 Cresp F5 Mod Skip FT View Save F10 Station 1 Tota Saved 0 Model 2300 LOOP MODE Test Az Az Phase Std Service Upper Step Found Left Ele Amp Angle PowerMode Freq Type Lirnit Lookup Code 5 5 2400 3000 600N WW 375 Form he Defaults 32 voltage 240 Amp an Task Sequence Rev Table 1 Rev AF Limits 1 Limit AL Limits 2 Al Limit Service jiye ABC Reverse Power v Start Delay 3 Optics Turtle Option lt gt Test Complete Figure 2 14 Calibration System Screen Page 50 of 75 3 2 5 2 2 5 3 Load Line Differential Mode Error 96 Error 96 O 0 2 0 01 0 1 1 10 100 1000 A Figure 2 15 Wh Load Line in Differential Mode at Room Temperature 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 gt Enables the EEPROM gt EESthis is a test Writes text to the buffer gt 80 Writes buffer to address 80 Written to EEPROM address 00000080 74 6
14. DIO5 see Figure 2 10 These pins can be switched from regular DIO to implement an 2 interface by setting the RAM register DIO EEX 0x2008 4 to 1 Pull up resistors of 3kO must be provided for both the SCL and SDA signals Page 47 of 75 REV 3 V3P3D 10kO 71M6533 EEPROM 004 DIO5 Figure 2 10 EEPROM Circuit 2 4 5 LCD 71M6533 has an on chip LCD controller capable of controlling static or multiplexed LCDs Figure 2 11 shows the basic connection for LCDs Note that the LCD module itself has no power connection 71M6533 segments commons Figure 2 11 LCD Connections 2 4 6 OPTICAL INTERFACE 71M6533 IC is equipped with two pins supporting the optical interface TX and RX The TX can be used to drive a visual or IR light LED with up to 20mA a series resistor R2 in Figure 2 12 helps limiting the current The OPT RX pin can be connected to the collector of a photo transistor as shown in Figure 2 12 Page 48 of 75 REV 3 2 4 7 2 5 2 5 1 V3P3SYS 71M6533 100pF 10 lt Phototransistor E 4 N 9 V3P3SYS n LED NVN 2 6 Figure 2 12 Optical Interface Block Diagram The IR diode should be connected between terminal 2 of header J12 on the Demo Board cathode and the V3P3 voltage anode which is accessible at terminal 1 of header J12 see Figure 3
15. ee The Military Time Format is used for the RTC i e 15 00 is 3 00 PM RTAs t Real Time Adjust start trim Allows trimming of the RTC If gt 0 the speed of the clock will be adjusted by t parts per billion PPB If the CE is on the value entered with t will be changing with temperature based on Y_CAL Y_CALC and Y_CALC2 Page 18 of 75 REV 3 71M6533 DB Demo Board User s Manual Commands for Accessing the Trim Control Registers Description Allows user to read trim and fuse values T option Read fuse 4 TRIMM combinations Read fuse 6 TRIMBGB Example T4 Readsthe TRIMM fuse JA These commands are only accessible for the 71M6533H 0 1 parts When used on a 71M6533 0 5 part lt the results will be displayed as zero Reset Commands Halts the Demo Code program thus suppressing the trigger ing of the hardware watchdog timer This will cause a reset if the watchdog timer is enabled Battery Mode Commands Description L of Sleep and LCD Modes commands accepted only when the 71 6533 is in when in Brownout Mode Brownout mode BL Takes the 71M6533 to LCD Mode Takes the 71 6533 to Sleep Mode BWSn Takes the 71M6533 to Sleep Mode and sets the wake up timer to n seconds BWMn Takes the 71M6533 to Sleep Mode and sets the wake up timer to n minutes Page 19 of 75 3 Commands for Cont
16. C25 GND32 SEG50 DIO30 PSDI GND XOUT XIN GNDD SEG6 PSDI SEG36DIO16 N Dos XIN SEGS36 DIO16 GEG4A9DIO29 XOU TEST SEG49 D 1029 SEG64D NC SEG35 DIO15 SEG3ADIO14 RST 9g PB SEG34 DIO14 SEGO 2 C80 E 99 SEG11 E RST SEG02 SEGOT SEG61 DIO41 SEGO1 SEGO0 010 5 SEGOO H Xx N Ens 5 528808 FEE R1 SW3 R111 rage E x P DL 9 915 90 0 90 9902 55050500000055880059 107 1K RESET lt R103 4 0 gt 0 gt 0000000000000 0 C53 VBAT lt 00 2 ele 10K 100 0 1uF 4 10K o PPB be 752 n a Run s n n n n Dn t ox onu o Rd A a f elle lel GND C20 gt GND F pi Note C53 U4 ene 5 should be 0 GND INPUTS close to the A1 SEG24 DIO04 o Wr GND SEG25 DIO05 VB 15 TP16 C28 C50 UART gt gt SER EEPROM o 1000pF 0 1uF C52 C51 R104 5 1000 ik SS SERIAL EEPROM m HEADER 3 cm V3P3D VBAT Page 62 of 75
17. J12 on the 71M6533 DB Demo Boards has all the provisions for connecting the IR LED and photo transistor FERRITES Ferrite beads on the PCB are useful for the rejection of noise and general EMI events such as ESD and EFT Some precautions apply 1 Ferrites should be placed upstream from MOVs TVS and other clamping devices since large currents will flow through the ferrites in the event of a surge If the ferrite is not designed for large surge currents it will burn up 2 Placing ferrite beads directly in series with the ADC inputs of the 71M6533 can cause inaccuracies in Wh readings over temperature Ferrites should be placed before the balance resistor and reservoir capacitor For details see Maxim Application Note AN 5292 TESTING THE DEMO BOARD This section will explain how the 71M6533 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 FUNCTIONAL METER TEST This is the test that every Demo Board has to pass before being integrated into a Demo Kit Before going into the functional meter test the Demo Board has already passed a series of bench top tests but the functional meter test is the first test that applies realistic high voltages and current signals from current transformers to the Demo Board Figure 2 13 shows a meter connected to a typical calibration system The calibrator supplies calibrated volta
18. NV memory Time Base Frequency Time Base Temperature Coefficient Controls and Displays Reset PB Numeric Display Watts VARS Measurement Range Voltage Current Page 58 of 75 6 5 165 1mm 0 062 1 6mm 1 5 38 1 40 85 function of crystal oscillator affected outside 10 C to 60 40 100 240V 700V RMS 5VDC 0 5V 25mA typical 0 240V RMS 0 0 25 176mV RMS Concentric connector 2 5mm 10x2 header 0 05 pitch and 6x1 header 0 1 pitch Spade terminals on PCB bottom 0 1 headers on PCB bottom 8x2 header 0 1 pitch 5 2 header 0 1 pitch 128KByte FLASH memory 1Mbit serial EEPROM 32 768 20 at 25 0 04PPM C2 max Push button SW2 Push button SW3 8 digit LCD 14 segments per digit red LED D5 red LED D6 120 700 V rms resistor division ratio 1 3 398 1 70 termination for 2 000 1 CT input 208A 3 4 APPENDIX This appendix includes the following documentation tables and drawings 71M6533 DB Demo Board Description 7 1M6533 DB Demo Board Electrical Schematic 7 1M6533 DB Demo Board Bill of Materials 7 1M6533 DB Demo Board PCB layers copper silk screen top and bottom side 7 1M6533 DB Demo Board Electrical Schematic 71M6533 71M6533H IC Description 71M6533 71M6533H Pin Description 71M6533 71M6533H Pin out Page 59 of 75 3 4 1 71M6533 DB DEMO
19. Total Watt hours consumed imported Total Watt hours generated exported VA Description vu 000 002 Total VAR hours generated inverse consumed through element 0 Total VAR hours generated inverse consumed through element 1 32 of 75 REV 3 Total VA hours element 1 Total Watt hours consumed through element 2 Total Watt hours generated inverse consumed through element 2 VARhi C Total VAR hours consumed through element 2 VARhe C Total VAR hours generated inverse consumed through element 2 VAh Total VA hours in element 2 Table 1 8 MPU Accumulation Output Variables 1 10 3 USEFUL CLI COMMANDS INVOLVING THE MPU AND CE Table 1 9 shows a few essential commands involving data memory Displays the current RMS current in phase B RI5 26 Disables the emulator clock by setting bit 5 in RAM address 0x05 This command will i disable emulator programmer access to the 71M6533 Re enables the emulator clock by clearing bit 5 in RAM address 0x05 Stores the current CE RAM variables to flash memory The variables stored in flash memory will be applied by the MPU the next reset or power up if no valid data is available from the EEPROM Table 1 9 CLI Commands for Data Memory Page 33 of 75 REV 3 71M6533 DB Demo Board User s Manual Page 34 of 75 3 2 1 1 APPLICATION INFORMATION CALIBRATION THEORY A typical meter has phase and gain erro
20. 165 V5 NI 2119 SVDC 13 140 O e J e V3P3D GND DBG I 42 JP21 04 25 2008 Figure 1 1 Block Diagram for the 71M6533 DB Demo Board with Debug Board 1 7 4 SETUP WITH USB TO SERIAL ADAPTER The USB to Serial Adapter shipped with Demo Kits starting in June 2011 provides a connection to the Demo Board via USB The USB to Serial Adapter is plugged into connector J2 of the DB6533 as shown in Figure 1 2 The PC should be running HyperTerminal or a similar serial interface program A suitable driver e g the FTDI CDM Driver Package must be installed on the PC to enable the USB port to be mapped as a virtual COM port The driver can be found on the FTDI web site http www ftdichip com Drivers D2XX htm The USB to Serial Adapter is self powered via the USB port on the PC Page 9 of 75 3 71M6533 DB Demo Board User s Manual 1 7 2 1 7 3 SEMICONDUCTOR CORR Figure 1 2 DB6534T14A3 Demo Board with USB to Serial Adapter POWER SUPPLY SETUP There are several choices for the meter power supply e Internal using phase A of the AC line voltage The internal power supply is only suitable when the phase voltage exceeds 220V RMS A jumper needs to be installed across JP1 on the bottom of the board e External 5VDC connector J1 on the Demo Board CHECKING OPERATION A few seconds after power up the LCD display on the Demo Bo
21. 2080 IMAX peak at the ADC input for channel A The meter uses this value to convert internal quantities to external LSB 0 1A 0x06 0 07 0 08 0 09 28 0175 3 ATANI Default Word Value Description Address 26 84 Linear temperature compensation A positive value will cause the meter to run faster when hot This is applied rds to both V and and will therefore have a double effect on products PPM C 1374 Square law compensation A positive value will OxOC PPMC2 cause the meter to run faster when hot This is applied to both V and and will therefore have a double effect on products This address contains a number that points to the selected pulse OxOD PULSEX SRC source for the XPULSE output Selectable pulse sources are listed in Table 1 5 This address contains a number that points to the selected pulse OxOE PULSEY SRC source for the YPULSE output Selectable pulse sources are listed in Table 1 5 SCAL Count of accumulation intervals for auto calibration Ox10 2400 VCAL Applied voltage for auto calibration LSB 0 1V rms of AC signal applied to all elements during calibration Applied current for auto calibration LSB rms of AC signal 0x11 300 ICAL applied to all elements during calibration Power factor must be 1 75087832 VTHRSHLD Voltage to be used for creep detection measuring frequency zero crossing etc 0x13 50 PULSE WIDTH Pulse width in us 2 P
22. 826 R27 R28 R29 R30 pis 2 J5 WWI OO IBP IN 220K 220K 220K 220K 120K 4 7K n BN INL 2 R l cy VA IBIN 750 gt lt 1000pF NEUTRAL RV2 VARISTOR GND 56 R73 R38 R39 R40 R42 R43 R44 VB IN AI DOD VB_IN 220 220K 220K 220K 220K 220K 220K 047 R46 R47 R48 R49 R50 R51 112 pag e b 220K 220K 220K 220K 120K 4 7K 41 ERE 1 780 gt 1000pF Ferrite Bead 600ohm i J10 10 NEUTRAL IN ib 2 ID IN Ferrite Bead 600 RV3 119 VARISTOR NC C85 C72 R58 R59 R60 Re R63 R64 CURRENT NEL PN AS CONNECTIONS NG 220K 220K 220K 220K 220K 220K 220K V3 2 41206 PACKAGE R57 R66 R67 R68 R69 R70 R71 er 220K 220K 220K 220K 120K 4 7K OFF PAGE m OFF PAGE OUTPUTS NEUTRA NEUTRAL TUS 22VA 22vB NEUTRAL GND gt VC a uP me V3P3 gt gt IBP gt gt IBN VOLTAGE GND CONNECTIONS 2 0 gt gt IDN ems i Document Number VA IN D6533T3A3 NEUTRAL Thursday March 27 2008 Figure 4 2 71M6533 DB Demo Board Electrical Schematic 2 3 Page 61 of 75 REV 3 71 6533 Demo Board User s Manual Ter PULSE OUTPUT JP19 UART_RX SEG28 DIO08 TP1 C17 TP20 109 2 C55 10K 100 GND R
23. SOFTWARE A software defect was detected Element A has a sag condition This bit is set in real time by the CE and detected by the ce busy interrupt ce busy isr in ce c within 8 sample 25 SAGA intervals about 2 6ms A transition from normal operation to SAGA causes the power registers to be saved because the demo PCB is powered from element A Element B has a sag condition This bit is set in real time by the CE and 26 SAGB detected by the ce busy interrupt ce busy isr in ce c within 8 sample intervals about 2 6ms SAGCZ Element C has a sag condition See the description of the other sag bits A square wave at the line frequency with a jitter of up to 8 sample PUCE intervals about 2 6ms ONE_SEC Changes each accumulation interval Table 1 7 MPU Status Word Bit Assignment MPU ACCUMULATION OUTPUT VARIABLES Accumulation values are accumulated from XFER cycle to XFER cycle see Table 1 8 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 This register wraps around after the value 999999 is reached The second register holds fractions of the accumulated energy with an LSB of 9 4045 10 VMAX IMAX In 8 Wh The MPU accumulation registers always hold positive values The commands with two question marks e g 3922 should be used to read the variables XRAM Word Address
24. VW Bit 1 Clears accumulators for Wh VARh and VAh This bit need not be reset When the voltage exceeds this value bit 5 in the MPU status word is set and the MPU might choose to log a warning Event logs are not implemented in Demo Code Ox02 764569660 VTHR 9 LSB 2 The default value is equivalent to 20 above 240Vrms When the current exceeds this value bit 6 in the MPU status word is set and the MPU might choose to log a warning Event logs are not implemented in Demo Code 0x03 275652520 PK ITHR LSB 216 The default value is equivalent to 20 above 30Arms 0x04 0 CAL DEGO RTC adjust 100ppb Read only at reset in demo code 0x05 Y CAL DEG RTC adjust linear by temperature 10ppb AT in 0 1 C Provided for optional code Y CAL RIC adjust squared by temperature 1ppb AT in 016 Provided for optional code This address contains a number that points to the selected pulse PULSEW SRC source for the Wh output Selectable pulse sources are listed Table 1 5 This address contains a number that points to the selected pulse PULSER SRC source for the VARh output Selectable pulse sources are listed in Table 1 5 The nominal external RMS voltage that corresponds to 250mV 6000 VMAX peak at 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
25. converter Typically they are connected to the outputs of resistor dividers Unused pins must be tied to Comparator Input This pin is a voltage input to the internal comparator The voltage applied to the pin is compared to an internal BIAS voltage 1 6V If the input voltage is above the reference the comparator output will be high 1 If the comparator output is low a voltage fault will occur A series resistor should be connected from V1 to the resistor divider VREF s8 Voltage Reference for the ADC This pin should be left unconnected floating Crystal Inputs A 32kHz crystal should be connected across these pins Typically a XIN 93 33pF capacitor is also connected from XIN to GNDA and a 15pF capacitor is XOUT 95 connected from XOUT to GNDA It is important to minimize the capacitance bet ween these pins See the crystal manufacturer datasheet for details Table 4 3 71M6533 71M6533H Pin Description Table 2 3 Page 70 of 75 HEV 3 Digital Pins 1 LCD Common Outputs These 4 pins provide the select signals for the LCD display 5 0 5 2 SEG12 SEG13 SEG15 SEG16 SEG18 SEG20 SEG23 DIOS DIO56 DIO58 Dedicated LCD Segment Outputs SEG24 DIO4 SEG31 DIO11 SEG33 DIO13 SEG41 D1021 SEG43 DIO23 Multi use pins configurable as either LCD SEG driver or DIO DIO4 SCK SEG47 DIO27 SEG49 DIO29 SEG50 DIO30 SEG61 DIO41 SEG63 DIO43 SEG65 DI
26. timing power savings etc The 71 6533 on the demo board is pre programmed with default calibration factors Since current sensors are not part of the Demo Kit the demo board is tested but not calibrated at the factory SAFETY AND ESD NOTES Connecting live voltages to the demo board system will result in potentially hazardous voltages on the demo board THE DEMO SYSTEM IS ESD SENSITIVE ESD PRECAUTIONS SHOULD BE TAKEN WHEN HANDLING THE DEMO BOARD EXTREME CAUTION SHOULD BE TAKEN WHEN HANDLING THE DEMO BOARD ONCE IT IS CONNECTED TO LIVE VOLTAGES DEMO KIT CONTENTS e 7 1M6533 DB Demo Board with 71M6533F IC and Pre Loaded Demo Program USB to Serial Adapter 5VDC 1000mA Universal Wall Transformer with 2 5mm Plug Switchcraft 712A Compatible e USB Cable DEMO BOARD VERSIONS Currently only the following version of the Demo Board is available 71M6533 DB Demo Board REV 3 0 standard Teridian is a trademark of Maxim Integrated Products Inc Page 7 of 75 REV 3 1 5 COMPATIBILITY This manual applies to the following hardware and software revisions 1M6533 71M6533H chip revision A03 Demo Kit firmware revision 4 p6q or later 1M6533 DB Demo Board REV 3 0 1 66 SUGGESTED EQUIPMENT NOT INCLUDED For functional demonstration e PC with Microsoft Windows operating systems Windows Windows or Windows 2000 equipped with RS232 port COM port DB9 connector For softw
27. 1 3 Hyperterminal Sample Window with Disconnect Button 12 Figure 1 4 Port Speed and Handshake Setup left and Port Bit setup 12 Foure 5 13 Figure 1 6 Typical Calibration Macro nnne 24 Figure 1 7 Emulator Window Showing Reset and Erase Buttons see 26 Figure 1 8 Emulator Window Showing Erased Flash Memory and File Load 26 Figure 2 1 Walt Meter with Gairi and Phase ErOES oi tQ nio ee s E 35 Figure 2 2 Phase Abdle DOllhiltlofiS E lee tac coe 39 Figure 2 3 Calibration Spreadsheet for Three 42 Figure 2 4 Calibration Spreadsheet for Five 43 Figure 2 5 Calibration Spreadsheet for Rogowski coil nennen nennen nnn nnne nsns naar nns 44 Figure 2 6 Non Linearity Caused by Quantification Noise 2 004 20000 45 2 72 DIVIDER Tor V T der 46 Figure 2 8 External Gomponents TOL
28. 10 XQ 10 QI lt 10 oonooooOoo90O0 mnO200000000000 005009700000000000 9 ocaicDiodoc5o x NODA 50505 SE eO gj 10 5 N OO0Ooo0o0o004o2 00000 0 5 wo 20202020 0 2 020202 0 0 o 02 GNDD RESET V2P5 VBAT RX SEGG31 DIO11 SEG30 DIO10 SEG29 DIO9 YPULSE SEG28 DIO8 XPULSE SEG41 DIO21 SEGA40 DIO20 SEG39 DIO19 SEG27 DIO7 RPULSE SEG26 DIO6 WPULSE SEG25 DIO5 SDATA SEG24 DIO4 SDCK SEG23 SEG22 SEG21 SEG20 SEG43 DIO23 SEG18 SEG17 SEG16 REV 3 71M6533 DB Demo Board User s Manual Page 74 of 75 REV 3 5 REVISION HISTORY 1 30 2008 Initial release UT 75 0175 Updated copyright date footers Added text stating that no jumper should be across VBAT and OPT TX OUT J12 and updated Figure 3 1 Updated pin description tables Corrected Figure 2 9 added load line graph for differential mode Updated to include Demo Board revision DB6533T14A3 and new pin out arrangement of 71M6533 Updated Calibration Procedures section Replaced Teridian logo with Maxim logo in headers Removed list of Application Notes from section 2 6 Added information on the USB to Serial Adapter Corrected calculation and address for WRATE on page 23 Intermediate revision not published Removed refere
29. 37 2 2 POCO dU OS 38 2 2 1 Calibration Procedure with Three 39 2 2 2 Calibration Procedure with Five Measurements is sisa oroni eaa nennen nnn nennen naar nnns nnn 40 2 2 3 Calibration Procedure for Rogowski Coil Sensors sessi eene 40 224 Qalibration gt I eni a 41 225 Compensating tor Nonm Lineare S uc ooi rv 45 23 PD 46 24 E 46 2 4 1 46 RESCECICU 46 243 Me Mr DEI UU 47 II gt 47 Doo 48 48 2 4 7 FORNES ERR TR 49 3 0175 3 2 5 49 2 5 1 Funcional Meter
30. 4005 stores the hexadecimal value 0x4005 decimal 16389 in the CE RAM location controlling the gain of the voltage channel for phase A CAL VA CE Constant Address Description hex Adjusts the gain of the voltage channels 16384 is the typical value The gain is directly proportional to the CAL parameter Allowed range is 010 32767 If the gain is 1 slow CAL should be increased by 1 Adjusts the gain of the current channels 16384 is the typical value The gain is directly proportional to the CAL parameter Allowed range is 010 32767 If the gain is 1 slow CAL should be increased by 1 PHADJ A This constant controls the CT phase compensation No compensation PHADJ B occurs when PHADJ 0 As is increased more compensation is PHADJ C introduced Table 1 2 CE RAM Locations for Calibration Constants Page 23 of 75 REV 3 1 9 2 1 9 3 1 9 4 CALIBRATION MACRO FILE The macro file in Figure 1 6 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 gt Send Text File command CEO disable CE 10 16022 CAL IA gain CAL IA 16384 11 16381 CAL VA gain CAL VA 16384 122416019 CAL IB gain CAL IB 16384 132416370 CAL VB gain CAL VB 16384 gain CAL 1 16384 gain CAL VC 16384 1524716376 CAL VC 182 115 PHADJ A default 0 192 7113 PHADJ B defau
31. BOARD ELECTRICAL SCHEMATIC L1 NEUTRAL rS I IPS V3P3 J C46 R2 Ferrite Bead 6000hm 30nF 1000VDC 5Vdc EXT SUPPLY A a oh TL431 D3 ES 2 8 U6 4 I VARISTOR N i 2200uF 16V 10UF 6 3V 63V C42 1N4736A 3 T 1000pF 68V 1W RAPC712 lt R4 Ferrite Bead 600o0hm Z 2 25 5 44 115 04 87 GND VA IN R141 1N4148 130 100 2W R9 PS 5 681 1206 VA IN POWER SUPPLY SELECTION TABLE SELECTION PS JP1 EXT 5Vdc SUPPLY THRU J1 UT EXT 5Vdc SUPPLY THRU G6 G3 DEBUG BOARD INPUTS OUTPUTS 1 1 DIO56 gt gt gt gt VBAT 01057 2 gt gt GND hol 0058 ooting holes gt CKTEST gt gt TMUXOU gt UART_TX gt NEUTRAL TMUXOUT HEADER 8X2 DEBUG CONNECTOR itle 71M6533 4L DB Neutral Current Capable ize Document Number B D6533T14A3 Wednesday March 26 2008 Figure 4 1 71M6533 DB Demo Board Electrical Schematic 1 3 Page 60 of 75 REV 3 71 6533 Demo Board User s Manual J3 IN E i i IA IN GND R15 R16 R17 R18 R19 R20 R21 VA IN AN N I par 220K 220K 220K 220K 220K 220K 220K NC Ferrite Bead
32. CREEP prevent spurious pulses Note that creep mode therefore halts pulsing even when the CE s pulse mode is internal MINVC Element C has a voltage below VThrshld This forces that element into creep mode 2 PB PRESS A push button press was recorded at the most recent reset or wake from a battery mode SPURIOUS An unexpected interrupt was detected MINVB Element has a voltage below VThrshld This forces that element into creep mode MAXVA Element A has a voltage above VThrshldP 6 MAXVB Element B has a voltage above VThrshldP MAXVC Element C has a voltage above VThrshldP Element A has a voltage below VThrshld This forces that element into MINVA creep mode It also forces the frequency and main edge count to zero WD DETECT The most recent reset was a watchdog reset This usually indicates a software error 10 MAXIN The neutral current IS over INThrshld In a real meter this could indicate faulty distribution or tampering 11 MAXIA The current of element A is over IThrshld In a real meter this could indicate overload 12 current of element is over IThrshld In real meter this could indicate overload 13 MAXIC The current of element C is over IThrshld In a real meter this could indicate overload The temperature is below the minimum 40C established in option gbl h This is not very accurate in the demo code because the calibration 14 MINT temperature is usually poorly controlled and
33. current and if desired at lower and higher currents and various phase angles to confirm the desired accuracy 7 Store the new calibration factors CAL In CAL Vn and PHADJ n in the EEPROM memory of the meter If a Demo Board is calibrated the methods involving the command line interface shown in sections 1 9 3 and 1 9 4 can be used 8 Repeat the steps 1 through 7 for each phase 9 For added temperature compensation read the value TEMP RAW RAM and write it to TEMP NOM CE RAM If Demo Code 4 6n or later is used this will automatically calculate the correction coefficients PPMC and PPMC2 from the nominal temperature and from the characterization data contained in the on chip fuses 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 MAXIM INTEGRADED PRODUCTS Rogowski coils generate a signal that is the derivative of the current The CE code implemented in the Rogowski CE image digitally compensates for this effect and has the usual gain and phase calibration adjustments Additionally calibration adjustments are provided to eliminate voltage coupling from the sensor input Current sensors built from Rogowski coils have a relatively high output impedance that is susceptible to capacitive coupling from the large voltages present in the meter The most d
34. inputs are spade terminals mounted on the bottom of the board Caution High Voltage Do touch these pins NEUTRAL The NEUTRAL voltage input connected to This input is a spade terminal mounted on the bottom of the board Chip reset switch When the switch is pressed the RESET 7 SW2 pin of the IC is pulled high which resets the IC into a known state Three pin header that allows selection of power to the VBAT pin When the jumper is placed between pins 1 and JP8 VBAT GND 2 default setting of demo board VBAT is tied to the IC supply An external battery can be connected between terminals 2 and 3 Pushbutton connected to the PB pin on the IC This push button can be used in conjunction with the Demo Code to 10 SW3 wake the IC from sleep mode or LCD mode to brown out mode In mission mode the pushbutton serves to cycle the LCD display Table 3 1 71M6533 DB Demo Board Description Page 55 of 75 3 Reference BC EM MEM Five pin header for access to the optical port UART1 Terminal 2 monitors the TX OPT output of the IC Terminal 12 12 2 4 monitors the RX input to the radit No jumper should be place across VBAT and OPT TX OUT 5 Volt external 13 J1 supply Plug for connecting the external 5 VDC power supply 14 20 24 TP13 TP14 GND GND test points 32 TP15 TP16 15 JP20 Two pin header for selecting the signal for the pulse LED D6 With a jumper b
35. into a known state For RESET 74 normal operation this pin is pulled low To reset the chip this pin should be pulled high This pin has an internal nominal current source pull down No external reset circuitry is necessary UART input If this pin is unused it must be configured as an output or x o 5 TEST ENEMIES Enables Production Test This pin must be grounded in normal operation Push button input Should be at GND when not active A rising edge sets 97 the PB flag It also causes the part to wake up if it is in SLEEP or LCD mode PB does not have an internal pull up or pull down resistor Table 4 4 71M6533 71M6533H Pin Description Table 3 3 Pin types P Power Output Input I O Input Output Page 72 of 75 REV GNDD SEG9 E RXTX DIO2 OPT TX TMUXOUT TX SEG3 PCLK V3P3D SEG19 CKTEST V3P3SYS SEG4 PSDO SEG5 PCSZ SEG37 DIO17 SEG38 DIO18 MTX DIO56 DIO57 DIO58 DIO3 COMO 2 COM3 SEG67 DIO47 SEG68 DIO48 SEG69 DIO49 SEG70 DIO50 Page 73 of 75 Figure 4 10 71M6533 71M6533H 100 Pin top view x j gt lt r 02 O m O OOO 65 ul 22 024 214 24 2 2 lt 00 99 98 1 Teridian 71M6533 Q sf 10 x 0
36. 120Vrms or 240Vrms If a different set of voltage dividers or an external voltage transformer potential transformer is to be used scaling techniques similar to those applied for the current transformer should be used In the following example we assume that the line voltage is not applied to the resistor divider for VA formed by R15 R21 R26 R31 and R32 but to a voltage transformer with a ratio of 20 1 followed by a simple resistor divider We also assume that we want to maintain the value for VMAX at 600V to provide headroom for large voltage excursions When applying VMAX at the primary side of the transformer the secondary voltage V is Vs VMAX Vs is scaled by the resistor divider ratio Ra When the input voltage to the voltage channel of the 71 6533 is the desired 177mV Vs is then given by Vs 177mV Resolving for Rr we get Rr VMAX N 177mV 600V 30 177mV 170 45 This divider ratio can be implemented for example with a combination of one 16 95kQ and one 1000 resistor If potential transformers PTs are used instead of resistor dividers phase shifts will be introduced that will re quire negative phase angle compensation Standard Demo Code accepts negative calibration factors for phase Page 22 of 75 REV 3 1 9 1 9 1 CALIBRATION PARAMETERS GENERAL CALIBRATION PROCEDURE Any calibration method can be used with the 71M6533 chips This Demo Board User s Manual presents calibration me
37. 74 R108 V3P3 SEG26 DIO06 AV LA 4889280008 db d C70 10K 0 1000pF 1K GND 05 877 BAT MODE T 54 Ferrite Bead 21 AS TX 116 Note Place JP20 C29 R78 i close to IC R76 5 62701007 Ww U5 m y 5 5290009 p EN RE RE NE hires R113 swa 110 EN NEUE 100 RESET 0 R78 CKTEST C29 Es gt NC 1K T OO 00 C31 GND 50090009005 gt 2 GND Of P le leo lex lex ex lev ex ev d s n c n ko rn Kr o 2 f F2 fea o fo oo 169 1 1000pF C45 leo v Jo eo o eo eo o o ko p 2 GND C36 U5 5 5185 1 CO R106 sgua 55985554956 0950 2 N AHHH GND76 TP10 ca V3P3 v33 77 5 97101051 SEG15 gt 17 78 ee ea OU ae a SEG15 200 1 gt 100pF o VR VB 79 E 9 EM SEG13 Note Place N VA 80 ao Bon C24 C25 Y1 GND IDN 81 an M oor SEG12 BM GND 2 EE CN 55 SEG33 DIO13 E iin U5 C31 L14 C21 GND 4 5 84 SEG45DIO25 C24 close to IC BN 85 SEG46D1026 05 SEG47 D1027 SEG63 DIO43 J AN H SEG63DIO43 IAP GNDD SEG65D1045 L 89 SEG65DIO45 e Y1 Vi 90 SEGO8 5 07 32768 2 91 SEGO7 MUX_SYNC
38. 8 69 73 20 69 73 20 61 Response from Demo Code gt 80 Reads text from the buffer Read from EEPROM address 00000080 74 68 69 73 20 69 73 20 61 Response from Demo Code gt Disables the EEPROM RTC Testing the RTC inside the 71M6533 IC is straightforward and can be done using the serial command line interface CLI of the Demo Code To set the RTC and check the time and date we apply the following sequence of CLI commands gt 10 LCD display to show calendar gt RTD05 09 27 3 Sets the date to 9 27 2005 Tuesday gt 9 LCD display to show time of day gt RTT10 45 00 Sets the time to 10 45 00 AM PM distinction 1 22 33PM 13 22 33 Page 51 of 75 REV 3 2 5 4 HARDWARE WATCHDOG TIMER The hardware watchdog timer of the 71M6533 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 Programming the flash memory or emulation using the ADM51 In Circuit Emulator can only done when a jumper is plugged in at TP10 between V1 and Conversely removing the jumper at TP10 will enable the hardware watchdog timer 2 5 5 LCD Various tests of the LCD interface can be performed with the Demo Board using the serial command line interface CLI Setting the LCD EN register to 1 enables the display outputs Register Name Address bits LCD EN 2021 5 Enables the LCD display
39. ADC 128 38 400 00 1 2 01 1 25 10 fw 2 11 4 28 To change the LCD clock frequency we apply the following commands gt RI21 Reads the hex value of register 0x2021 gt 25 Response from Demo Code indicating the bit 0 is set and bit 1 is cleared gt 21 24 Writes the hex value 0 24 to register 0x2021 clearing bit 0 LCD flicker is visible now Page 52 of 75 REV 3 gt 21 25 Writes the original value back to LCD CLK 2 6 APPLICATION NOTES Please check on the Maxim web site or contact your local Maxim Integrated Products sales representative for Application Notes Page 53 of 75 3 71M6533 DB Demo Board User s Manual Page 54 of 75 3 3 HARDWARE DESCRIPTION 3 1 71M6533 DB DEMO BOARD DESCRIPTION JUMPERS SWITCHES AND TEST POINTS The items described in the following tables refer to the flags in Figure 3 1 Reference EE Two pin header test points One pin is the VB or VC line voltage input the and the other end is PS SELIO A jumper is placed across JP1 to activate the internal 4 JP1 CN power supply JP1 is on the bottom of the board Caution High Voltage Do not touch VA IN VB IN VA IN VB IN and VC IN are the line voltage inputs to the WC IN board Each input has a resistor divider that leads to the 3 8 11 J4 J6 J8 on the associated with the voltage input to the ADC N These
40. Address 2038 Dec 4 1 1 0 1 8 2000 2008 2010 2018 2020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Z Meters Firmware Hex Files 653446534_demo_2 aug0 hex Browse Load options v Load Code v Verify Code tay 20C8 20D0 20D8 20E0 20E8 20F0 20F8 2100 Microsoft Load Symbols Load Source Lines Loading Bank Offset 3 Adobe Re Demo Boa Signum 5 aai Status_1 ADM51 41807 CPU 71M6511 0000 0 DPTR 0000 00 00 CY 0 AC 0 Fo 0 OV 0 P RS0ri 0 RO R1 05 R2 01 R4 00 R6 00 Status_1 ADM51 41807 0 71 6511 0000 0 DPTR 0000 00 07 00 00 0 AC 0 FO 0 OV 0 0 0 81105 R2 01 R3 13 R4 00 R5 00 R 00 7 00 Figure 1 8 Emulator Window Showing Erased Flash Memory and File Load Menu Page 26 of 75 REV 3 1 9 7 THE PROGRAMMING INTERFACE OF THE 71 6533 Flash Downloader ICE Interface Signals The signals listed in Table 1 3 are necessary for communication between the Flash Downloader or ICE and the 71M6533 ICE E Input to the 71M6533 ICE interface is enabled when ICE E is pulled high E TCLK Output from 71M6533 Data clock E RXTX Bi directional Data input output RST Bi directional Flash Downloader Reset active low uo S Table 1 3 Flash Programming Interfac
41. Bottom nennen nnne na nnn nnns sns 68 Figure 4 9 71M6533 DB Demo Board Bottom 69 Figure 4 10 71M6533 71M6533H QFP100 Pin Out top nnn 73 Page 4 of 75 REV 3 List of Tables Table A Selectable Display be re vat Cie Den Do a E 11 Table 1 2 RAM Locations for Calibration sns sanas 23 Table 1 3 Flash Programming Interface 27 Table 1 4 MPU Input Parameters tor Metering abdo expe dedu 29 Selectable PUSE SOUC S ___ _____ ________ _________ 30 Table 1 6 MPU Instantaneous Output 0002000 0 00100000 30 Table 157 MPU Status Word co FU Fax xS EXE 32 Table 1 9 MPU Accumulation Output Variables or rk E pa a x 33 Table 1 9 GEL Commands for Data Memory sepes nee de bs ol reat 33 Table 2 1 Power Saving WEASUES lt csse c itat quid ost uit a DM f sU 46 Table 3 1 71M6533 DB Demo
42. E VBAT indicates that an external battery is available The IC will be able to transition from brownout mode to sleep and LCD modes when the system power is down and it will communicate at 300bd HyperTerminal can be found by selecting Programs Accessories gt Communications from the Windows start menu The connection parameters are configured by selecting File gt Properties and then by pressing the Page 11 of 75 REV 3 71 M6533 DB Demo Board User s Manual Configure button Port speed and flow control are configured under the General tab Figure 1 4 left bit settings are configured by pressing the Configure button Figure 1 4 right as shown below A setup file file name Demo Board Connection ht for HyperTerminal that can be loaded with File Open is also provided with the tools and utilities Port parameters only adjusted when the connection is not active disconnect button as shown Figure 1 3 must clicked order to disconnect the port File Edit wiew Transfer Help XONAXOJ viaNdirect method Meter DispNay Select Wh Consumption for all gt 11 5 651 3 03 04 04 21 2005 gt Connected 0 02 05 9600 a N 1 Figure 1 3 Hyperterminal Sample Window with Disconnect Button Arrow Mew Connection Properties 27 Properties Connect To Port Settings SS New Connection Change
43. M output Page 16 of 75 3 71M6533 DB Demo Board User s Manual Commands controlling the Auto Calibration Function Allows the user to initiate auto calibration and to store calibration values Command Begin auto calibration Prior to auto calibration the calibration combinations coefficients are automatically restored from flash memory MPU RAM see section 1 9 5 and the target voltage and current must be applied constantly during calibration Before starting the auto calibration process target values for voltage duration and current must be entered Calibration factors can saved to EEPROM using the CLS command Commands controlling the Pulse Counter Function La Description Start pulse counting for time period defined with the CPD combinations command Pulse counts will display with commands M15 2 Clear the absolute pulse count displays shown with commands M15 1 M16 1 Set time window for pulse counters to n seconds n is inter preted as a decimal number Pulse counts accumulated over a time window defined by the CPD command will be displayed by M14 after the defined time has expired M14 will display the absolute pulse count for the W and VAR outputs These displays are reset to zero with the CPC command or the write 1 2 Commands for Identification and Information FORMATION MES
44. O45 SEG67 DIO47 SEG71 DIO51 SEGS PCLK SEGA PSDO SEGS PCSZ SEG6 PSDI CKTEST SEG19 MUXSYNC SEG7 DIO5 SDA when configured as EEPROM interface WPULSE DIO6 VARPULSE 0107 DIO8 XPULSE 01009 YPULSE when configured as pulse outputs Unused pins must be configured as outputs or tied to V3P3D or GNDD Multi use pins configurable as either LCD segment driver SPI PORT Multi use pins configurable as either emulator port pins when ICE E pulled high or LCD SEG drivers when ICE_E tied to GND ICE enable When low E RST E TCLK and E RXTX become LCD segment pins For production units this pin should be pulled to GND to disable the emulator port Multi use pins configurable as either Clock PLL multiplexer control outputs or LCD segment drivers CKTEST can be enabled and disabled by CKOUT EN TMUXOUT O 4 Digital output test multiplexer Controlled by DMUX 3 0 Page 71 of 75 REV 3 oe eImeme 70000 Multi use pin configurable as either Optical Receive Input or general DIO When configured as this pin is a regular UART pin If this pin is unused it must be configured as an output or tied to V3P3D or GNDD Multi use pin configurable as either Optical LED Transmit Output When OPT TX DIO2 3 configured as OPT TX this pin is capable of directly driving an LED for transmitting data in an IR serial interface Chip reset This input pin is used to reset the chip
45. OUT INFORMATION Power Ground NC Pins GNDA 76 Analog ground This pin should be connected directly to the ground plane GNDD L ee Digital ground This pin should be connected directly to the ground plane V3P3A 77 Analog power supply A 3 3V power supply should be connected to this pin must be the same voltage as V3P3SYS V3P3SYS 9 System 3 3V supply This pin should be connected to a 3 3V power supply Auxiliary voltage output of the chip controlled by the internal 3 3V selection switch V3P3D 7 In mission mode this pin is internally connected to V8P3SYS BROWNOUT mode it is internally connected to VBAT This pin is floating in LCD and sleep mode Battery backup power and oscillator supply A battery or super capacitor 1 to VBAT 72 connected between VBAT and GNDD If_no battery is used connect VBAT to V3P3SYS Output of the internal 2 5V regulator A 0 1uF capacitor to GNDA should be V2P5 13 connected to this pin Table 4 2 71M6533 71M6533H Pin Description Table 1 3 Analog Pins Differential Line Current Sense Inputs These pins are voltage inputs to the internal IBP IBN A D converter Typically they are connected to the outputs of current sensors ICP ION Unused pins must be tied to IDP IDN are additional Line Current Sense IDP IDN Input pins Line Voltage Sense Inputs These pins are voltage inputs to the internal A D
46. SAGES Comment i Description Allows user to read information messages The command is mainly used to identify the revisions of Demo Code and the contained CE code Page 17 of 75 3 71M6533 DB Demo Board User s Manual Commands for Controlling the RMS Values Shown on the LCD Display VH METER RMS DISPLAY Comment ZONTROL LCD Description Allows user to select meter RMS display for voltage or current MR option option Command phase Displays instantaneous RMS current combinations 2 phase Displays instantaneous RMS voltage MR1 3 Displays phase C RMS current ss Phase 4 is the measured neutral current No error message is issued when invalid parameter is entered e g 1 8 Commands for Controlling the MPU Power Save Mode d POWER SAVE MODI E PS Description Enters power save mode Disables CE ADC CKOUT ECK RTM SSI TMUX VREF and serial port sets MPU clock to 38 4KHz Usage PS Return to normal mode is achieved by resetting the MPU 2 Commands for Controlling the RTC JI llows the user to read and set the real time clock Command _ RTDy m d w Day of week year month day weekday 1 Sunday If the weekday is combinations omitted it is set automatically RTR Read Real Time Clock RTTh m s Time of day hr min sec RTD05 03 17 5 Programs the RTC to Thursday 3 17 2005 RTA1 1234 Speeds up the RTC by 1234 PPB
47. SUM E c Poen real energy on element VARSUM E Sum of exported reactive energy 31 32 VAROSUM E Exported reactive energy on element A 33 VARISUM E Exported reactive energy on element B 34 VAR2SUM E Exported reactive energy on element C Table 1 5 Selectable Pulse Sources Description I0SQSUM 115050 10 125050 11 INSQSUM 12 VOSQSUM 13 VISQSUM 14 V2SQSUM 15 VASUM 16 VAOSUM 17 VAISUM MPU INSTANTANEOUS OUTPUT VARIABLES The Demo Code processes CE outputs after each accumulation interval It calculates instantaneous values such as VRMS IRMS W and as well as accumulated values such as Wh VARh and VAh Table 1 6 lists the calculated instantaneous values 0x24 Vims from element 0 1 2 0x26 _ 16 5 LSB 5050 2 0 25 from element 0 1 2 or neutral 0 27 0 29 LSB JIxSQSUM 2 Deviation from Calibration reference temperature Frequency of voltage selected by CE input If the selected voltage is below the sag threshold Frequency 0 LSB Hz Table 1 6 MPU Instantaneous Output Variables Page 30 of 75 REV 3 MPU STATUS WORD MPU maintains the status of certain meter and related variables in the Status Word The Status Word is located at address 0x21 The bit assignments are listed in Table 1 7 Status Indicates that all elements are in creep mode The CE s pulse variables will be jammed with a constant value on every accumulation interval to
48. VB VC input pins of the 71M6533 In 8 The setting for the additional ADC gain 8 or 1 determined by the CE register SHUNT The number of samples per accumulation interval i e PRE SAMPS SUM CYCLES X The pulse rate control factor determined by the CE registers PULSE SLOW and PULSE FAST Almost any desired Kh factor can be selected for the Demo Board by resolving the formula for WRATE WRATE IMAX VMAX 66 1782 Kh In 8 Nacc X For the Kh of 3 2Wh the value 171 decimal should be entered for WRATE at location 21 using the CLI command 2121 4171 ADJUSTING THE DEMO BOARDS TO DIFFERENT CURRENT TRANS FORMERS The Demo Board is prepared for use with 2000 1 current transformers CTs This means that for the unmodified Demo Board 208A on the primary side at 2000 1 ratio result in 104mA on the secondary side causing 177 at the 1 70 resistor pairs R24 R25 R36 R37 R56 R57 2 x 3 40 in parallel Page 21 of 75 REV 3 1 8 5 In general when is applied to the primary side of the CT the voltage Vin at the IA IB or IC input of the 71M6533 IC is determined by the following formula Vin R IMAX N where N transformer winding ratio R 2 resistor on the secondary side 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 71M6533 DB Demo Board to a transformer with a windi
49. When disabled VLC2 VLC1 and VLCO are ground as are the COM and SEG outputs To access the LCD EN register we apply the following CLI commands gt RI21 Reads the hex value of register 0x2021 gt 25 Response from Demo Code indicating the bit 5 is set gt 21 5 Writes the hex value 0x05 to register 0x2021 causing the display to be switched off gt 21 25 Sets the LCD EN register back to normal The 71M6533 provides a charge pump capable of boosting the 3 3VDC supply voltage up to 5 0VDC The boost circuit is enabled with the LCD BSTEN register The 6533 Demo Boards have the boost circuit enabled by default Register Name Address bits 2020 7 Enables the LCD voltage boost circuit To disable the LCD voltage boost circuit we apply the following commands gt 1208 Reads the hex value of register 0 2020 gt 8 Response Demo Code indicating the bit 7 is set gt RI20 E Writes the hex value to register 2020 causing the LCD boost to be switched off gt RI20 8E Enables the LCD boost circuit The LCD register determines the frequency at which the COM pins change states A slower clock means lower power consumption but if the clock is too slow visible flicker can occur The default clock frequency for the 71M6533 DB Demo Boards is 150Hz LCD CLK 01 Description LCD CLK 1 0 2021 1 0 RAW Sets the LCD clock frequency i e the frequency at which SEG and COM pins change states fw CK
50. X gt e a 252 g 22 GND HR DUC TOM 12 05455 4L NC DEMO BOARD i z 19 Figure 4 4 71M6533 DB Demo Board Top View Page 64 of 75 REV 71M6533 DB Demo Board User s Manual Figure 4 5 Page 65 of 75 71M6533 DB Demo Board Top Copper 71M6533 DB Demo Board User s Manual LE x y Y D Y x Figure 4 6 71M6533 DB Demo Board Middle Layer 1 Ground Plane Page 66 of 75 REV 3 71M6533 DB Demo Board User s Manual e 000000000 4 20000600006 TM 11411 11 zai Figure 4 7 71M6533 DB Demo Board Middle Layer 2 Supply Plane Page 67 of 75 3 71M6533 DB Demo Board User s Manual Figure 4 8 71M6533 DB Demo Board Bottom Copper 68 0175 3 RF e 69 of 75 L 8100 R101 EHE 25 em s 99 RTERICIAN SEMICONDUCTOR CIAR 19 1 12 Figure 4 9 71M6533 DB Demo Board Bottom View REV 3 44 71M6533 PIN
51. ard should display this brief greeting EIEIO The HELLO message should be followed by the display of accumulated energy The Wh display should be followed by the text Wh as shown below The decimal dot in the rightmost segment will be blinking indicating activity of the MPU inside the 71 6533 The Demo Code allows cycling of the display using the PB button By briefly pressing this button the next available parameter from Table 1 1 is selected This makes it easy to navigate various displays for Demo Boards without having to use the command line interface Page 10 of 75 3 Display Correspon Displayed Parameter left most display ding CLI digit s command Temperature difference from calibration temperature Displayed in 0 19 after power up or reset Table 1 1 Selectable Display Options 1 7 4 SERIAL CONNECTION SETUP After connecting the DB9 serial port to a PC start the HyperTerminal application and create a session using the following parameters Port Speed 9600 bd or 300bd see below Data Bits 8 Parity None Stop Bits 1 Flow Control XON XOFF See section 3 1 for proper selection of the operation mode when main power is removed jumper across pins 2 3 VBAT GND of JP16 indicates that no external battery is available The IC will stay in brownout mode when the system power is down and it will communicate 9600bd A jumper across pins 1 2 BATMOD
52. are development MPU code Signum ICE In Circuit Emulator ADM 51 http www sighnum com e Keil 8051 C Compiler kit CA51 www keil com c51 ca51kit htm www keil com product sales 1 7 DEMO BOARD TEST SETUP The 71M6533 DB Demo Board block diagram is shown in Figure 1 1 The configuration consists of a stand alone round meter Demo Board and an optional Debug Board The Demo Board contains all circuits necessary for operation as a meter including display calibration LEDs and internal power supply The optional Debug Board uses a separate power supply and is optically isolated from the Demo Board interfaces to a PC through a 9 pin serial port connector For serial communication between the PC and the 71M6533 the Debug Board needs to be plugged with its connector J3 into connector J2 of the Demo Board The USB Serial Adapter allows communication between the 71M6533 DB Demo Board and a PC via its USB port Connections to the external signals to be measured i e scaled AC voltages and current signals derived from shunt resistors or from current transformers are provided on the rear side of the demo board Caution It is recommended to set up the demo board with no live AC voltage connected and to connect live AC voltages only after the user is familiar with the demo system S All input signals are referenced to the V3P3A 3 3V power supply to the chip ee Windows and Windows XP are registered trademar
53. e Signals The E RST signal should only be driven by the Flash Downloader when enabling these interface signals The Flash Downloader must release E_RST at all other times 1 10 DEMO CODE 1 10 1 DEMO CODE DESCRIPTION The Demo Board is shipped preloaded with Demo Code revision 4 4 16 or later in the 71M6533 or 71M6533H chip The code revision can easily be verified by entering the command i via the serial interface see section 1 8 1 Check with your local MAXIM INTEGRADED PRODUCTS representative or FAE for the latest revision The Demo Code offers the following features A detaile It provides basic metering functions such as pulse generation display of accumulated energy frequency date time and enables the user to evaluate the parameters of the metering IC such as accuracy harmonic performance etc It maintains and provides access to basic household functions such as real time clock RTC It provides access to control and display functions via the serial interface enabling the user to view and modify a variety of meter parameters such as Kh calibration coefficients temperature compensation etc It provides libraries for access of low level IC functions to serve as building blocks for code development d description of the Demo Code can be found in the Software User s Guide SUG In addition the comments contained in the library provided with the Demo Kit can serve as useful documentation The Software User s Guid
54. e contains the following information Design guide Design reference for routines Tool Installation Guide List of library functions 80515 MPU Reference hardware instruction set memory registers 1 10 2 IMPORTANT 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 command where n is the word address Note that accumulation variables Page 27 of 75 3 64 bits long and accessed with n read and n hh zll write the case of accumulation variables Default values are the values assigned by the Demo Code on start up MPU Input Parameters are loaded by the MPU at startup and should not need adjustment during meter calibration MPU Input Parameters for Metering Default Word Value Description Address For each element if WSUM_X or VARSUM_X of that element ex ceeds WCREEP_THR the sample values for that element are not zeroed Otherwise the accumulators for Wh VARh and VAh are not updated and the instantaneous value of IRMS for that element is zeroed 0x00 433199 ITHRSHLDA LSB 5 2 9 The default value is equivalent to 0 08A Setting JTHRSHLDA to zero disables creep control Bit 0 Sets calculation mode 0x01 CONFIG 0 1
55. equation shown below Note that the default value of PHADJ is not zero but rather 3973 PHADJ 178677 0 If voltage coupling at low currents is introducing unacceptable errors perform step 2 below to select non zero values for VFEED A VFEED B and VFEED C Step 2 Voltage Cancellation Select small current Ianus where voltage coupling introduces at least 1 5 energy error At this current measure the errors Eo and E4soto determine the coefficient VFEED E E I V VFEED EE 229 RM MAX sts T Vnus CALIBRATION SPREADSHEETS Calibration spreadsheets are available from MAXIM INTEGRADED PRODUCTS 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 For CT and shunt calibration data should be entered into the calibration spreadsheets as follows 1 Calibration is performed one phase at a time 2 Results from measurements are generally entered in the yellow fields Intermediate results and calibration factors will show in the green fields The line frequency used 50 or 60 Hz is entered in the yellow field labeled AC frequency After the voltage measurement measured observed and expected actually applied voltages are entered in the yellow fields labeled Expected Voltage and Measured Voltage The error for the voltage measurement wil
56. etween pins 1 and 2 RPULSE is selected Pins 2 and 3 select YPULSE 16 VARS pulse LED 17 TP21 Two pin header providing access to the signals powering the RPULSE LED D5 18 JP19 SEG21 DIO08 Two pin header for selecting the signal for the pulse LED D5 With a jumper between pins 1 and 2 WPULSE is selected Pins 2 and 3 select XPULSE 19 TP20 Two pin header providing access to the signals powering the WPULSE LED D6 WATTS Wh pulse LED 22 JP16 BAT MODE Selector for the operation of the IC when main power is re moved A jumper across pins 2 3 default indicates that no external battery is available The IC will stay in brownout mode when the system power is down and it will communi cate at 9600bd A jumper across pins 1 2 indicates that an external battery is available The IC will be able to trans ition from brownout mode to sleep and LCD modes when the system power is down and it will communicate at 300bd 01003_ Three pin header providing access to 01003 25 JP7 ICE EN To enable the ICE interface a jumper is installed across pins 2 and 3 27 JP13 JP14 01056 01057 Two pin headers providing access to the DIO signals JP15 DIO58 01056 01057 and 01058 DEBUG Connector for USB Serial Adapter 2x8 pin male header The IC 71M6583 soldered to the 30 TP8 CKTEST Test points for access to the CKTEST and TMUXOUT pins TMUXOUT on the IC 81 TP17 VREF Test point for access to the VREF
57. ge Energy reading at 60 M Voltage error at 0 2 lags Expected voltage voltage Measured voltage Positive inductive PHASE B 96 fraction Todi Energy reading at 0 CAL IB 16384 16384 60 Energy reading at 60 CAL VB 16384 14895 i o t lead Voltage error at 0 PHADJ B 0 pie Expected voltage capacitive Measured voltage PHASE C i oltage Energy reading 0 38 zl 16384 16409 27 Energy reading at 60 9 17031 Generating Energy Using Energy 3 8 Voltage error at Q 0 038 d 5597 Readings Enter O if the error is 096 Expected voltage 240 enter 3 if meter runs 396 slow Measured voltage Figure 2 3 Calibration Spreadsheet for Three Measurements Page 42 of 75 REV 3 71M6533 DB Demo Board User s Manual YTERIDIAN Calibration Worksheet 7 SEMICONDUCTOR CORP A A Enter values in yellow fields REV 4 2 Date 10 25 2005 AC frequency 50 Author WJH click on yellow field to select from pull down list Energy reading at 0 Energy reading at 60 Energy reading at 60 Current lags voltage Positive inductive direction 60 i Current 60 Current leads voltage capacitive Voltage Generating Energy Using Energy Energy reading at 60 Energy reading at 60 Energy reading at 180 Voltage error at 0 _ Expected voltage V Figure 2 4 Calibrat
58. ge and current signals to the meter It should be noted that the current flows through the CT or CTs that are not part of the Demo Board The Demo Board rather receives the voltage output signals from the CT An optical pickup senses the pulses emitted by the meter and reports them to the calibrator Some calibration systems have electrical pickups The calibrator measures the time between the pulses and compares it to the expected time based on the meter Kh and the applied power Page 49 of 75 REV 3 71M6533 DB Demo Board User s Manual Optical Pickup for Pulses Calibrator Figure 2 13 Meter with Calibration System Maxim s Teridian Demo Boards are not calibrated prior to shipping However the Demo Board pulse outputs are tested and compared to the expected pulse output rate Figure 2 14 shows the screen on the controlling PC for a typical Demo Board The error numbers are given in percent This means that for the measured Demo Board the sum of all errors resulting from tolerances of PCB components CTs and 71 6533 tolerances was 3 4196 a range that can easily be compensated by calibration Figure 2 15 shows a load line obtained with a 6533 in differential mode As can be seen dynamic ranges of 10 000 1 for current can be achieved with good circuit design layout cabling and of course good current Sensors 1 WinBoard Meter Testing Serial 4738 Testing Functions Options Filejaraph BS
59. h memory of the 71M6533 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 Error Reference source not found and 1 7 4 typing will bring up the list of commands shown in Figure 1 5 Demo Board Connection HyperTerminal File Edit Call Transfer Help 2 Command Line Interpreter On line help Usage char or to get this help page Where char is an uppercase letter of the command The following commands lt char gt are available Repeat last command Ignore rest of line Access CE Data RAM Access MPU Data RAM Control metering I Information message Meter Display Control Power Save SFR and I O Control RT RTC Control Trim Controls Wait for watchdog reset Soft reset Battery mode commands EE EEPROM Control ER Error Recording Rest of line is a comment For Example C to get help on Compute Engine Control ANSTW 300 8 N 1 Figure 1 5 Command Line Help Display The tables in this chapter describe the commands in detail Page 13 of 75 REV 3 Commands to Display Help the Commands HELP Comment Command help available for each of the options below Command line interpreter help menu al pat 0000 FW help onthe command fz Examples comma
60. he CE code specification It does not matter which current value is chosen as long as the corresponding error value is significant 5 error at 0 2A used in the above equation will produce the same result for QUANT Input noise and truncation can cause similar errors in the VAR calculation that can be eliminated using the QUANT VAR variable QUANT VAR is determined using the same formula as QUANT Page 45 of 75 REV 3 2 3 2 4 2 4 1 2 4 2 POWER SAVING MEASURES In many cases especially when operating the 71M6533 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 savings Table 2 1 Power Saving Measures SCHEMATIC INFORMATION In this section hints on proper schematic design are provided that will help designing circuits that are functional and sufficiently immune to EMI electromagnetic interference COMPONENTS FOR THE V1 PIN The V1 pin of the 71M6533 can never be left unconnected A voltage divider should be used to establish that V1 is in a safe range when the meter is in mission mode V1 must be lower than 2 9V in all cases in order to keep the hardware watchdog timer enabled For proper debugging or loading code into the 71M6533 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
61. i04K 222238330474 Vishay 1 1 lt 5755 5559 11211 Le 3 carcscea L 4 _____ _____________ _____ 4909564140 GOMTB85CTH7ROCBOID _026 027 631 060 008 2 86063 ____4451278140 80033 UCLAMPa3oID TCT SEMTECH 7 L2 34959899 _____ Spade Terminal _______ ____ ___ _____623961 21111 20 PUALROWi2X PINMALE T2XOPIN 820666091246 m 31 4 _____ 5115104064 5 104068 29 5 JPIgPTSJPT4JPISJPI7JP18 HEADER2 2xiPiN Si0HE3e ND PZC36SAAN Sulns 81111 81 1 311680FRCTND RCIZ06FR 0768ROL Yageo CT ____ maeRasmseResReeRes 2 s 24825 836 837 856457 34 801206 01206 273840 Yago 745 76 106 80095 PIOKACTND 60 103 Panasonic 0 _ERJ OGEVOROOV Panasonic La a _______ 4
62. ion Spreadsheet for Five Measurements Page 43 of 75 3 71M6533 DB Demo Board User s Manual Enter values in yellow fields Results will show in green fields Step 1 Enter Nominal Values Nominal CAL V Nominal CAL PHADJ WRATE VMAX Calibration Frequency Hz Step 2 VRMS Calibration Enter old CAL VA Input Voltage Applied Measured Voltage CAL Vx SEMICONDUCTOR Resulting Nominal 4 3 Values X 6 Date 11 18 2005 Kh Wh 0 440 Author WJH Angle Sensitivity deg LSB 50Hz 5 60E 04 Step 3 Current Gain and Phase Calibration Deg ct 5 60E 04 old PHADJ Old CAL Ix Error 60 Error 60 Error 0 Error 180 Phase Error PHADJ CAL_Ix 16384 16384 3 7 12 3 912 3 381 2 915 3 591 3 482 3 72 3 56 0 0547319 0 1647659 0 1533716 4070 74 4267 22 17005 641 16981 934 17208 457 Step 4 Crosstalk Calibration Equalize Gain for 0 and 180 VRMS 240 5 0 30 Old VFEEDx Error Odeg 9oError 180deg VFEEDx 1 Rogowski coils have significant crosstalk from voltage to current This contributes to gain and phase errors 2 Therefore before calibrating Rogowski meter a quick 0 load line should be run to determine at what current the crosstalk contributes at least 196 error 3 Crosstalk calibration should be performed at this current or lower 4 If crosstalk contributes an EO error at current Ix there will be a 0 1 error in E60 at 15 Ix Figu
63. ks of Microsoft Corp Page 8 of 75 3 DEMONSTRATION METER External Current Transtorm rs PULSE OUTPUTS DIO6 WPULSE wh IDP O V3P3SYS INEUTRAL 5 jpn jap DIOTIRPULSE 5 K V3P3SYS IAN DIO9 YPULSE O IBP IB IBN 3 3V LCD cr DIO4 0105 M V3P3SYS 6533 Connector V Single Chip D VB Meter DEBUG BOARD OPTIONAL JP1 VC MPU HEARTBEAT 5Hz V3P3 DIO56 OHO OPT K V5 DBG NEU aA 1 2 HEARTBEAT 1Hz 01057 POO PT V5 DBG 1640 5 e DIO58 Oc cero m V5 DBG 10 A E 5V DC M M RS 232 m INTERFACE RX 1251 cero u u GND 5 7 RTM INTERFACE nl 9 11d 4 G battery ___ TMUXOUT a optional PB 1 CE 6 CKTEST On board V5 DBG l components 15
64. l then show in the green field above the two voltage entries 5 The relative error from the energy measurements at 0 and 60 are entered in the yellow fields labeled Energy reading at 0 and Energy reading at 60 The corresponding error expressed as a fraction will then show in the two green fields to the right of the energy reading fields 6 The spreadsheet will calculate the calibration factors CAL CAL VA and PHADJ A from the information entered so far and display them in the green fields in the column underneath the label 11 7 new 7 calibration was performed on a meter with non default calibration factors these factors can be entered in the yellow fields in the column underneath the label old For a meter with default calibration factors the entries in the column underneath old should be at the default value 16384 Page 41 of 75 REV 3 A spreadsheet is also available for Rogowski coil calibration see Figure 2 5 Data entry is as follows 1 All nominal values are entered in the fields of step one 2 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 3 After measuring the voltages displayed by the meter these are entered in the yellow fields labeled Measured Voltage The spreadsheet will show the calculated calibration factors for voltage in the green field
65. libration to have the voltage stabilized a few seconds before the current is applied This enables the Demo Code to initialize the 71M6533 and to stabilize the PLLs and filrers in the CE This method of operation is consistent with meter applications in the field as well as with international metering standards Each meter phase must be calibrated individually The procedures below show how to calibrate a meter phase with either three or five measurements The PHADJ equations apply only when a current transformer is used for the phase in question Note that positive load angles correspond to lagging current see Figure 2 2 During calibration of any phase a stable mains voltage has to be present on phase A This enables the CE processing mechanism of the 71M6533 necessary to obtain a stable calibration Page 38 of 75 3 S Voltage Bo E 5 D Current lags voltage Dr _ direction 4 460 m eM bli Current leads m 7 _ Voltage 2 Generating Energy Using Energy Figure 2 2 Phase Angle Definitions The calibration procedures described below should be followed after interfacing the voltage and current sensors to the 71M6533 chip When properly interfaced the V3P3 power supply is connected to the meter neutral and is the DC reference for each input Each
66. lt 0 1 109 PHADJ default 0 enahle CF 114 15994 Figure 1 6 Typical Calibration Macro File It is possible to send the calibration macro file to the 71M6533H 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 gt send text file procedure of HyperTerminal pas Use the Transfer gt Send Text File command UPDATING THE DEMO CODE HEX FILE The d merge program updates the hex file usually named 6533 4p6b 19jan08 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 6533 demo hex into new 6533 demo hex use the command d merge old 6533 demo hex macro txt new 6533 demo hex The new hex file can be written to the 71M6533 through the ICE port using the ADM51 in circuit emulator or the TFP2 flash programmer UPDATING CALIBRATION DATA IN FLASH OR EEPROM 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 inte
67. nces to TGP1 Gang Programmer no longer supported and to Debug Board replaced by USB Serial Adapter Changed naming conventions 71M6533 DB Corrected name for TFP2 Removed references to 71M6533H the 71M6533 DB is shipped with the 71M6533 Updated Figure 2 9 Added comments on the use of ferrites and reference to Application Note AN 5292 2 4 7 Added Battery Mode Commands in section 1 8 1 REV 3 Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery amp Lifecycle Information Maxim Integrated 71M6533 DB
68. nd in interpreter help menu uw compute engine contol help Commands for CE Data Access Allows user to read from and write to CE data space Starting Data Address option option Command A Head consecutive 16 bit words in Decimal starting at combinations address A We dues Rees Reeds CE cara words oao 01 andone remene ____ Waes woworssstning O7E All CE data words 4 byte 32 bit format Typing will access the 32 bit word located at the byte address 0 1000 4 0x1028 Page 14 of 75 REV 3 Commands MPU XDATA Access Allows user to read from and write to MPU data space Di Starting MPU Data Address option option Command Read three consecutive 32 bit words in Decimal starting at combinations address A Read three consecutive 32 bit words in Hex starting at address A Write the values and m to two consecutive addresses starting at address A Display useful RAM addresses 08 Reads data words 0x08 0x10 0 14 04 12345678 9876ABCD Writes two words starting 0x04 MPU or XDATA space is the address range for the MPU XRAM 0x0000 to OxFFF All MPU data words are in 4 byte 32 bit format Typing JA will access the 32 bit
69. nd write to EEPROM Command EECn EEPROM Access 1 gt Enable 0 gt Disable combinations CLS 1 weereens wiee O sm ______ remeare teom aaaea _________ evans fe EEShello Writes hello to buffer then transmits buffer to EEPROM EET 0210 starting at address 0x210 e Due to buffer size restrictions the maximum number of bytes handled by the EEPROM command is 0x40 Auxiliary Commands Typing a comma repeats the command issued from the previous command line This is very helpful when examining the value at a certain address over time such as the CE DRAM address for the temperature 0x40 The slash is useful to separate comments from commands when sending macro text files via the serial interface All characters in a line after the slash are ignored Commands controlling the CE TMUX and the RTM COMPUTE llows the user to enable and configure the compute engine Usage _____ fopton argument ee Command combinations CEn Compute Engine Enable 1 gt Enable 0 gt Disable CTn Select input n for TMUX output pin n is interpreted as a decimal number CEO T3 RTM output control 1 gt Enable 0 gt Disable Disables CE followed by CE OFF display on LCD The Demo Code will reset if the WD timer is enabled Selects the VBIAS signal for the TMUX output pin CRSa b c d Selects CE addresses for RT
70. ng ratio of 2500 1 are outlined below 1 The formula 177mV IMAX N is applied to calculate the new resistor Rx We calculate Rx to 2 1150 2 Changing the resistors R24 R25 R106 R107 to a combined resistance of 2 1150 for each pair will cause the desired voltage drop of 177mV appearing at the IA IB or IC inputs of the 71M6533 IC 3 WRATE should be adjusted to achieve the desired Kh factor as described in 1 8 3 Simply scaling MAX is not recommended since peak voltages at the 71M6533 inputs should always be in the range of 0 through 250mV equivalent to 177mV rms CT with a much lower winding ratio than 1 2 000 is used higher secondary currents will result causing excessive voltages at the 71 6533 inputs Conversely CTs with much higher ratio will tend to decrease the useable signal voltage range at the 71M6533 inputs and may thus decrease resolution ADJUSTING THE DEMO BOARDS TO DIFFERENT VOLTAGE DIVIDERS The 71M6533 DB Demo Board comes equipped with its own network of resistor dividers for voltage measurement mounted on the PCB The resistor values for the 71M6533 DB Demo Board are 2 5477 R15 R21 R26 R31 combined and 7500 R32 resulting in a ratio of 1 3 393 933 This means that VMAX equals 176 78 3 393 933 600V A large value for VMAX has been selected in order to have headroom for over voltages This choice need not be of concern since the ADC in the 71M6533 has enough resolution even when operating at
71. ominant coupling is usually capacitance between the primary of the coil and the coil s output This coupling adds a component proportional to the derivative of voltage to the sensor output This effect is compensated by the voltage coupling calibration coefficients As with the CT procedure the calibration procedure for Rogowski sensors uses the meter s display to calibrate the voltage path and the pulse outputs to perform the remaining energy calibrations The calibration procedure must be done to each phase separately making sure that the pulse generator is driven by the accumulated real energy for just that phase In other words the pulse generator input should be set to WhA WhB or WhC depending on the phase being calibrated In preparation of the calibration all calibration parameters are set to their default values VMAX and IMAX are set to reflect the system design parameters WRATE and PULSE SLOW PULSE FAST are adjusted to obtain the desired Kh Page 40 of 75 REV 3 2 2 4 Step 1 Basic Calibration After making sure VFEED VFEED B VFEED are zero perform either the three measurement procedure 2 2 1 or the five measurement calibration procedure 2 2 2 described in the CT section Perform the procedure at a current large enough that energy readings are immune from voltage coupling effects The one exception to the CT procedure is the equation for PHADJ after the phase error os has been calculated use the PHADJ
72. pin on the IC TP10 Three pin header for control of the V1 input to the IC 3 4 3 31 3 35 39 41 419 420 J21 Two pin headers for monitoring the current channel inputs 3 J22 ICN ICP IDP 36 J14 EMULATOR 2x10 emulator connector port for the Signum ICE ADM 51 or for the TFP2 Flash Programmer Table 3 2 71M6533 DB Demo Board Description Page 56 of 75 3 71M6533 DB Demo Board User s Manual 40 42 J3 45 J7 J10 Two pin headers mounted on the bottom of the board The 44 outputs from the CTs are to be connected here Table 3 3 71M6533 DB Demo Board Description TPUXDLT 65535 DEMO BOARD Figure 3 1 71M6533 DB Demo Board Board Description Default jumper settings indicated in yellow Page 57 of 75 3 3 2 BOARD HARDWARE SPECIFICATIONS PCB Dimensions Diameter Thickness Height w components Environmental Operating Temperature Storage Temperature Power Supply Using internal AC supply DC Input Voltage powered from DC supply Supply Current Input Signal Range AC Voltage Signals VA VB VC AC Current Signals IA IB IC from CT Interface Connectors DC Supply Jack J1 to Wall Transformer Emulator J14 and J17 Voltage Input Signals Current Input Signals USB Serial Adapter J2 SPI Interface Functional Specification Program Memory
73. play will show the accumulated energy in when set to display mode 5 command gt 5 the serial interface ADJUSTING THE KH FACTOR FOR THE DEMO BOARD The 71M6533 DB 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 The current transformers should be connected to the dual pin headers on the bottom of the board The Kh value can be derived by reading the values for IMAX and VMAX i e the RMS current and voltage values that correspond to the 250mV maximum input signal to the IC and inserting them in the following equation for Kh Kh IMAX VMAX 66 1782 In 8 WRATE X 3 19902 Wh pulse The small deviation between the adjusted Kh of 3 19902 and the ideal Kh of 3 2 is covered by calibration The default values used for the 71M6533 DB Demo Board are WRATE 683 IMAX 208 VMAX 600 In 8 1 controlled by SHUNT 0 Nacc 2520 X 6 Explanation of factors used in the Kh calculation WRATE The factor input by the user to determine Kh IMAX The current input scaling factor i e the input current generating 177mVrms at the IA IB IC input pins of the 71M6533 177mV rms is equivalent to 250mV VMAX The voltage input scaling factor i e the voltage generating 177mVrms at the VA
74. re 2 5 Calibration Spreadsheet for Rogowski coil Page 44 of 75 3 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 ov im gt gt Figure 2 6 Non Linearity Caused Quantification Noise The error can be seen as the presence of a virtual constant noise current While 10mA hardly contribute any error at currents of 10A and above the noise becomes dominant at small currents The value to be used for QUANT can be determined by the following formula error QUANT 100 VMAX IMAX LSB Where error observed error at a given voltage V and current 1 VMAX voltage scaling factor as described in section 1 8 3 IMAX current scaling factor as described in section 1 8 3 LSB QUANT LSB value 1 04173 10 W 1 Note The LSB value for QUANT will depend on the CE code that is used for the application Check the CE code specification for the actual LSB value Example Assuming an observed error as in Figure 2 6 we determine the error at 1A to be 196 If VMAX is 600V IMAX 208A QUANT LSB 7 4162 10 9 and if the measurement was taken at 240 we determine QUANT as follows 1 240 1 QUANT 199 11339 600 208 7 4162 10 QUANT is to be written to the CE location given in the data sheet or in t
75. rface command 2 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 M data is copied from the flash memory Writing OxFF into the first few bytes of the EEPROM deactivates any calibration data previously stored to the EEPROM Page 24 of 75 REV 3 1 9 5 AUTOMATIC GAINS CALIBRATION 1 9 6 The Demo Code is able to perform a single point fast automatic calibration as described in section 2 2 This calibration is performed for channels A B and C only not for the NEUTRAL channel The steps required for the calibration are 1 Enter operating values for voltage and current in I O RAM The voltage is entered at MPU address 0x10 e g with the command 10 2400 for 240V the current is entered at Ox11 e g with the command 11 300 for 30A and the duration measured in accumulation intervals is entered at OxOF 2 operating voltage and current defined in step 1 must be applied at a zero degree phase angle to the meter Demo 3 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 Thecalibration proced
76. rolling the Metering Values Shown the LCD Display METER DISPLAY Comment CONTROL LCD Allows user to select internal variables to be M option option hase 13 1 Main edge count accumulated zero transitions of the input signal Displays for total consumption wrap around at 999 999Wh or VARh VAh due to the limited number of available display digits Internal registers counters of the Demo Code are 64 bits wide and do not wrap around Command combinations 5 lt lt lt ze When entering the phase parameter use 1 for phase 2 for phase 3 for phase and 0 or blank for all phases a 20 of 75 3 1 8 2 1 8 3 1 8 4 USING THE DEMO BOARD FOR ENERGY MEASUREMENTS The 71M6533 DB Demo Board was designed for use with current transformers CT The Demo Board may immediately be used with current transformers having 2 000 1 winding ratio and is programmed for a Kh factor of 3 2 and see Section 1 8 4 for adjusting the Demo Board for transformers with different turns ratio Once voltage is applied and load current is flowing the red LED D5 will flash each time an energy sum of 3 2 Wh is collected The LCD display will show the accumulated energy in Wh when set to display mode 3 command gt 3 via the serial interface Similarly the red LED D6 will flash each time an energy sum of 3 2 VARh is collected The LCD dis
77. rs as shown by and Axy 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 The errors shown in Figure 2 1 represent the sum of all gain and phase errors They include errors in voltage attenuators current sensors and in ADC gains In other words no errors are made in the input or meter boxes INPUT ERRORS METER lo gt IDEAL I ACTUAL I Ay is phase lag is phase lead w IDEAL IV ACTUAL IV 25 Ps Vams V gt gt IDEAL ACTUAL V uec rt Be Cure Ie is ACTUAL IDEAL ACTUAL _ IDEAL IDEAL ERROR Figure 2 1 Watt Meter with Gain and Phase Errors During the calibration phase we measure errors and then introduce correction factors to nullify their effect With three unknowns to determine we must make at least three measurements If we make more measurements we can average the results CALIBRATION WITH THREE MEASUREMENTS The simplest calibration method is to make three measurements Typically a voltage measurement and two Watt hour Wh measurements are made A voltage display can be obtained for test purposes via the command gt 2 1 in the serial interface Let s sa
78. s labeled CAL 4 default values 3973 for PHADJ x are entered in the yellow fields of step If the calibration factors for the current are not at default their values are entered in the fields labeled Old CAL 5 errors of the energy measurements at 0 60 60 and 180 are entered in the yellow fields labeled 96 Error The spreadsheet will then display phase error the current calibration factor and the PHADJ x factor in the green fields one for each phase 6 lfacrosstalk measurement is necessary it should be performed at a low current where the effects of crosstalk are noticeable First if old values for VFEEDx exist in the meter they are entered in the spreadsheet in the row labeled Old VFEEDx one for each phase If these factors are zero 0 is entered for each phase 7 current and test voltage are entered in the yellow fields labeled VRMS IRMS 8 The crosstalk measurement is now conducted at a low current with phase angles of 0 and 180 and the percentage errors are entered in the yellow fields labeled 9o error 0 deg and error 180 one pair of values for each phase The resulting VFEEDx factors are then displayed in the green fields labeled VFEEDx IM SEMICONDUCTOR CORP Enter values in yellow fields REV 42 EM 5 Results will show green fields Date 10 25 2005 Author WJH fraction Energy reading at 0 7 Volta
79. soldered to the board In Circuit Emulator If firmware exists in the 71M6533 flash memory it has to be erased before loading a new file into memory Figure 1 7 and Figure 1 8 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 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 8 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 71M6533 IC At this point the emulator probe cable can be removed Once the 71M6533 IC is reset using the reset button on the Demo Board the new code starts executing Flash Programmer Module 2 Follow the instructions given in the User Manual for the TFP2 Page 25 of 75 REV 3 71M6533 DB Demo Board User s Manual Signum Systems Wemu51 ADM51 Emulator test File Edit view Debug Project Program_1 Address 0102 Dec 92 02 76 6D 02 AF 11 File Edit Debug Project Options Window Help E Options Window Help Wolf Hom Demo Boa Se File Name XDATA_1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Address 203E Dec 0 pe Pan 00 00 00 00 00 00 00 1
80. t the steps 1 through 7 for each phase For added temperature compensation read the value TEMP RAW CE RAM and write it to TEMP NOM CE RAM If Demo Code 4 6n or later is used this will automatically calculate the correction coefficients PPMC and PPMC2 from the nominal temperature and from the characterization data contained in the on chip fuses Tip Step 2 and the energy measurement at 0 of step 3 can be combined into one step 3 2 2 2 CALIBRATION PROCEDURE WITH FIVE MEASUREMENTS Each phase is calibrated individually The calibration procedure is as follows 1 Thecalibration factors for all phases are reset to their default values i e CAL CAL Vn 16384 and PHADJ n 0 2 5 voltage Videa consistent with the meter s nominal voltage is applied and the RMS reading Of the meter is recorded The voltage reading error is determined as V actual Videal Videal 3 Apply the nominal load current at phase angles 0 60 180 and 60 300 Measure the Wh energy each time and record the errors Eo E180 and 4 Calculate the new calibration factors CAL CAL Vn and PHADJ n using the formulae presented in section 2 1 2 or using the spreadsheet presented in section 2 2 4 5 Apply the new calibration factors CAL CAL Vn and PHADJ n to the meter The memory locations for these factors are given in section 1 9 1 6 Testthe meter at nominal
81. the default temp nom is usually many degrees off 40C is the minimum recommended operating temperature of the chip The temperature is above the maximum 85C established in option gbl h This is not very accurate in the demo code because the calibration 15 MAXT temperature is usually poorly controlled and the default temp nom is usually many degrees off 85C is the maximum recommended operating temperature of the chip Just after midnight the demo code sets this bit if VBat VBatMin The 16 BATTERY BAD read is infrequent to reduce battery loading to very low values When the battery voltage is being displayed the read occurs every second for up to 20 seconds CLOCK TAMPER Clock set to a new value more than two hours from the previous value Set after reset when the read of the calibration data has a bad longitudinal CAL BAD redundancy check or read failure Set when the clock s current reading is A More than a year after the CLOCK UNSET previously saved reading or B Earlier the previously saved reading or C There is no previously saved reading Page 31 of 75 REV 3 Status Set after reset when the read of the power register data has a bad 20 POWER BAD longitudinal redundancy check or read failure in both copies Two copies are used because a power failure can occur while one of the copies is being updated GNDNEUTRAL Indicates that a grounded neutral was detected TAMPER Tamper was detected 17
82. thods with three or five measurements as recommended methods because they work with most manual calibration systems based on counting pulses emitted by LEDs on the meter Naturally a meter in mass production will be equipped with special calibration code offering capabilities beyond those of the Demo Code It is basically possible to calibrate using voltage and current readings with or without pulses involved For this purpose the MPU Demo Code can be modified to display averaged voltage and current values as opposed to momentary values Also automated calibration equipment can communicate with the Demo Boards via the serial interface and extract voltage and current readings This is possible even with the unmodified Demo Code Complete calibration procedures are given in section 2 2 of this manual Regardless of the calibration procedure used parameters calibration factors will result that will have to be applied to the 71 6533 chip in order to make the chip apply the modified gains and phase shifts necessary for accurate operation Table 1 2 shows the names of the calibration factors their function and their location in the CE RAM Again the command line interface can be used to store the calibration factors in their respective CE RAM addresses For example the command gt 10 16302 stores the decimal value 16302 in the CE RAM location controlling the gain of the current channel CAL_JA for phase A The command gt 11
83. ulseWidth 1 397 OxFF disables this feature Takes effect only at start up Nomina reference temperature i e the temperature at which TEMP NOM calibration occurred LSB Units of TEMP RAW from CE The count of accumulation intervals that the neutral current must 0x15 NCOUNT be above NTHRSHLD required to set the excess neutral error bit The neutral current threshold 0x16 INTHRSHLD LSB IxSQSUM 2 Table 1 4 MPU Input Parameters for Metering Any of the values listed in Table 1 5 can be selected for as a source for PULSEW and PULSER The source refers to values imported by the consumer source E refers to energy exported by the consumer energy generation Pulse Pulse m Number Description Number 5 Default for PULSEW SRC WOSUM 2 Sum of imported real energy WOSUM I Imported real energy on element A W2SUM WISUM I Imported real energy on element B Default for W2SUM 1 real energy element VARSUM Sum of imported reactive energy 24 VAROSUM 1 Imported reactive energy on element A 25 VARISUM 1 Imported reactive energy on element B Page 29 of 75 REV 3 71M6533 DB Demo Board User s Manual 26 VARISUM 1 Imported reactive energy on element C 27 oum of exported real energy 28 WOSUM E rid real energy on element 29 WISUM E real energy element 30 W2
84. ure will automatically reset CE addresses used to store the calibration factors to their default values prior to starting the calibration Automatic calibration also reads the chip temperature and enters it at the proper CE location temperature compensation 5 addresses 0x10 to 0x15 and 0x18 to 0x1A will now show the new values determined by the auto calibration procedure 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 LOADING THE CODE FOR THE 6533 INTO THE DEMO BOARD Hardware Interface for Programming The 71M6533 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 ICE E ICE enable These signals along with and GND are available on the emulator headers J14 and J17 Production meters may be equipped with simple programming connectors such as the 6x1 header used for J17 Programming of the flash memory requires a specific in circuit emulator the ADM51 by Signum Systems http www signumsystems com or the Flash Programmer TFP2 available through Maxim distributors Chips may also be programmed before they are
85. voltage and current waveform as seen by the 71M6533 is scaled to be less than 250mV 2 2 1 CALIBRATION PROCEDURE WITH THREE MEASUREMENTS Each phase is calibrated individually The calibration procedure is as follows 1 2 Page 39 of 75 The calibration factors for all phases are reset to their default values 1 CAL_In CAL_Vn 16384 and PHADJ_n 0 An RMS voltage consistent with the meter s nominal voltage is applied and the RMS reading Vactual Of the meter is recorded The voltage reading error is determined as Vactual Videal Videal Apply the nominal load current at phase angles 0 and 60 measure the Wh energy and record the errors Eo AND Calculate the new calibration factors CAL CAL and n using formulae presented in section 2 1 1 or using the spreadsheet presented in section 2 2 4 Apply the new calibration factors CAL CAL Vn and PHADJ to the meter The memory locations for these factors are given in section 1 9 1 Test the meter at nominal current and if desired at lower and higher currents and various phase angles to confirm the desired accuracy Store the new calibration factors CAL CAL Vn and PHADJ n in the EEPROM memory of the meter If the calibration is performed on a Maxim s Teridian Demo Board the methods involving the command line interface as shown in sections 1 9 3 and 1 9 4 can be used Repea
86. word located at the byte address 4 A 0x28 The energy accumulation registers of the Demo Code can be accessed by typing two Dollar signs typing question marks will display negative decimal values if the most significant bit is set Commands for DIO RAM Configuration RAM and SFR Control au Tate the user to read from and write to DIO RAM and special function registers SFRs R option register option Command Select I O RAM location x 0x2000 offset is automatically combinations added Select internal SFR at address x Ra Read consecutive SFR registers in Decimal starting at address a Ra n m Set values of consecutive registers to n and m starting at address a RI2 Read DIO RAM registers 2 3 and 4 in Hex DIO or Configuration RAM space is the address range 0 2000 to Ox20FF This RAM contains registers used for configuring basic hardware and functional properties of the 71M6533 and is organized in bytes 8 bits The 0x2000 offset is automatically added when the command is typed Read consecutive registers Hex starting at address The SFRs special function registers are located in internal RAM of the 80515 core starting at address 0x80 Page 15 of 75 REV 3 71M6533 DB Demo Board User s Manual Commands for EEPROM Control 41 EE option arguments EPROM CONTROL Allows user to enable read a
87. y the voltage measurement has the error and the two Wh measurements have errors Eo and where Eo is measured with 0 and is measured with 60 These values should be simple ratios not percentage values They should be zero when the meter is accurate and negative when the meter runs slow The fundamental frequency is fo T is equal to 1 fs where fs is the sample frequency 2560 62Hz Set all calibration factors to nominal CAL 16384 CAL VA 16384 PHADJA Page 35 of 75 REV 3 From the voltage measurement we determine that 1 3 lt A 1 We use the other two measurements to determine _ IV cos 0 9 2 E IV cos 0 penes 1 2 9 Rt ee gg O IV cos 60 cos 60 p _ cos 60 cos 60 1 a e cos 60 Ay Ay 0 9 Ay Ay tan 60 sin 1 Combining 2a and 3a 4 E 1 tan 60 tan E E tants E 1 tan 60 E E 6292 E 1 tan 60 and from 2a 1 Ay 8 Now that we know and errors we calculate the new calibration voltage coefficient from the previous ones 7 CAL ELT XV We calculate PHADJ from the desired phase lag 1 1 2 20 2 cos 2af T PHADJ 2 1 2 sin 27f T

Download Pdf Manuals

image

Related Search

Related Contents

In der Bedienungsanleitung unter Punkt 6 „ Wartung“  AEG MC1751E Microwave Oven User Manual  UFG-06 Nopea HDDP User Manual  Samsung T24D390S Manuel de l'utilisateur  Agreement No. MA-057-15010476    SIPART PS2 EEx d 6DR4005-xx SIPART PS2 EEx d - MPIP  トイ・ストーリー  Star-Mate LX200 Emulator v2.1 User Manual.  Vi-R2000 Series Net Recorder User Manual  

Copyright © All rights reserved.
Failed to retrieve file