AN2179 APPLICATION NOTE
STPMEVKIT Power Meter Control Board v1.0 to v1.1 Upgrade
Introduction
This application note describes the procedure for upgrading to the Version 1.1 STPMEVKIT Power Meter Control Board evaluation kit. Perfor mance improvement and new functions are achieved with firmware optimization (for example, faster bi-directional SPI communication between the microcontroller and the STPM01) and hardware modifications. Users with the v1.0 Control Board can take advantage of the new functions by making some simple hardware modifications and using the v1.1 peripheral operation mode firmware.
October 2005
Rev 1.0 1/8
http:/ww w.st .com
8
AN2179 - APPLICATION NOTE
Table of Contents
1 Firmware Changes and Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1 .1 1 .2 STPMEVKIT Control Board v1.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 STPMEVKIT Control Board v1.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 3
Power Meter Control Board v1.0 Hardware Modification Details . . . . . . . 6 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2/ 8
AN2179 - APPLICATION NOTE
1 Firmware Changes and Schematics
1
1.1
Firmware Changes and Schematics
STPMEVKIT Control Board v1.0
The ST72324 microcontroller in the Control Board v1.0 schematics (see Figure 1 on page 4) shares the pins for standard SPI peripheral communication (pin 12, MISO and pin 14, SCK) with the in-circuit communication pins (pin 12, ICCDATA and pin 14, ICCCLK). Pins 12 and 14 are connected to the ICP Connector to allow in-circuit debugging. To implement SPI communication between the microcontroller and the STPM01 device while maintaining the debugging feature, it is necessary to use different pins. This configuration simulates the SPI protocol by using general purpose I/O pins (pin 16, PA3 for clock, and pin 28, PB0 for data). Only STPM01 register READ (simplex) communication is implemented.
1.2
STPMEVKIT Control Board v1.1
The ST72324 microcontroller in the Control Board v1.1 schematics (see Figure 2 on page 5) shares the pins for tamper detect and no load condition (pin 28, SDATD and pin 16, SCLNLC, respectively) with the in-circuit communication pins (pin 12, ICCDATA and pin 14, ICCCLK). In this configuration, in-circuit debugging is not available, however, faster bi-directional SPI communication is established between the microcontroller and the measuring device. These modifications can be made to the v1.0 Control Board to take advantage of the firmware improvements (see Section 2 on page 6).
3/8
1 Firmware Changes and Schematics
AN2179 - APPLICATION NOTE
Figure 1.
Power Meter Control Board v1.0 Schematic
RTC MC_+5.0V MC_+5.0V R1 10K SW1 R2 10K GND RTC C1 10nF SW2 IRQ_RTC MC_+5.0V MC_+5.0V EEPROM VCC E MOSI/D MISO/Q SCL GND_POWER EEPROM 31 32 28 27 30 C2 10nF RESET D1 1N4148 E_EEPROM MOSI MISO SCK VCC IRQ PFO SDA SCL IRQ_RTC PFO SDA SCL
MC_+5.0V
MC_+5V
SDATD
PFO
U1
RESET RESET 1 2 MC_GND MOP RESET SYN SCS MOSI MISO SCK 3 4 5 6 7 8
29
26
25
PD1
PD0
PB4
PE1
VDD_2
PB3
PB0
PE0
C3 100nF 24 23 22 RESET ICCSEL SCL SDA XRESET
VAREF VSSA PF0 PF1 PF4 PC4/ICCDATA PF6 PF7 PC0 PC1 PC2 PC3
OSC1 OSC2 VSS_2
OSC1 OSC2
ST72F324
21 RESET VPP/ICCSEL 20 PA7 19 18
PC6/ICCCLK
PA6 PC7 PA3 16
PA4 17
PC5 13
11
10
12
14
15
9
Oscillator OSC1 RS E_LCD E_EEPROM ICCDATA ICCCLK SCLNLC OSC2 ICP_Clock MC_GND Oscillator STPM01_CON ICP_CLK ICCSEL RESET ICCCLK ICCDATA MC_+5.0V MC_+5.0V 5.0V LED MOP MC_+5.0V E_LCD XRESET SYN SCS SCL C4 100nF GND STPM01_CON SDA SYN SCS SCLNLC SDATD MOSI SCK RS LCD VCC CSB XRESET SI SCL RS GND_POWER LCD OSC1 OSC2 ICP_CLK
JA1 10 9 8 7 6 5 4 3 2 1 ICP Connector
AI11186
4/ 8
AN2179 - APPLICATION NOTE
Figure 2.
1 Firmware Changes and Schematics
Power Meter Control Board v1.0 with Hardware Modifications (for v1.1 Functions)
RTC MC_+5.0V MC_+5.0V R1 10K SW1 R2 10K GND RTC C1 10nF SW2 IRQ_RTC MC_+5.0V MC_+5.0V EEPROM VCC E MOSI/D MISO/Q SCL GND_POWER EEPROM 31 32 28 27 30 C2 10nF RESET D1 1N4148 E_EEPROM MOSI MISO SCK VCC IRQ PFO SDA SCL IRQ_RTC PFO SDA SCL
MC_+5.0V
MC_+5V
PFO
U1
RESET RESET 1 2 MC_GND MOP RESET SYN SCS MOSI MISO SCK 3 4 5 6 7 8
29
26
25
PD1
PD0
PB4
PE1
VDD_2
PB3
PB0
PE0
C3 100nF 24 23 22 RESET ICCSEL SCL SDA XRESET
VAREF VSSA PF0 PF1 PC4/ICCDATA/SDATD PF4 PF6 PF7 PC0 PC1 PC2 PC3 PC6/ICCCLK/SCLNLC
OSC1 OSC2
OSC1 OSC2
ST72F324
VSS_2
21 RESET VPP/ICCSEL 20 PA7 PA6 PC7 PA3 19 18
PA4 17
PC5
14
11
10
12
13
15
16
9
Oscillator RS E_LCD E_EEPROM ICCDATA/SDATD ICCCLK/SCLNLC OSC1 OSC2 ICP_Clock MC_GND Oscillator OSC1 OSC2 ICP_CLK
JA1 10 9 8 7 6 5 4 3 2 1 ICP Connector STPM01_CON ICP_CLK ICCSEL RESET ICCCLK ICCDATA MC_+5.0V MC_+5.0V 5.0V
LED
MOP MC_+5.0V E_LCD XRESET
LCD VCC CSB XRESET SI SCL RS GND_POWER LCD
SYN SCS SCL
SYN SCS SCLNLC SDATD
MOSI SCK RS
C4 100nF
GND STPM01_CON
SDA
AI11187
5/8
2 Power Meter Control Board v1.0 Hardware Modification Details
AN2179 - APPLICATION NOTE
2
Power Meter Control Board v1.0 Hardware Modification Details
The objectives are to create two shortcuts between the JA1 ICP Connector and the JP2 connections to the STPM01. 1. Cut the tracks on the control board (at points A and B, see Figure 3) to disconnect the STPM01 SDATD and SCLNLC pins from the microcontroller's pins (28 and 16, respectively). Using two wires (see A and B, Figure 4), create the two shortcuts: a) b) JA1, pin 2 (connected to the microcontroller's pin 12, ICCDATA/MISO) and JP2, pin 4 (connected to the STPM01's SDATD pin); and JA1, pin 4 (connected to the microcontroller's pin 14, ICCCLK/SCK) and JP2, pin 6 (connected to the STPM01's SCLNLC pin). Power Meter Control Board Track Cut Points
2.
Figure 3.
Figure 4.
Power Meter Control Board After Hardware Modifications
6/ 8
AN2179 - APPLICATION NOTE
3 Revision History
3
Revision History
Date 26-October-2005 Revision 1.0 First edition Changes
7/8
3 Revision History
AN2179 - APPLICATION NOTE
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
8/ 8
|