UM1488
User manual
STPMC1 evaluation software
Introduction
STPMC1 evaluation software is a graphical user interface to read, configure and calibrate an
STPMC1 energy metering device, suitable for parallel and serial hardware interfaces.
The application has a unique work area where the user can read device registers and write
configuration and calibration parameters.
It is possible to configure application parameters (such as sensor sensitivity, crystal
oscillator frequency) to calculate measured energy, current and voltage.
Data acquisition can be customized to read either a single or a certain number of data
samples from the device. Read data can be output in table format and saved to an Excel file.
Two wizard tools are provided to guide the user during the application design and
automatically calibrate the device.
At any time it is possible to save current session data in a project, to open an existing project
or to create a new project.
Figure 1.
STPMC1 evaluation software screenshot
December 2011
Doc ID 022451 Rev 2
1/17
www.st.com
Contents
UM1488
Contents
1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1
1.2
1.3
Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Hardware programmer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Recommended reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2
Application setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1
Software setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3
4
Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Application menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4.1
4.2
4.3
File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.3.1
4.3.2
Design wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Calibration wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5
Application work area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.1
5.2
5.3
5.4
5.5
Calculated values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Status bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Mode signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Configurators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Command area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.5.1
5.5.2
5.5.3
5.5.4
5.5.5
5.5.6
Read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Samples read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Write to shadow memory latches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Write to OTP memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Lock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.6
Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2/17
Doc ID 022451 Rev 2
UM1488
Introduction
1
1.1
Introduction
Prerequisites
This evaluation software is a Windows
®
based application and requires .NET framework
2.0.
It is possible to download and install this framework for free from www.microsoft.com.
1.2
Hardware programmer
The STPMC1 evaluation software can be used with either a parallel or a serial hardware
interface.
The parallel interface is provided free of charge with any STPMC1 demonstration board.
The serial interface, also providing galvanic isolation, is available as a separate
demonstration board with the code STEVAL-IPE005V1.
To communicate with the device through the evaluation software it is necessary to connect a
hardware programmer to both the PC and to the demonstration board, and then the
demonstration board must be powered on.
1.3
Recommended reading
This document only concerns evaluation software.
More details on the STPMC1 device can be obtained from the datasheet.
Before reading this document, please read carefully:
●
●
●
STPMC1 datasheet
AN3254 application note
AN3398 application note.
Doc ID 022451 Rev 2
3/17
Application setup
UM1488
2
2.1
Application setup
Software setup
The setup file guides the user through the software installation. Double click on the setup file
to start installation (Figure
2)
and follow the guided process.
Figure 2.
Welcome
4/17
Doc ID 022451 Rev 2
UM1488
Getting started
3
Getting started
To start working with an STPMC1 demonstration board, follow the steps below:
1.
2.
3.
4.
5.
6.
7.
Connect the demonstration board to the parallel hardware programmer or to the serial
programmer (STEVAL-IPE005V1)
Connect the programmer to the PC through a parallel or serial cable
Power on the demonstration board (and eventually the serial programmer)
Open STPMC1 Evaluation Software
Select the menu Option - Interface - Parallel or Serial according to the chosen
hardware programmer (see
Section 4.2)
Configure the application parameters selecting Option - Configuration menu (see
Section 4.2)
The user is now ready to Read, Write (see
Section 5.5)
or Calibrate the application
(see
Section 4.3).
Doc ID 022451 Rev 2
5/17