beautypg.com

3 background tasks, Meter_run(), Background tasks – Maxim Integrated 71M6521BE Energy Meter IC Family Software User Manual

Page 56

background image

71M652X Software User’s Guide

Revision 1.7

TERIDIAN Proprietary

56 of 138

© Copyright 2005-2007 TERIDIAN Semiconductor Corporation

5.4.3 Background Tasks

meter_run()

gain_compensation()

meter_run()

Wh_accumulate()

xfer_update = TRUE?

Compute_Phase_Angle()

RTC_Compensation ()

Determine_Frequency()

Determine_Peaks ()

Calc_Voltage_Phase ()

totals_ready = TRUE

no

yes

Compute_RMS()

SelectPulses()

VARh_accumulate()

VAh_accumulate()

Calculate operating time

Calibration requested?

calibrate()

yes

no

Flag interface not

signed on?

Update registers for AMR

yes

END

pcnt_update()

meter_LCD()

Figure 5-11: ce_update