Datasheet

Data Sheet ADE5166/ADE5169/ADE5566/ADE5569
Rev. D | Page 71 of 156
Figure 77 shows this discrete time integration or accumulation.
The apparent power signal is continuously added to the internal
register. This addition is a signed addition even if the apparent
energy theoretically remains positive.
The 49 bits of the internal register are divided by VADIV. If the
value in the VADIV register (Address 0x26) is 0, the internal
apparent energy register is divided by 1. VADI V i s a n 8 -bit,
unsigned register. The upper 24 bits are then written to the 24-bit
apparent energy register (VAHR, Address 0x07[23:0]). The
RVAHR register (Address 0x08), which is 24 bits long, is provided
to read the apparent energy. This register is reset to 0 after a read
operation.
Note that the apparent energy register is unsigned. By setting
VA E H F (Bit 2) and VA E O F (Bit 5) in the Interrupt Enable 2 SFR
(MIRQENM, Address 0xDA), the ADE5166/ADE5169/ADE5566/
ADE5569 can be configured to issue an ADE interrupt to the 8052
core when the apparent energy register is half full or when an over-
flow occurs. The half-full interrupt for the unsigned apparent
energy register is based on 24 bits, as opposed to 23 bits for the
signed active energy register.
Integration Times Under Steady LoadApparent Energy
As mentioned in the Apparent Energy Calculation section, the
discrete time sample period (T) for the accumulation register is
1.22 µs (5/MCLK). With full-scale sinusoidal signals on the analog
inputs and the VAGAIN register (Address 0x1F) set to 0x000,
the average word value from the apparent power stage is 0x1A36E2
(see the Apparent Energy Calculation section). The maximum
value that can be stored in the apparent energy register before it
over-flows is 2
24
or 0xFF FFFF. The average word value is added
to the internal register, which can store 2
48
or 0xFFFF FFFF FFFF
before it overflows. Therefore, the integration time under these
conditions, wit h VA DI V = 0, is calculated as follows:
Time =
min33.3sec199s22.1
0xD055
FFFFFFFF,0xFFFF,
==µ×
(33)
When VADIV is set to a value other than 0, the integration time
varies, as shown in Equation 34.
Time = Time
VADIV = 0
× VADIV (34)
Apparent Energy Pulse Output
All the ADE5166/ADE5169/ADE5566/ADE5569 circuitry has
a pulse output whose frequency is proportional to the apparent
power (see the Energy-to-Frequency Conversion section). This
pulse frequency output uses the calibrated signal from the
VAGA IN register. This output can also be used to output a pulse
whose frequency is proportional to I
rms
.
The pulse output is active low and should preferably be connected
to an LED, as shown in Figure 80.
VADIV
APPARENT POWER
or
I
rms
+
+
VAHR[23:0]
APPARENT POWER OR I
rms
IS
ACCUMULATED (INTEGRATED)
IN THE APPARENT ENERGY
REGISTER
23 0
48
0
48 0
%
TIME (nT)
T
APPARENT
POWER SIGNAL = P
07411-052
Figure 77. Apparent Energy Calculation