and momentary voltage and current values for
each phase
■ Supports Rogowski coil, current transformer,
Shunt or Hall current sensors
■ Exclusive ripple-free energy calculation
algorithm
■ Programmable pulsed output
■ Stepper motor outputs
■ Neutral current, temperature, and magnetic
field monitoring
■ OTP memory for configuration and calibration
■ SPI interface
■ Supports IEC 62052-11 / 62053-21 / 62053-23
standards
■ Less than 0.1 % error over 1:1000 dynamic
range
Applications
■ Power metering
Description
The STPMC1 device functions as an energy
calculator and is an ASSP designed for effective
energy measurement in power line systems
utilizing Rogowski, current transformer, Shunt or
Hall current sensors. Used in combination with
one or more STPMSx ICs, it implements all the
functions needed in a 1-, 2- or 3-phase energy
Table 1.Device summary
Order codeTemperature rangePackagePackaging
STPMC1
Datasheet − production data
TSSOP20
meter. It can be coupled with a microprocessor for
multi-function energy meters, or it can directly
drive a stepper motor for a simple active energy
meter. The calculator has five input data pins. The
first three receive the voltage and current
information of the phases. In fact, each data input
processes two ΔΣ signals, multiplexed in time and
generated by the STPMSx device. The fourth
input receives multiplexed ΔΣ signals also, and
can be used to sense the neutral current or
another signal - temperature, for example. The
fifth input data pin accepts non-multiplexed ΔΣ
signals and it can be used for sensing the
magnetic field information from a Hall sensor.
Four internal hard-wired DSP (digital signal
processing) units perform all the computations on
the ΔΣ streams in real time by means of ΔΣ
arithmetic blocks. This allows the achievement of
very high computation precision with fast and
efficient digital architecture. All the data recorded
by the STPMC1 are accessible through an SPI
port, which is also used to configure and calibrate
the device. The configuration and calibration data
can be saved in a 112-bit OTP block, or
dynamically set in microprocessor-based meters.
STPMC1BTR- 40 to 85 °CTSSOP20 (tape and reel)2500 parts per reel
April 2012Doc ID 15728 Rev 61/77
This is information on a product in full production.
Note:Absolute maximum ratings are those values beyond which damage to the device may occur.
Functional operation under these condition is not implied.
Table 4.Thermal data
SymbolParameterValueUnit
R
thJA
1. This value refers to single-layer PCB, JEDEC standard test board.
Thermal resistance junction-ambient114.5
(1)
°C/W
Doc ID 15728 Rev 69/77
FunctionsSTPMC1
4 Functions
Table 5.Programmable pin functions
Programmable pinStandalone mode (APL = 2 or 3)Peripheral mode (APL = 0 or 1)
MONOutput for stepper node (MB) - charge pumpWatchdog reset
MOPOutput for stepper node (MA) - charge pump
LED3-phase energy pulsed outputProgrammable energy pulsed output
SCLNLCNo load indicator
SYN-NPNegative power indicator
SCSSPI data transmission enable
ZCR
SPI interfaceSDATDTamper indicator
signal
10/77Doc ID 15728 Rev 6
STPMC1Application
5 Application
Figure 3.Application schematic in standalone operating mode
N R S T
N R S T
Current
Current
Sensor
Sensor
Voltage
Voltage
Sensor
Sensor
Current
Current
Sensor
Sensor
Voltage
Voltage
Sensor
Sensor
Current
Current
Sensor
Sensor
Voltage
Voltage
Sensor
Sensor
STPMS1
STPMS1
STPMS1
STPMS1
STPMS1
STPMS1
3 Vto 5.5 V
3 V to 5.5 V
VCC
VCC
DAR
DAR
DAS
DAS
DAT
DAT
DAN
DAN
DAH
DAH
CLKXTAL1XTAL2
CLKXTAL1XTAL2
Stepper
Stepper
Counter
Counter
MOPMONVOTP
MOPMONVOTP
STPMC1
STPMC1
VSS
VSS
LED
LED
SCS
SCS
SYN-NP
SYN-NP
SCL-NC
SCL-NC
SDA-TD
SDA-TD
VDD
VDD
VSSA
VSSA
Pulsed output
Pulsed output
Negative power
Negative power
No load condition
No load condition
Tamper Detection
Tamper Detection
Current
Current
Sensor
Sensor
Figure 4.Application schematic using an MCU
N R S T
N R S T
Current
Current
Sensor
Sensor
Voltage
Voltage
Sensor
Sensor
Current
Current
Sensor
Sensor
Voltage
Voltage
Sensor
Sensor
Current
Current
Sensor
Sensor
Voltage
Voltage
Sensor
Sensor
STPMS1
STPMS1
STPMS1
STPMS1
STPMS1
STPMS1
STPMS1
STPMS1
3 V to5.5V
3 V to 5.5 V
Zero
Zero
Crossing
Crossing
DAR
DAR
DAS
DAS
STPMC1
DAT
DAT
DAN
DAN
DAH
DAH
STPMC1
CLKXTAL1XTAL2
CLKXTAL1 XTAL 2
MOPMONVOTPVCC
MOPMONVOTPVCC
VSS
VSS
Watchdog
Watchdog
LED
LED
SCS
SCS
SYN-NP
SYN-NP
SCL-NC
SCL-NC
SDA-TD
SDA-TD
VDD
VDD
VSSA
VSSA
Pulsed
Pulsed
Output
Output
Energy
Energy
To MCU
To MCU
Current
Current
Sensor
Sensor
TEMP
TEMP
Sensor
Sensor
STPMS1
STPMS1
Doc ID 15728 Rev 611/77
ApplicationSTPMC1
Table 6.Typical external components
FunctionComponentValueToleranceUnit
Reads or writes to a calculator device via SPI and
performs computation
Measurement reference clockCrystal oscillator
Interface R-phase voltage, currentSTPMSx---------
Interface S-phase voltage, currentSTPMSx---------
Interface T-phase voltage, currentSTPMSx---------
Interface PTAT, neutral currentSTPMSx---------
Interface PTAT or hallSTPMSx---------
Low-end user interfaceStepper counter
Microprocessor---------
4.194
8.192
4.915
9.830
± 30 ppmMHz
Note:The components listed above refer to a typical metering application. In any case, STPMC1
operation is not limited to the choice of these external components.
12/77Doc ID 15728 Rev 6
STPMC1Electrical characteristics
6 Electrical characteristics
(VCC = 5 V, TA= - 40 to + 85 °C, 100 nF across VCC and VSS; 1 µF across VDD and V
SSA
unless otherwise specified).
Table 7.Electrical characteristics
SymbolParameterTest conditionsMin.Typ.Max.Unit
Energy measurement accuracy
f
BW
General Section
V
CC
I
CC
ΔI
CC
PORPower on reset on V
V
DD
V
OTP
I
OTP
Effective bandwidthLimited by digital filtering
5400Hz
Operating supply voltage3.175.5V
Supply current. Configuration
registers cleared or device
locked
f
=4.194MHz;
XTAL1
V
=3.2V; CL=100nF; no
CC
loads
567mA
Increase of supply current per
configuration bit, during
f
=4.194MHz; VCC=3.2V100µA/bit
XTAL1
programming
f
CC
=4.194MHz2.5V
XTAL1
Digital supply voltage1.701.801.90V
OTP programming voltage1420V
OTP programming current per
bit
Single bit programming5mA
,
t
OTP
I
LATCH
OTP programming time per bitSingle bit programming500µs
Current injection latch-up
immunity
Digital I/O (DAH, DAR, DAS, DAT, DAN, CLK, SDA, SCS, SYN, LED)
V
V
V
V
I
t
Input high voltageOther pins0.75V
IH
Input low voltageOther pins0.25V
IL
Output high voltageIO=-2mAVCC-0.4V
OH
Output low voltageIO=+2mA0.4V
OL
Pull up current15µA
UP
Transition timeC
TR
LOAD
=50pF, V
=5V10ns
CC
Power I/O (MOP, MON)
V
V
t
Output high voltageIO=-16mA0.9V
OH
Output low voltageIO=+16mA0.1V
OL
Transition timeC
TR
LOAD
=50pF, V
=5V10ns
CC
CC
CC
300mA
V
V
CC
V
V
CC
Doc ID 15728 Rev 613/77
Electrical characteristicsSTPMC1
Table 7.Electrical characteristics (continued)
SymbolParameterTest conditionsMin.Typ.Max.Unit
Crystal oscillator
V
V
I
R
C
f
XTAL1
f
MCLK
f
CLK
Input high voltage1.2V
IH
Input low voltage0.6V
IL
Input current on XTAL2V
in
External resistor14MΩ
p
External capacitors22pF
p
Nominal output frequency
Internal clock frequencysee
Output CLK pin frequency
SPI interface timing
F
SCLKr
F
SCLKw
t
t
t
t
OFF
t
SYN
DH
ON
Data read speedTA= 25°C32MHz
Data write speedTA= 25°C100kHz
Data setup time20ns
DS
Data hold time0ns
Data driver on time20ns
Data driver off time20ns
SYN active width2/f
=5.3V-1+1µA
CC
4.0004.1944.915
8.0008.1929.830
Ta bl e 1 0
HSA
= 0f
= 1f
HSA
8.0008.1929.830MHz
/4
XTAL1
/2
XTAL1
XTAL1
MHz
MHz
s
Note:Typical value, not production tested.
14/77Doc ID 15728 Rev 6
STPMC1Terminology
7 Terminology
7.1 Measurement error
The error associated with the energy measured by the STPMC1 is defined as:
EnergyTrue)reading(1SPMC
−
EnergyTrue
7.2 Conventions
The lowest analog and digital power supply voltage is called VSS which represents the
system ground (GND). All voltage specifications for digital input/output pins are referred to
GND.
Positive currents flow into a pin. “Sinking current” is the current flowing into the pin, and so it
is positive. “Sourcing current” is the current flowing out of the pin, and so it is negative.
Signal timing specifications treated by a digital control part are relative to XTAL1. This signal
is provided from the crystal oscillator or from an external source as specified in paragraph
9.4
.
ErrorPercentage
=
Signal timing specifications of the SPI interface are relative to the SCLNLC. There is no
direct relationship between the clock (SCLNLC) of the SPI interface and the clock of the
DSP block (XTAL1).
A positive logic convention is used in all equations.
Doc ID 15728 Rev 615/77
TerminologySTPMC1
7.3 Notation
Table 8.Notation
LabelDescription
uVoltage
iCurrent
u
X
i
X
i
N
U
X
I
X
PActive energy full bandwidth
FActive energy fundamental
QReactive energy full bandwidth
RReactive energy fundamental
X
Y
PINPin names are UPPERCASE
CFG
Phase X voltage (X = R, S, T)
Phase X current (X = R, S, T)
Neutral current
Phase X RMS voltage (X = R, S, T)
Phase X RMS current (X = R, S, T)
X energy type per Y phase
X = P, F, Q, R
Y = R, S, T or Σ for 3-phase
Configuration bit names are UNDERLINED
SIG
Internal signals and status bits are in
ITALICS
16/77Doc ID 15728 Rev 6
STPMC1Typical performance characteristics
8 Typical performance characteristics
Figure 5.Supply current vs. supply voltage, TA = 25°C (f
8
8
7,5
7,5
7
7
6,5
6,5
6
6
(mA)
(mA)
CC
CC
I
I
5,5
5,5
5
5
4,5
4,5
4
4
33,544,555,56
33,544,555,56
V
V
CC
CC
(V)
(V)
XTAL1
Figure 6.Digital voltage regulator: line - load regulation. (f
1 µF across V
2,5
2,5
DD
and V
; TA = 25 °C)
SSA
= 4.194 MHz, f
ICC25°C
ICC25°C
ICC-40°C
ICC-40°C
ICC85°C
ICC85°C
= 0; 100 nF across VCC and VSS;
XTAL1
= 8.192 MHz)
XTAL1
2
2
1,5
1,5
(V)
(V)
1
1
DD
DD
V
V
0,5
0,5
0
0
0123456
0123456
-0,5
-0,5
V
V
(V)
(V)
CC
CC
Doc ID 15728 Rev 617/77
Typical performance characteristicsSTPMC1
Figure 7.Gain response of decimator
Flat band(10HzFlat band(10Hz–300Hz)
Flat band (10Hz Flat band (10Hz – 300Hz)
3 dBband(4Hz3 dBband(4Hz–700Hz)
3 dB band (4Hz 3 dB band (4Hz –700Hz)
18/77Doc ID 15728 Rev 6
STPMC1Theory of operation
9 Theory of operation
9.1 General operation
The STPMC1 (also called a calculator) is an ASSP designed for effective measurement in
power line systems utilizing the Rogowski coil, current transformer, Shunt or Hall current
sensors. This device, used with the STMicroelectronics STPMSx companion chip (an
analog front-end device), can be implemented as standalone or as a peripheral in a
microprocessor based 1-, 2- or 3-phase energy meter.
The calculator consists of three sections: analog, digital and OTP (see
●The analog section is composed of a band-gap voltage reference and a low-drop
voltage regulator.
●The digital section consists of a system control, clock generator, three PDSP and a
NDSP, a SPI interface.
●The 112-bit OTP block and the 16 system signals, used for testing, configuration and
calibration purposes, are controlled through SPI by means of a dedicated command
set.
The calculator has five input data pins, of which four are fed by signals generated by the
STPMSx, see
Ta b le 9
.
Three of them (DAR/DAS/DAT) are used to receive multiplexed signals of voltage and
current, implementing energy measurement in 1-, 2- and 3-phase (3 and 4 wires) systems.
After being de-multiplexed, each phase input is sent to the correspondent DSP unit that
processes voltage and current information and performs energy calculation, according to
the settings of the configuration bits (see
The DAN input, which also receives a multiplexed signal output from STPMSx device, is
typically used to monitor neutral current for anti tampering functions in 1-, 2- and 3-phase (4
wires) systems. Normally the STPMSx monitors current and voltage but in case of neutral
monitoring the voltage channel can be connected to a different type of sensor, for example a
temperature sensor.
The fifth input data pin (DAH) accepts non-multiplexed ΔΣ signals. It can be used for EMI
sensing through Hall sensors or for temperature sensing.
Table 9.Input channels from the STPMSx
Ta bl e 33
Figure 1
):
).
Channel namePropertySignal 1Signal 2
DARMultiplexedVoltageCurrent
DASMultiplexedVoltageCurrent
DATMultiplexedVoltageCurrent
DANMultiplexedTemperatureCurrent
DAHNot multiplexedEMI or temperature
The companion chip (STPMSx) embeds 2 ΔΣ ADC converters and the necessary logic
capable of providing the multiplexed ΔΣ streams.
See the STPMSx documentation for more details.
Doc ID 15728 Rev 619/77
Theory of operationSTPMC1
These four multiplexed signals are separated, by a digital de-multiplexer, back into eight ΔΣ
signals, called streams. The signal coming from the voltage channel of the STPMSx is
named with the suffix V, while the stream coming from the current channel is named with the
suffix C. For example, the voltage stream of the S-phase is named DAS-V.
Then, each pair of phase the voltage and current stream coming from DAR, DAS and DAT is
connected to a dual-channel RDSP, SDSP, TDSP unit (i.e. DAR-V and DAR-C are
connected to RDSP).
Each phase voltage input stream is proportional to phase voltage u. Each phase current
input stream is proportional to derivation of phase current di/dt, when it originates from
Rogowski coil, or to phase current i, when it originates from Shunt or CT or Hall sensor. In
this case a derivative is inserted into the voltage channel to get a stream proportional to
du/dt. The sensors differ from each other for sensitivity, phase error and susceptibility to
external EM fields.
Each of these DSP units performs the following:
●checks the integrity of the streams
●calibrates streams
●filters both streams with a dedicated decimation filter
●computes active and reactive energies, momentary and RMS values for voltage and
current, period of power line voltage signal.
In each DSP there are calibrators capable of adjusting the readings ±12.5%.
The power computer does the final calculations of the value and direction of the powerand
checks for no-load condition.
Another dual DSP unit, called NDSP, processes the streams coming from DAN and DAH. In
fact, using the ENH
bit (see
Ta bl e 33
), the user can select either the voltage stream of the
DAN pin (DAN-V) or the DAH stream as the input of the NDSP unit, while the current stream
DAN-C is always processed as neutral current.
In its voltage channel, the NDSP unit uses a 2 s time multiplex to process two streams.
During the first half of the interval the voltage input stream is processed (which can be DANV or DAH, according to the ENH
bit), while during the second half a stream constituted by
the sum of all four calibrated currents (i.e. DAR-C + DAS-C + DAT-C + DAN-C).
In its current channel the NDSP unit process the current stream of the neutral conductor as
follows:
●checks the integrity of stream
●calibrates the stream
●filters the stream with a dedicated decimation filter
●computes momentary and RMS values of the stream
●if no errors have been detected in the phase timing, computes phase frequency,
integrates the phase powers by means of 3-input integrators of energies and generates
all pulse output signals.
When the DAH input stream is selected, it is checked to detect an external magnetic
influence (EMI) to the meter.
20/77Doc ID 15728 Rev 6
STPMC1Theory of operation
The calculator, thanks to its flexibility, can work in all worldwide distribution network
standards. By programming the SYS
OTP bits, it is possible to implement the following
systems:
The results of all DSP units are available as pulse frequency on pin LED, MOP and MON,
which can also drive a stepper counter, and as states on the digital outputs of device or as
data bits in data records, which can be read from the device by means of SPI interface from
pins SDA, SNC, SCL and SYN. This system bus interface is also used during temporary or
permanent programming OTP bits and system signals or to execute a remote reset request.
A logic block common to all DSP units performs other operations like:
●selecting the valid phase period result from which line frequency is computed in NDSP
unit
●checking the equality of phase angles between all three phase voltages
●preparing current values for compensation of external intermediate phase magnetic
influences
●checking the sum of currents
●computing intermediate phase voltages
●combining the 3-phase status bits
●performing a watchdog user function
After the device is fully tested, configured and calibrated, a dedicated bit of the OTP block,
called TSTD, can be written permanently in order to prevent the change of any configuration
bit.
9.2 Power supply
The supply pins for the analog part are VCC and VSS. The VCC is the power input of the 1.8
V low drop regulator, band-gap reference and bias generators.
From the V
used to power the OTP module and digital core. The V
for all the internal signals. 100 nF low ESR capacitors should be connected between V
and V
SS
to the device.
The STPMC1 contains a power on reset (POR) detection circuit. If the V
than 2.5 V then the STPMC1 goes into an inactive state, all the functions are blocked
asserting a reset condition. This is useful to ensure correct device operation at power-up
and during power-down. The power supply monitor has built-in hysteresis and filtering,
which gives a high degree of immunity from false triggering due to noisy supplies.
A bandgap voltage reference (VBG) of 1.23 V ±1% is used as a reference voltage level
pin a linear regulator generates the +1.8 V voltage supply level (VDD) which is
CC
, and 1 µF between VDD and V
pin represents the reference point
SS
. All these capacitors must be placed very close
SSA
supply is less
CC
Doc ID 15728 Rev 621/77
CC
Theory of operationSTPMC1
source for the linear regulator. Also, this module produces several bias currents and
voltages for all other analog modules and for the OTP module.
9.3 Resetting the STPMC1 (status bit
HLT
The STPMC1 has no reset pin. The device is automatically reset by the power-on-reset
detection circuit (POR) when the V
crosses the 2.5 V value, but it can be reset also
CC
through the SPI interface through a dedicated remote reset request (RRR) command (see
paragraph
9.21
for RRR details).
The reset through SPI is used during production testing or in an application with some onboard microprocessors when a malfunction of the device is detected.
Resetting the STPMC1 causes all the functional modules of STPMC1 to be cleared,
including the OTP shadow latches (see paragraph
9.19
for an OTP shadow latch memory
description). In case of reset through SPI the mode signals (see paragraph
description of the mode signals) are not cleared.
In cases of reset caused by the POR circuit all blocks of the digital part, except the SPI
interface, are held in a reset state for 125 ms after the reset condition. When the reset is
performed through SPI, no delayed turn-on is generated.
During the device reset, the status bit
HLT
is held high, meaning that data read from the
device register are not valid.
9.4 Clock generator (bits MDIV, FR1, HSA)
All the internal timing of the STPMC1 is based on the XTAL1 signal. This signal can be
generated in two different ways:
●Quartz: the oscillator works with an external crystal.
●External clock: the clock is provided by an external source connected to XTAL1.
)
9.20
for a
The suggested circuits are depicted in
Figure 8.Connections of oscillator: (a) quartz, (b) external source
22/77Doc ID 15728 Rev 6
Figure 8
.
STPMC1Theory of operation
The clock generator is responsible for two tasks.
The first is to retard the turn-on of some functional blocks after POR in order to help a
smooth start of external power supply circuitry by keeping off all major loads. For this
reason, all blocks of the digital part, except the SPI interface, are held in a reset state for 125
ms after a power on reset (see
Section 9.3
).
The second task of the clock generator is to provide all necessary clocks for the digital part.
In this task, a MDIV
nominal frequency value from XTAL1 (f
Four nominal frequencies are possible through proper setting of the MDIV
Ta bl e 10
).
and FR1 programming bits are used to inform the device about the
).
XTAL1
and FR1 bits (see
The internal master clock f
Table 10.Frequency settings through MDIV
f
XTAL1
4.194 MHz008.389 MHz
4.915 MHz019.830 MHz
8.192 MHz108.192 MHz
9.830 MHz119.830 MHz
1. 4 MHz and 8 MHz clock are also supported. MDIV and FR1 have to be set as for 4.194 MHz and 8.192
MHz respectively.
Through the HSA bit the frequency of the output pin CLK (f
the STPMSx devices, can be derived as reported in
Table 11.CLK pin frequency settings through HSA
HSA (1 bit)f
0f
1f
To properly work with STPMS2, the clock configurations in
Moreover, with STPMS2 companion chip the PM
Table 12.STPMC1 configuration for STPMS2
is derived from f
MCLK
MDIV (1 bit)FR1 (1 bit)f
as shown in
XTAL1
and FR1
Ta bl e 11
Ta bl e 10
(1)
), which provides the clock for
CLK
.
STPMC1
CLK
/ 4
XTAL1
/ 2
XTAL1
Ta bl e 12
must be used.
bit must always be set.
.
MCLK
MDIV (1 bit)HSA (1 bit)f
00f
10f
01f
9.5 Zero crossing detection (signal
The STPMC1 has a zero crossing detection circuit on the voltage channel that can be used
to synchronize some utility equipment to zero crossing or max of line voltage events. This
circuit produces the internal signal
the line voltages and a rising edge every peak (positive or negative) of one of the line
voltages.
ZCR
that has a falling edge every zero crossing of one of
Doc ID 15728 Rev 623/77
ZCR
CLK
/ 4
XTAL1
/ 4
XTAL1
/ 2
XTAL1
)
Theory of operationSTPMC1
The
ZCR
Figure 9.
signal is a 3-phase voltage zero cross signal. It is the result of a XNOR of the
of each phase. The
is 300 Hz signal. The
ZCR
of each of the three-phases is a 100 Hz signal, so a 3-phase
ZCR
signal is available on the MOP pin only when the STPMC1 works
as a peripheral with the configuration bit APL
ZCR
signal
=0.
ZCR
ZCR
9.6 Period and line voltage measurement (status bits:
LOW, BFF
From voltage channels, a base frequency signal
voltage is rising and it is low when the line voltage is falling, so that,
the sign of dv/dt. With further elaboration, the
A period meter, which is counting up pulses of f
period of voltage channel base frequency and checks if the voltage signal frequency is in the
band going from f
This is done, phase by phase, by means of the signal
and it is used to reset the period meter.
Table 13.Good frequency ranges for different clock source values
4.194 MHz8.389 MHz32.0 Hz128.0 Hz
4.915 MHz9.830 MHz37.5 Hz150.0 Hz
8.192 MHz8.192 MHz31.3 Hz125.0 Hz
9.830 MHz9.830 MHz37.5 Hz150.0 Hz
f
XTAL
If the counted number of f
18
2
equivalent pulses or if the counting is never stopped (no more
base frequency exceeds the lower limit and an error flag
the 8-bit status byte of each phase (see
)
f
MCLK
MCLK
/(2
LIN
is obtained, which is high when the line
ZCR
signal is also produced.
/8 reference signal, measures the
MCLK
18
- 23) ≈ f
freq. min. = f
/8 pulses between two trailing edges of
MCLK
MCLK
/218 to f
MCLK
/216.
MCLK
LIN
, which trailing edge is extracted
/218 freq. max. = f
BFR
Ta bl e 32
).
LIN
signal represents
LIN
is higher than the
LIN
trailing edge), the
is set. This error flag is part of
LIN, BFR
16
/2
MCLK
,
24/77Doc ID 15728 Rev 6
Loading...
+ 53 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.