Microchip Technology ARD00342 User Manual

Page of 46
MCP3901 and PIC18F65J90 Energy Meter Reference Design
DS51968A-page 18
© 2012 Microchip Technology Inc.
3.2
REGISTER LIST
Note:
Important! Not all registers and features
are implemented in this version of
firmware release.
TABLE 3-1:
INTERNAL REGISTER SUMMARY
Name
Bits R/W
Description 
8
R/W Configuration register for operating mode of the meter
8
R
STATUS register
8
R/W Configuration register for calibration control
16
R/W 2
n
 number of line cycles to be used during energy accumulation
16
R
Counter for number of line cycles
64
R
Raw
2
 RMS value from the current A/D converter in LSBs
16
R
Raw RMS value from the current A/D converter in LSBs
16
R
RMS value of the current, post Calibration
64
R
Raw
2
 RMS value from the voltage A/D converter in LSBs
16
R
Raw RMS value from the voltage A/D converter in LSBs
16
R
RMS value of the voltage, post Calibration
16
R
Line Frequency
64
R
Raw Active Power
32
R
Final Active Power, units in watts (W)
32
R
Final Apparent Power, units in volt-amperes (VA)
64
R
Raw Reactive Power
32
R
Final Reactive Power, units in volt-amperes-reactive (VAR)
32
R
Period register
32
R
Final Active Energy accumulated
RAW_ENERGY_ACT
64
R
Raw Active Energy accumulated
32
R
Final Apparent Energy accumulated
RAW_ENERGY_APP
64
R
Raw Apparent Energy accumulated
8
R
Not implemented
8
R
Not implemented
32
R
Final Reactive Energy accumulated
RAW_ENERGY_REACT
64
R
Final Reactive Energy accumulated
8
R/W Phase compensation between voltage and current
16
R/W Offset adjustment for RMS current reading
16
R/W Offset adjustment for RMS voltage reading
16
R/W Gain adjustment for RMS current
16
R/W Gain adjustment for RMS voltage
32
R/W Active Power offset
16
R/W Active Power gain adjust
32
R/W Offset correction for Reactive Power
16
R/W Reactive Power gain adjust to produce X VAR/LSB
16
R/W Not implemented
16
R/W Not implemented
16
R/W Not implemented
8
R/W Defines CF pulse width from 0 to 255 x 0.8192 ms (0.209s)
8
R/W Active Energy Pulse Output correction factor