STPM11, STPM12 STPM13, STPM14: Single Phase Energy Metering IC With Pulsed Output and Digital Calibration
STPM11, STPM12 STPM13, STPM14: Single Phase Energy Metering IC With Pulsed Output and Digital Calibration
STPM11, STPM12 STPM13, STPM14: Single Phase Energy Metering IC With Pulsed Output and Digital Calibration
STPM13, STPM14
Single phase energy metering IC with pulsed output
and digital calibration
Features
■ Ripple free active energy pulsed output
■ Direct stepper counter drivers
■ Shunt, current transformer, Rogowsky coil
sensors
■ Live and neutral monitoring (STPM13/14) TSSOP20
■ Easy and fast digital calibration at only one
load point
hard wired DSP and interface for calibration and
■ No-load, negative power and tamper indicators
configuration.
■ Integrated linear VREGs
The calibration and configuration are done by
■ RC (STPM11/13) or crystal oscillator OTP cells, that can be programmed through a
(STPM12/14) serial interface. The configured bits are used for
■ Support 50 ÷ 60 Hz - IEC62052-11, IEC62053- testing, configuration and calibration purposes.
2X specification From two ∑ Δ output signals coming from the
■ Less than 0.1% error analog section, a DSP unit computes the amount
of consumed active energy. The active energy is
available as a pulse frequency output and directly
Description driven by a stepper counter. In the STPM1x an
The STPM1x family is designed for effective output signal with pulse frequency proportional to
measurement of active energy in a power line energy is generated. This signal is used in the
system using a Rogowski Coil, current calibration phase of the energy meter application
transformer and shunt sensors. This device is allowing a very easy approach. When the device
specifically designed to provide all the necessary is fully configured and calibrated, a dedicated bit
features to implement a single phase energy of OTP block can be written permanently in order
meter without any other active component. The to prevent accidental entry into test mode or
STPM1x device family consists, essentially, of two changing any configuration bit.
parts: the analog part and the digital part. The
former, is composed of a preamplifier and first
order ∑ Δ A/D converter blocks, band gap voltage
reference, low drop voltage regulator. The digital
part is composed of a system control, oscillator,
Contents
2 Pin configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 Maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5 Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.1 Measurement error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.2 ADC offset error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.3 Gain error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.4 Power supply DC and AC rejection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.5 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
7 Theory of operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
7.1 General operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
7.2 Analog inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
7.3 ∑Δ A/D Converters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
7.4 Period and line voltage measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
7.5 Single wire meter mode (STPM13/14 with Rogowsky coil sensor) . . . . . 18
7.6 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7.7 Load monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
7.8 Error detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
7.9 Tamper detection module (STPM13/14 only) . . . . . . . . . . . . . . . . . . . . . . 21
7.10 Phase compensation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7.11 Clock generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7.12 Resetting the STPM1x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
7.13 Energy to frequency conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
7.14 Driving a stepper motor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
7.15 Configuring the STPM1x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
9 STPM1x calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
10 Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
12 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
List of tables
List of figures
1 Schematic diagram
2 Pin configuration
3 Maximum ratings
Note: Absolute maximum ratings are those values beyond which damage to the device may occur.
Functional operation under these condition is not implied
4 Electrical characteristics
VCC = 5 V, TA= 25°C, 2.2 µF between VDDA and VSS, 2.2 µF between VDDD and VSS, 2.2 µF
between VCC and VSS unless otherwise specified.
General section
0.75VC
SDA-TD, SCS, SYN-NP, LED
VIH Input high voltage C V
CLKIN 1.5
SDA-TD, SCS, SYN-NP, LED 0.25VCC
VIL Input low voltage V
CLKIN 0.8
VOH Output high voltage IO = -2 mA VCC-0.4 V
VOL Output low voltage IO = +2 mA 0.4 V
IUP Pull up current 15 µA
tTR Transition time CLOAD = 50 pF 10 ns
RP External resistor 1 4 MΩ
CP External capacitors 22 pF
4 4.194
fCLK Nominal output frequency MHz
8 8.192
RC Oscillator (STPM11/13)
5 Terminology
5.5 Conventions
The lowest analog and digital power supply voltage is named 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 means that the current is flowing into the pin
and is positive. Sourcing current means that the current is flowing out of the pin and is
negative.
The timing specifications of the signal treated by digital control are relative to CLKOUT. This
signal is provided by from the crystal oscillator of 4.194 MHz nominal frequency or by the
internal RC oscillator. An external source of 4.194 MHz or 8.192 MHz can be used.
The timing specifications of signals of the CFGI interface are relative to the SCL-NLC, there
is no direct relationship between the clock (SCL-NLC) of the CFGI interface and the clock of
the DSP block.
A positive logic convention is used in all equations.
12/46 Doc ID 13167 Rev 6
STPM11, STPM12, STPM13, STPM14 Typical performance characteristics
Figure 3. Supply current vs. supply voltage, Figure 4. RC oscillator frequency vs. VCC,
TA = 25 °C R = 12 kΩ, TA = 25 °C
Figure 5. RC oscillator: frequency jitter vs. Figure 6. Analog voltage regulator: line - load
temperature regulation
Figure 7. Digital voltage regulator: line - load Figure 8. Voltage channel linearity at
regulation different VCC voltages
Figure 9. Power supply AC rejection vs. VCC Figure 10. Power supply DC rejection vs. VCC
Figure 11. Error over dynamic range gain Figure 12. Primary current channel linearity at
dependence different VCC
Figure 13. Gain response of ΔΣ AD Converters Figure 14. Clock frequency vs. external
resistor
7 CRC=0
CRC=1
6 CRC=2
f [MHz]
2
5 10 15 20
R [kΩ]
7 Theory of operation
Gain Max input voltage (V) Gain Max input voltage (V)
8X ±0.15
16X ±0.075
4 ±0.30
24X ±0.05
32X ±0.035
The Table 8 and Table 9 below show the gain values according to the configuration bits:
8 0 0
16 0 1
Rogowsky Coil
24 1 0
32 1 1
8 CT 2 x
32 Shunt 3 x
8 8 0 0
16 16 0 1
Rogowsky Coil Rogowsky Coil
24 24 1 0
32 32 1 1
8 8 CT 2 x
CT
8 32 Shunt 3 x
Both the voltage and current channels implement an active offset correction architecture
which has the benefit of avoiding any offset compensation.
The analog voltage and current signals are processed by the ∑ Δ Analog to digital
converters that feed the hardwired DSP. The DSP implements an automatic digital offset
cancellation that makes possible avoiding any manual offset calibration on the analog
inputs.
A ∑ Δ modulator converts the input signal into a continuous serial stream of 1s and 0s at a
rate determined by the sampling clock. In the STPM1X, the sampling clock is equal to
fCLK/4. The 1-bit DAC in the feedback loop is driven by the serial data stream. The DAC
output is subtracted from the input signal. If the loop gain is high enough, the average value
of the DAC output (and therefore the bit stream) can approach that of the input signal level.
When a large number of samples are averaged, a very precise value of the analog signal is
obtained. This averaging is carried out in the DSP section which implements decimation,
integration and DC offset cancellation of the supplied ∑ Δ signals. The gain of the
decimation filters is 1.004 for the voltage channel and 0.502 for the current channel. The
resulting signal has a resolution of 11bits for voltage channel and 16 bits for current channel.
f CLK/4
Integrator
Output digital signal
+
Σ ∫
Input analog signal
-
DAC
Equation 1
64
VIRMS−BFR =
6703⋅ KV
(CT/Shunt)
Equation 2
64
VIRMS−BFR =
6687⋅ KV
(Rogowsky)
Where KV is the voltage calibrator value ranging from 0.875 to 1.000.
The BFR flag is cleared when the VIRMS value goes above twice VIRMS-BFR. When the BFR
error is set, the computation of power is suspended and MOP, MON and LED will be held
low.
0 0.3594
1 0.3906
2 0.4219
3 0.4531
For example, if R1 = 783kΩ and R2 = 475Ω are used as resistor divider when the line
voltage is present, the positive voltage present at the input of the voltage channel of
STPM1x is:
Equation 3
R2
VI = ⋅ VRMS 2
R1 + R2
since the maximum voltage value applicable to the voltage channel input of STPM1x is
+0.3V, the equivalent maximum line voltage applicable is:
Equation 4
VPK = R1+R2/R2 • 0.3 = 494.82
considering the case of NOM=2, the correspondent RMS values used for energy
computation is:
Equation 5
VRMS = VPK • 0.4219 = 208.76 [V]
Usually the supply voltage for the electronic meter is taken from the line voltage. In SWM,
since the line voltage is no longer present, another power source must be used in order to
provide the necessary supply to STPM1x and the other electronic components of the meter.
bias currents and voltages for all other analog modules and for the OTP module. The
bandgap voltage temperature behavior can be changed in order to better compensate the
variation of sensor sensitivity with temperature. This task is performed with the BGTC
configuration bits.
When a no-load condition occurs (BIL=1), the integration of power is suspended and the
tamper module is disabled.
If a no-load condition is detected, the BIL signal blocks generation of pulses for stepper and
forces the SCLNLC pin to be low.
Equation 6
EnergyCH1 - EnergyCH2 > KCRIT (EnergyCH1 + EnergyCH2)/2; where KCRIT can be 12.5%
or 6.25%.
The detection threshold is much higher than the accuracy difference of the current channels,
which should be less than 0.1%. Some margin should be left for a possible transition effect,
due to accidental synchronism between the actual load current change and the rhythm of
taking the energy samples.
The tamper circuit works if the energies associated with the two current channels will be
both positive or both negative. If the two energies have different signs, the tamper remains
on constantly. However, the channel with the associated higher power is selected for the
final computation of energy.
In single wire mode, the apparent energy rather than active is used for tamper detection.
Normal state
The meter is initially set to normal state, i.e. tamper not detected. In such state, we expect
that the values of both load currents should not differ more than the accuracy difference of
the channels. For this reason, we can use an average value of currents of both channels for
the active energy calculation. The average is implemented with the multiplex ratio of 32:32
periods of line per channel. This means that for 32 periods of line voltage, i.e. 640 ms at 50
Hz, the current of the primary channel is used for the calculation followed by another 32
periods of line voltage when the current of secondary channel is used instead. Four periods
before the primary to secondary switching point, a tamper detection module is activated. It is
deactivated after eight periods of line have elapsed. This means that energy of four periods
of primary channel immediately followed by energy of four periods of secondary channel is
sampled within the tamper module. We shall call those samples A and B respectively. From
these two samples the criteria of tamper detection is calculated. If four consecutive new
results of criteria happen, i.e. after elapsed 5.12s at 50 Hz, the meter will enter into tamper
state.
Tamper state
Within this state the multiplex ratio will change either to 60:4, when primary current is higher
than secondary, or to 4:60 otherwise. Thus, the channel with the higher current is used in
the energy calculation. The energy is not averaged by the mentioned ratio, rather the last
measured higher current is used also during 4 line period gap. The gap is still needed in
order to monitor the samples of the non-selected channel, which should check when the
tamper detected state is changed to either normal or another tamper detected state.
Several cases of transition of the state are shown in the Figure 17 - below
The detected tamper condition is stored in the BIT signal. This signal is connected to the
SDA-TD pin. When this pin is low, a tamper condition has been detected.
When internal signals are not good enough to perform the computation, i.e. line period is out
or range or ∑Δ signals from the analog part are stacked at high or low logic level, or no load
condition is activated, the tamper module is disabled and its state is preset to normal.
0 P/64
1 P/128
P
2 P/32
3 P/256
Due to the innovative and proprietary power calculation algorithm, the frequency signal is
not affected by any ripple at twice the line frequency. This feature strongly reduces the
calibration time of the meter.
0 0 31.25 ms P/64
0 1 31.25 ms P/128
0 2 31.25 ms P/32
0 3 31.25 ms P/256
1 0 156.25 ms P/640
1 1 156.25 ms P/1280
1 2 156.25 ms P/320
1 3 156.25 ms P/2560
The mono-flop limits the length of the pulses according to the LVS bit value.
The decoder distributes the pulses to MA and MB alternatively, which means that each of
them has only one half of selected frequency.
Negative power is computed with its own sign, and the MOP and MON signals invert their
logic state in order to make the backward rotation direction of the motor. See the diagram
below.
Hi
MON
Lo
Hi
MOP
Lo
Hi
MON
Lo
Hi
MOP
Lo
When a no-load condition is detected MOP and MON are held low.
The very first CFG bit, called TSTD, is used to disable any change of system signals after it
has been permanently set. During the configuration phase, each bit set to logic level 1
increases the supply current of STPM01 of about 120 µA, until the TSTD bit is set to 1. The
residual increase of supply current is 2 µA per each bit set to 1. It is then recommended to
set the TSTD bit to 1 after the configuration procedure in order to keep the supply current as
low as possible.
The STPM1x can work either using the data stored in the OTP cells or the data available in
the shadow latches. This can be chosen according to the value RD Mode signal (see
paragraph 7.16 for description). If the RD is set, the CFG bits originates from corresponding
OTP shadow latches. If the RD is cleared, the CFG bits originates from corresponding OTP
antifuses. In this way, it is possible to temporarily set up certain configurations or calibrations
of the device then verify and change, if necessary. This exercise is extensively used during
production tests.
Each configuration bit can be written sending a byte command to STPM1x through its
configuration interface. The procedure to write the configuration bits is described in the
Configuration Interface section (7.17).
After the TSTD bit has been set, no other command can be sent to the STPM1x. This
implies that the shadow latches can no longer be used as source of configuration data.
This bit swaps the energy type between fundamental or wide band.
001010 10 FUND 1 - FUND=0: wide band active energy up to 50th harmonic;
- FUND=1: fundamental active energy
001011 11 1 Reserved
001100 12 No-load condition constant:
LTCH=0 → 800
LTCH 2 LTCH=1 → 1600
001101 13 (1) LTCH=2 → 3200
LTCH=3 → 6400
Constant of stepper pulses/kWh (see par. 7.14) selection:
If LVS=0,
KMOT=0 → P/64
001110 14
KMOT=1 → P/128
KMOT=2 → P/32
KMOT 2 KMOT=3 → P/256
If LVS=1,
KMOT=0 → P/640
001111 15 (1) KMOT=1 → P/1280
KMOT=2 → P/320
KMOT=3 → P/2560
010010 18
BGTC 2 Bandgap temperature compensation bits. See Figure 16 for details.
010011 19 (1)
010100 20
010101 21 4-bit unsigned data for compensation of phase error, 0°+0.576°
CPH 4 16 values are possible with a compensation step of 0.0384°. When CPH=0
010110 22 the compensation is 0°, when CPH=15 the compensation is 0.576°.
010111 23 (1)
011000 24
011001 25
011010 26
8-bit unsigned data for voltage channel calibration.
011011 27 256 values are possible. When CHV is 0 the calibrator is at -12.5% of the
CHV 8
011100 28 nominal value. When CHV is 255 the calibrator is at +12.5%. The calibration
step is then 0.098%.
011101 29
011110 30
011111 31 (1)
100000 32
100001 33
100010 34
8-bit unsigned data for primary current channel calibration.
100011 35 256 values are possible. When CHP is 0 the calibrator is at -12.5% of the
CHP 8
100100 36 nominal value. When CHP is 255 the calibrator is at +12.5%. The calibration
step is then 0.098%.
100101 37
100110 38
100111 39 (1)
101000 40
101001 41
101010 42 STPM13/14 only
101011 43 8-bit unsigned data for secondary current channel calibration.
CHS 8 256 values are possible. When CHS is 0 the calibrator is at -12.5% of the
101100 44 nominal value. When CHS is 255 the calibrator is at +12.5%. The calibration
101101 45 step is then 0.098%.
101110 46
101111 47 (1)
110000 48 STPM11/13 only
2-bit unsigned data for calibration of RC oscillator. (see Typical characteristics
in)
CRC 2
110001 49 (1) CRC=0, or CRC=3 cal=0%
CRC=1, cal=+10%;
CRC=2, cal=-10%
110010 50 2-bit modifier of nominal voltage for Single Wire Meter.
NOM 2 NOM=0: KNOM=0.3594 / NOM=1: KNOM=0.3906 / NOM=2: KNOM=0.4219 /
110011 51 (1) NOM=3: KNOM=0.4531
Selection of additional gain on current channels:
110100 52 ADDG 1
ADDG=0: Gain+=0 / ADDG=1: Gain+=8
STPM13/14 only
110101 53 CRIT 1 Selection of tamper threshold:
CRIT =0: 12,5% / CRIT =1: 6,25%
Type of stepper selection:
110110 54 LVS 1
LVS=0: pulse width 31.25 ms, 5V, / LVS=1: pulse width, 156.25 ms, 3V
1. IMPORTANT: This Bit represents the MSB of the decimal value indicated in the description column.
– RD mode signal has been already described in par. 7.15 (configuring the STPM1x),
but there is another implied function of the signal RD. When it is set, each sense
amplifier is disconnected from corresponding antifuse element and this way, its 3 V
NMOS gate is protected from the high voltage of VOTP during permanent write
operation. This means that as long as the VOTP voltage reads more than 3 V, the
signal RD should be set.
– PUMP. When set, the PUMP mode signal transforms the MOP and MON pins to act
as driving signals to implement a charge-pump DC-DC converter (see Figure 23).
This feature is useful in order to boost the VCC supply voltage of the STPM1x to
generate the VOTP voltage (14 V to 20 V) needed to program the OTP anti-fuse
elements.
– WE (write Enable): This mode signal is used to permanently write to the OTP anti-
fuse element. When this bit is not set, any writing to the configuration bit is recorded
in the shadow latches. When this bit is set, the writing is recorded both in the shadow
latch and in the OTP anti-fuse element.
The condition in which SCS, SYN-NP and SCL-NLC inputs are set to high level determines
the idle state of the CFGI interface and no data transfer occurs.
– SCS: in the STPM1X, the SYN-NP, SCL-NLC and SDA-TD have the dual task to
provide information on the meter status (see Pin Description table) and to allow CFGI
communication. The SCS pin allows using the above pins for CFGI communication
when it is low and allows the normal operation of SYN-NP, SCL-NLC and SDA-TD
when it is high. In this section, the SYN-NP, SCL-NLC and SDA-TD operation as part
of the CFGI interface is described.
– SYN-NP: this pin allows synchronization of the communication between STPM1x and
the host. See Figure 21 - for detailed timing of the pin.
– SCL-NLC: it is basically the clock pin of the CFGI interface. This pin function is also
controlled by the SCS status. If SCS is low, SCL-NLC is the input of the serial bit
synchronization clock signal. When SCS is high, SCL-NLC is also high which
determines the idle state of the CFGI.
– SDA-TD is the Data pin. SDA-TD is the input of the serial bit data signal.
Any pin above has internal weak pull up device of nominal 15 A. This means that when a pin
is not forced by external signals, the state of the pin is logic high. A high state of any input
pin above is considered as an idle (not active) state. For the CFGI to operate correctly, the
STPM1x must be correctly supplied as described in the power supply section. When SCS is
active (low), signal SDA-TD should change its state at trailing edge of signal SCL-NLC and
the signal SDA-TD should be stable at the next leading edge of signal SCL-NLC. The first
valid bit of SDA-TD always starts with the activation of signal SCL-NLC.
Writing procedure
Each writable bit (configuration and mode bits) has its own 6-bit absolute address. For the
configuration bits, the 6-bit address value corresponds to its decimal value, while for the
mode bits, the addresses are the ones indicated in the Mode Signal paragraph (7.16).
In order to change the latch state, a byte of data must be sent to STPM1x via CFGI. This
byte consists of 1-bit data to be latched (msb), followed by 6-bit address of destination latch,
followed by 1-bit don't care data (lsb) which totals 8 bits of command byte.
For example, if we would like to set the configuration bit 52 (additional gain of 8) to 1, we
must convert the decimal 52 to its 6-bit binary value: 110100. The byte command will be
then composed like this:
1 bit DATA value+6-bits address+1 bit (0 or 1) as depicted in Figure 21. In this case the
binary command will be 11101000 (0xE8) or 11101001 (0xE9).
Inside the STPM1x the computing section of the measured active power uses a completely
new patented signal process approach. This approach allows the device to reach high
performances in terms of accuracy.
The signals, coming from the sensors, for the instantaneous voltage is:
Equation 7
v(t) = V•sin ωt; where V is the peak voltage and ω is related to the line frequency
and the instantaneous current is:
Equation 8
i(t) = I • sin (ωt + ϕ); where I is the peak current, ω is related to the line frequency and ϕ is
the phase difference between voltage and current
Active power
In the STPM1x, after the pre-conditioning and the A/D conversion, the digital voltage signal
(which is dynamically more stable with respect to the current signal) is processed by a
differentiate stage which transforms:
Equation 9
v(t) → v’(t) = dv/dt = V ⋅ ω ⋅ cos tω; (see [5] in Figure 22);
The result, together with the pre-processed and digitalized current signal:
Equation 10
i(t) = I ⋅ sin(tω + ϕ); (see [6] in Figure 22)
can then be used to calculate. These digital signals are also used in two additional steps for
integration, obtaining:
Equation 11
dv/dt → v(t) = V ⋅ sin tω; (see [7] in Figure 22)
Equation 12
I
i(t) ⋅ I( t) = ∫ i(t) ⋅ dt = − ω ⋅ cos( ωt + ϕ)
(see [8] in Figure 22)
Now four signals are available. Combining (pairing) them by two multiplication steps two
results are obtained:
Equation 13
Equation 14
V ⋅ I ⋅ cos ϕ V ⋅ I ⋅ cos(2ωt + ϕ)
p/ 2 (t) = v(t) ⋅ i(t) = −
2 2
(see [10] in Figure 22)
After these two operations, another stage another step involves the subtraction of p1 from
p2 and dividing the result by 2, to obtain the active power:
Equation 15
(p ( t ) − p/ 1( t )) V ⋅ I ⋅ cos ϕ
p( t ) = / 2 =
2 2
(see [12] in Figure 22)
In this way, the AC part
Equation 16
⎛ V ⋅ I ⋅ cos(2ωt + ϕ) ⎞
⎜ ⎟
⎝ 2 ⎠
has been then removed from the instantaneous power.
In the case of current sensors like "Rogowski coils", which provide the rate of the
instantaneous current signal, the initial voltage signal differentiation stage is switched off. In
this case the signals coming from the A/D conversion and their consequent integrations are:
Equation 17
v(t) = V ⋅ sin (tω);
Equation 18
di( t )
i′( t ) = = −I ⋅ ω ⋅ cos( ωt + ϕ)
dt
Equation 19
V
∫
V(t) = v(t) ⋅ dt = −
ω
⋅ cos ωt
Equation 20
The signals process flow is the same as shown in the previous case, and even with the
formulas above, the result is the same.
The absence of any AC component allows a very fast calibration procedure. Averaging the
readings of several line periods is not needed. The active energy measurement is already
stable after one line cycle. Moreover the digital calibration allows saving time and space
compared to the hardware calibration made with resistor strings.
9 STPM1x calibration
Energy meters based on STPM1x devices are calibrated on the frequency of the output
pulse signal.
The devices are comprised of two independent meter channels for line voltage and current
respectively. Each channel includes its own digital calibrator, to adjust the voltage and
current signals coming from the sensors in the range of ±12.5% in 256 steps. A digital filter
is included to remove any signal DC component.
The devices produce an energy output pulse signal whose frequency is proportional to the
measured active energy.
The devices have an embedded memory, 54 bits, used for configuration and calibration
purposes. The value of these bits can be written temporarily or permanently through CFGI
communication channel.
The basic information needed to start the calibration procedure is found in Table 17 and
Table 18:
The following typical STPM01 parameters and constants are also known:
From the target power constant CP of the meter and the actual values of VRMS and IRMS,
which are applied to the meter under calibration, the error of power measurement can be
calculated:
Equation 21
err = 100(fx/f -1) [%], where fx is the real frequency read at LED output.
Now, a final unit less power reduction factor can be calculated:
Equation 22
pF = (pD - err)/100
This final power reduction factor can be considered as a product of voltage and current
reduction factors which are produced from corresponding calibration constants. So, an
obvious solution to obtain the voltage and current reduction factors is to calculate a common
reduction factor as a square root of pF. This result must fall within the indicated range,
otherwise the device cannot be calibrated:
768 ≤ R = 1024 pF + 0.125 < 1024
In order to obtain the corresponding calibration constants, the reduction factor must be
transformed:
CV = CC = R - 768
By using separately the integer and the fractional part of the common reduction a better fit of
calibration constants can be produced. Simply, let's set one of the two calibration registers
(e.g. CV) to the lowest integer value of R, while the other (CC) should be set to the nearest
integer value of R. Examples:
10 Schematic
mm. inch.
Dim.
Min. Typ. Max. Min. Typ. Max.
A 1.2 0.047
K 0° 8° 0° 8°
A A2
K L
A1 b e
c E
E1
PIN 1 IDENTIFICATION
1
0087225C
mm. inch.
Dim.
Min. Typ. Max. Min. Typ. Max.
A 330 12.992
D 20.2 0.795
N 60 2.362
T 22.4 0.882
12 Revision history
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, 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 no
liability 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 this
document 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 products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third 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 IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, 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, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
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.