UM0164 USER MANUAL
324PM Reference Design Quick Start Guide
Introduction
This 324PM Quick Start Guide provides only the necessary information for the initial setup and building of the 324PM (STPM01-based) energy meter application. See associated datasheets and technical literature for details about 324PM Reference Design Kit or these related components (on the companion CD-ROM or on the web):
http://www.st.com/interface/ (STPM01-324PM Kit User Manual, STPM01 Documentation) Measurement Module (top view)
Figure 1.
Figure 2.
Control Board (top view)
September 2005
Rev 1 1/14
http:/ww w.st .com
14
UM0164 - USER MANUAL
Table of Contents
1 2 324PM Reference Design Kit Checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Control Board-based Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 .1 Control Board Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2. 1. 1 2. 1. 2 2. 1. 3 2. 1. 4 Measurement Module Status LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 LCD Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Setting the Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Tamper Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3
PC-based STPM01 Programmer Measurement . . . . . . . . . . . . . . . . . . . . 10
3 .1 3 .2 3 .3 Software Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Hardware set-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 STPM01 Manager "Setting" Tab Configuration and Operation . . . . . . . . . . . 11
3. 3. 1 3. 3. 2 3. 3. 3 Single Measurement READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Continuous Measurement READs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Sample READs and Measured Value Storage . . . . . . . . . . . . . . . . . . . . . . . 12
4
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2/14
UM0164 - USER MANUAL
Figures
Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. Figure 9. Figure 10. Figure 11. Figure 12. Figure 13. Figure 14. Figure 15. Measurement Module (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Control Board (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Measurement Module (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Measurement Module (bottom view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Control Board (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Control Board (bottom view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 STPM01 Programmer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Measurement Module Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Full Control Board-to-Measurement Module Connections . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Control Board-to-Measurement Module Flat (Ribbon) Cable Connections . . . . . . . . . . . . . 7 Measurement Module LED Indicators (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Measurement Module LED Indicators (under Control Board). . . . . . . . . . . . . . . . . . . . . . . . 8 Measurement Module Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 STPM01 Programmer Connections (324PM Module-to-PC Interface) . . . . . . . . . . . . . . . . 11 STPM01 Manager Interface Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3/14
1 324PM Reference Design Kit Checklist
UM0164 - USER MANUAL
1
324PM Reference Design Kit Checklist
The 324PM Reference Design Kit includes the following items:
Measurement module (Figure 3 and Figure 4), Control board (Figure 5 and Figure 6 on page 5), STPM01 microcontroller programmer (Figure 7 on page 5), a 10-pin flat (ribbon) cable, 10 STPM01 sample parts, and an interactive CD-ROM with software and documentation. Measurement Module (top view)
Figure 3.
Figure 4.
Measurement Module (bottom view)
4/14
UM0164 - USER MANUAL
Figure 5. Control Board (top view)
1 324PM Reference Design Kit Checklist
Figure 6.
Control Board (bottom view)
Figure 7.
STPM01 Programmer
5/14
2 Control Board-based Measurement
UM0164 - USER MANUAL
2
Control Board-based Measurement
In this configuration, the measurement module is connected directly to the control board, which then manages the measurements. N ote: The measurement module can also be used as a standalone module. For example, it can drive a stepper motor since it produces a pulse train with a frequency proportional to the active power measured. C onnect and power-up the boards as follows: 1. 2. 3. 4. Connect the four wires (two black and two red) to the measurement module (see Figure 8). Put the control board on top of the module and screw them together from the bottom with four screws (see Figure 9 on page 7). Connect the module to the control board using the flat (ribbon) cable (see Figure 10 on page 7). Connect the module to the load and the mains (see Figure 8). 5. The red wires are connected to the line input. The black ones are connected to neutral.
Turn on the mains power.
Warning: If no load is connected to the measurement module, the control board LCD will not light up due to poor power supply operation. Figure 8. Measurement Module Wiring
To Load To Mains
AI11842
6/14
UM0164 - USER MANUAL
Figure 9.
2 Control Board-based Measurement
Full Control Board-to-Measurement Module Connections
Figure 10. Control Board-to-Measurement Module Flat (Ribbon) Cable Connections
7/14
2 Control Board-based Measurement
UM0164 - USER MANUAL
2.1
Control Board Operation
Once the measurement module is properly connected and powered-on, four Light Emitting Diodes (LEDs) will display the modules's status (see Figure 11 and Figure 12):
2.1.1
Measurement Module Status LEDs
LED D4 - DIR (Energy Direction) If it is lit, the power is negative. LED D5 - TPR (Tamper Event Detection) If it is lit, a tamper has been detected (i.e., a consistent difference exists between the primary and secondary channels' current).
LED D2 - NLC (No-load Condition Detection) This LED is a no-load condition indicator (i.e., the load has not been connected). LED D3 - LED (Load Power Consumption) This LED blinks with a frequency proportional to the power consumption of the load.
Figure 11. Measurement Module LED Indicators (top view)
Figure 12. Measurement Module LED Indicators (under Control Board)
8/14
UM0164 - USER MANUAL
2 Control Board-based Measurement
2.1.2
LCD Messages
It is possible to display other types of information on the control board LCD (i.e., in idle state, the LCD will display "L1," which means that Line 1 is connected). The type of information displayed depends on the firmware operating mode (see Table 1). The information is sequentially displayed by pressing (Switch 1) SW1.
2.1.3
Setting the Clock
The clock needs to be set the first time the control board is used. The user can perform this as many times as needed. To set the clock: 1. 2. 3. 4. Press the Reset button and SW2 at the same time to enter the Clock Setting mode. Keep pressing SW2 while releasing the Reset button until the Clock entry mask appears on the LCD (then release SW2). Press SW1 to switch fields or access each field. Press SW2 to enter the appropriate clock value in each field.
The Normal Operation mode display appears on the LCD when clock setting is complete.
2.1.4
Tamper Events
W hile displaying tampers, the user can view five tamper events by pressing SW2. If no switch is pressed for 10 seconds, the system will go back to the idle state of Normal mode. W hen a mechanical tamper occurs, the system signals the event by a message on LCD. N ote: A tamper event is simulated by pressing SW3. In case of tamper the clock stops the operation and the following values are stored in the EEPROM:
the last active power consumption, and the date of the tamper event.
To reset the operation to Normal mode, the user has to push SW2 twice. The first time shows the time of the tamper event, and second time, the Normal mode will be set. Table 1. Firmware Operating Mode
Operating Mode Active Power Consumption Reactive Power Consumption Voltage RMS Current RMS Time and Date 5-Tam per Event Timestamp X X Standalone X Peripheral X X X X X X
9/14
3 PC-based STPM01 Programmer Measurement
UM0164 - USER MANUAL
3
PC-based STPM01 Programmer Measurement
The measurement module is connected to the PC through STPM01 programmer. The STPM01 Manager Interface will read and display the measured values from the device. It also allows for STPM01 calibration and permanent WRITE operations. N ote: The measurement module can also be used as a standalone module. For example, it can drive a stepper motor since it produces a pulse train with a frequency proportional to the active power measured. To set up the board for PC-based measure or calibration, install the software on the PC first, then complete the measurement module connections.
3.1
Software Setup
1. 2. Double-click on the STPM01 Manager installation file (wait for successful installation message). When the installation is complete, double-click on the STPM01 Manager desktop icon to open the application.
3.2
Hardware set-up
C onnect the board as follows: 1. 2. Connect the four wires (two black and two red) to the measurement module (see Figure 13). Connect the module to the load and the mains (see Figure 13). 3. 4. 5. The red wires are connected to the line input. The black ones are connected to neutral.
Connect the STPM01 programmer to the PC parallel port. Connect the measurement module to the programmer as indicated in Figure 14 on page 11. Turn on the mains power.
Figure 13. Measurement Module Wiring
To Load To Mains
AI11842
10/14
UM0164 - USER MANUAL
3 PC-based STPM01 Programmer Measurement
Figure 14. STPM01 Programmer Connections (324PM Module-to-PC Interface)
3.3
STPM01 Manager "Setting" Tab Configuration and Operation
As soon as the measurement module is connected and powered-on, the device will start measuring energy consumption. Once the measurement module is properly connected and powered-on, four Light Emitting Diodes (LEDs) will display the module's status (see Control Board Operation on page 8). After launching the STPM01 Manager application: 1. 2. Click on the "Open" button in the "Setting" tab (bottom, left) to establish the connection with the measurement module (see Figure 15 on page 12). Configure the application parameters (e.g., no load condition, read mode, sensor type).
3.3.1
Single Measurement READ
1. 2. In the "Read Mode" section, set the desired number of STPM01 register READs (up to eight). Press the "Read" button (bottom of window). The result of the READ will be displayed in the "Information Memo" block (top, left corner), as well as in the "Main" and "Power" sections (middle, left).
3.3.2
Continuous Measurement READs
1. 2. 3. Check the "Continuous" box in the "Read Mode" section. Set the desired number of STPM01 register READs (up to eight). Set the desired READ delay between two successive readings. The result of the READs will be continuously displayed in the "Information Memo" block, as well as in the "Main" and "Power" sections.
11/14
3 PC-based STPM01 Programmer Measurement
UM0164 - USER MANUAL
3.3.3
Sample READs and Measured Value Storage
1. 2. 3. 4. Check "Samples" box in the "Read Mode" section. Set the desired number of STPM01 register READs (up to eight). Set the desired number of READs to execute in the "n. Samples" box. Set the desired sample delay between two successive samples. The result of the READs will be displayed as a table or a chart in the "Chart" tab which can be stored and used for analysis later.
Figure 15. STPM01 Manager Interface Window
12/14
UM0164 - USER MANUAL
4 Revision History
4
Revision History
Date 16-September-2005 Revision 1 First edition Chang es
13/14
4 Revision History
UM0164 - USER MANUAL
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners 2005 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
14/14
|