um0221 user manual - bdtic user manual steval-ipe007v1: ... 3 zener diode zd1 9.1v 1/2 w 1 ... bc548...
TRANSCRIPT
April 2006 Rev 2 1/14
UM0221User manual
STEVAL-IPE007V1: Single-phase energy meterwith tamper detection based on ST7lite2x
IntroductionThis user manual provides a description of a single chip energy meter, STEVAL-IPE007V1, with tamper detection. The meter fulfills IEC 61036:1996 + A1:2000 static meter requirements for active energy (classes 1 and 2) with Ib=10A and Imax=50A. It detects signals from a few mA, and continues to measure accurately even under tamper conditions.
The bill of materials and board schematics are also provided in Appendix A and Appendix B.
www.st.com
www.BDTIC.com/ST
Contents UM0221
2/14
Contents
1 Hardware overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Appendix A Bill of materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Appendix B Board schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
www.BDTIC.com/ST
UM0221 Hardware overview
3/14
1 Hardware overview
The following figure shows both the external parts and the main layout of the components across the board.
Figure 1. Energy meter
The parts are numbered as follows:
1. Current transformer
2. Power supply
3. LCD module
4. Analog switch
5. EEPROM
6. ST7Flite20 microcontroller
7. Operation Amplifier
8. Real time clock (RTC)
9. RTC Battery
The connection diagram is shown in Figure 2. It shows two current transformers, the LCD display and the three LED’s used.
45 6 7 9
8
2
31
www.BDTIC.com/ST
Hardware overview UM0221
4/14
Figure 2. Connection diagram of meter
The AC supply is connected to the power supply section of the energy meter. The power LED glows when the supply is on.
There are two current transformers to measure current in phase and neutral wires respectively.
The LCD module provides information about the kWh energy consumed, the input supply voltage, the input current, the power factor as well as the current date and time.
The tamper LED glows if the meter is tampered.
Finally, there is a pulse count LED which glows with a frequency proportional to the measured power. The proportionality constant can be set by the user.
LCD
CTP
Transformer Phase
Tamper LED
Pulse Count LED
Power LED
Load
Transformer Neutral
CTN
Current
Phase
Mains Current
ACNeutral
Red wire
Black wire
Black wire
Red wire
CTN
JP1
www.BDTIC.com/ST
UM0221 Revision history
5/14
2 Revision history
Table 1. Document revision history
Date Revision Changes
07-Apr-2006 1 Initial release.
25-Apr-2006 2 Document watermark removed
www.BDTIC.com/ST
Bill of materials UM0221
6/14
Appendix A Bill of materials
Table 2. Capacitors
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
1 Ceramic
C5,C6,C7,C8,C9,C10,C11,C
12
.1UF 50V NA SMD 8
2 Electrolytic C3 1000uF 25V NA-55°C to +85°C
Leaded 1
3 Ceramic C18,C19 22nF 50V NA NA SMD 2
4 CeramicC14,C15,C16,C17
22pF 50V NA NA SMD 4
5 Box C1 1uF 400V NA NA Leaded 1
6 Box C4 10nF 400V NA NA Leaded 1
7 Electrolytic C2 100uF 25V NA-55°C to +85°C
Leaded 1
8 Ceramic C13 10nF 50V NA NA SMD 1
8 Ceramic C20 NA NA SMD 1
Table 3. Resistors
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
1 R1 82E 2W-55°C to +125°C
Leaded 1
2 R4 150K 1/8W-55°C to +125°C
SMD 1
3 R2,R3 10K 1/8W-55°C to +125°C
SMD 2
4 R5 110K 1/8W-55°C to +125°C
SMD 2
5 R6 330K 1/8W-55°C to +125°C
SMD 2
5 R8 470E 1/8W-55°C to +125°C
SMD 1
6 R9 470E 1/8W-55°C to +125°C
SMD 1
7 R7 220E 1/8W-55°C to +125°C
SMD 1
8 R10 1.5K 1/8W-55°C to +125°C
SMD 1
www.BDTIC.com/ST
UM0221 Bill of materials
7/14
9 R11 51K 1/8W-55°C to +125°C
SMD 1
10 R12 16K 1/8W-55°C to +125°C
SMD 1
11 R13 0 1/8W-55°C to +125°C
SMD 1
12 R14 390E 1/8W-55°C to +125°C
SMD 1
13 R15 220E 1/8W-55°C to +125°C
SMD 1
14 R16 390E 1/8W-55°C to +125°C
SMD 1
15 R17 180E 1/8W-55°C to +125°C
SMD 2
15 R31 220E 1/8W-55°C to +125°C
SMD 2
16 R18 51K 1/8W-55°C to +125°C
SMD 1
17 R21 100K 1/8W-55°C to +125°C
SMD 1
18 R19,R20 2.2K 1/8W-55°C to +125°C
SMD 2
19 R22,R23 36E 1/8W-55°C to +125°C
SMD 2
20 R24,R25 1K 1/8W-55°C to +125°C
SMD 2
21 R26 1K 1/8W-55°C to +125°C
SMD 1
22 R28 1M 1/8W-55°C to +125°C
SMD 1
23 R29 100E 1/8W-55°C to +125°C
SMD 1
24 R27,R32 5.1K 1/8W-55°C to +125°C
SMD 2
Table 3. Resistors
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
www.BDTIC.com/ST
Bill of materials UM0221
8/14
Table 4. Integrated circuits
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
1Positive voltage
regulatorU1
L78L05ABZ
positive voltage regulators
-40°C to +125°C
TO-92 1
2 Op- Amp U2TS1854AI
D
1.8V input/output rail
to rail low power
operational amplifiers
-40°C to +125°C
SO14 1
3Micro
ControllerU3
ST7FLITE20F2M
8-BIT MCU with single
voltage flash memory, data
EEPROM, ADC, timers,
SPI
-40°C to +85°C
SO20 1
4 SL EEPROM U4M95010-WMN6E
1kb SPI Bus2.5V to
5.5VNA
-40°C to +85°C
SO8 1
5Analog Switch
U5HCF4066M013TR
QUAD BILATERAL
SWITCH3V to 20V NA
-55°C to +125°C
SOP14 1
6 Serial RTC U6M41T94MQ6E
512 Bit (64 bit x8) Serial RTC (SPI) SRAM
2.7V to 5.5V
NA-55°C to +125°C
SOP14 1
7 LCD Module LCD GDM093 18x4 module 1
Table 5. Diodes
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
1Rectifier Diode
D1,D2,D3,D4
1N4007 NA1000V
(Reverse Voltage)
NA-65°C to +175°C
Leaded, DO-41
4
2 LED D5,D6,D7 LED 3mm NA NA NA NARed LED
3mm3
3 Zener diode ZD1 9.1V 1/2 W 1
4 Transistor Q1,Q2 BC547BNPN Epitaxial
Silicon Transistor
TO-92 2
5 Transistor
Q3 (Very fast
switching transistor)
PN2222ANPN General
Purpose Amplifier
TO-92 1
www.BDTIC.com/ST
UM0221 Bill of materials
9/14
Table 6. Metal oxide varistors
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
1 MOV MV1 400V 1
Table 7. Trim pot
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
1 TRIM POT R30 20K NA
Rectangular,multitu
rn Trim Pot
1
Table 8. Transformers and inductors
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
1Current
Transformer
5000 turns, 10/40 amp by
Genius Electricals
2
Table 9. Crystals
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
1 Crystal Y1 KDS6J 16MHz NA NA 1
2 Crystal Y2 32.768kHz NA NA 1
Table 10. Ferrite beads
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
1Inductor
Chip BeadsL1 220uH NA NA
-40°C to +125°C
Leaded 1
2Inductor
Chip BeadsL2 1uH NA NA
-40°C to +125°C
Leaded 1
Table 11. PCB
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
1 PCB92x62 mm
1
www.BDTIC.com/ST
Bill of materials UM0221
10/14
Table 12. Switches
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
1
Press button Switch (Size
6.1mm x 6.1 mm)
S1 1
Table 13. ICP connector
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
1ICP
connectorCON10A 1
Table 14. Rechargeable battery
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
1 Battery BT1 1
Table 15. Terminal
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
14-pin
terminal60A,500V 1
Table 16. Bug stick, jumpers and wires
Item # Desc. Ref. Part # Value Voltage RatingTemp. Range
Pack / Type
Qnt
115 pin
Bugstick1
29 pin female
bog stick1
3 1 Jumper 1
4 Wires 60A,500V
5Red black
wire1A, 500V
www.BDTIC.com/ST
UM0221 Board schematics
11/14
Appendix B Board schematics
Figure 3. Schematic 1/6
Figure 4. Schematic 2/6
1 2 3 4
A
B
C
D
4321
D
C
B
A Title
Number RevisionSize
Orcad A
Date: 25-Jan-2006 Sheet ofFile: Z:\Backup\Deepu\PCB_Design\EMeter\EMeter.ddbDrawn By:
Y1
16MHz
1
2
3
Q2BC548
R1850k
R21
100k
5V
AIN0
5V
5V
5V
NE-RTC
SCL
SDO
SDI
AIN-PB4
ICP-PIN9
AIN-PB5
AIN-PB6
ICP-PIN7
ICP-PIN6
NCS-LCD
NWR-LCD
DATA-LCD
CTRL-A/B
ICP-PIN4
ICP-PIN2
CTRL-GAIN16
VSS1
VDD2
NRST3
NSS/AIN0/PB04
SCK/AIN1/PB15
MISO/AIN2/PB26
MOSI/AIN3/PB37
CLKIN/AIN4/PB48
AIN5/PB59
AIN6/PB610
OSC1/CLKIN 20
OSC219
PA0/LTIC18
PA1/ATIC 17
PA2/ATPWM0 16
PA3/ATPWM115
PA4/ATPWM214
ICCDATA/ATPWM/PA513
ICCCLK/MCO/PA6 12
PA711
U3
ST7FLITE10
C9100n
C10100n
C130.01u
C1422p
C1522p
NS1
Q2
NW3
VSS4
VCC 8
NHOLD7
C6
D 5
U4
M950XX
D7TAMP
D6CF
1 2 3JP1JUMPER
R192k2
R202k2
OSC1
S1
SW-PB
1 2 3
J1
NCS-LCD
DATA-LCD
S1 should be connected to PIN -16 of U3 and not to PIN-17.
1 2 3 4
A
B
C
D
4321
D
C
B
A Title
Number RevisionSize
Orcad A
Date: 24-Nov-2005 Sheet ofFile: Z:\Backup\Deepu\PCB_Design\EMeter\EMeter.ddbDrawn By:
CTP1
Current Transformer
CTN1
Current Transformer
R2336E
R25
1K
R24
1K
R2236E
1
2
3
Q3PN2222A
R27
5.1k
R310k
R26
1K
13
2
R3020k
R29100E
R31
220E
R28
1M
NEUTRAL
2.5V
5V
5V
CTRL-A/B
CTRL-GAIN16IN-GAIN16
OUT-GAIN16
CURRENT-OUT
PHASE
AIN0
2.5V
A-IN/OUT1
A-OUT/IN2
B-OUT/IN3
B-IN/OUT4
CTRL-B5
CTRL-C6
VSS7
VDD14
CTRL-A13
CTRL-D 12
D-IN/OUT11
D-OUT/IN10
C-OUT/IN 9
C-IN/OUT8
U5
HCF4066B
C11100n
C12100n
C20NC
C1822nF
C1922nF
www.BDTIC.com/ST
Board schematics UM0221
12/14
Figure 5. Schematic 3/6
Figure 6. Schematic 4/6
1 2 3 4
A
B
C
D
4321
D
C
B
A Title
Number RevisionSize
Orcad A
Date: 24-Nov-2005 Sheet ofFile: Z:\Backup\Deepu\PCB_Design\EMeter\EMeter.ddbDrawn By:
R9470E
R7
220ER101.5k
R1151k
R130E
R1216k
R14
390E
2.5V
5V
2.5V
CURRENT-OUT
AIN-PB4 AIN-PB6
OUT-GAIN16
IN-GAIN16
AIN-PB5
OUT A1
IN A-2
IN A+3
VDD4
IN B+5
IN B-6
OUT B7
OUT D 14
IN D-13
IN D+12
V-11
IN C+10
IN C- 9
OUT C8
U2
TS1854
C8
100n
2.5Vref
2.5V
U2-5
U2-3 U2-12
R15 220E
R17 180E
R16 390E
R8
470E2.5V
U2-5
U2-3
U2-12
1 2 3 4
A
B
C
D
4321
D
C
B
A Title
Number RevisionSize
Orcad A
Date: 25-Jan-2006 Sheet ofFile: Z:\Backup\Deepu\PCB_Design\EMeter\EMeter.ddbDrawn By:
C2100u/25V
R1
82E/2W
AK
ZD1
9V1D5
LED
A K
D1
L1
220uH
R6
330k
R5
110k
MV1400V
5V
2.5Vref
5V
P-MAINS
N-MAINS
C6
100nF
C5
100nFC410nF/400V
AK
D412
AC1
2
13
Q1BC547B
R210k
A K
D3
A KD2
R4150k C3
1000u/25V
I1
G2
O3
U1L7805/TO220
L2
1uH
C1
510nF/400V
PHASE
NEUTRAL
www.BDTIC.com/ST
UM0221 Board schematics
13/14
Figure 7. Schematic 5/6
Figure 8. Schematic 6/6
1 2 3 4
A
B
C
D
4321
D
C
B
A Title
Number RevisionSize
Orcad A
Date: 16-Feb-2006 Sheet ofFile: Z:\Backup\Deepu\PCB_Design\EMeter\EMeter.ddbDrawn By:
13579
2468
10
J2
CON10A
ICP-PIN2ICP-PIN4ICP-PIN6
ICP-PIN9ICP-PIN7
DATA-LCD
NCS-LCD
NWR-LCD
5V
123456789
J3
CON9
12
J4
CON2
GND5V
1 2 3 4
A
B
C
D
4321
D
C
B
A Title
Number RevisionSize
Orcad A
Date: 25-Jan-2006 Sheet ofFile: Z:\Backup\Deepu\PCB_Design\EMeter\EMeter.ddbDrawn By:
Y2
32.768kHz
R32 5k1
12
BT1
3.6V
5V
SDI
SCL
NE-RTC
SDO
XI1
XO2
NRST3
WDI4
NRSTIN15
NRSTIN26
VBAT7
VSS8
VCC16
NE15
NIRQ/FT/OUT14
THS 13
SDI12
SQW11
SCL 10
SDO9
U6
M41T94
C1722p
C1622p
C7100nF
5V
www.BDTIC.com/ST
UM0221
14/14
Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve theright to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at anytime, 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 noliability 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 thisdocument 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 productsor services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of suchthird 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 IMPLIEDWARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIEDWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWSOF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZE REPRESENTATIVE OF ST, ST PRODUCTS ARE NOT DESIGNED,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, ORSEVERE PROPERTY OR ENVIRONMENTAL DAMAGE.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately voidany warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, anyliability 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.
© 2006 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 - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America
www.st.com
www.BDTIC.com/ST