Datasheet

Data Sheet ADE7854/ADE7858/ADE7868/ADE7878
Rev. G | Page 55 of 100
This discrete time accumulation or summation is equivalent to
integration in continuous time following the expression in
Equation 37:
( )
( )
×=
=
=
0
0
T
Lim
n
TnT
qdttqergyReactiveEn
(37)
where:
n is the discrete time sample number.
T is the sample period.
On the ADE7858/ADE7868/ADE7878, the total phase reactive
powers are accumulated in the AVARHR, BVARHR, and
CVARHR 32-bit signed registers. The fundamental phase reactive
powers are accumulated in the AFVARHR, BFVARHR, and
CFVARHR 32-bit signed registers. The reactive energy register
content can roll over to full-scale negative (0x80000000) and
continue increasing in value when the reactive power is positive.
Conversely, if the reactive power is negative, the energy register
underflows to full-scale positive (0x7FFFFFFF) and continues
to decrease in value.
Bit 2 (REHF) in the STATUS0 register is set when Bit 30 of
one of the xVARHR registers changes, signifying one of these
registers is half full. If the reactive power is positive, the var-hour
register becomes half full when it increments from 0x3FFF FFFF
to 0x4000 0000. If the reactive power is negative, the var-hour
register becomes half full when it decrements from 0xC000 0000
to 0xBFFF FFFF. Analogously, Bit 3 (FREHF) in the STATUS0
register is set when Bit 30 of one of the xFVARHR registers
changes, signifying one of these registers is half full.
Setting Bits[3:2] in the MASK0 register enable the FREHF and
REHF interrupts, respectively. If enabled, the
IRQ0
pin is set
low and the status bit is set to 1 whenever one of the energy
registers, xVARHR (for REHF interrupt) or xFVARHR (for
FREHF interrupt), becomes half full. The status bit is cleared
and the
IRQ0
pin is set to high by writing to the STATUS0
register with the corresponding bit set to 1.
Setting Bit 6 (RSTREAD) of the LCYCMODE register enables a
read-with-reset for all var-hour accumulation registers, that is,
the registers are reset to 0 after a read operation.
AVGAIN
HPFDIS
[23:0]
HPF
AIGAIN
HPFDIS
[23:0]
DIGITAL
INTEGRATOR
REVRPA BIT IN
STATUS0[31:0]
HPF
VA
IA
AVARGAIN
AVAROS
APHCAL
ACCUMULATOR
VARTHR[47:0]
AVARHR[31:0]
32-BIT
REGISTER
TOTAL
REACTIVE
POWER
ALGORITHM
08510-245
DIGITAL SIGNAL PROCESSOR
2
4
AVAR
Figure 71. Total Reactive Energy Accumulation