SLAA517F May 2012 – August 2021 MSP430F6720A , MSP430F6720A , MSP430F6721A , MSP430F6721A , MSP430F6723A , MSP430F6723A , MSP430F6724A , MSP430F6724A , MSP430F6725A , MSP430F6725A , MSP430F6726A , MSP430F6726A , MSP430F6730A , MSP430F6730A , MSP430F6731A , MSP430F6731A , MSP430F6733A , MSP430F6733A , MSP430F6734A , MSP430F6734A , MSP430F6735A , MSP430F6735A , MSP430F6736 , MSP430F6736 , MSP430F6736A , MSP430F6736A
Power and energy are calculated for a frame’s worth of active and reactive energy samples. These samples are phase corrected and passed on to the foreground process that uses the number of samples (sample count) and use the formulas listed below to calculate total active and reactive powers.
Where,
The consumed energy is then calculated based on the active power value for each frame in similar way as the energy pulses are generated in the background process except that:
For reactive energy, the 90° phase shift approach is used for two reasons:
Because the frequency of the mains varies, it is important to first measure the mains frequency accurately and then phase shift the voltage samples accordingly. This is discussed in Section 4.3.3.
The phase shift consists of an integer part and a fractional part, the integer part is realized by providing an N samples delay. The fractional part is realized by a fractional delay filter (refer to: Phase compensation).