
Metrology Computation Engine
5.4.1 Background Process
Time-critical sample-based processes are performed in the background. The process is started by a
trigger, at the sample rate, sampling complete interrupt. The background process is:
1. Capture data from voltage and current ADC channels
2. Perform voltage sample processing
(a) Voltage channel high pass filtering/dc offset removal
(b) Wire resistance compensation
(c) Integration of square of voltage(i) sample
(d) Integration of voltage(i) to fundamental voltage
(e) Adjust phase correction to voltage(i) sample
3. Current sample processing
(a) Current channel high pass filtering/dc offset removal
(b) Adjust phase correction to current(i) sample
(c) Integration of square of current(i) sample
(d) Capacitor compensation
4. Power processing
(a) Integrate voltage(i) × current(i)
(b) Integrate quadrature voltage(i) × current(i)
(c) Integrate fundamental active power
(d) Integrate fundamental reactive power
5. Line frequency processing
(a) Update sample count since last report
(b) Determine the presence of a valid zero crossing
(c) Compute the period between zero crossing
(d) Check for dc mode or ac mode and switch over
6. Trigger foreground process
(a) Setting flag to indicate there is data for the foreground to process
35
SLAU587 – August 2014
Firmware and Embedded Metering Library API
Copyright © 2014, Texas Instruments Incorporated