AT73C500
9
Measurements and Calculations
The first operation performed by AT73C500 is digital high-
pass filtering. The purpose of the filtering is to remove the
DC offset of both current and voltage samples.
From offset free samples, active power is calculated
phase-by-phase with simple multiplication and addition
operations.
First, the current samples are multiplied by voltage sam-
ples. The multipl ication re sults are summed over one l ine
period and finally the sum value is divided by 64. This dis-
crete t ime o per ati on gives the av erag e power of one 50 Hz
period and the result corresponds to the following continu-
ous time formula:
where
T = 1/50 Hz,
n = 1, 2, 3,..., 20 (basic 50 Hz frequency and the har-
monics),
An = frequency response of calculations.
This method of calculation does take into account the effect
of harmonics.
The total power is calculated by summing the power of
each line phase. Reactive power calculation is based on a
similar procedure. Before mu ltiplying the cur rent and volt-
age samples AT73C500 performs a frequency independent
90 degree pha se shift of the voltage s ig nal. T hi s is r ea li zed
with a di git al H ilber t t ran sform ati on f ilter . Th e ba ndwi dth of
reactive powe r mea sure men t is limited to 360 Hz.
Based on the active and reactive results apparent power
and pow er fac tors are determi ned. RMS phas e voltages
are calculated by squaring and summing the voltage sam-
ples and fin ally ta king a squar e root of the r esul ts. Cur rent
is deter mined by dividi ng apparent po wer result by corr e-
sponding phase voltage.
Frequency measurement is based on a comparison of the
line frequency and AT73C500 sampling clock frequency.
The measurement range is from 20 Hz to 350 Hz.
All measurements and calculations, except frequency mea-
sureme nt, a re mad e ov er 1 0 l ine cy cle per io ds . The resu lts
are updated and transferred to processor bus once in 200
ms.
Measurement Registers
For the measurement parameters 25 registers are allo-
cated:
The size of the registers is either 16-bit or 32-bit. IEC spec-
ifications apply to the calculations of active and reactive
power and energy (REG 0-5 and REG 12-15). Other results
are intended mainly for demand recording and for va rious
diagnostic and display functions. The accuracy of those are
limited due to the finite resolution.
P1
T
--- ANUNsin n wt×{}ANINsin n wt ∅+×N
{}dt×××××[]
0
T
∫
×
n0=
N
∑
=
1
2
---AnAnUnIncos ∅n
()×××××
n0=
N
∑
=
Register Meaning
REG0 Phase 1, active powe r, P1(10T), 32-bit register;
REG1 Phase 2, active powe r, P2(10T), 32-bit register;
REG2 Phase 3, active powe r, P3(10T), 32-bit register;
REG3 Phase 1, reactive power, Q1(10T), 32-b it regi ste r ;
REG4 Phase 2, reactive power, Q2(10T), 32-b it regi ste r ;
REG5 Phase 3, reactive power, Q3(10T), 32-b it regi ste r ;
REG6 Phase 1, apparent power, S1(10T), 16-bit register;
REG7 Phase 2, apparent power, S2(10T), 16-bit register;
REG8 Phase 3, apparent power, S3(10T), 16-bit register;
REG9 Phase 1, power factor, PF1, 16-bit register;
REG10 Phase 2, power factor, PF2, 16-bit register;
REG11 Phase 3, power factor, PF3, 16-bit register;
REG12 Active exported energy since the latest reset, +Wp,
32-bit counter;
REG13 Active import ed energy sin ce the latest reset, -Wp,
32-bit counter;
REG14 Reactive energy, inductive load, Wqind, 32-bit
counter;
REG15 Reactive energy, capacitive load, Wqcap, 32-bit
counter;
REG16 Number of 10T periods elapsed since the latest
reset, 32-bit counter;
REG17 Fre que nc y, f, 16-bit register;
REG18 Reserved for further use, 16-bit register;
REG19 Phase 1, voltage U1, 16-bit register;
REG20 Phase 2, voltage U2, 16-bit register;
REG21 Phase 3, voltage U3, 16-bit register;
REG22 Phase 1, current I1, 16-bit register;
REG23 Phase 2, current I2, 16-bit register;
REG24 Phase 3, current I3, 16-bit register.