47
March 2006 Rev1 1/47 UM0207 User manual High-End Meter Demonstration Board 1 Introduction The STEVAL-IPE006V1 is an integrated system designed to provide a complete demonstration of a high-end solution for power metering. It shows no compromise measurement of active, reactive and apparent energies, load management and automatic meter reading via a power line modem, antitampering both on neutral wire and meter box, surge protection and in-application programming. The demonstration board is supplied directly from the mains through a high performance switch mode power supply. The measured values can be observed on the board's LCD or through the serial interface on a PC screen. All the parameter settings are changeable using this GUI. For safety reasons, the power supply and metering parts are galvanically isolated from the rest of the board. Application engineers can use this board to evaluate the components or to get started quickly with their own power meter product development project. All software and firmware source codes, gerber files and the bill of material are provided to help you get started easily and allow you to focus on the specific requirements of your application. Figure 1. High-end meter block diagram Meter STPM01 LEDs Buttons LCD Display KWh PLM ST7538 P. Supply L L6590, 78M05, F33 5V 5V IrDA JTAG μC μPSD3334 EEPROM M24512 5V reg. RS232 T S 232 PC RTC 41 T8 M S 7 XTAL 32kHz AL XT 40kHz Input Side (mains) Load Side (residential outlet) Transducer 10V u i 3.3V I 2 C +

High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

  • Upload
    others

  • View
    10

  • Download
    0

Embed Size (px)

Citation preview

Page 1: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

March 2006 Rev1 1/47

UM0207User manual

High-End Meter Demonstration Board

1 Introduction

The STEVAL-IPE006V1 is an integrated system designed to provide a complete demonstration of a high-end solution for power metering. It shows no compromise measurement of active, reactive and apparent energies, load management and automatic meter reading via a power line modem, antitampering both on neutral wire and meter box, surge protection and in-application programming. The demonstration board is supplied directly from the mains through a high performance switch mode power supply. The measured values can be observed on the board's LCD or through the serial interface on a PC screen. All the parameter settings are changeable using this GUI. For safety reasons, the power supply and metering parts are galvanically isolated from the rest of the board.

Application engineers can use this board to evaluate the components or to get started quickly with their own power meter product development project. All software and firmware source codes, gerber files and the bill of material are provided to help you get started easily and allow you to focus on the specific requirements of your application.

Figure 1. High-end meter block diagram

MeterSTPM01

LEDs Buttons DisplayLCD Display KWh

PLM ST7538

P. Supply

LL6590, 78M05, F33

5V5V

IrDA

JTAG

µCµPSD3334

EEPROMM24512

5V reg.

RS232TS 232

PC

RTC 41 T8M S 7

XTAL 32kHz

ALXT 40kHz

Input Side (mains) Load Side (residential outlet)

Transducer

10Vu i

3.3V

I2C

+

Page 2: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Contents High-End Meter Demonstration Board

2/47

Contents

1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

2 Safety instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

4 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

5 Hardware Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

5.1 Energy meter section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

5.2 Power supply section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

5.3 Power line modem section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

5.4 Microcontroller section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

5.5 Peripheral section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

5.6 Jumper settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

6 Software Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

6.1 Main software window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

6.2 Component registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

6.2.1 STPM01 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

6.2.2 M41ST87 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

6.2.3 ST7538 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

6.3 Power line communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

6.3.1 Frame structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

6.4 Automatic meter reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

7 Firmware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

7.1 Menu structure on the LCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

7.2 Energy menu item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

7.2.1 U, I, F menu item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

7.2.2 Power menu item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

7.2.3 Power factor & Phi menu item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

7.2.4 Energy (register) menu item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

7.2.5 U, I, F (register) menu item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

Page 3: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Contents

3/47

7.2.6 Configuration bits menu item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

7.2.7 Time & Date menu item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

7.2.8 Power line communication menu item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

7.2.9 Tamper menu item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

8 Additional features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

8.1 In-System Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

8.2 In-Application Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

8.3 Self Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

Appendix A Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

A.1 STPM01. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

A.2 ST7538 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

A.3 M41ST87 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

A.4 M24512 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

A.5 L6590. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

A.6 µPSD3334 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

9 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

10 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

Page 4: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

List of figures High-End Meter Demonstration Board

4/47

List of figures

Figure 1. High-end meter block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Figure 2. Basic connection scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8Figure 3. Control buttons and connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Figure 4. Energy meter section schematic. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13Figure 5. PLM & Power supply section schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Figure 6. Microcontroller section schematic. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Figure 7. Peripheral section schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Figure 8. Main window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23Figure 9. STPM01 configuration bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24Figure 10. M41ST87 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Figure 11. M41ST87 configuration bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26Figure 12. ST7538 control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Figure 13. PLC connection scheme. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Figure 14. PLC settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Figure 15. Frame structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29Figure 16. Acknowledgement frame structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29Figure 17. Forward error correction scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30Figure 18. AMR graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30Figure 19. Energy menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31Figure 20. U, I, F menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32Figure 21. Power menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33Figure 22. Power factor & Phi menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34Figure 23. Energy (register) menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35Figure 24. U, I, F (register) menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36Figure 25. Configuration bits menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37Figure 26. Time & Date menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38Figure 27. Power line communication menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39Figure 28. Tamper menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40Figure 29. Entering bootloader mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41Figure 30. Uploader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42Figure 31. Test connection scheme. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43Figure 32. Test software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

Page 5: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board List of tables

5/47

List of tables

Table 1. Jumper settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Table 2. Electrical parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Table 3. Bill of materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Table 4. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

Page 6: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Safety instructions High-End Meter Demonstration Board

6/47

2 Safety instructions

Intended Use

The Power Meter Demonstration board is a component designed for demonstration purposes only, and shall not be used for electrical installation or machinery. The technical data as well as information concerning the power supply conditions shall be taken from the documentation and strictly observed.

Installation

The installation and cooling of the Power Meter Demonstration board shall be in accordance with the specifications and the targeted application.

● The components must be protected against excessive strain. In particular, no components are to be bent, or isolating distances altered during the course of transportation or handling.

● No contact shall be made with electronic components and contacts.

● The boards contain electrostatically sensitive components that are prone to damage through improper use. Electrical components must not be mechanically damaged or destroyed (to avoid potential health risks).

Electrical Connection

Applicable national accident prevention rules must be followed when working on the main power supply. The electrical installation shall be completed in accordance with the appropriate requirements (e.g., cross-sectional areas of conductors, fusing, PE connections).

Board Operation

A system architecture which supplies power to the Reference Design Boards shall be equipped with additional control and protective devices in accordance with the applicable safety requirements (e.g., compliance with technical equipment and accident prevention rules).

Note: Do not touch the board after disconnection from the voltage supply, as several parts and power terminals which contain possibly energized capacitors need to be allowed to discharge.

Warning: The high voltage levels used to operate the power meter board could present a serious electrical shock hazard. This kit must be used only in a suitable laboratory and only by qualified personnel familiar with the installation, use, and maintenance of electrical systems.

Page 7: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Features

7/47

3 Features

■ Active, reactive, apparent, fundamental active energy, Urms, Irms and frequency measurements

■ Anti-tampering on neutral wire

■ Tamper detection on meter box, time stamp even during power-down

■ Power Fail In/Power Fail Out (PFI/PFO): power management, data backup

■ Power line communication

■ Automatic meter reading demonstration: measured values can be observed on LCD display on the board or through the serial interface on a PC/Notebook screen

■ SMPS power supply

■ In-Application Programming (IAP) via RS232

■ Control through PC interface

■ Class 1

Page 8: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Getting started High-End Meter Demonstration Board

8/47

4 Getting started

The high-end meter package includes the following items:

● Demonstration board

● Serial cable (null modem)

● CD-ROM with power meter demonstration software

● Test report

● Warning

The fastest way to learn about the meter board is to jump behind the wheel and take a drive!

2. Then, connect the demonstration board to any free COM port of your PC/Notebook using the included serial cable, install the PC software from the CD and run it. The software displays all the measured data in a convenient way and enables you access to the internal registers of the embedded components (see chapter Chapter 6: Software Description).

3. Now, you can create a network consisting of several demonstration boards and test the automatic meter reading functions (see Chapter 6.3: Power line communication).

See www.st.com/metering for technical help and additional information.

Enjoy your test drive!

Figure 2. Basic connection scheme

1. Connect the mains and the load to the demonstration board. Figure 2 shows simplified board and its basic connection scheme. Now you can observe the measured values on the board LCD. Use buttons "KEY ONE" and "KEY TWO" to move in the menu (see Chapter 7.1: Menu structure on the LCD).

STHEMETER-EVAL1

High End Meter

Software

RS23

PC

MAINS LOAD

CT CT

2

Page 9: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Hardware Description

9/47

5 Hardware Description

The Power Meter Demonstration Board is a 2-layer PCB, its overall dimensions are 130 x 130mm. The location of the control buttons and connectors is shown in Figure 3.

Figure 3. Control buttons and connectors

In order to prevent electric shock and to provide direct safe connection of the meter to the PC using the serial cable, half of the board is galvanically decoupled by transformers (T2 and T3) and opto-couplers (U1, U3 and U4). You can see the position of the division line on the bottom side of the board.

The system can be divided to several sections:

● Energy meter section

● Power supply section

● Power line modem section

● Microcontroller section

● Peripherals section

Each section is described below. For a more detailed and complete description of the used components refer to the product datasheets and application notes listed in Appendix A on page 44.

Control

SPI

Reset button

RS232

IrDA Flash link

keys

Tamper sensorbuttons

Current transformersTerminal strip

Page 10: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Hardware Description High-End Meter Demonstration Board

10/47

5.1 Energy meter sectionThe STPM01 is an ASSP designed for effective measurement of active, reactive and apparent energies in a power line system using Rogowski coil, current transformer and/or shunt sensors. This device can be implemented as a single chip1-phase energy meter or as a peripheral measurement in a microcontroller-based 1-phase or 3-phase energy meter.The meter section measures the current both in the phase and the neutral wire to enable the tamper detection feature. To obtain the tamper state, you can read the tamper status bit (BIT) displayed in the firmware menu on the LCD or in the main software window.The current sensor consists of the current transformer T1 and resistors R20, R21 (or T2 and R22, R23 for the secondary current channel). This combination of values gives a sensor sensitivity constant 1.8mV/A.The voltage sensor is created from a voltage divider (resistors R26, R27, R28 and R24). Its sensor sensitivity is 0.709mV/V.The components C16, C17, R16, R17, C18, C19, R18, R19, C20, C21 and the voltage divider resistors are anti-aliasing filters of the relevant STPM01 analog inputs.The high-end meter application uses the STPM01 in peripheral mode although you can also use stand-alone mode for testing. You can access the LED and stepper motor pulses (MOP and NOM) outputs on the relevant pins. You can change the configuration using the PC software suppled with the board or the STPM01 Manager with an additional programmer (see UM0128) which can be plugged into the SPI connector (reference J46).

Warning: This external programmer does not contain any kind of galvanic isolation. To avoid the risk of the electric shock or the damage of your computer connect the demonstration board to the mains through an isolation transformer.

5.2 Power supply sectionThe L6590 is a monolithic switching regulator with internal power switch, reference and protections designed in BCD OFF-LINE technology, able to operate with a wide input voltage range and to deliver up to 15W output power. The device is equipped with a standby function which automatically reduces the oscillator frequency from 65 to 22kHz under light load conditions to enhance the efficiency.

Note: As an alternative to the L6590 see also the VIPerX2A SMPS solution (AN1715).

The L78M05 and LF33 are fixed voltage linear regulators. Each type employs internal current limiting and thermal shutdown.The power selector jumper (J14) enables you to choose the board 5V power supply source, i.e. the ST7538 internal regulator or the external L78M05 circuit.

5.3 Power line modem sectionThe ST7538 is a half duplex synchronous/asynchronous FSK modem designed for power line communication network applications. It operates from a single supply voltage and has an integrated line driver and 5V linear regulator. Additional functions such as watchdog, clock output, output voltage and current control, preamble detection, time-out, band-in-use are included.

Page 11: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Hardware Description

11/47

The power line coupling filter was designed for 82.05kHz frequency to simplify the user power line communication tests in the CENELEC A band used by energy suppliers.

5.4 Microcontroller sectionThe µPSD3334 is a powerful 8051-based microcontroller with a flexible memory structure, programmable logic, rich peripheral mix, watchdog, and a low-voltage reset, forming an ideal embedded controller. The 8032 core is combined with the Programmable System Device (PSD) architecture to optimize the 8032 memory structure, offering two independent banks of Flash memory (256 and 32K) that can be placed at virtually any address within 8032 program or data address space, and easily paged beyond 64 Kbytes using on-chip programmable decode logic.

5.5 Peripheral sectionThe M41ST87 Serial TIMEKEEPER®/Controller SRAM is a low power 1280-bit, static CMOS SRAM organized as 160 bytes by 8 bits. A built-in 32.768kHz oscillator (controlled by an internal crystal) and 8 bytes of the SRAM are used for the clock/calendar function and are configured in binary coded decimal (BCD) format. An additional 11 bytes of RAM provide calibration, status/ control of alarm, watchdog, tamper and square wave functions. 8 bytes of ROM and finally 128 bytes of user RAM are also provided. Addresses and data are transferred serially via a two-line, bi-directional I2C interface. The M41ST87 has a built-in power sense circuit which detects power failures and automatically switches to the battery supply when a power failure occurs. Two fully independent tamper detection inputs allow monitoring of multiple locations within the system.The supercap is used instead of a battery for the RTC device backup due to its longer lifetime and the fact that the meter is supplied from the mains most of the time when it is in operation. The installed value 0.22F/5.5V is enough for retaining the memory content for at least 1 week of power outage.The M24512 is an I2C compatible electrically erasable programmable memory (EEPROM) organized as 64k x 8 bits with more than 100,000 Erase/Write cycles.The measured energy and power values plus time and date information (16 bytes in total) are stored in this memory every 5 seconds for the automatic meter reading function. This arrangement records the data curves for a period of over 5.5 hours. In a real metering application the storing period is much longer as well as the total recording time.The end of the memory space is reserved for the STPM01 configuration and calibration data. These values are loaded in the STPM01 shadow RAM memory after the board reset and then used for the demonstration board operation. OTP memory is not used, it is free for user test purposes.The ST3232 is a 3V powered EIA/TIA-232 and V.28/V.24 communication interface with low power requirements and high data-rate capabilities.The MC1602 is a standard 16 characters x 2 lines display.

Note: The board assembly does not include the IrDA transceiver due to a wrong pinout on the PCB.

Page 12: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Hardware Description High-End Meter Demonstration Board

12/47

5.6 Jumper settingsThere are several jumpers on the board which you use to select the appropriate device functionality. See Table 1 for detailed description.

.

Table 1. Jumper settings

Reference Alias Position Function

J11 LEDS & BTNS 1 - 2 LED ONE connected to µPSD PD1 pin

3 - 4 LED TWO connected to µPSD PD2 pin

5 - 6 (1) KEY ONE connected to µPSD PD1 pin

7 - 8 (1) KEY TWO connected to µPSD PD2 pin

J12 PLM_P -P 1 - 2 (1) PLM connection to phase

J13 PLM_N -N 1 - 2 (1) PLM connection to neutral

J14 PWR SEL 1 - 2 (1) 7805 is the board 5V supply voltage source

2 - 3 ST7538 internal regulator is the board 5V supply voltage source

J33 CLK SEL 1 - 2 (1) XTAL is the µPSD clock source

2 - 3 Oscillator is the µPSD clock source

J44 RST SEL 1 - 2 M41ST87 is the µPSD reset source

2 - 3 (1) "RESET" push-button is the µPSD reset source

1. Default position

Table 2. Electrical parameters

Symbol Parameter Min. Typ Max. Units

VNOM Nominal line voltage 50 230 275 VRMS

FL Nominal frequency 45 50 55 Hz

INOM Nominal line current 2 ARMS

IMAX Maximal line current 20 30 ARMS

TAMB Ambient temperature –40 25 85 °C

Page 13: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Hardware Description

13/47

Figure 4. Energy meter section schematicLE

D

MON

MOP

VO

TP

SD

AS

CL

SC

SS

YN

MO

N

MO

P

SD

AS

CL

SY

NS

CS

VO

TP

LED

P5V

P5V

5V 5V 5V 5V

P5V

P5V

5VP

5V5V

P5V

CP

U_P

4.5

CP

U_P

4.6

CP

U_P

4.4

CP

U_P

4.3

CP

U_P

4.7

Pha

se

Neu

tral

Titl

e

Siz

eD

ocum

ent N

umbe

rR

ev

Dat

e:

She

etof

<D

oc>

<od

e>

Hig

h-E

nd M

eter

Dem

onst

ratio

n B

oard

- E

nerg

y M

eter

A3

14

Tue

sday

, A

pril

05,

20

05

Titl

Siz

eD

ocum

ent N

umbe

r

Dat

eof

<D

oc>

<od

e>

Hig

h-E

nd M

eter

Dem

onst

ratio

n B

o-

En

r

A3

14

Apr

il

Titl

Siz

eD

ocum

ent N

umbe

r

Dat

eof

<D

oc>

<R

evC

ode>

Hig

h-E

nd M

eter

Dem

onst

ratio

n B

o-

En

r

A3

14

Load

1.8m

V/A

1.8m

V/A

0.70

9mV

/V (

1:14

10)

C3

100n

FC

310

0nF

21

D6

1N41

48

D6

1N41

48

1

2 3

Q2

BC

857B

Q2

BC

857B

C10

10nF

C10

10nF

R15

330

R15

330

41

L1 E46

22-X

503

L1 E46

22-X

503

R27

470k

R27

470k

2 1

D5

LED

_2D

5LE

D_2

41

L2 E46

22-X

503

L2 E46

22-X

503

C17

33nF

C17

33nF

C5

220n

FC

522

0nF

C1

100n

FC

110

0nF

C16

33nF

C16

33nF

R16

1kR16

1k

R4

6k8

R4

6k8

R1

330

R1

330

C15

100n

FC

1510

0nF

R26

470k

R26

470k

R6

1k5

R6

1k5

MO

P2

Vdd

d4

Vss

5

Vcc

6

Vdd

a8

Vot

p7

Ilp1

9

Iln1

10Ilp

211

Iln2

12V

ip13

Vin

14C

LKin

16C

LKou

t17

SY

N15

SC

S3

SC

L18

SD

A19

LED

20

MO

N1

U2

ST

PM

01

U2

ST

PM

01C

922

0nF

C9

220n

FY

1

4.19

4304

MH

z

Y1

4.19

4304

MH

z

R7

680

R7

680

1J2

6G

ND

J26

GN

D

21

D3

1N41

48

D3

1N41

48

R8

2k2

R8

2k2

C7

220n

FC

722

0nF

R17

1kR17

1k

1J7 +

5VJ7 +

5V

R9

47k

R9

47k

21

D1

1N41

48

D1

1N41

48

C13

15pF

C13

15pF

1J8 M

OP

J8 MO

P

R18

1kR18

1k

C18

33nF

C18

33nF

C11

10nF

C11

10nF

1J2

7LE

DJ2

7LE

D

C8

10nF

C8

10nF

C21

33nF

C21

33nF

R3

470

R3

470

R19

1kR19

1k

R5

1k5

R5

1k5

R1 2

220

R1 2

220

R2 5

1kR

2 51k

C2

100n

FC

210

0nF

1J9 G

ND

J9 GN

D

R1 1

1MR

1 11M

1J6 M

ON

J6 MO

N

C4

100n

FC

410

0nF

R2 1

1.8

R2 1

1.8

1 2

578 634

U1

HC

PL2

531,

(H

CP

L263

0)U

1H

CP

L253

1, (

HC

PL2

630)

R22

1.8

R22

1.8

C14

15pF

C14

15pF

R2 0

1.8

R2 0

1.8

R28

470k

R28

470k

21

D4

1N41

48

D4

1N41

48

C12

100n

FC

1210

0nF

C6

100n

FC

610

0nF

R13

330

R13

330

R14

330

R14

330

1010

SY

N8

SC

L6

SD

A4

SB

S2

SB

G9

VD

DA

7S

CS

5G

ND

3V

OT

P1

J46

SP

IJ4

6S

PI

R23

1.8

R23

1.8

12 3

Q1

BC

857B

Q1

BC

857B

21

D2

1N41

48

D2

1N41

48

1 2

578 634

U3

HC

PL2

531,

(H

CP

L263

0)U

3H

CP

L253

1, (

HC

PL2

630)

R2 4

1kR

2 41k

R2

1kR2

1k

R10

1k5

R10

1k5

1 2

578 634

U4

HC

PL2

531,

(H

CP

L263

0)U

4H

CP

L253

1, (

HC

PL2

630)

C20

33nF

C20

33nF

123JP1

MA

INS

JP1

MA

INS

C19

33nF

C19

33nF

1

Page 14: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Hardware Description High-End Meter Demonstration Board

14/47

Figure 5. PLM & Power supply section schematic

1

P N

AT

OP

2

AT

OP

1

RA

I

RA

IV

SE

NS

E

VS

EN

SE

CL

CL

C_M

I NU

S

RX

FO

C_O

UT

C_P

LUS

C_M

INU

S

C_P

LUS

C_O

UT

RX

FO

CP

U_P

1.5

CP

U_P

1 .6

CP

U_P

1.4

CP

U_P

C7

CP

U_P

C2

CP

U_P

B0

CP

U_P

B1

CP

U_P

B2

CP

U_P

B3

CP

U_P

B4

P N

AT

OP

1

AT

OP

2

P10

V

P10

V

5V

3.3V

5V

P5V

5V

5V

5V_7

805

P10

V

5V

5V_7

805

5V_S

T75

38

5V_S

T75

38

5V5V

_ST

7538

3.3V

P10

V

CP

U_P

B3

CP

U_P

B0

CP

U_P

C7

CP

U_P

B1

CP

U_P

1 .5

CP

U_P

C2

CP

U_P

1.6

CP

U_P

B4

CP

U_P

1.4

CP

U_P

B2

S_M

ET

ER

Pha

se

Neu

tral

Titl

e

Siz

eD

ocum

ent N

umbe

rR

ev

Dat

ehe

etof

<D

oc>

<od

e>

Hig

h-E

nd M

eter

Dem

onst

ratio

n B

oard

- P

LM &

Pow

er S

uppl

y

A3

34

Thu

rsda

y, A

pril

21, 20

05

Titl

e

Siz

eD

ocum

ent N

umbe

rR

ev

Dat

ehe

etof

<D

oc>

<od

e>

Hig

h-E

nd M

eter

Dem

onst

ratio

n B

oard

- P

LM &

Pow

er S

uppl

y

A3

34

Thu

rsd

, Apr

Titl

e

Siz

eD

ocum

ent N

umbe

rR

ev

Dat

e:

She

etof

<D

oc>

<R

evC

ode>

Hig

h-E

nd M

eter

Dem

onst

ratio

n B

oard

- P

LM &

Pow

er S

uppl

y

A3

34

Thu

rsd

, Apr

Tx/

Rx

filte

rs fo

r 82

.05k

Hz

R56

10M

R56

10M

R64

2k2

R64

2k2

C56

150n

FC

5615

0nF

21

D22

P6K

E6V

8CA

D22

P6K

E6V

8CA

1J2

4T

OU

TJ2

4T

OU

T

1 2

C38

470u

F/1

6VC

3847

0uF

/16V

1J2

5G

ND

J25

GN

D

R61

10k

R61

10k

R52

9.1k

R52

9.1k

GN

D6

VC

OM

P4

VF

B5

VC

C3

DRAIN1

GN

D7

GN

D8

U11

L659

0

U11

L659

0

1J2

2R

EG

OK

J22

RE

GO

K

R57

2kR57

2k

1 2

C35

4.7u

F/4

50V

C35

4.7u

F/4

50V

R50

470

R50

470

21

D21

P6K

E6V

8AD

21P

6KE

6V8A

1J3

2G

ND

J32

GN

D

Y2

16M

Hz

Y2

16M

Hz

1 2

C42

22uF

/25V

C42

22uF

/25V

2 1

3

D20

ES

DA

6V1L

D20

ES

DA

6V1L

1J1

9B

UJ1

9B

U

C41

100n

FC

4110

0nF

21

D13

ST

TA

106U

D13

ST

TA

106U

L4 10uH

L4 10uH

R51

100k

R51

100k

C44

100n

FC

4410

0nF

1J1

8C

D_P

DJ1

8C

D_P

D

R54

1kR

541k

C53

150n

F/2

20V

X2

C53

150n

F/2

20V

X2

1 2

C68

10uF

/16V

C68

10uF

/16V

C46

100p

FC

4610

0pF

C58

100p

FC

5810

0pF

1J1

6P

GJ1

6P

G

CD

/ PD

1

DV

SS

2

RxD

3

Rx/

Tx

4

TxD

5

GN

D6

TIM

EO

UT

7

CLR

T8

BU

9

DV

DD

10

MC

LK11

RSTO 12

NC 13

WD 14

ZCOUT 15

ZCIN 16

NC 17

DVSS 18

ATOP1 19

AVSS 20

ATOP2 21

PAVCC 22

CL

23A

TO

24A

VS

S25

XO

UT

26X

IN27

AV

DD

28V

SE

NS

E29

TE

ST

IN30

RX

FO

31R

AI

32V

DC

33

NC34TEST35

REG_OK36CMINUS37

CPLUS38NC39

C_OUT40GND41

PG42REG/DATA43

NC44

U13

ST

7538

U13

ST

7538

R65

4k7

R65

4k7

R59

1kR59

1k

C6 9

10nF

C6 9

10nF

L10

10uH

L10

10uH

1J2

3R

EG

/DA

TA

J23

RE

G/D

AT

A

2 1

D23

P6K

E6V

8AD

23P

6KE

6V8A

C57

10nF

C57

10nF

R60

10k

R60

10k

1J2

9+

10V

J29

+10

V

L7 220u

HL7 22

0uH

R62

1kR62

1k

VIN

1V

OU

T3

4GND

U10

78M

05

U10

78M

05

L31m

HL3

1mH

21

D25

1N41

48

D25

1N41

48

C55

2.2u

F

C55

2.2u

F

2 1

D14

GR

EE

ND

14G

RE

EN

R58

7k5

R58

7k5

2 1

D12

BZ

W06

-154

(17

1)D

12B

ZW

06-1

54 (

171)

R46

15/2

WR

4615

/2W

12

J12

PLM

_P -

PJ1

2P

LM_P

- P

C62

10nF

C62

10nF

1 2

C39

470u

F/1

6VC

3947

0uF

/16V

16

34

T3

K40

96-X

046

T3

K40

96-X

046

R55

15R55

15

R47

1k2

R47

1k2

L610

uHL6

10uH

21

D19

1N41

48

D19

1N41

48

C40

100n

FC

4010

0nF

C61

82pF

C61

82pF

1 2

C36

4.7u

, 450

VC

364.

7u, 4

50V

1 2

C88

100u

F/6

.3V

C88

100u

F/6

.3V

1 25310 97 6

4

T2

69E

16H

T2

69E

16H

21

D11

ST

PS

160U

D11

ST

PS

160U

C65

100n

FC

6510

0nF

L8 22uH

L8 22uH

C51

10nF

C51

10nF

C37

100n

FC

3710

0nF

C48

220n

FC

4822

0nF

1 2

3 4

F1

F25

0mA

F1

F25

0mA

1J2

1R

xTx

J21

RxT

x

1J2

0C

LRT

J20

CLR

T

L9 33uH

L9 33uH

C47

2.2n

F/Y

1

C47

2.2n

F/Y

1

C52

18nF

C52

18nF

1 2

C64

10uF

/6.3

VC

6410

uF/6

.3V

12

J13

PLM

_N -

NJ1

3P

LM_N

- N

21

D24

SM

6T6V

8A/2

20A

D24

SM

6T6V

8A/2

20A

L522

0uH

L522

0uH

R63

100

R63

100

C60

5.6n

F

C60

5.6n

F

1J1

7T

xDJ1

7T

xD

C70

100n

FC

7010

0nF2

1D

15

1N41

48

D15

1N41

48

C67

18pF

C67

18pF

C54

2.2u

F

C54

2.2u

F

1 2 3

J14

PW

R S

EL

J14

PW

R S

EL

1J1

5R

xDJ1

5R

xD

C50

100n

FC

5010

0nF

R5 3

1.5k

R5 3

1.5k

1 2

C43

100u

F/1

0VC

4310

0uF

/10V

C87

2.2n

F/Y

1

C87

2.2n

F/Y

1

C34

47nF

/400

V~

C34

47nF

/400

V~

C49

1uF

C49

1uF

R48

10uH

or

33

R48

10uH

or

33

C45

100n

FC

4510

0nF

1 2

C63

10uF

/6.3

VC

6310

uF/6

.3V

21

D16

1N41

48

D16

1N41

48V

IN1

VO

UT

3

4GND

U12

LF33

U12

LF33

1

4

3

2-

+

D10

B38

0C15

00

-+

D10

B38

0C15

00

C5 9

100n

FC

5 910

0nF

1 5

10 6

T1

2x10

mH

T1

2x10

mH

2 1

D18

GR

EE

ND

18G

RE

EN

R49

22R

4922

1 2

C66

10uF

/6.3

VC

6610

uF/6

.3V

Page 15: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Hardware Description

15/47

Figure 6. Microcontroller section schematic

1

XT

AL2

XT

AL2

XT

AL1

XT

AL1

XT

AL2

XT

AL2

XT

AL2

XT

AL1

CP

U_T

ER

R

CP

U_T

DI

CP

U_T

MS

CP

U_T

ST

AT

CP

U_T

CK

CP

U_T

DO

CP

U_T

MS

CP

U_T

CK

CP

U_T

ST

AT

CP

U_T

ER

R

CP

U_T

DI

CP

U_T

DO

CPU_P4.0

CPU_P4.1CPU_P4.2

CP

U_P

3.5

CPU_P3.4

CP

U_P

1.0

CP

U_C

NT

RL

CP

U_C

NT

RL

CP

U_C

NT

RL

CP

U_C

NT

RL

CP

U_C

NT

RL

CPU_RESET

CP

U_R

ES

ET

CP

U_R

ES

ET

CP

U_P

3 .4

CP

U_P

3.5

CP

U_P

1 .1

CP

U_P

1.0

CP

U_P

1.1

CP

U_P

4.0

CP

U_P

4.1

CP

U_P

4.2

3.3V5V

V_M

CU

V_M

CU

5V5V

V_M

CU

V_M

CU

5V5V

5V

5V

5V

5V

5V

5V

CPU_PA7CPU_PA6

CPU_PA5

CPU_PA4

CPU_PA3

CPU_PA2

CPU_PA1CPU_PA0

CPU_PB5

CPU_PB6CPU_PB7

CP

U_U

2RxD

CP

U_U

2TxD

CPU_U1TxD

CPU_U1RxD

CP

U_I

2CS

CL

CP

U_I

2CS

DA

CPU_PB0

CPU_PB1

CPU_PB2

CPU_PB3CPU_PB4

CP

U_P

1.4

CP

U_P

1.5

CPU_P1.6

CP

U_P

C2

CP

U_P

C7

CPU_INT0

CP

U_I

NT

1

M41

ST

87_R

ES

ET

CPU_P4.3

CPU_P4.4

CPU_P4.5

CP

U_P

4.6

CP

U_P

4.7

S_METER

CP

U_P

D2

CP

U_P

D1

Titl

e

Siz

eD

ocum

ent N

umbe

rR

ev

Dat

e:

She

etof

<D

oc>

<

Hig

h-E

nd M

eter

Dem

onst

ratio

n B

oard

- u

PS

D

A3

44

Thu

rsda

y, A

pril

Titl

e

Siz

eD

ocum

ent N

umbe

rR

ev

Dat

ehe

etof

<D

oc>

<

Hig

h-E

nd M

eter

Dem

onst

ratio

n B

oard

- u

PS

D

A3

44

Thu

rsda

y, A

pr

Titl

e

Siz

eD

ocum

ent N

umbe

rR

ev

Dat

ehe

etof

<D

oc>

<R

evC

ode>

Hig

h-E

nd M

eter

Dem

onst

ratio

n B

oard

- u

PS

D

A3

44

Thu

rsda

y, A

pr21

, 20

05

R68

10k

R68

10k

PD

21

P3.

3/T

G1/

EX

INT

12

PD

13

ALE

4

PC

75

JTA

G T

DO

6

JTA

G T

DI

7

DE

BU

G8

PC

4/T

ER

R_

9

3.3V

Vcc

10

NC

11

Vdd

12

GN

D13

PC

314

PC

215

JTA

G T

CK

16

NC

17

P4.

718

P4.

619

JTA

G T

MS

20

PA7 21

PA6 22

P4.5 23

PA5 24

P4.4 25

PA4 26

P4.3 27

PA3 28

GND 29

P4.2 30

P4.1 31

PA2 32

P4.0 33

PA1 34

PA0 35

MCU AD0 36

MCU AD1 37

MCU AD2 38

MCU AD3 39

P3.4 40

PB080

P3.2/EXINT079

PB178

P3.177

PB276

P3.075

PB374

PB473

3.3V Vcc72

PB571

Vref70

GND69

RESET_IN_68

PB667

PB766

RD_65

P1.764

PSEN_63

WR_62

P1.661

P1.

560

P1.

459

P1.

358

MC

U A

1157

P1.

256

MC

U A

1055

P1 .

154

MC

U A

953

P1.

052

MC

U A

851

Vdd

50

XT

AL2

49

XT

AL1

48

MC

U A

D7

47

P3.

746

MC

U A

D6

45

P3.

644

MC

U A

D5

43

P3.

542

MC

U A

D4

41

U15

uPS

D33

xx_8

0_si

mpl

e

U15

uPS

D33

xx_8

0_si

mpl

e

R72

10k

R72

10k

C78

100n

FC

7810

0nF

C83

220n

FC

8322

0nF

R78

220

(200

)

R78

220

(200

)

C77

10nF

C77

10nF

1J3

7P

3.5

J37

P3.

5

C75

100n

FC

7510

0nF

2 1

D27

DE

BU

GD

27D

EB

UG

1 2

J43

CO

N2

J43

CO

N2

1J4

2P

4.2

J42

P4.

2

C71

22pF

C71

22pF

1J3

6P

3.4

J36

P3.

4

2 1

D26

JEN

D26

JEN

C84

10nF

C84

10nF

R70

10k

R70

10k

R67

0R

670

Y3

40M

Hz

Y3

40M

Hz

R81

470

R81

470

L12

10uH

L12

10uH

1 2 3

J44

RS

T S

EL

J44

RS

T S

EL

1J4

1P

4.1

J41

P4.

1

TE

RR

14

GN

D12

GN

D10

RS

T8

TS

TA

T6

CN

TL

4

TR

ST

2

TD

O13

TC

K11

TM

S9

VC

C7

TD

I5

GN

D3

JEN

1

J34

FLA

SH

LIN

KJ3

4F

LAS

H L

INK

C82

10nF

C82

10nF

21

D28

1N41

48D

281N

4148

1J3

5V

ref

J35

Vre

f

R66

0R

660

R73

10k

R73

10k

C73

10nF

C73

10nF

1J3

9P

1.1

J39

P1.

1

1 2

C79

10uF

/6.3

VC

7910

uF/6

.3V

C74

100n

FC

7410

0nF

1J4

0P

4.0

J40

P4.

0

1J4

5G

ND

J45

GN

D

C81

220n

FC

8122

0nF

R80

470

R80

470

R69

10k

R69

10k

R71

10k

R71

10k

R82

4k7

R82

4k7

R83

10k

R83

10k

1J3

8P

1.0

J38

P1.

0

C72

22pF

C72

22pF

OE

/ST

1

GN

D2

OU

T3

Vdd

4

U14

SG

-800

2CA

U14

SG

-800

2CA

C80

10nF

C80

10nF

1 2

C76

10uF

/6.3

VC

7610

uF/6

.3V

1 4

2 3

SW

5R

ES

ET

SW

5R

ES

ET

L11

2.2u

H

L11

2.2u

H

R74

10k

R74

10k

1 2 3

J33

CLK

SE

L

J33

CLK

SE

L

Page 16: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Hardware Description High-End Meter Demonstration Board

16/47

Figure 7. Peripheral section schematic

1

CP

U_ I

2CS

DA

CP

U_I

2CS

CL

M41

ST

87_V

out

3.3V M

41S

T87

_Vou

tM

41S

T87

_Vou

t

5V

5V

5V

5V

5V5V

5V

5V5V

5V

5V

5V5V

P10

V

CP

U_P

A7

CP

U_P

A6

CP

U_P

A5

CP

U_P

A4

CP

U_P

A3

CP

U_P

A2

CP

U_P

A1

CP

U_P

A0

CP

U_P

B5

CP

U_P

B6

CP

U_P

B7

CP

U_U

1TxD

CP

U_U

1RxD

CP

U_U

2TxD

CP

U_U

2RxD

CP

U_I

2CS

CL

CP

U_I

2CS

DA

CP

U_I

NT

1

CP

U_I

NT

0

M41

ST

87_R

ES

ET

CP

U_P

D1

CP

U_P

D2

Titl

e

Siz

eD

ocum

ent N

umbe

rR

ev

Dat

e:

She

etof

<D

oc>

<

Hig

h-E

nd M

eter

Dem

onst

ratio

n B

oard

- P

erip

hera

ls

A3

24

Thu

rsda

y, A

pril

21,

2005

Titl

e

Siz

eD

ocum

ent N

umbe

rR

ev

Dat

ehe

etof

<D

oc>

<

Hig

h-E

nd M

eter

Dem

onst

ratio

n B

oard

- P

erip

hera

ls

A3

24

Thu

rsda

y, A

pr

Titl

e

Siz

eD

ocum

ent N

umbe

rR

ev

Dat

ehe

etof

<D

oc>

<R

evC

ode>

Hig

h-E

nd M

eter

Dem

onst

ratio

n B

oard

- P

erip

hera

ls

A3

24

Thu

rsda

y, A

pr

thre

shol

d 7.

5V

pow

er-f

ail

R31

4k7

R31

4k7

C22

100n

FC

2210

0nF

1 2

C85

5F/2

.3V

C85

5F/2

.3V

R40

470

R40

470

R33

7k5

R33

7k5

R32

4k7

R32

4k7

C32

100n

FC

3210

0nF

SD

A5

SC

L6

Vcc8 Vss 4

WC

7

E0

1

E1

2

E2

3

U7 M

2451

2

U7 M

2451

2

R45

470

R45

470

C33

100n

FC

3310

0nF

R29

4k7

R29

4k7

R3 6

?R3 6

?

TxD

7

VC

C4

RxD

3

IRE

D G

ND

2

IRE

D G

ND

1

GN

D5

GN

D6

SD

8

U8

IrDA

U8

IrDA

VCC2 GND 1

D0

7

D1

8

D2

9

D3

10

D4

11

D5

12

D6

13

D7

14

VL

3

RS

4

R/W

5

E6

U9

MC

1602

E-T

RV

U9

MC

1602

E-T

RV

R42

4k7

R42

4k7

R38

10R38

10

R3 7

330

R3 7

330

R34

?R

34?

1 2

C86

5F/2

.3V

C86

5F/2

.3V

C1+

1

V+

2

C1-

3

C2+

4

C2-

5

V-

6

T2O

UT

7

R2I

N8

R2O

UT

9T

2IN

10T

1IN

11R

1OU

T12

R1I

N13

T1O

UT

14G

ND

15V

CC

16

U6

ST

232

U6

ST

232

2 1

D9

LED

TW

OD

9LE

D T

WO

VCC28

VB

AT

15

VSS 14

F32

k21

TP

1IN

20

TP

2IN

24T

PC

LR18

VO

UT

25P

FI1

23

PF

I213

WD

I9

RS

TIN

110

RS

TIN

211

EX

27

SD

A17

SC

L22

PF

O1

12

PF

O2

7

SQ

W/F

T8

IRQ

/OU

T26

EC

ON

16

RS

T19

DU

1

DU

2

U5

M41

ST

87U

5M

41S

T87

R43

4k7

R43

4k7

1 4

2 3

SW

3K

EY

TW

OS

W3

KE

Y T

WO

12

34

56

78

J11

LED

S &

BT

NS

J11

LED

S &

BT

NS

2 1

D8

LED

ON

ED

8LE

D O

NE

R30

4k7

R30

4k7

R3 5

1k5

R3 5

1k5

1 2

C24

1uF

/16VC24

1uF

/16V

12

C23

1uF

/16VC23

1uF

/16V 1 2

C25

1uF

/16VC25

1uF

/16V

1 2

C26

1uF

/16VC26

1uF

/16V

12

C27

1uF

/16VC27

1uF

/16V

12

J10

PF

O2

- IN

T0

J10

PF

O2

- IN

T0

R39

5R39

5

1 4

2 3

SW

4K

EY

ON

ES

W4

KE

Y O

NE

21 3

54 6S

W2

SE

NS

OR

TW

OS

W2

SE

NS

OR

TW

O

21

D7

1N41

48D

71N

4148

1 2

C31

10uF

/16V

C31

10uF

/16V

21 3

54 6S

W1

SE

NS

OR

ON

ES

W1

SE

NS

OR

ON

E

C30

100n

FC

3010

0nF

R44

4k7

R44

4k7

C29

100n

FC

2910

0nF

BT

1B

AT

TE

RY

BT

1B

AT

TE

RY

1 2

C89

0.22

F/5

.5V

C89

0.22

F/5

.5V

R41

470

R41

470

594837261P1

UA

RT

P1

UA

RT

Page 17: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Hardware Description

17/47

Table 3. Bill of materials

ItemQuantity

Reference Part Part order code Supplier Comment

1 1 U2 STPM01 STPM01FTR STMicroelectronics

2 1 U5 M41ST87 M41ST87YMX6 STMicroelectronics

3 1 U7 M24512 M24512-W6MW STMicroelectronics

4 1 U6 ST232 ST3232BD STMicroelectronics

5 1 U11 L6590 L6590N STMicroelectronics

6 1 U13 ST7538 ST7538P STMicroelectronics

7 1 U15 µPSD33xx_80_simple

µPSD3334D-40U6

STMicroelectronics

8 1 U10 78M05 L78M05ABDT STMicroelectronics

9 1 U12 LF33 LF33ABDT STMicroelectronics

10 1 D11 STPS160U STPS160U STMicroelectronics

11 1 D12 BZW06-154 (171)

BZW06-171 STMicroelectronics

12 1 D13 STTA106U STTA106U STMicroelectronics

13 2 D21, D23 P6KE6V8A P6KE6V8A STMicroelectronics

14 1 D24 SM6T6V8A/220A

SM6T6V8A STMicroelectronics

15 1 D22 P6KE6V8CA P6KE6V8CA STMicroelectronics

16 2 L1, L2 E4622-X503 T60404-E4622-X503

Vacuumschmelze

17 1 T3 K4096-X046 T60403-K4096-X046

Vacuumschmelze

18 1 T2 69E16H 69E16H1C Radiohm

19 1 T1 2x10mH 42V15 Radiohm

20 1 L9 33µHMSS6122-

333MXCoilcraft

21 1 L7 220µHMOS6020-

224MXCoilcraft

22 1 L8 22µHB82464-G4223-

MEPCOS

23 1 C89 0.22F/5.5V 0.22F/5.5VROT-HSware spol. s

r.o.303-6789 (Farnell)

24 2 C47, C87 2.2nF/Y1 2.2nF/X1Y1ROT-HSware spol. s

r.o.353-1995 (Farnell)

25 1 C43 100µF/10V100µF/10V ultra low impedance

ROT-HSware spol. s r.o.

768-078 (Farnell)

Page 18: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Hardware Description High-End Meter Demonstration Board

18/47

26 2 C38, C39 470µF/16V470µF/16V ultra low impedance

ROT-HSware spol. s r.o.

769-125 (Farnell)

271

Y3 40MHz KR 40.000000 EF 16 HC49/U3

ECOM s.r.o. 42196

28 1 U9 MC1602E-TRVEL1602A-

RNIBWElatec s.r.o.

29 1 U1 HCPL2531, (HCPL2630)

HCPL-2630 GM electronic 523-024

30 2 U3, U4 HCPL2531, (HCPL2630)

HCPL-2531 GM electronic 523-021

31 1 U8 IrDA TFDU4100-TR3 GM electronic 968-005

32 1 F1 F250mA SHH1 ORIG GM electronic 829-050

33 2 SW1,SW2 SENSOR TWO P-TURBO GM electronic 631-154

34 3SW3,SW4,S

W5RESET P-B1720 GM electronic 630-008

35 1 P1 UART CAN 9 V 90 GM electronic 801-037; CANNON 9, male, 90°

36 19

J7, J9,J 12, J13, J14, J29, J32, J33, J35, J36, J37, J38, J39, J40, J41, J42, J43, J44, J45

+10V S1G20 GM electronic 832-017

37 2 J11, J46 SPI S2G20 GM electronic 832-023

38 1 R67 0 RR-0R SMD GM electronic 901-170; size 0805

39 4 R20, R21, R22, R23

1.8 RR-1R8 SMD GM electronic 901-049; size 0805

40 1 R12 220 RR-220R SMD GM electronic 901-055; size 0805

41 5 R1, R13, R14, R15,

R37

330 RR-330R SMD GM electronic 901-083; size 0805

42 7 R3, R40, R41, R45, R50, R80,

R81

470 RR-470R SMD GM electronic 901-111; size 0805

43 1 R7 680 RR-680R SMD GM electronic 901-138; size 0805

44 1 R63 100 RR-100R SMD GM electronic 901-002; size 0805

Table 3. Bill of materials (continued)

ItemQuantity

Reference Part Part order code Supplier Comment

Page 19: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Hardware Description

19/47

45 10R2, R16, R17, R18, R19, R24,

R25, R54, R59, R62

1k RR-1K SMD GM electronic 901-029; size 0805

46 1 R47 1k2 RR-1K2 SMD GM electronic 901-031; size 0805

47 4 R5, R6, R10, R35

1k5 RR-1K5 SMD GM electronic 901-033; size 0805

48 1 R57 2k RR-2K SMD GM electronic 901-066; size 0805

49 2 R8, R64 2k2 RR-2K2 SMD GM electronic 901-067; size 0805

50 9R29, R30, R31, R32, R42, R43,R44, R65,

R82

4k7 RR-4K7 SMD GM electronic 901-115; size 0805

51 1 R4 6k8 RR-6K8 SMD GM electronic 901-141; size 0805

52 2 R33, R58 7k5 RR-7K5 SMD GM electronic 901-150; size 0805

53 10 R60, R61, R68, R69, R70, R71,

R72, R73, R74, R83

10k RR-10K SMD GM electronic 901-003; size 0805

54 1 R9 47k RR-47K SMD GM electronic 901-112; size 0805

55 1 R11 1M RR-1M SMD GM electronic 901-036; size 0805

56 1 R39 5 RR+5R1 SMD GM electronic 900-137; size 1206

57 1 R38 10 RR+10R SMD GM electronic 900-007; size 1206

58 3R26, R27,

R28470k RR+470K SMD GM electronic 900-114; size 1206

59 2 C13,C14 15pF CK-15P NPO GM electronic 906-078; size 0805

60 1 C67 18pF CK-18P NPO GM electronic 906-010; size 0805

61 2 C71, C72 22pF CK-22P NPO GM electronic 906-079; size 0805

62 1 C61 82pF CK-82P NPO GM electronic 906-040; size 0805

63 1 C58 100pF CK-100P NPO GM electronic 906-083; size 0805

64 1 C60 5.6nF CK-5N6 X7R GM electronic 906-101; size 0805

65 12C8, C10, C11, C51, C57, C62,

C69, C73, C77, C80, C82, C84

10nF CK-10N X7R GM electronic 906-089; size 0805

Table 3. Bill of materials (continued)

ItemQuantity

Reference Part Part order code Supplier Comment

Page 20: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Hardware Description High-End Meter Demonstration Board

20/47

66 1 C52 18nF CK-18N X7R GM electronic 906-103; size 0805

67 6 C16, C17, C18, C19, C20, C21

33nF CK-33N X7R GM electronic 906-092; size 0805

68 21

C1, C2, C3, C4, C6, C12,

C15,C22, C29, C30, C32, C33, C40,

C41, C44, C45, C59, C65, C70,

C74, C78

100nF CK-100N X7R GM electronic 906-096; size 0805

69 5 C5, C7, C9, C81, C83

220nF CK-220N Y5V GM electronic 906-016; size 0805

70 1 R55 15 RR 15R GM electronic 110-029

71 1 R49 22 RR 22R GM electronic 110-033

72 1 R53 1.5k RR 1K5 GM electronic 110-077

73 1 R52 9.1k RR 9K1 GM electronic 110-096

74 1 R51 100k RR 100K GM electronic 110-121

75 1 R56 10M RR 10M GM electronic 110-169

76 1 R46 15/2W RR W2 E015 GM electronic 114-042; 2W

77 1 C46 100pF CK 100P/500V GM electronic 120-026

78 1 C50 100nF CK 100N/63V GM electronic 120-060

79 1 C48 220nF CK 220N/63V GM electronic 120-062

80 1 C49 1µF CK 1M/50V GM electronic 120-249

81 1 C37 100nFMKS2-

100N/63VGM electronic 121-184

82 1 C56 150nFMKS2-

150N/63VGM electronic 121-238; low ESR

83 2 C54, C55 2.2µF MKS2-2M2/50V GM electronic 121-361; low ESR

84 2 C35, C36 4.7µF, 450V E4M7/450V GM electronic 123-039

85 1 C42 22µF/25V E22M/25V GM electronic 123-069

86 5 C23, C24, C25, C26,

C27

1µF/16V CTS 1M/16V A GM electronic 907-029

Table 3. Bill of materials (continued)

ItemQuantity

Reference Part Part order code Supplier Comment

Page 21: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Hardware Description

21/47

87 7 C31, C63, C64, C66, C68, C76,

C79

10µF/6.3V CTS 10M/16V A GM electronic 907-112

88 1 C88 100µF/6.3V CTS 100M/6.3 D GM electronic 907-090

89 1 C34 47nF/400V~ CFAC047N GM electronic121-275; 275V AC X2

90 1 C53 150nF/220V X2 CFAC150N GM electronic121-270; 275V AC X2

91 1 L5 220µH TL.220µH GM electronic 611-017

92 2 L4, L6 10µH TL.10µH GM electronic 611-013

93 1 R48 10µH or 33 TL.10µH-M GM electronic 611-043

94 1 L10 10µH TL.10µH SMD GM electronic 965-001

95 1 L3 1mH TL.1000µH GM electronic 611-011

96 1 J34 FLASH LINK MLW14G GM electronic 800-046

97 1 JP1 MAINS ARK825A/3 GM electronic 821-126

98 1 Y1 4.194304MHz QM 4.194MHZ GM electronic 131-078

99 1 Y2 16MHz QM 16.000MHZ GM electronic 131-075

100 2 D14, D18 GREEN LED 1206 GREEN

GM electronic 960-021

101 2 D26, D27 DEBUG LED 1206 RED GM electronic 960-020

102 3 D5, D8, D9 LED TWO LED 1206 YELLOW

GM electronic 960-022

103 1 D10 B380C1500 B380C1500 GM electronic 227-012

104 11 D1, D2, D3, D4, D6, D7, D15, D16, D19, D25,

D28

1N4148 1N4148 SMD GM electronic 917-001

105 2 Q1, Q2 BC857B BC857B GM electronic 912-021

106 1 L11 2.2µHJCI-2012 2.20µH

GES-ELECTRONICS

107 1 L12 10µHJCI-2012 10.0µH

GES-ELECTRONICS

Table 3. Bill of materials (continued)

ItemQuantity

Reference Part Part order code Supplier Comment

Page 22: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Hardware Description High-End Meter Demonstration Board

22/47

108 26

BT1, J6, J8, J10, U14, J15, J16,J

17, J18, J19, J20, D20, J21, J22, J23, J24, J25, J26, J27, R34, R36, R66, C75, R78, C85, C86

(not assembled) — (not assembled)

Table 3. Bill of materials (continued)

ItemQuantity

Reference Part Part order code Supplier Comment

Page 23: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Software Description

23/47

6 Software Description

The PC software included with the Power Meter Board displays all the measured data, enables access to the internal registers and configuration bits of the embedded components (STPM01, RTC, ST7538) and demonstrates the power line communication, the automatic meter reading functions and the loading curve transfer.

The source code files are supplied on the included CD. The firmware was developed using Keil uVision2 V2.37 (C language) and the software was developed with Microsoft Development Environment 2003 Version 7.1.3088 (Visual C++).

To set up the communication, run the software, choose the COM port that the meter board is connected to, and click on the Connect button. If the COM port is properly installed and no other application is using it, the Connect button stays pressed.

6.1 Main software windowThe main PC software window (Figure 8) displays the active, reactive, apparent and active base band energy data, voltage and current rms values, mains frequency and meter status bits. If you click the Update button, these values will be updated approximately every second. To directly access the board connected to the COM port, do not select Concentrator mode. This mode is only for power line communication.

Figure 8. Main window

Page 24: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Software Description High-End Meter Demonstration Board

24/47

6.2 Component registers

6.2.1 STPM01

This dialog box shows all the configuration and mode bits of the STPM01. You can modify them and write them to the circuit by clicking the OK button. The meter will change its operation immediately in accordance with the new settings. For example, you use this dialog box to easily observe the effect of the calibration bits.

Figure 9. STPM01 configuration bits

Note: A good tip is to leave the RD bit set so that the STPM01 works with the corresponding OTP shadow latches and in this mode test the other configuration bits.

To get complete definition of each bit refer to the STPM01 Datasheet.

Page 25: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Software Description

25/47

6.2.2 M41ST87

The M41ST87 dialog box displays the content of the RTC registers and configuration bits. You can edit the field with new values. when you click the OK button they are written to the circuit. This dialog box allows you to easily test the states of the tamper push-button sensors.

Figure 10. M41ST87 registers

Page 26: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Software Description High-End Meter Demonstration Board

26/47

Figure 11. M41ST87 configuration bits

Note: To start running the RTC, deselect the oscillator stop bit (ST), power down time-stamp halt bit (HT) and tamper event time-stamp enable bits (TEB1, TEB2).

For complete description of the M41ST87 memory refer to the product datasheet.

Page 27: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Software Description

27/47

6.2.3 ST7538

The ST7538 Control Register dialog box (Figure 12) displays the physical parameters of the power line communication and the other features of the ST7538 and allows you to change them. You can adjust the link layer parameters using the power line communication (PLC) settings dialog box (Figure 14).

Figure 12. ST7538 control register

For a more detailed and complete description of the ST7538 device refer to the product datasheet.

Page 28: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Software Description High-End Meter Demonstration Board

28/47

6.3 Power line communicationFigure 13 shows power line communication (PLC) connection scheme. Up to 65535 demonstration boards can be connected to the network. The boards are identified by their own unique Meter address numbers. To test the communication, set a different address for each board in the network (see Figure 27), connect your PC to any of the boards using the serial cable, specify the destination address of the board you want to communicate with in the PLC dialog box (Figure 14) and select Concentrator mode in the main window (Figure 8). Then any requested operation will be performed with the remote board.

Figure 13. PLC connection scheme

Figure 14. PLC settings

Note: The other fields (DOA, CTRL, NPCI) of the power line frame are not checked by the firmware.

Meter 1

Meter 2

Meter 3

Meter 65535

MAINS

High-End Meter

software

RS232

Load 1

Load 2

Load 3

Load 65535

Page 29: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Software Description

29/47

6.3.1 Frame structure

This chapter briefly presents the frame structures and error correction scheme used in this meter PLC demonstration. The implementation conforms to the CENELEC rules.

Figure 15 shows the structure of a power line frame. It contains the following fields:

● Preamble. This field is used for training and synchronizing the receiver modem. It simply consists of a sequence of ‘0’s and ‘1’s.

● Header. This field marks the start of the useful frame data. Its value is very different from the preamble (0x9B58).

● Domain address (DOA) (1).

● Control field (CTRL) (1).

● Network protocol control information (NPCI) (1).

● Source address (SA). The address of the frame transmitter.

● Destination address (DA). The address of the frame receiver.

● Application data. This field contains the transported data.

● Frame check sequence (FCS). This field contains cyclic redundancy check (CRC) value generated using the polynomial x16 + x15 + x2 + 1 from all the fields in the frame (excluding preamble, header and FCS itself). It enables a corrupted frame to be identified and discarded.

Note: 1 These fields are transferred but are not checked either by the transmitter or by the receiver.

Figure 15. Frame structure

Figure 16 shows the structure of an acknowledgement frame. It contains the following fields:

● Preamble. The same field as in the data frame.

● Header. This field has the same purpose as in the data frame but its value is 0xE958.

● Frame check sequence (FCS). This field repeats the FCS field of the transmitted data frame.

Figure 16. Acknowledgement frame structure

All bytes starting from the domain address field including the FCS field are transmitted with a forward error correction (FEC) scheme that adds a further 6 bits to every byte (see Figure 17). These additional fields are calculated through the use of the generator polynomial x6 + x5 + x4 + x3 + 1 and are complemented so that a byte containing 0 is encoded with a non-null value. This redundant information enables correction of up to three consecutive erroneous bits.

Preamble Header DOA CTRL NPCI SA DA Application data FCS

2 bytes 2 bytes 2 bytes 1 byte 1 byte 2 bytes 2 bytes 64 bytes 2 bytes

Preamble FCS

2 bytes 2 bytes

Header

2 bytes

Page 30: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Software Description High-End Meter Demonstration Board

30/47

Figure 17. Forward error correction scheme

6.4 Automatic meter readingThere is a circular buffer defined in the meter EEPROM. The measured values (i.e. active energy, reactive energy, active power and reactive power) are stored in this buffer every 5 seconds. To read this data, press the "AMR" button. You can interrupt the reading by pressing the "Stop" button at any moment. After reading, the data are automatically displayed on your monitor (see Figure 18).

Figure 18. AMR graph

1. The read data are displayed from the zero address of the circular buffer. This means that the oldest records are not always displayed on the left side of the graph. To avoid this problem and make the new records start from address zero, click on the Reset button in the main software window.

2. The data are stored only if the RTC is running. Therefore you should remove all tamper conditions (reset bits HT, TEB1, TEB2) and set the correct time and date.

Preamble Header Data Fec Data Fec

16 bits 16 bits 8 bits 6 bits 8 bits 6 bits

etc.

Page 31: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Firmware description

31/47

7 Firmware description

7.1 Menu structure on the LCDThe meter menu is two levels deep displaying all the measured values, configuration bits and enabling adjustment of some registers. The board push-buttons "KEY ONE" and "KEY TWO" (respectively SW1 and SW2 in Figure 19 to Figure 28) allow you to navigate through in the menu. Generally, "KEY ONE" is used for scrolling while "KEY TWO" is used for selecting the display menu or the function. The menu items are described in the following text.

7.2 Energy menu itemThis menu item shows the content of the energy accumulators, i.e. active, reactive, apparent and active base band energies.

Figure 19. Energy menu

1

ENERGY

Active energy: 00000000.000kWh

Reactive energy: 00000000.000kWh

Apparent energy: 00000000.000kWh

Fund.act.energy: 00000000.000kWh

--------------------- Exit submenu?

A

High-End Meter Demo-Board

Reset

SW1

Submenu

SW2

SW1

SW1

SW1

SW1

SW1

Main menu

SW1

SW2

Page 32: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Firmware description High-End Meter Demonstration Board

32/47

7.2.1 U, I, F menu item

This menu item displays rms values of voltage and current, momentary values of voltage and current and mains frequency.

Figure 20. U, I, F menu

2

U,

I ,

F

Urms Irms 230.2V 0.276A

Umom Imom –053.7V –0.153A

SW1

Frequency: 050.01Hz

SW1

SW1

--------------------- Exit submenu?

SW2

SW2

SW1

SW1

B

A

Main menu Submenu

Page 33: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Firmware description

33/47

7.2.2 Power menu item

This menu item displays the load power. This parameter is computed from the difference in energy between two consecutive readings of the STPM01 register in accordance with the following formula.

Power = ∆energy / ∆time, where ∆time is the reading period.

Figure 21. Power menu

3

PO

ER

SW1

Active power: 0000.0W

Reactive power: 0000.0VAr

SW2

SW1

Apparent power:0000.0VA

Fund.act.power: 0000.0W

SW1

SW1

--------------------- Exit submenu?

SW1

SW2

C

B

Main menu Submenu

w

SW1

Page 34: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Firmware description High-End Meter Demonstration Board

34/47

7.2.3 Power factor & Phi menu item

This menu item displays the power factor and phi. These parameters are computed from the difference in energy between two consecutive readings of the STPM01 memory in accordance with the following formulas.

Power _factor = ∆active_energy / ∆apparent_energy

Phi = arccos (power_factor).

Figure 22. Power factor & Phi menu

SW1

4

PF

&

Pfi

SW1

Power factor: 0.000

Phi: 000.00o

SW2

SW1

SW1

--------------------- Exit submenu?

SW2

C

D

Main menu Submenu

Page 35: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Firmware description

35/47

7.2.4 Energy (register) menu item

This menu item shows the content of the energy registers in the STPM01, i.e. active, reactive, apparent and active base band data records.

Figure 23. Energy (register) menu

5

ENERGY

( reg)

Type0 energy: 00000000000

Reactive energy: 00000000000

Apparent energy: 00000000000

Type1 energy: 00000000000

--------------------- Exit submenu?

E

D

Main menu Submenu

SW1

SW1

SW1

SW1

SW1

SW1

SW2

SW2

Page 36: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Firmware description High-End Meter Demonstration Board

36/47

7.2.5 U, I, F (register) menu item

This menu item displays rms values of voltage and current, momentary values of voltage and current and mains frequency data records in the STPM01.

Figure 24. U, I, F (register) menu

6

U,

I,

F

(reg)

Urms: Irms: 00824 00002

Umom: Imom: –000195 0000001

Frequency: 10048

--------------------- Exit submenu?

F

E

Main menu Submenu

SW1SW1

SW1

SW1

SW1

SW2

SW2

Page 37: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Firmware description

37/47

7.2.6 Configuration bits menu item

This menu item displays STPM01 configuration bits, mode signals and status bits data records.

Figure 25. Configuration bits menu

7

CONFIGURATION

BITS

Bits 15 – 0: 000000000000000

Bits 31 – 16: 000000000000000

--------------------- Exit submenu?

Bits 47 – 32: 000000000000000

Bits 63 – 48: 000000000000000

Status: msb 00000000 lsb

G

F

Main menu Submenu

SW1

SW2

SW1

SW1

SW1

SW1

SW1

SW1

SW2

Page 38: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Firmware description High-End Meter Demonstration Board

38/47

7.2.7 Time & Date menu item

This menu item enables you to view the time and date in the M41ST87 and set a new time.

Figure 26. Time & Date menu

8

TIME

&

DATE

Current time: 20:25:26

Current date: Thu 30-Apr-05

Set minutes: 20:26:26

Set hours: 21:26:26

--------------------- Exit submenu?

H

G

inc.

inc.

Main menu Submenu

SW1

SW1

SW1

SW1

SW2

SW1

SW1

SW2

SW2

SW2

Page 39: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Firmware description

39/47

7.2.8 Power line communication menu item

This menu item enables you to view and modify the meter address. The 16-bit meter address value is the destination address used for board identification in the power line network (see Section 7.2.8 on page 39).

It also displays the content of the ST7538 control register in hexadecimal format.

Figure 27. Power line communication menu

9

PLC

SW1

Meter addr: 00001 Inc?

SW1

Control register: 0000321c

SW1

--------------------- Exit submenu?

SW1

SW2

I

H

inc.

Main menu Submenu

SW2 SW2

Page 40: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Firmware description High-End Meter Demonstration Board

40/47

7.2.9 Tamper menu item

This menu item enables you to check the M41ST87 tamper state and reset it.

Figure 28. Tamper menu

10

TAMPER

SW1

Tamper SW1 Reset tamper?

SW2

SW1

--------------------- Exit submenu?

SW1

SW2

I

SW2 reset

Main menu Submenu

Page 41: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Additional features

41/47

8 Additional features

8.1 In-System ProgrammingThe In-System Programming (ISP) feature allows you to change the whole content of the µPSD3334 (i.e. memory, configuration and programmable logic) without controlling the 8032 through the JTAG interface. The FlashLINK JTAG programming cable is available from STMicroelectronics and PSDsoft Express is available at no charge from www.st.com/psm.

8.2 In-Application ProgrammingThe µPSD3334 memory structure that includes two independent Flash memory arrays capable of read-while-write operation making it ideal for In-Application Programming (IAP). The meter firmware provides support through the RS232 port. To begin programming, connect the demonstration board to your PC using the serial cable, power-up the board and enter bootloader mode (see Figure 29) by resetting the board while pressing the KEY ONE button. Run the Uploader software (see Figure 30), choose the corresponding serial port number and press the Connect button. Then you can perform the following operations:

● Erase - erases bank0 of the main Flash memory

● Program - programs the new firmware in bank0 of the main Flash memory (you'll be asked to enter the firmware hex file name after pressing this button)

● Reset - resets the main Flash memory state machine embedded algorithm (it must be executed after any error condition that occurs during Erase or Program operations).

The bar at the bottom of the software window shows the progress.

The bootloader itself is not accessible. If a failure occurs during programming you should repeat the process again.

Figure 29. Entering bootloader mode

Bootloader

Reset + SW1

Page 42: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Additional features High-End Meter Demonstration Board

42/47

Figure 30. Uploader

8.3 Self TestThis feature was originally developed for testing the boards in production. But you can use it for verifying the board functionality at any time. You can use it to check the KEY buttons, SENSOR buttons, LCD, ICs (PLM, EEPROM, RTC, STPM01) and roughly calibrate the meter.

To accomplish these tests, execute the following steps:

1. Connect the power source and the load to the board (see Figure 31)

2. Connect the board to your PC using the RS232 cable

3. Power up the board

4. Run the test software, select the appropriate COM port number, specify the name of the test report file and click on the Start button to start testing (see Figure 32)

5. Perform the actions required by the test software.

You will get a successful/fail result at the end of the tests. You can see the test details in the report file.

Note: The higher load current you use for the calibration, the more precise results you get. But do not exceed the maximum ratings (listed in Table 2).

Page 43: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board Additional features

43/47

Figure 31. Test connection scheme

Figure 32. Test software

IrmsUrms

Regulated isolation

STHEMETER - EVAL1

Load

TE ST SW

RS232

multimeter multimeter

FlashLinkCENTRONICS

FLASH LINKUSB

PC

transformer

Page 44: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Documentation High-End Meter Demonstration Board

44/47

Appendix A Documentation

A.1 STPM01STPM01 Datasheet

Application note AN2159

User manual UM0125

User manual UM0127

User manual UM0128

A.2 ST7538ST7538 Datasheet

Application note AN1714

Application note AN1715

A.3 M41ST87M41ST87 Datasheet

A.4 M24512M24512 Datasheet

A.5 L6590L6590 Datasheet

A.6 µPSD3334µPSD33xx Datasheet

Application note AN2125.

Page 45: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board References

45/47

9 References

[1] EHSA, European Home Systems Association - The EHS Network, January 1996.

Page 46: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

Revision history High-End Meter Demonstration Board

46/47

10 Revision history

Table 4. Document revision history

Date Revision Changes

26-Jan-2006 1 Initial release.

Page 47: High-End Meter Demonstration Board - Semantic Scholar · High-End Meter Demonstration Board Hardware Description 9/47 5 Hardware Description The Power Meter Demonstration Board is

High-End Meter Demonstration Board

47/47

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