Home

UM1529 User manual - STMicroelectronics

image

Contents

1. 19 6 6 1 Tamper types kx e he dare eee ead EO nee 19 6 6 2 LCD symbol for tamper 19 6 7 62056 21 IRDA protocol mode C 20 6 7 1 IRDA modes scs be 20 6 7 2 SeriallO GUI 20 6 8 Pulse o t LED 5 Rp EOS 21 Appendix A EEPROM log data structure 22 6 9 Size OVBIVIBW 23 6 10 Entry 222222522222 adres Boned 23 Appendix 5 26 Appendix 5 27 C 1 Schematics a ds oad be haa ede at Kamae aed make hina ae doa 27 ky Doc ID 022953 Rev 1 3 35 Contents UM1529 Appendix D 29 REVISION 34 4 35 Doc ID 022953 Rev 1 437 UM1529 List of tables List of tables Table 1 Table 2 Table 3 Table 4 Table 5 Table 6 Table 7 Table 8 Table 9 Table 10 Table 11 Table 12 Table 13 Table 14 3 pin jumper 12 Pin jumper Headers Ron Rex Vea ate aka Geared 14 4 pin jumper headers 15 J7 STPM10 connecto
2. 9 3 3 9 3 3 1 System requirements for demonstration 10 4 Hardware 1 11 5 Hardware details 12 5 1 Metering IC UT 12 5 1 1 Clocking eA ERR ER aes eee ea Egg 12 5 2 Microcontroller U2 12 5 2 1 LED DIO derese itana RE RE eR RR d gt 12 5 2 2 Switch SW1 SW2 biner a iner nee eens 12 5 2 3 Jumper d2 oid bal eee RR Ee kee leche dates 12 5 2 4 Clocking 2 RR lar m deeds Rn D areae ier aeos 12 5 3 Power supply section 13 5 8 1 Programmable voltage reference U5 13 5 3 2 Current sensor 13 5 3 3 SHUN RS1 heed RUE d ee ra 13 5 4 Neutral missing power supply section 13 5 4 1 Current sensor CT2 13 5 5 EEPROM US Secon SEA E MOERS Ed 13 5 6 13 5 7 Battery management section 14 5 7 1 Goiri cell BTI enia a Roe RR
3. 16 SeriallO GUI hardware 5 21 SeriallO GUI with protocol mode C 21 Schematics 1 012 XC Roh erae x abd dh s Pues 27 Schematics 2 2 28 Doc ID 022953 Rev 1 ky UM1529 Features Features Low cost single phase energy meter solution Supports IEC 61036 1996 A1 2000 static meter for active energy classes 1 for Ib 10 Less than 4 VA power consumption for voltage circuit at reference voltage Less than 1 VA power consumption for current circuit at reference basic current Multiple tamper detection earth neutral missing reverse case tamper magnetic tamper detection Case tamper detection in power down also Detects signals and continues to measure accurately under tamper condition Rechargeable battery is available onboard for showing LCD parameters in case of power down mode Active energy pulse output 1600 impulses kWh Software based auto calibration without the need of reference meter only reference source is required Microcontroller in built RTC for date and time display Microcontroller STM8L152C6T6 is responsible for all the data management display and power management STPM10 metering IC with 1st order sigma delta ADC for energy measurements Single point and fast calibration of the STPM10 for class 1 meter Exte
4. 5 OWL BOST Wouda3 004 08 Oe Tos 105 NOILOAS 7 9 WalS 99 m A9VAn0001 SNISSIN 20 A euo Zz jou oq 1 3nz 2011 WdlS 09AO uXOno0 0 S 000 A MMIG unus Ly NOIL23S 43MOd ONISSIW TWYLNAN D we sii n T NNOOSSYT9 007 001709 76 Wd WOD 007 0 NOD Wd 11938 021 70d 87 9193s 001 SAd _ 2 91085 001 IF 91935 ON ved ST 1935700789 VF 21935 001 cad 119357007189 2 0193570077089 6935 001 edd OF 893S 001 208 6 1935 091 004 8 9085 001 5344 Z 9938 001739 9 toas 0N ead 9357001039 zoas 007139 193570017039 2 39001 T tannas t NAS nas wa ST NAS No Was Beh WdlS 99 NIA 99 T 105 505 705 Was 984 8 SOS WdlS 964 vas Wais lad 57 3 vas an NOILOAS G97 Ga Was 0 on Or NASWdlS tvd 51 WdlS 90d Was sad 9 SOS 79157989 xS aS a NOILO3S 15 Schematics AM12078v1
5. 1529 74 User manual Single phase energy meter with 80 A maximum current based on STPM10 metering IC and STM8L152C6 MCU with dual interface EEPROM Introduction This document describes the functioning of a single phase energy meter based on the STPM10 metering IC and STM8L152C6 microcontroller The demonstration board STEVAL IPEO20V 1 is a fully functional single phase solution with parameter display tamper management maximum demand MD calculation with dual interface RF and I2C interface EEPROM data logging and low power management The meter specifications are Accuracy class 1 with dynamic range 200 1 Nominal voltage 240 V Nominal current 10 A Maximum current 80 A Operating range 0 6 Vb to 1 2 Vb Meter constant 1600 impulses kWh Power frequency range 45 Hz to 65 Hz Sensor primary side CT and secondary side shunt Communication interface IrDA Figure 1 Single phase energy meter solution based on STPM10 and STM8L152C6 with dual interface EEPROM 12073 1 September 2012 Doc ID 022953 Rev 1 1 35 www st com Contents UM1529 Contents 1 Features PP nnne 7 2 ADD 8 2 1 Safety TUES 12st cae 8 2 2 Recommended readings 8 2 3 Getting technical support 8 3 Getting 5 9 3 1 co pP 9 3 2 Hardware installation
6. VCC 3 4 V Jumper J6 Tx PC3 Opto Coupler Rx PC2 STEVAL 012 1 Energy Meter AM12066v1 Figure 7 SeriallO GUI with protocol mode C settings mI BEE COM PORT Received data COM options lt Hexadecimal gt Port name 1 7 Hardware flow None Y Baud rate 300 Software flow None Data bits 8 Y DTR control Standard Y Parity Even Stop bits 1 Device check X Fm String AM12067v1 Note For more details about IRDA mode C refer to the 62056 21 IRDA protocol mode C document 6 8 Pulse out LED LED D10 is used as pulse out for cumulative energy It works on a meter constant of 1600 impulses kWh LED output can be used to test the accuracy of the meter ky Doc ID 022953 Rev 1 21 35 EEPROM log data structure UM1529 Appendix A EEPROM log data structure 22 35 All the below parameters are stored in EEPROM Calibration data 10 bytes 3 bytes of CHV CHP CHS then 7 times 0x00 Total cumulative energy at two locations to keep duplicate entries Total cumulative till last month month wise for last six months and current month Maximum demand month wise for last six months and current month Cumulative energy month wise for last six months and current month Average PF and averaging count month wise for last six months and current month Tamper information earth reverse neutral missing case tamp
7. NOILO3S YOLIANNOD ane J zs EI ancy 3400 7919 180 AM12077v1 ono Y Gai vaur WOU W ioclva NOILO3S a 24 PBO_LCD_SEG10 23 LCD SEGS 22 P02 LCD SEGS 21 PD11CD COMS 18 LCD SEGS 77 LCD SEG4 16 PEZ LCD 17 PEU LCD 79 peo LED SEGT PBO PD3 PD2 PEO 11995057199 8 071 9190eSV 18A1S 91086 pad 91935 S d VE a IS odd SE WMd 2605 1dd 9t PCS PCS VDDIO vssio LOE SSVO YOd ia LS 099870074 9vd ZWOO 09 9 d WIMS Ove 37 pco p PCS LSE IN PCS LSE OUT PET PWR DN VDD GND PC3_IRDA_1X PCO_EEPROM_SDA SCL PCA_CASE_TAMPER sas Is ea OEY sos Was wa TAS S ova Wd Vos ws Tea VM vos TIS 188 sos was baa f V 106 us sad car ws sas AQ aT Was 3d Gassing IswN 7 NOILO3S YATIONLNOOONOIN 27 35 Doc ID 022953 Rev 1 UM1529 Schematics 2 of 2 Figure 9 NOILO3S AlddNS a xz 2001
8. Doc ID 022953 Rev 1 28 35 596660 GI 96 66 Appendix D Bill of material Table 13 BOM Reference Component Manufacturers Supplier orderin Category Pon Package Manufacturer ordering code Supplier PP 9 designator description code orderable part number U1 AA TSSOP20 ST STPM10BTR STPM10BTR U2 LOFP48 ST STM8L152C6T6 STM8L152C6T6 microcontroller U3 EEPROM 32 Kb SO8 ST M24C32 RMN6TP M24C32 RMN6TP U5 Voltage reference TO92 ST TL431AIZ TL431AIZ ST devices D5 D11 D12 D13 D14 Small signal diode SOD 523 ST BAT30KFILM BAT30KFILM Diode Schottky D6 D7 40V 1A DO 41 ST 1N5819 1N5819 Dual interface EEPROM to be mounted on 50 8 ST M24LR64 RMN6T 2 M24LR64 RMN6T 2 interface EEPROM daughterboard and connected to J4 Y1 ibid 2 3 5mm ECS Inc ECS 42 12 4X Digi Key X1046 ND Crystal and oscillator oscillator Y2 Abracon 26 32 768 2 Digi Key 535 9032 ND oscillator Cylindrical Corporation Connectors Swim connector J1 SMT 4 pin 1 27 SMD ERNI ERNI ERNI 284697 and jumpers mm pitch J2 3 pin connector 3 pin 2 54 mm Any 6eS LINN 96 06 eH S6c00 CI 5001 Table 13 continued Manufacturer s Category heterence Compo Pa n Package Manufacturer ordering code Supplier Supplier ordering desig
9. ID 022953 Rev 1 ky UM1529 Hardware layout 4 Hardware layout The demonstration kit hardware is designed in a sectional approach to offer multiple functionalities to users Figure 3 Hardware layout top view REV C 1 22 DEMO BOARD FOR EVALUATION PURPOSE ONLY NEUTRAL AM12074v1 Figure 4 Hardware layout bottom view ri C 152 SEJ 2 n al s m 5 A r s eH i JC Es qu en 5 E T3238 AM12075v1 Y Doc ID 022953 Rev 1 11 35 Hardware details UM1529 5 5 1 5 1 1 5 2 5 2 1 5 2 2 5 2 3 5 2 4 12 35 Hardware details Metering IC U1 The programmable single phase energy metering IC STPM10BTR package TSSOP20 is interfaced to the microcontroller using a three wire SPI interface Active energy apparent energy instantaneous voltage instantaneous current values are obtained from the STPM10 metering IC For calibration of the STPM10 auto calibration is implemented Clocking Y1 A 4 194 MHz crystal is used as clock generator input for the metering IC For more details about auto calibration please refer to Section 6 1 Auto calibration mode Microcontroller U2 The microcontroller STM8L152C6T6 package LQFP48 32 K Flash 2 KB RAM 48 pin is responsible for all the data management and power ma
10. Section 6 1 Auto calibration mode In pushbutton mode the following parameters are displayed on the LCD Al LCD segments ON Date and time Max demand since last reset Cumulative energy for last six months Max demand for last six months Instantaneous PF Instantaneous voltage Instantaneous current Instantaneous load in Watt When the pushbutton SW3 is released the LCD display returns to auto scroll mode after pushbutton mode interval 10sec Pushbutton mode interval 8sec is configurable in pushbutton display h in firmware Doc ID 022953 Rev 1 437 UM1529 Single phase energy meter features 6 5 6 6 6 6 1 6 6 2 Note Meter low power mode display In low power mode the display is OFF till pushbutton SW3 is pressed When pushbutton SWS is pressed in low power mode the display is ON in auto scroll display mode The display is active till pushbutton SW3 is in pressed condition Tamper detection STEVAL IPEO20V1 demonstration board supports multiple tamper detection and their logging in EEPROM Tamper types The following five types of tamper detection are e Earth tamper Reverse tamper Neutral missing tamper Case tamper Magnetic interference LCD symbol for tamper condition e Earth tamper Ear UA D An 7 Reverse tamper Rg QW e Neutral missing tamper 2 DD Case tamper e Magnetic interference The three tampers earth reverse and neutral missing
11. operational in the case of neutral missing tamper In the case of neutral missing tamper condition neutral is disconnected from the energy meter Hence there is no voltage input and therefore no output would be generated by the main capacitive power supply However in the case of load present there would be a valid input signal on the current channel so energy would be consumed Since the voltage on the neutral channel is zero so is the power P V In order to take account of energy consumed in this case the neutral missing power supply section provides voltage supply to the STPM10 metering IC A zero crossing signal of 50 Hz is provided to the VIP pin of the STPM10 so it now calculates the energy consumption at a nominal voltage level of 230 V Current sensor CT2 CT2 is used to develop the power supply for the board using a diode full wave rectifier circuit in neutral missing condition EEPROM U3 section Dual interface EEPROM M24LR64 RMN6T 2 package 508 64 Kbit is interfaced to the microcontroller using the I2C bus This is a dual interface EEPROM and we can communicate with this device using 2 communication wired as well as RF interface wireless using an RF reader Cumulative energy MD average PF and tamper information for seven consecutive months are logged as months in EEPROM For more details about EEPROM data logging refer to Section 6 2 EEPROM data log LCD section LCD J3 is the connector for external 18
12. 1 R13 R32 R36 R37 10 KQ SMD0805 Any R2 1 MQ SMD0805 Any R3 R8 R11 R17 R18 R20 R21 R27 R33 R3 4 R35 R42 R43 R44 R SMDO0805 Any 46 R47 R49 R4 R10 R14 R19 1 SMD0805 Any R5 6 8 Q SMD0805 Any R6 5 10 SMD0805 Any R7 42 2 SMD0805 Any Resistors R9 R15 2 SMD0805 Any R12 1000 SMD0805 Any R16 2 2 kQ SMD0805 Any R22 R41 100 kQ SMD0805 Any R23 R24 R25 261 kQ SMD1206 Any R26 475 Q SMD0805 Any R28 82 2W Leaded Yageo RSF200JB 82R Digi Key 82W 2 ND R29 15 SMD0805 Any R30 22 SMD0805 Any ecs HNN 95 68 eH 596660 CI Table 13 continued Manufacturer s Category heterence Compo Pa n Package Manufacturer ordering code Supplier Supplier ordering designator description code orderable part number R31 470 SMD0805 Any R38 5 1 0 SMD0805 Any R39 10 2 Vishay BC 2000201500 8500 Digi Key PPC150W 2CT ND Resistors Components R40 8kQ SMD0805 Any R45 27 5W R48 12 SMD0805 Any L1 220 pH SMD ign ELJ FB221JF Digi Key PCD1469CT ND Inductors z 12 13 1 pH SMD ELJ FC1ROJF Digi Key PCD1228CT ND DIODE GPP 1A Fairchild Diode D1 D2 D3 D4 1000 V DO41 Leaded Semiconductor 1N4007 Digi Key 1N4007FSCT ND Infrared transceiver Visha U6 module SIR 115 2 SMD 8 pin y TFDU6300 TR3 Digi Key 751 1082 1 ND Electronics kbit s Micropower omnipolar Hall Mi
13. 14 5 7 2 Rechargeable battery 2 14 2 35 Doc ID 022953 Rev 1 ky UM1529 Contents 5 7 3 Small signal Schottky diode 011 D12 013 014 05 14 5 7 4 SWICK SWS vss Mo eg cae RC RU 14 5 8 IRDA sectiOri isis RI dk ora Rec ba Dad 14 5 8 1 IRDA transceiver U6 14 5 8 2 Jumper 3J6 2 e mare apnea ate Rp i e eds 14 5 9 Magnetic sensor U4 15 5 10 Connector section usse RO ROUEN Gabe bia eke Ras ees 15 6 Single phase energy meter features 16 6 1 Auto calibration mode 16 6 1 1 Steps for auto calibration 16 6 2 EEPROM soper saprene oo ae eec per uos 17 6 3 Power management 17 6 3 1 Meter run mode 17 6 3 2 Meter low power mode 17 64 LCD display modes 18 6 4 1 Meter run mode display 18 6 4 2 Auto scroll mode 18 6 4 3 Pushbutton mode x xd chase peas Peed 18 6 5 Meter low power mode display 19 6 6 Tamper detection
14. 4 LCD glass LCD glass OPT6089A operating voltage 3 V duty 1 4 Bias 1 3 offers various energy meter specific symbols LCD glass is driven by the microcontroller internal LCD driver Doc ID 022953 Rev 1 13 35 Hardware details UM1529 5 7 5 7 1 5 7 2 5 7 3 5 7 4 5 8 5 8 1 5 8 2 14 35 Battery management section Two batteries are used in the circuit Coin cell BT1 1 2032 3 V 225 mAh is the microcontroller power source in halt mode to keep RTC running Rechargeable battery BT2 BT2 VL2330 3 V 50 mAh for pushbutton and IRDA operation when mains power is OFF e The rechargeable battery acts as power source for the microcontroller section when the pushbutton is pressed during mains power off e Itis charged based on trickle charging mode during mains power on Small signal Schottky diode D11 D12 D13 D14 D5 Diodes 011 012 013 014 D5 BAT3OKFILM SOD 523 based circuit is used to select power source for the microcontroller Switch SW3 Switch SW3 is the pushbutton switch SW3 is used to control LCD display modes When mains power is ON on pressing the pushbutton the LCD display is executed as per the pushbutton run mode When mains power is OFF on pressing the pushbutton the LCD display is executed as per the pushbutton low power mode IRDA section IRDA transceiver U6 IRDA transceiver TFDU6300 is used for IRDA communication Jumper J6 Using jumper J6 IRDA tra
15. LAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES ST PRODUCTS ARE NOT RECOMMENDED AUTHORIZED OR WARRANTED FOR USE IN MILITARY AIR CRAFT SPACE LIFE SAVING OR LIFE SUSTAINING APPLICATIONS NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY DEATH OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE ST PRODUCTS WHICH ARE NOT SPECIFIED AS AUTOMOTIVE GRADE MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK Resale of ST products with provisions different from the statements and or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever any liability of ST ST and the ST logo are trademarks or registered trademarks of ST in various countries Information in this document supersedes and replaces all information previously supplied The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners 2012 STMicroelectronics All rights reserved STMicroelectronics group of companies Australia Belgium Brazil Canada China Czech Republic Finland France Germany Hong Kong India Israel Italy Japan Malaysia Malta Mor
16. age are done earth reverse neutral case tamper For each type of tamper the number of tamper entries per month is four e Two duplicate entries of cumulative energy are stored with CRC 8 value for error detection e 1Obytes stored for calibration data start of EEPROM including bytes of CHV and CHS e Last power down date and time log e Overflow count for cumulative energy Number of times cumulative energy overflows from 99999 9 maximum display precision for further details refer to Appendix A EEPROM log data structure Power management The STEVAL IPEO20V1 demonstration board is designed with board power consumption 4 VA The board supports two modes of operation e Meterrun mode e Meterlower power mode Meter run mode When mains power is ON the board operates in run mode The board components are powered using capacitive supply using the main power line as the source In this mode the rechargeable battery is in charging mode based on trickle charging technique Meter low power mode When mains power goes down the onboard microcontroller enters halt mode and metering IC is off In this mode the microcontroller RTC is running and low other peripherals are off In halt mode the microcontroller is powered using BT1 Therefore pushbutton SW3 is pressed in low power mode BT2 supply connects to the supply input of the microcontroller and the IRDA section So in button pressed condition BT2 is th
17. arameter Size in bytes Calibration data 10 3 bytes CHV CHP CHS 7 dummy bytes for future use Total cumulative energy duplicate entry 1 7 4 bytes 2 bytes 1 byte CRC Cumulative energy till last month 42 7 6 without CRC Maximum demand log 63 7 3 3 3 Monthly cumulative energy 42 7 6 Average PF log 42 7 4 7 2 Earth tamper log 175 7 4 3 3 1 Reverse log 175 7 4 3 3 1 Neutral missing log 175 7 4 3 3 1 Case tamper log 175 7 4 3 3 1 Total cumulative energy duplicate entry 2 7 4 bytes 2 bytes 1 byte CRC Count for CE overflow 1 byte Power down entry 6 bytes Note EEPROM data structuring is done in a modular way to support future updates Reconfigure parameters in header file emeter_datamgmt h to modify log structure entry count 6 10 Entry structure e Calibration data log CHV CHP CHS are calibration parameters for current and voltage channel for metering IC Table 6 Calibration data log Calibration data Start address CHV CHP CHS 7 times 0x00 0x00 10 For more details on calibration parameters refer to the metering IC datasheet on www st com e Total cumulative energy log Two duplicate entries are stored One at the start of EEPROM and another at the end of EEPROM This is done to make sure that if EEPROM is corrupted at one point another entry with correct CRC is considered as valid value Doc ID 022953 Rev 1 23 35 EEPROM log data str
18. are detected using a software algorithm based on meter readings from metering IC In the case of neutral missing tamper detection the board starts recording energy when the load current is 2 A or higher Case tamper is detected using switch SW2 and magnetic interference is detected using magnetic sensor U4 The symbol BP is shared for displaying case tamper as well as magnetic interference It means that if any of the tampers are detected symbol BP is displayed on the LCD For tamper definitions refer to Appendix B Tamper definitions In the present solution magnetic tamper is not logged in EEPROM Logging can be easily done modifying the EEPROM log structure Doc ID 022953 Rev 1 19 35 Single phase energy meter features UM1529 6 7 6 7 1 6 7 2 20 35 62056 21 IRDA protocol mode C STEVAL IPEO20V1 demonstration board supports 62056 21 IRDA protocol mode IRDA is used as a communication channel for reading meter data In such systems a handheld unit HHU or a unit with equivalent functions is connected to a tariff device energy meter The protocol offers five alternative protocol modes A B C D and E This solution covers mode C use In mode C data exchange is bi directional and is always initiated by the HHU with the transmission of a request message In this mode the HHU acts as a master and the tariff device acts as a slave These protocol modes permit meter reading manufacturer specific opera
19. e main supply source Now the meter low power LCD display and IRDA communication are operational till pushbutton SW3 is operational Doc ID 022953 Rev 1 17 35 Single phase energy meter features UM1529 6 4 6 4 1 6 4 2 Note 6 4 3 Note 18 35 LCD display modes STEVAL IPEO20V1 demonstration board offers different parameters to the user The metering parameters display is configured in a specific manner based on the power mode of the meter e Meter run mode LCD display e Meter low power LCD display Meter run mode display During main power on condition all the critical parameters with details of last month logs for metering parameters are available on the display Parameter display is classified in the manner below for mains ON condition Auto scroll mode e Pushbutton display mode Auto scroll mode In auto scroll mode the following parameters are displayed on the LCD display one by one e Cumulative active energy kWh e Max demand kW of last month e Average PF of last consumption month Auto scroll mode interval 8sec is configurable in autoscroll display h in firmware Pushbutton mode In pushbutton mode the following parameters are displayed on the LCD on pressing pushbutton SW3 Each button push displays the next pushbutton parameter If the pushbutton is in a pressed condition for 4sec the board enters auto calibration mode For more details on auto calibration refer to
20. elease Changes Doc ID 022953 Rev 1 UM1529 Please Read Carefully Information in this document is provided solely in connection with ST products STMicroelectronics NV and its subsidiaries ST reserve the right to make changes corrections modifications or improvements to this document and the products and services described herein at any time without notice All ST products are sold pursuant to ST s terms and conditions of sale Purchasers are solely responsible for the choice selection and use of the ST products and services described herein and ST assumes no liability whatsoever relating to the choice selection or use of the ST products and services described herein No license express or implied by estoppel or otherwise to any intellectual property rights is granted under this document If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICU
21. er month wise for last six months and current month and four entries per month with count for tamper and date and time details Count of cumulative energy overflow Count of cumulative energy overflow Date and time of last power down Total size required 920 bytes Data storage structure in EEPROM as follows Calibration data CHV CHP CHS CE main entry with CRC N month CE till last month MD CE current month average PF tamper N 1 month CE till last month MD CE current month average PF tamper N 2 month CE till last month MD CE current month average PF tamper N 3 month CE till last month MD CE current month average PF tamper N 4 month CE till last month MD CE current month average PF tamper N 5 month CE till last month MD CE current month average PF tamper N 6 month CE till last month MD CE current month average PF tamper CE duplicate copy with CRC Count for cumulative energy overflow Power down date and time Where N is the current month All parameters are logged for a total of 7 months including the current month and the last 6 months In current month log data is updated at day end and on power down Total cumulative energy log is updated half hourly Month serial order is updated at 24 00 of last date of each calendar month Doc ID 022953 Rev 1 437 UM1529 EEPROM log data structure 6 9 Size overview Table 5 EEPROM parameter size overview P
22. f tamper the storage per month is Tamper count 1 byte Four entries of date 3 bytes x 4 12 bytes Four entries of time bytes x 4 12 bytes Table 12 Monthly tamper log 1 byte 3 bytes 3 bytes Tamper count Date Time In one tamper entry log tamper count number of tampers in month D date and T time each is of 3 bytes Doc ID 022953 Rev 1 25 35 Tamper definitions UM1529 Appendix Tamper definitions 26 35 Earth tamper Using earth in place of neutral load current is passed partially or fully through earth Reverse connection Reversal of phase and neutral at mains Neutral missing tamper When neutral is disconnected the board is not powered During this condition single wire conditions power supply is generated by a CT for powering up the board Case tamper Ifan attempt is made to open the meter body the meter logs the date time of meter opening tamper Magnetic tamper When magnet comes near to the board it pulls magnetic sensor output IO low Doc ID 022953 Rev 1 ky Schematics UM1529 Appendix Schematics Schematics C 1 Schematics 1 of 2 Figure 8 d YOSNAS SILANOVIN UNON JON vana OST Onis Sad vas Nowa Od E 105 WONdi3 ld 2 E Y 4 18 2 B Ove
23. nagement tasks MCU consumes much lower power and has in built RTC for date and time management LED D10 LED 010 is the pulse out LED for cumulative energy This is used for testing energy meter energy calculation accuracy Switch SW1 SW2 Switch SW1 is the reset switch for the microcontroller Switch SW2 is the case tamper switch This is used to detect case tampering of the energy meter solution For more details refer to Section 6 4 LCD display modes Jumper J2 Table 1 3 pin jumper header Microcontroller pin PA1 Microcontroller pin PA1 is connected to reset is connected to LED Close 2 3 switch SW1 D10 Clocking Y2 A 32 768 kHz crystal is used as clock input for LSE low speed external for the microcontroller RTC block The microcontroller core is clocked by HSI high speed internal clock Doc ID 022953 Rev 1 UM1529 Hardware details 5 3 5 3 1 5 3 2 5 3 3 5 4 5 4 1 5 5 5 6 Power supply section Capacitive power supply is used to build 3 6 V for the metering IC and microcontroller section Programmable voltage reference U5 05 TL431AI package 92 is used to regulate the 3 6 V supply Current sensor CT1 CT1 E4626 X002 2500 turns series resistance 41 7 is the sensor for primary current channel Shunt RS1 851 300 the sensor for the secondary current channel Neutral missing power supply section The neutral missing power supply section is
24. nator description code orderable part number J4 J5 4 pin connector 4 pin 2 54 Any Connectors 2 and jumpers J6 2 pin connector 2 2 54 mm Any J7 10 way 2x5 pin 2x5 2 54 mm Any LEDs D10 LED Leaded 3 mm HLMP K150 Digi Key 516 1311 ND 1 uF SMD0805 Any C2 C29 1nF SMD0805 Any C5 C14 C15 C17 C21 C22 C24 C28 C31 100 nF SMD0805 Any C6 C8 15 pF SMD0805 Any C7 C10 10 nF SMD0805 Any C9 C11 12 pF SMD0805 Any C12 4 7 uF SMD1206 Any Tantulum SMD C16 C30 4 7 UF EIA 3216 Any 18 Size A C13 22 nF SMD0805 Any C18 200 nF 630 V Leaded Ms di 2 383 20204 Digi Key BC1857 ND Components C19 220 yF 16 V Leaded inm EEU FC1C221 Digi Key P11199 ND C25 1 nF 500 V Leaded Vishay BC b102K25YS5PL63L6R Digi Key 1457PH ND Components 26 100 uF 50 V Leaded M ECE A1HN101U Digi Key P1284 ND Ig 4 596660 GI 95 18 Table 13 BOM continued Manufacturer s Category heterence Compo Pa n Package Manufacturer ordering code Supplier Supplier ordering designator description code orderable part number C32 6 8 uF 16 V Leaded ECE A1CKG6R8 Digi Key P909 ND C33 470 yF 35 V Leaded Nichicon UVR1V471MPD Digi Key 493 1084 ND Capacitors ic C34 47 yF 50 V Leaded 2 1 470 Digi Key P5181 ND C35 1000 pF 16 V Leaded id oca i ECA 1CM102 Digi Key P5142 ND R
25. nsmit and receive pins allow the testing of the IRDA section using the SeriallO GUI For more details refer to Section 6 7 2 SeriallO GUI Table 2 Pin jumper headers Jumper Pin1 Pin2 PC3_IRDA_Tx 7 PC2 IRDA Rx IRDA i i 98 IRDA transmit pin 02 rs PIN Doc ID 022953 Rev 1 437 UM1529 Hardware details 5 9 Magnetic sensor U4 Magnetic sensor AH180 SC59 3L is used to detect magnetic interference in an energy meter solution Magnetic sensor outputs low on magnetic interference on the board 5 10 Connector section The connector section comprises test points for different signals Table 3 4 pin jumper headers Jumper Pin1 Pin2 Pin3 Pin4 PAO_SWIM S PA1 NRST PULSE LED SWIM interface data pin pulse output reset signal J5 PAO_SWIM PE6 GND PE7_STPM_ZCR SWIM interface data pin GPIO metering IC ZCR signal J4 GND VDD PC1_EEPROM_SCL PCO_EEPROM_SDA Table 4 J7 STPM10 connector 10 pin jumper header Pin number Details 1 VOTP 2 SBS 3 GND 4 PB7_STPM_SDA 5 PB6_STPM_SCS 6 PB5_STPM_SCL 7 PD6_STPM_LED 8 PA3_STPM_SYN 9 SBS 10 VDD ky Doc ID 022953 Rev 1 15 35 Single phase energy meter features UM1529 6 6 1 16 35 Single phase energy meter features Auto calibration mode STEVAL IPEO20V1 demonstration board supports auto calibration using ideal reference source for 10 A and 240 V Calibration is performed
26. occo Philippines Singapore Spain Sweden Switzerland United Kingdom United States of America www st com ky Doc ID 022953 Rev 1 35 35
27. r 10 pin jumper header 15 EEPROM parameter size overview 23 Calibration 100 1 02 23 Total cumulative energy 100 1 4 24 Cumulative energy till last month 24 Monthly maximum 24 Current monthly cumulative energy 24 Monthly average 1 0 24 Monthly tamper 100 0 10 25 BOM 29 Document revision history 34 Doc ID 022953 Rev 1 5 35 List of figures UM1529 List of figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 6 35 Single phase energy meter solution based on STPM10 and STM8L152C6 with dual interface MEME 1 Electricity meter connection 9 Hardware layout top view 11 Hardware layout bottom view 11 Auto calibration mode connection diagram
28. rnal EEPROM used to store calibration parameters tampering information cumulative energy MD and power factor PF data Active power current voltage power factor and line frequency measurements Numeric display precision except cumulative energy 5 2 digits Numeric display precision for cumulative energy 5 1 digits Energy EEPROM log precision 0 01 kWh Doc ID 022953 Rev 1 7 35 Overview UM1529 2 2 1 2 2 2 3 8 35 Overview Safety rules This board can be connected to mains voltage 240 V In the case of improper use wrong installation or malfunction there is a danger of serious personal injury and damage to property All operations such as transport installation and commissioning as well as maintenance should be carried out only by skilled technical personnel regional accident prevention rules must be observed Danger Due to the risk of death when using this prototype on mains voltage 240 V only skilled technical personnel who are familiar with the installation mounting commissioning and operation of power electronic systems and have the qualifications needed to perform these functions may use this prototype Recommended readings This documentation describes how to use the multi tariff meter reference board Additional information can be found in the following documents e STPM10 datasheet e STM8L152C6T6 datasheet e Component datasheets e IEC 62056 21 IrDA protocol mode Get
29. sc U4 e SC 59 3L Diodes Inc AH180_SC59 3L Digi Key AH180 WGDICT ND components switch SW1 RESET Leaded Tyco 1555986 Farnell FSM10JH micro Electronics SW CASE TAMPER Leaded Tyco 1555986 Farnell FSM10JH switch Electronics 8 LINN 4 596660 GI 95 55 Table 13 BOM continued Manufacturer s Category heterence Compo Pa n Package Manufacturer ordering code Supplier Supplier ordering designator description code orderable part number SW3 LCD_PUSH switch Leaded P 1555986 Farnell FSM10JH Electronics J3 LCD glass 18x4 OPT6089A PE PIE Electronics connector Electronics SUR absorber 10 Panasonic MOV1 mm 750 V 2500 A Leaded ERZ V10D751 Digikey P7260 ND ECG ZNR Current sensing Misc resistors ISABELLENH Electric components RS1 5WATT 00030HM Leaded UTTE BKW M R0003 5 0 center BKW M R0003 5 0 1 VACUUMSCH Vacuumsc CT1 Current transformer Leaded MELZE VAC T60404 E4626 X002 60404 4626 002 BATTERY LITHIUM Panasonic BT1 COIN 3 V W TABS Leaded BSG CR 2032 F4N Digi Key P245 ND BATT LITH COIN 3 BT2 V 23 MM50 MA Leaded VL 2330 VCN Digi Key P086 ND VERT BSS LINN Revision history UM1529 Revision history 34 35 Table 14 Document revision history Date 18 Sep 2012 Revision 1 Initial r
30. ting technical support For technical assistance documentation information and updates about products and services please refer to your local ST distributor office Doc ID 022953 Rev 1 ky UM1529 Getting started 3 3 1 3 2 3 3 Getting started Package The demonstration kit package includes the following items Hardware content J STEVAL IPEO20V1 demonstration board e Software SeriallO GUI for IRDA communication testing e Documentation User manual Presentation Schematic BOM Hardware installation Connect the STEVAL IPEO20V1 demonstration board with the mains supply before load Please refer to Figure 2 for connection with mains power and load Auto scrolling LCD display indicates successful power up of the board Figure 2 Electricity meter connection diagram Phase Neutral AM12062v1 Software installation The demonstration kit supports the SeriallO GUI for RS232 testing to check 62056 21 IRDA protocol mode C implementation Doc ID 022953 Rev 1 9 35 Getting started UM1529 3 3 1 10 35 System requirements for demonstration GUI For demonstration board communication with the GUI a recent version of Windows Windows XP must be installed on the PC The SeriallO GUI does not require any driver installation The version of the Windows OS installed on PC can be determined by clicking on the system icon in the control panel Doc
31. tion and programming mode It is designed to be highly suitable for electricity metering environments particularly with regards to electrical isolation and data security IRDA modes e Data readout mode In data readout mode the tariff device responds with all the data logged in EEPROM as per EEPROM data structure refer to Appendix A EEPROM log data structure Each data block consists of a sequence of data lines separated by CR carriage return and LF linefeed Manufacturer specific mode In manufacturer specific mode RTC date and time setting is done Programming mode In programming mode as per the protocol data read and write can be done at different locations of EEPROM SeriallO GUI The SeriallO GUI can be used as the test GUI for 62056 21 IRDA protocol mode C implementation Here the protocol is tested using serial communication For this testing a daughterboard with an RS232 converter is required to map the PC serial data signals to 3 4 V data signals of the board Steps for serial communication based protocol testing e Disconnect R41 R42 from board e Comment defines IRDA_MODE_ENABLE emter irda h e Connect the RS232 daughterboard as shown in Figure 6 e Write data in the SeriallO GUI data box and send Doc ID 022953 Rev 1 ky UM1529 Single phase energy meter features Figure 6 SeriallO GUI hardware setup _ gt Serial Communication 573232
32. to minimize measurement errors and to increase the accuracy of the meter Using auto calibration mode calibration parameters CHV CHS and CHP are calculated and programmed in the registers of the metering IC The procedure for meter calibration is explained below by firstly giving an overview of the hardware setup and then by describing how to connect a calibration board Steps for auto calibration e Connect 240 V voltage source to phase and neutral of board Connect 10 A source to board Pushbutton SW3 for more than 4 sec Board enters auto calibration mode CALIB is displayed on the board As calibration is complete board returns to auto scroll display mode Figure 5 Auto calibration mode connection diagram 240V AC Source 10A Source 2 AM12065v1 For more details of calibration parameters refer to the metering datasheet which can be found on www st com Doc ID 022953 Rev 1 437 UM1529 Single phase energy meter features 6 2 6 3 6 3 1 6 3 2 EEPROM data log Total EEPROM data log size 920 bytes Multiple parameters are stored in EEPROM as below e The following metering parameters are logged in EEPROM memory for the current month and last six months Cumulative energy CE till last month Maximum demand MD Cumulative energy CE consumed in current month Average PF and averaging count Tamper entries Four types of tamper data stor
33. ucture UM1529 24 35 Table 7 Total cumulative energy log 7 bytes 4 bytes kWh 2byte impulse count amp 1byte CRC Total cumulative energy entry e Cumulative energy till last month Cumulative energy till last month states energy consumed till the last calendar month reset Table 8 Cumulative energy till last month 6 bytes 4 bytes kWh amp 2byte impulse count Cumulative energy entry till last month Monthly maximum demand Table 9 Monthly maximum demand 3 bytes 1 byte integer value amp 2byte impulse count 3 bytes 3 bytes MD Value Date Time Current monthly cumulative energy Current monthly cumulative energy states energy consumed in that particular current month till the last calendar month reset Table 10 Current monthly cumulative energy 6 bytes 4 bytes kWh amp 2byte impulse count Current cumulative energy entry Monthly average PF PF average value is sum of PF readings and PF averaging count is number of PF readings Table 11 Monthly average PF 4 bytes 2 bytes PF average value PF averaging value Doc ID 022953 Rev 1 437 UM1529 EEPROM log data structure Monthly tamper log For monthly tamper log the following four types of tamper data is logged Earth tamper Reverse tamper Neutral missing tamper Case tamper For each tamper there are 4 entries per month So for each type o

Download Pdf Manuals

image

Related Search

Related Contents

Ewent R.1 Xfashion Light  Dakota Digital SIM-1-GSXR User's Manual  Audiovox DS9343TPK  Hamilton Beach HBF400 User's Manual  KOHLER K-13472-VS Installation Guide    09005207 - FISCHER Mess  Manual de Instalación  

Copyright © All rights reserved.
Failed to retrieve file