Microchip Technology ARD00330 Scheda Tecnica
![Microchip Technology](https://files.manualsbrain.com/attachments/cf42c3c895ef469f06d2e47e97fd98d738fcf5cf/common/fit/150/50/7340124dc8aa983aaf764094e2f06faab86f306c03111c5817f7e4e53fb2/brand_logo.gif)
PIC18F87J72 Single-Phase Energy Meter Calibration User’s Guide
DS51964A-page 34
© 2011 Microchip Technology Inc.
2.4.4
Flow Chart for C1 Configuration – Active Energy, Active Power Gain
Begin Calibration
Put meter in Calibration
Configuration C1
(VB and IB at PF=1)
Set MODE1 register bits
and LINE_CYC register
Enable Calibration Mode
by setting bit 0 and 1
of CAL_CONTROL
register to 1
Is
CAL_MODE
bit 1 low?
NO
YES
Read contents of
RAW_ENERGY_ACT,
RAW_POWER_ACT
Calculate and Write
GAIN_NUMR_ENERGY_ACT,
GAIN_DENR_ENERGY_ACT,
GAIN_POWER_ACT contents
GAIN_POWER_ACT contents
based on equations in
End