Microchip Technology ARD00330 データシート

ページ / 62
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 
based on equations in 
 
End