2013 Microchip Technology Inc. DS20005256A-page 1
MCP39F501
Features:
Power Monitoring Accuracy capable of 0.1% error
across 4000:1 dynamic range
Fas t Calibration Routines
Programmable Event Notifications such as over-
current and voltage sag, surge protection
512 bytes User-accessible EEPROM through
page read/write commands
Non-volatil e On-chip Memory, no external
memory required
Built-in calculations on fast 16-bit processing core
- Active, Rea c tive and Apparent Power
- True RMS Current, RMS Voltage
- Line Frequency, Power Factor
Two-Wir e Serial Protocol using a 2-w ire Uni versa l
Asynch rono us Receiver/Tra ns mi tter (U ART) inter-
face supporting multiple devices on a single bus
Low-Drift Internal Voltage Reference, 10 ppm/°C
typical
28-lead 5x5 QFN package
Extended Temperature Range -40°C to +125°C
Applications:
Real-time Measurement of Input Power for
AC/DC supplies
Intelli gent Power Distribu tion Units
Description:
The MCP39F501 is a highly integrated, single-phase
power-monitoring IC designed for real-time
measurement of input power for AC/DC power
supplies, power distribution units and industrial
applications. It includes dual-channel delta sigma
ADCs, a 16-bit calculation engine, EEPROM and a
flexible 2-wire interface. An integrated low-drift voltage
reference with 10 ppm/°C in addition to 94.5 dB of
SINAD performance on each measurement channel
allows for better than 0.1% accurate designs across a
4000:1 dy namic range.
Package Type
Functional Block Diagram
125
2
3
4
5
89
10 11 12
21
20
19
18
17
28 27 26 24
MODE/DIR
NC
UART_RX
COMMONA
NC
NC
NC
AVDD
UART_TX
RESET
DVDD
DGND
MCLR
EP
29
6
7
OSCI
OSCO
13 14
COMMONB
A0/DIO0
16
15
23 22
REFIN+/OUT
DIO3
I1+
I1-
V1-
V1+
AN_IN/DIO2
AGND
DGND
A1/DIO1
DR
MCP39F501
5x5 QFN*
* Includes Exposed
Therma l Pad (EP); see Table 3-1.
24-bit Delta Sigma
Multi-level
+
-
SINC3
Digital Filter
Modulator ADC
PGA
I1+
I1-
24-bi t Delta Sigma
Multi-level
+
-
SINC
3
Digital Filter
Modulat or ADC
PGA
V1+
V1-
16-BIT
CORE
Calculation
Engine
(CE) Configurable
Digital Outputs
UART
Serial
Interface
UART_TX
UART_RX
A0/DIO0
FLASH
10-bit SAR
ADC
AN_IN/DIO2
OSCI
OSCO
Timing
Generation
Internal
Oscillator
Generation
AVDD AGND DVDD DGND
A1/DIO1
MODE/DIR
DIO3
AN_IN/DIO2
Single-Phase, Power-Monitoring IC with Calculation and Event Detection
MCP39F501
DS20005256A-page 2 2013 Microchip Technology Inc.
MCP39F501 Typical Application – Single Phase, Two-Wire Application Schematic
DGND
OSCO
OSCI
DVDD RESET
AVDD
I1+
I1-
V1-
V1+
NC
NC
NC
REFIN/OUT+
AGND
COMMONA,B
NC
LOAD
+3.3V
NL
MCP1754
+3.3V
AGND
DGND
+
-
33 nF
33 nF
33 nF
1k
1k
1k
720 k
1k
4MHz
22 pF 22 pF
33 nF
0.01 µF
0.47µF 470
470 µF
10
F 0.1 µF 0.1 µF
0.1 µF
0.5 m
1m
TEMPIN/DIO2
2m
Leave Floating
N.C.
MCP9700A
(OPTIONAL)
+3.3V
to MCU UART
to MCU UART
UART_RX
UART_TX
DR
(OPTIONAL)
Connect on PCB
A0/DIO0
DIO3
A1/DIO1
MODE/DIR
DIO2
Address setting for multiple devices
or
Alarm with Event Functions
MCP39F501
4m
2013 Microchip Technology Inc. DS20005256A-page 3
MCP39F501
1.0 ELECTRICAL
CHARACTERISTICS
Absolute Maximum Ratings †
DVDD.....................................................................-0.3 to 4.5V
AVDD .....................................................................-0.3 to 4.0V
Digital inputs and outputs w. r.t. AGND...... ...... .....-0 .3V to 4.0 V
Analog Inputs (I+,I-,V+,V-) w. r.t. AGND ...................-2V to +2V
VREF input w.r.t. AGND............... ..............-0.6V to AVDD +0.6V
Maximum Current out of DGND pin..............................300 mA
Maximum Current into DVDD pin.................................250 mA
Maximum Output Current Sunk by Digital IO................25 mA
Maximum Current Sourced by Digital IO .......................25 mA
Storage temperature ..................... .. ..... .... .. .. .-65°C to +150°C
Ambient temperature with power applied......-40°C to +125°C
Soldering temperature of leads (10 seconds).............+300°C
ESD on the analog inputs (HBM,MM).................4.0 kV, 200V
ESD on all other pins (HBM,M M)........................4.0 kV, 2 00V
† Notice: S tresses above those listed under “Maximum
Ratings” may cause permanent damage to the device.
This is a stress rating only and functional operation of
the devi ce at those or any other c onditions ab ove those
indica ted in th e o peratio n listi ngs of this s pecif icatio n is
not imp lied. Ex posure to maximum rating cond itions f or
extended periods may affect device reliability.
1.1 Specifications
TABLE 1-1: ELECTRICAL CHARACTERISTICS
Electrical Specifications: Unless otherwise indicated, all parameters apply at AVDD, DVDD = 2.7 to 3.6 V, TA = -40°C to +125°C,
MCLK = 4 MHz, PGA GAIN = 1.
Characteristic Sym. Min. Typ. Max. Units Test Conditions
Po we r Measure ment
Active Power (Note 2)P ±0.1 % 4000:1 D ynamic Rang e on
Current C han nel (Note 1)
Reactive Power (Note 2)Q ±0.1 % 4000:1 D ynamic Rang e on
Current C han nel (Note 1)
Appare nt Power (Note 2)S ±0 .1 % 4000:1 Dy namic Range on
Current C han nel (Note 1)
Current RMS (Note 2)IRMS ±0 .1 % 4000:1 D ynamic Rang e on
Current C han nel (Note 1)
Volta ge RMS (Note 2)VRMS ±0.1 % 4000 :1 Dy namic R ange on
Volta ge Ch an nel (Note 1)
Power Factor (Note 2)—±0.1%
Line Frequency (Note 2)VRMS —±0.1%
Calibration, Calculation and Event Detection Times
Auto-Calibration Time tCAL
2
N
x(1/f
LINE
)
—msNote 7
Minimum Calculation
and Event Detection Time tCALC_EVENT
2
N
x(1/f
LINE
)
——ms
Minimum Time
for Voltage Sag Detection tAC_DROP see
Section 7.7 —msNote 4
Note 1: Specification by design and characterization; not production tested.
2: Calculated from reading the register values.
3: VIN =1V
PP = 353 mVRMS @ 50/60 Hz.
4: Applies to Voltage Sag and Voltage Surge Events Only.
5: Variation applies to internal clock and UART only. All calculated output quantities are temperature compensated to the
performance listed in the respective specification.
6: Applies to all gains. Offset and gain errors depend on the PGA gain setting. See Section 2.0 “Typical Performance
Curves” for typical performance.
7: N = Value in the AccumulationInternalParameter register (0x005A). The default value of this register is 2 or TCAL =80ms
for 50 Hz line.
MCP39F501
DS20005256A-page 4 2013 Microchip Technology Inc.
24-Bit Delta Sigma ADC Performance
Analog Input
Absolute Voltage VIN -1 +1 V
Analog Input
Leakage Current AIN —1nA
Differential Input
Volta ge R ang e (I1+ I1-),
(V1+ V1-) -600/GAIN +600/GAIN mV VREF = 1.2V,
proportional to VREF
Offset Er ror VOS -1 +1 mV
Offset Error Drift 0.5 µV/°C
Gain Error GE -4 +4 % Note 6
Gain Error Drift 1 ppm/°C
Differential Input
Impedance ZIN 232 kG=1
142 kG=2
72 kG=4
38 kG=8
36 kG=16
33 kG=32
Signal-to-Noise
and Distortion Ratio SINAD 92 94.5 dB Note 3
Total Harmonic Distortion THD -106.5 -103 dBc Note 3
Signal-to-Noise Ratio SNR 92 95 dB Note 3
Spuri ous Free
Dynamic Range SFDR 111 dB Note 3
Crosstalk CTALK -122 dB
AC Power
Supply Rejection Ratio AC PSRR -73 dB AVDD and
DVDD =3.3V+0.6V
PP,
100 Hz, 120 Hz, 1 kHz
DC Power
Supply Rejection Ratio DC PSRR -73 dB AV DD and DVDD = 3.0 to
3.6V
DC Common
Mode Rejection Ratio DC CM R R -105 dB VCM varies
from -1V to +1V
10-Bit SAR ADC Performance for Temperature Measurement
Resolution NR—10bits
Absolute Input Voltage VIN DGND -0.3 D
GND +0.3 V
Recommended
Impedance of
Analog Voltage Source
RIN ——2.5k
Integral N on-L ine ari ty INL —±1±2LSb
TABLE 1-1: ELECTRICAL CHARACTERISTICS (CONTINUED)
Electrical Specifications: Unless otherwise indicated, all parameters apply at AVDD, DVDD = 2.7 to 3.6 V, TA = -40°C to +125°C,
MCLK = 4 MHz, PGA GAIN = 1.
Characteristic Sym. Min. Typ. Max. Units Test Conditions
Note 1: Specification by design and characterization; not production tested.
2: Calculated from reading the register values.
3: VIN =1V
PP = 353 mVRMS @ 50/60 Hz.
4: Applies to Voltage Sag and Voltage Surge Events Only.
5: Variation applies to internal clock and UART only. All calculated output quantities are temperature compensated to the
performance listed in the respective specification.
6: Applies to all gains. Offset and gain errors depend on the PGA gain setting. See Section 2.0 “Typical Performance
Curves” for typical performance.
7: N = Value in the AccumulationInternalParameter register (0x005A). The default value of this register is 2 or TCAL =80ms
for 50 Hz line.
2013 Microchip Technology Inc. DS20005256A-page 5
MCP39F501
Differential Non-Linearity DNL —±1±1.5LSb
Gain Error GERR —±1±3LSb
Offset Error EOFF —±1±2LSb
Temperature
Measur eme nt Ra te
f
LINE
/2
N
—spsNote 7
Clock and Timings
UART Baud Rate UDB 4.8 kbps See Section 3.2 for
protocol details
Master Cl oc k
and Crystal Frequency fMCLK -2% 4 +2% MHz
Capacitive Loading
on OSCO pin COSC2 15 pF When an ext ernal clock is
used to drive the device
Internal Os cillator
Tolerance fINT_OSC 2 % -40 to +85°C only (Note 5)
Internal Voltage Reference
Internal Voltage
Reference Tol erance VREF -2% 1.2 +2% V
Temperature Coefficient TCVREF —10ppm/°CT
A = -40°C to +85°C,
VREFEXT = 0
Output Imp eda nc e ZOUTVREF —2k
Current, VREF AIDDVREF —40µA
Voltage Reference Input
Input Capacitance 10 pF
Absolute Voltage on
VREF+ Pin VREF+ AGND + 1.1V AGND +1.1V V
Power Spe cific ation s
Operati ng Voltage AVDD, D VDD 2.7 3.6 V
DVDD Start Voltage
to Ensure Internal
Power-On Reset Signal
VPOR DGND —0.7V
DVDD Rise Rate to
Ensure Internal
Power-On Reset Signal
SDVDD 0.05 V/ms 0 3.3V in 0. 1s, 0 2.5V
in 60 ms
AVDD S t a rt Volt a ge to
Ensure Internal
Power-On Reset Signal
VPOR AGND —2.1V
AVDD Rise Rate to
Ensure Internal Power On
Reset Signal
SAVDD 0.042 V/ms 0 2.4V in 50 ms
TABLE 1-1: ELECTRICAL CHARACTERISTICS (CONTINUED)
Electrical Specifications: Unless otherwise indicated, all parameters apply at AVDD, DVDD = 2.7 to 3.6 V, TA = -40°C to +125°C,
MCLK = 4 MHz, PGA GAIN = 1.
Characteristic Sym. Min. Typ. Max. Units Test Conditions
Note 1: Specification by design and characterization; not production tested.
2: Calculated from reading the register values.
3: VIN =1V
PP = 353 mVRMS @ 50/60 Hz.
4: Applies to Voltage Sag and Voltage Surge Events Only.
5: Variation applies to internal clock and UART only. All calculated output quantities are temperature compensated to the
performance listed in the respective specification.
6: Applies to all gains. Offset and gain errors depend on the PGA gain setting. See Section 2.0 “Typical Performance
Curves” for typical performance.
7: N = Value in the AccumulationInternalParameter register (0x005A). The default value of this register is 2 or TCAL =80ms
for 50 Hz line.
MCP39F501
DS20005256A-page 6 2013 Microchip Technology Inc.
Operati ng Curren t IDD —13mA
Data EEPROM Memory
Cell Endurance EPS 100,000 E/W
Self-Timed
Write Cycle Time TIWD —4ms
Number of Total
Wr ite /Eras e Cyc les
Before Refresh
RREF 10,000,000 —E/W
Charac teri st ic R eten tio n TRETDD 40 Years Provided no other
specifications are violated
Supply Current during
Programming IDDPD —7mA
TABLE 1-2: SERIAL DC CHARACTERISTICS
Electrical Specifications: Unless otherwise indicated, all parameters apply at AVDD, DVDD = 2.7 to 3.6 V,
TA = -40°C to +125°C, MCLK = 4 MHz
Characteristic Sym. Min. Typ. Max. Units Test Conditions
High-Level Input Voltage VIH 0.8 DVDD —DV
DD V
Low-Level Input Voltage VIL VSS —0.2V
SSD V
High-Level Output Voltage VOH 3—VI
OH =-3.0mA, V
DD =3.6V
Low-Level Output Voltage VOL ——0.4VI
OL = 4.0 mA, VDD =3.6V
Input Leakage Current ILI ——1µA
0.050 0.100 µA DIO pins only
TABLE 1-3: TEMPERATURE SPECIFICATIONS
Electrical Specifications: Unless otherwise indicated, all parameters apply at AVDD, DVDD = 2.7 to 3.6V.
Parameters Sym. Min. Typ. Max. Units Conditions
Temperature Ranges
Operati ng Temper atu re Range TA-40 +125 °C
Storage Temperature Range TA-65 +150 °C
Thermal Package Resistances
Thermal Resistance, 28LD 5x5 QFN JA —35.3 °C/W
TABLE 1-1: ELECTRICAL CHARACTERISTICS (CONTINUED)
Electrical Specifications: Unless otherwise indicated, all parameters apply at AVDD, DVDD = 2.7 to 3.6 V, TA = -40°C to +125°C,
MCLK = 4 MHz, PGA GAIN = 1.
Characteristic Sym. Min. Typ. Max. Units Test Conditions
Note 1: Specification by design and characterization; not production tested.
2: Calculated from reading the register values.
3: VIN =1V
PP = 353 mVRMS @ 50/60 Hz.
4: Applies to Voltage Sag and Voltage Surge Events Only.
5: Variation applies to internal clock and UART only. All calculated output quantities are temperature compensated to the
performance listed in the respective specification.
6: Applies to all gains. Offset and gain errors depend on the PGA gain setting. See Section 2.0 “Typical Performance
Curves” for typical performance.
7: N = Value in the AccumulationInternalParameter register (0x005A). The default value of this register is 2 or TCAL =80ms
for 50 Hz line.
2013 Microchip Technology Inc. DS20005256A-page 7
MCP39F501
2.0 TYPICAL PERFORMANCE CURVES
Note: Unless otherwise indicated, AVDD = 3 .3V, DVDD =3.3V, T
A= +25°C, GAIN = 1, VIN = -0.5 dBFS at 60 Hz.
FIGURE 2-1: Active Power, Gain = 1.
FIGURE 2-2: RMS Current, Gain = 1.
FIGURE 2-3: Spectral Response.
FIGURE 2-4: THD Histogram.
FIGURE 2-5: THD vs. Temperature.
FIGURE 2-6: SNR Histogram.
Note: The gra phs and tables provided follo w ing this note ar e a st a tis tic al sum ma ry based on a limited number of
samples and are provided for informational purposes only. The performance characteristics listed herein
are not tested or guaranteed. In some graphs or tables, the data presented may be outside the specified
operating range (e.g., outside specified power supply range) and therefore outside the warranted range.
-0.50%
-0.40%
-0.30%
-0.20%
-0.10%
0.00%
0.10%
0.20%
0.30%
0.40%
0.50%
0.01 0.1 1 10 100 1000
Measurement Error (%)
Current Channel Input Amplitude (mVPEAK)
-0.100%
-0.050%
0.000%
0.050%
0.100%
0.1 1 10 100 1000
RMS Current Error (%)
Input Voltage RMS (mVPP)
-200
-180
-160
-140
-120
-100
-80
-60
-40
-20
0
0 200 400 600 800 1000 1200 1400 1600 1800 2000
Amplitude (dB)
Frequency (Hz)
fIN = -0.5 dBFS @ 60 Hz
fD= 3.9 ksps
16384 pt FFT
OSR = 256
Dithering = Maximum
-107.3 -107.1 -107.0 -106.8 -106.7 -106.5 -106.4 -106.2 -106.1 -105.9 -105.8
Total Harmonic Distortion (-dBc)
-120
-110
-100
-90
-80
-70
-60
-50
-40
-30
-20
-10
0
-50 -25 0 25 50 75 100 125 150
Total Harominc Distortion (dBc)
Temperature (°C)
G = 1
G = 2
G = 4
G = 8
G = 16
G = 32
94.2 94.3 94.5 94.6 94.8 94.9 95.1 95.2 95.4 95.5
Frequency of Occurrence
Signal-to-Noise and Distortion Ratio (dB)
MCP39F501
DS20005256A-page 8 2013 Microchip Technology Inc.
Note: Unless otherwise indicated, AVDD = 3.3V, DVDD =3.3V, T
A= +25°C, GAIN = 1, VIN = -0.5 dBFS at 60 Hz.
FIGURE 2-7: SINAD vs. Temperature.
FIGURE 2-8: Gain Error vs. Temperature.
FIGURE 2-9: Internal Voltage Reference
vs. Temperature.
0
10
20
30
40
50
60
70
80
90
100
-50 -25 0 25 50 75 100 125 150
Signal-to-Noise and Distortion
Ration (dB)
Temperature (°C)
G = 1
G = 2
G = 4
G = 8
G = 16
G = 32
-5
-4
-3
-2
-1
0
1
2
3
4
5
-50 -25 0 25 50 75 100 125 150
Gain Error (%)
Temperature (°C)
G = 32 G = 16
G = 8
G = 4
G = 2
G = 1
1.1999
1.2000
1.2001
1.2002
1.2003
1.2004
1.2005
1.2006
1.2007
1.2008
-50 0 50 100 150
Internal Voltage Reference (V)
Temperature (°C)
2013 Microchip Technology Inc. DS20005256A-page 9
MCP39F501
3.0 PIN DESCRIPTION
The description of the pins are listed in Table 3-1.
TABLE 3-1: PIN FUNCTION TABLE
MCP39F501
5x5 QFN Symbol Function
1 MODE/DIR Single or Multiple Device mode with direction control for RS-485 drivers
2 NC No Connect (must be left floating)
3 NC No Connect (must be left floating)
4 UART_RX UART Communication RX Pin
5COMMON
ACommon pin A, to be connected to COMMONB
6 OSCI Oscillator Crystal Connection Pin or External Clock Input Pin
7 OSCO Oscillator Crystal Connection Pin
8 NC No Connect (must be left floating)
9 NC No Connect (must be left floating)
10 RESET Reset Pin for Delta Sigma ADCs
11 AVDD Analog Power Supply Pin
12 UART_TX UART Communication TX Pin
13 COMMONBCommon pin B, to be connected to COMMONA
14 A0/DIO0 Address Select Pin 0 / Configurable digital I/O 0
15 A1/DIO1 Address Select Pin 1 / Configurable digital I/O 1
16 I1+ Non-Inverting Current Channel Input for 24-bit  ADC
17 I1- Inverting Current Channel Input for 24-bit  ADC
18 V1- Inverting Voltage Channel Input for 24-bit  ADC
19 V1+ Non-Inverting Voltage Channel Input for 24-bit  ADC
20 AN_IN/DIO2 Analog Input for SAR ADC / Configurable Digital Input/Output 2 Pin
21 AGND Analog Ground Pin, Return Path for internal analog circuitry
22 DIO3 Configurable Digital Input/Output 3
23 REFIN+/OUT Non-Inverting Voltage Reference Input and Internal Reference Output Pin
24 DGND Digital Ground Pin, Return Path for internal digital circuitry
25 DVDD Power Supply Pin
26 MCLR Mast er Clear for Device
27 DGND Digital Ground Pin, Return Path for internal digital circuitry
28 DR Data Ready (must be left floating)
29 EP Exposed Thermal Pad (to be connected to DGND)
MCP39F501
DS20005256A-page 10 2013 Microchip Technology Inc.
3.1 Single/Mult iple Device Mode and
Direction Pin ( MODE/DIR)
When using multiple devices on a single bus, this pin
should be tied to the DIR pin of the transceiver for
direction control. This will cause the A0/DIO0 and
A1/DIO1 pi ns to act as addres s pins A0,A1. If additional
devices are required, the Device Address register can
be programmed to allow for more than four devices.
For this operation, a 4.7 k pull-down resistor should
be connected to this pin.
If only a single device is being used, the MODE pin
should be driven hig h at power-on reset (POR), ma king
the A0/DIO0 and A1/DIO1 pins additional configurable
digital I/O (DIO).
3.2 UART Communication Pins
(UART_TX, UART_RX)
The MCP39F501 device contains an asynchronous
full-duplex UART. The UART communication is 8 bits
with Start and Stop bit. See Section 4.2 “UART
Settings” for more information.
3.3 Common Pins (COMMON A and B)
The COMMONA and COMMONB pins are internal
connections for the MCP39F501. These two pins
should be connected together in the applicati on.
3.4 Data Ready Pin (DR)
The data ready pin indicates if a new delta-sigma A/D
conversion result is ready to be processed. This pin is
for indi cation only and shoul d be lef t floating. After eac h
conversion is finished, a lo w pulse will t ake place on the
Data Ready pin to indicate the conversion result is
ready and an interrupt is generated in the calculation
engine (CE). This pulse is synchronous with line
frequency and has a predefined and constant width.
3.5 Oscillator Pins (OSCO/OSCI)
OSCO and OSCI provide the master clock for the
device. Appropriate load capacitance should be
connected to these pins for proper operation. An
option al 4 MHz cryst a l can b e conne cted to these p ins.
If a crystal of external clock source is not detected, the
device will clock from the internal 4 MHz oscillator.
3.6 Reset Pin (RESET)
This pin is active-low and places the delta-sigma
ADCs, PGA, inte rnal VREF and othe r blocks a ssociate d
with the analog front-end in a reset state when pulled
low. This input is Schmitt-triggered.
3.7 Analog Power Supply Pin (AVDD)
AVDD is the power supply pin for the analog circuitry
within the MCP39F501.
This pin requires appropriate bypass capacitors and
should be maintained to 2.7V and 3.6V for specified
operation. It is recommended to use 0.1 µF ceramic
capacitors.
3.8 Digital Power Supply Pin (DVDD)
DVDD is the power supply pin for the digital circuitry
within the MCP39F501. This pin requires appropriate
bypas s capacitors and should be maintained between
2.7V and 3.6V for specified operation. It is
recommended to use 0.1 µF ceramic capacitors.
3.9 Configurable Digital Input/Output
Pins (DIOn)
These dig ital I/O pins can b e co nfig ure d to ac t as inp ut
or as output events, such as alarm events or interrupt
flags, based on the device configuration. For more
information, see Section 8.0 “Configurable Digital
I/O Pins (DIO Configuration – 0x0046)”.
3.10 24-Bit Delta Sigma ADC
Differential Current Channel
Input Pins (I1+/I1-)
I1- and I1+ are the two fully-differential current channel
inputs for the Delta-Sigma ADCs.
The linear and specified region of the channels are
dependent on the PGA gain. This region corresponds
to a differential voltage range of ±600 mVPEAK/GAIN
with VREF =1.2V.
The maximum absolute voltage, with respect to AGND,
for each In+/- input pin is ±1V with no distortion and
±6V with no breaki ng after continuous volt age.
3.11 24-Bit Delta Sigma ADC
Differential Voltage Channel
Inputs (V1+/V1-)
V1- and V1+ are the two fully-differential voltage
channel inputs for the Delta-Sigma ADCs.
The linear and specified region of the channels are
dependent on the PGA gain. This region corresponds
to a differential voltage range of ±600 mVPEAK/GAIN
with VREF =1.2V.
The maximum absolute voltage, with respect to AGND,
for each VN+/- input pin is ±1V with no distortion and
±6V, with no breaking afte r conti nuo us voltage.
Note: This p in is i nte rnal ly c onn ec ted to the IRQ
of the calculation engine and should be
left floa tin g.
2013 Microchip Technology Inc. DS20005256A-page 11
MCP39F501
3.12 Analog Input for Tem perature
Measurement/Configurable Digi tal
Output 2 Pin (AN_IN/DIO2)
This is the input to the analog-to-digital converter to be
used for temperature measurement. If temperature
sensing is required in the application, it is advised to
connect the low-power active thermistor
IC™ MCP9700A to this pin.
3.13 Analog Ground Pin (AGND)
AGND is the ground connection to internal analog
circuitry (ADCs, PGA, voltage reference, POR). If an
analog ground pin is available on the PCB, it is
recommended that this pin be tied to that plane.
3.14 Non-inverting Reference
Input/Inter nal Reference Output
Pin (REFIN+/OUT)
This pin is the non-inverting side of the differential
volt age referen ce input for the delta s igma ADCs or th e
internal voltage reference output.
For optimal performance, bypass capacitances should
be connected between this pin and AGND at all times,
even when the internal voltage reference is used.
However, these capacitors are not mandatory to
ensure proper operation.
3.15 Digital Ground Connection Pins
(DGND)
DGND is the ground connection to internal digital
circuitry (SINC filters, oscillator, serial interface). If a
digital ground plane is available, it is recommended to
tie this pin to the digital plane of the PCB. This plane
should also reference all other digital circuitry in the
system.
3.16 Exposed Thermal Pad (EP)
This pin is the exposed thermal pad. It must be
connected to DGND.
MCP39F501
DS20005256A-page 12 2013 Microchip Technology Inc.
NOTES:
2013 Microchip Technology Inc. DS20005256A-page 13
MCP39F501
4.0 COMMUNICATION PROTOCOL
The communication protocol for the MCP39F501
device is based on the Simple Sensor Interface (SSI)
protocol. This protocol is used for point-to-point
communication from a single-host MCU to a single-
slave M CP39F501. The pro tocol suppor ts the abil ity for
multiple devices to be on a single bus, but it is only
designed to communicate to one device at a time.
All communication to the device occurs in frames. Each
frame con sists of a header byte , the number o f bytes in
the frame, command packet (or command packets)
and a checksum.
FIGURE 4-1: MCP39F501 Communication Frame.
This approach allows for single, secure transmission
from the host processor to the MCP39F501 with either
a single command, or multiple commands. No com-
mand in a frame is processed until the frame is com-
plete and the checksum and number of bytes are
validated.
The number of bytes in an individual command packet
depends on the s pecif ic c ommand. For e xampl e, to set
the instruction pointer, three bytes are needed in the
packet: the command byte and two bytes for the
address you want to set to the pointer. The first byte in
a command packet is always the command byte.
This p rotoco l can also be used to se t up tran smission
from the MCP39F501 on specific registers. A
predetermined single-wire transmission frame is
defined for one wire interfaces. The Auto-transmit
mode c an be i ni tiat ed by s ett ing th e SIN G LE_W IRE b it
in the System Configuration register, allowing for
single-wire communication within the application. See
Section 4.9 “Single-Wire Transmission Mode” for
more information on this communication.
4.1 Checksum
The checksum is generated using simple byte addition
and taking modulus to find the remainder after dividing
the sum of the entire frame by 256. This operation is
done to obtain an 8-bit checksum. All the bytes of the
frame are included in the checksum, including the
header byte and number of bytes. If a frame includes
multiple command packets, none of the commands will
be issued if the frame checksum fails. In this instance,
the MCP39F501 will respond with a CSFAIL response
of 0x51.
On commands that are requesting data back from the
MCP39F501, the frame and checksum are created in
the same way, with the header byte becoming an
acknowledge (0x06). Communication examples are
given in Section 4.6 “Example Communication
Frames and MCP39F501 Responses”.
4.2 UART Settings
The default baud rate is 4.8 kbps. The UART operates
in 8-bit mode, plus one start bit and one stop bit, for a
total of 10 bits per byte, as shown in Figure 4-1.
FIGURE 4-1: UART Transmission, N-8-1.
The baud rate is fixed at 4.8 kbps.
Note: If a custom communication protocol is
desired, please contact a Microchip sales
office.
Header Byte (0xA5) Number of Bytes Command Packet1 Command Packet2
...
Command Packet n Checksum
Command
BYTE0 BYTE1 BYTE2 BYTE N
BYTE N
Frame
IDLE START IDLESTOPD0 D1 D2 D3 D4 D5 D6 D7
MCP39F501
DS20005256A-page 14 2013 Microchip Technology Inc.
4.3 Multiple Devices
In order to support multiple devices on a single bus, a
device must be selected before any communication
occurs between the host MCU and the individual
MCP39F501 devices using the Select Device
command. Once selected, the device will assert the
DIR pin until it is desel ected.
FIGURE 4-2: DIR Pin Operation Using
Example RS-485 Bus Transceiver.
Based on this operation, the sequence of events when
communicating to an MCP39F501 on a bus with
multiple devices must be as follows:
1. Select the device.
2. Communicate to selected device through a
communication frame.
3. Repeat Step 2, if necessary.
4. De-select the device.
4.4 Device Address
A device is selected by issuing the Select Device
command, followed by the appropriate Device
Address. Th e d ev ic e a ddre ss i s set through the A0, A1
pins and also thro ugh the writing of t he Device Address
register (Location 0x0026), as shown in Figure 4-3.
FIGURE 4-3: Device Address Register.
The defaul t address and default reg ister value is 0x4C.
If the device is in Multiple Device mode
(MODE/DIR = 0 at POR), pins A1 and A0 will override
bits 0 and 1 and initial possible addresses include
0x4C, 0x4D, 0x 4E and 0x 4F dep end ing on the state of
these pins.
4.5 Command List
The following table is a list of all accepted command
bytes for the MCP39F501.
R
D
4.7 k
UART_RX
MODE/
DIR
UART_TX
RS-485 BUS
A7 A6 A5 A4 A3 A2 A1A0
Set through Register Write A1, A0 pins
TABLE 4-1: MCP39F501 INSTRUCTION SET
Command Command ID Instruction
Parameter
Number of
Bytes in
Command
Packet
Successful Response
UART_TX
Register Read, 16 bits 0x52 --------- 1 ACK, Data, CRC
Register Read, 32 bits 0x44 --------- 1 ACK, Data, CRC
Register Write, 16 bits 0x57 Data 3 ACK
Register Write, 32 bits 0x45 Data 5 ACK
Register Read, N bits 0x4E Number of Bytes 2 ACK, Data, CRC
Register Write, N bits 0x4D Num ber of Bytes 1+N ACK
Select Device 0x4C Device Addres s 2 ACK
De-Select Device 0x4B Device Addr ess 2 ACK
Set Address Pointer 0x41 ADDRESS 3 ACK
Save Registers To Flash 0x53 Device Address 2 ACK
Page Read EEPROM 0x42 PAGE 2 ACK, Data, CRC
Page Write EEPROM 0x50 PAGE 18 ACK
Bulk Erase EEPROM 0x4F Device Address 2 ACK
Auto-Calibration Gain 0x5A Device Addr ess Note 1
Auto-Calibration Reactive
Gain 0x7A Device Addr ess Note 1
Auto-Calibration Frequency 0x76 Device Address Note 1
Note 1: See Section 9.0, MCP39F501 Calibration for more information on calibration.
2013 Microchip Technology Inc. DS20005256A-page 15
MCP39F501
4.6 Example Communication Frames
and MCP39F501 Responses
TABLE 4-2: FRAME EXAMPLE, SELECT DEVICE COMMAND
Tra nsmit Frame Response from MCP39F501
0xA5 Header Byte 0x06 Acknowledge
0x0 5 Number of Bytes
0x4C Command (Select Device)
0x4D Device Address
0x42 Checksum
TABLE 4-3: FRAME EXAMPLE, READ-16 COMMAND
Transmit Frame Response from MCP39F501
0x A5 Header Byte 0x06 Acknowle dge
0x07 Number of Bytes 0x05 Number of Bytes
0x41 Command (S et Address Pointer) 0x00 Data Byte
0x00 Address0 0x4 D Data B y te
0x54 Address1 0x58 Checksum
0x52 C omma nd (R ead 16)
0x93 Checksum
TABLE 4-4: FRAME EXAMPLE, BULK ERASE EEPROM
Transmit Frame Response from MCP39F501
0xA5 Header By te 0x06 Acknowledge
0x05 Number of Bytes
0x4F Command (Bulk Erase EE)
0x4D Device Address
0x46 Checksum
MCP39F501
DS20005256A-page 16 2013 Microchip Technology Inc.
4.7 Command Descriptions
4.7.1 REGISTER READ, 16-BIT (0X52)
The Register Read, 16-bit command, returns the
two bytes that follow whatever the current address
pointer is set to. It should typically follow a Set
Address Pointer command. It can be used in
conjunction with other read commands. An
acknowledge, data and checksum is the response for
this command. With this command the data is returned
MSB first.
4.7.2 REGISTER READ, 32-BIT (0X44)
The Register Read, 32-bit command, returns the
four bytes that follow whatever the current address
pointer is set to. It should typically follow a Set
Address Pointer command. It can be used in
conjunction with other read commands. An
acknowledge, data and checksum is the response for
this command. With this command data is returned
MSB first.
4.7.3 REGISTER WRITE, 16-BIT (0X57)
The Register Write, 16-bit command is
followed by bytes that will be written to whatever the
current address pointer is set to. It should typically
follow a Set Address Pointer co mm an d. It c an be
used in conjunction with other write commands. An
acknowledge is the response for this command.
4.7.4 REGISTER WRITE, 32-BIT (0X45)
The Register Write, 32-bit command is
followed by four bytes that will be written to whatever
the current address pointer is set to. It should typically
follow a Set Address Pointer co mm an d. It c an be
used in conjunction with other write commands. An
acknowledge is the response for this command.
4.7.5 REGISTER READ, N BIT (0X4M)
The Register Read, N-bit comm and retu rns the
N bytes that follow whatever the current address
pointer is set to. It should typically follow a Set
Address Pointer command. It can be used in
conjunction with other read commands. An
acknowledge, data and checksum is the response for
this com mand. The maxi mum numb er of bytes that can
be read with this command is 48. If there are other read
commands within a frame, the maximum number of
bytes that can be read is 48 minus the number of bytes
being read in the frame. Wit h this comman d, the data is
returned LSB first.
4.7. 6 REGISTER WRITE, N BIT (0X4D)
The Register Write, N-bit command is followe d
by N bytes that will be written to whatever the current
address pointer is set to. It sho uld typicall y follow a Set
Address Pointer command. It can be used in
conjunction with other write commands. An
acknowledge is the response for this command. The
maximum num be r of by tes tha t can be written with thi s
command is 64. If there are other write commands
within a frame, the maximum number of bytes that can
be written is 64 minus the number of bytes being
written in the frame
4.7.7 SELECT DEVICE (0X4C)
The Select Device command is used to drive the
direction of the bus in Multiple Device mode by
asserting the MODE/DIR pin. When the device is in
Single Device mode, this command has no effect on
the state of the pin. This command is expecting the
device address as the command parameter, or the
following byte. The device address is a single byte
length. If the device address sent with this command
matches the value in the MCP39F501’s Device
Address register, the pin will be asserted and an
acknowledge returned.
4.7.8 DE-SELECT DEVICE (0X4B)
The Select Device co mmand is used to drive the
directio n of the bus by deasserting the MO D E/ DIR pin.
When the device is in Single Device mode, this
command has no effect on the state of the pin. This
command is expecting the Device Address as the
command parameter, which is the following byte. The
Device Address is a single byte length. If the device
address sent with this command matches the value in
the MCP39 F50 1’s Device Addres s regi ste r, the pin will
be deasserted and an acknowledge returned.
4.7.9 SET ADDRESS POINTER (0X41)
This co mman d is us ed to s et the add ress poin ter for al l
read and w rite com mands. Th is com mand is ex pectin g
the address pointer as the command parameter in the
following two bytes. The address pointer is two bytes
in length. If the address pointer is within the accept-
able addresses of the device, an acknowledge will be
returned.
4.7.10 SAVE REGISTERS TO FLASH
(0X53)
The Save Registers To Flash command makes
a copy of all the calibration and configuration registers
to fl ash. Thi s includ es all R/ W regis ters in th e regis ter
set. This command is expecting the device address as
the instruction parameter, or the following byte. The
device address is a single byte length. If the device
addr es s ma tch e s , the r es p onse to th i s co mm and i s an
acknowledge.
2013 Microchip Technology Inc. DS20005256A-page 17
MCP39F501
4.7.11 PAGE READ EEPROM (0X42)
The Read Page EEPROM command returns 16 bytes
of data that are stored in an individual page on the
MCP39F501. A more complete description of the mem-
ory organization of the EEPROM can be found in
Section 10.0 “EEPROM”. This comman d is expec ting
the EEPROM page as the command parameter or the
following byte. The response to this command is an
acknowledge, 16-bytes of data and CRC checksum.
4.7.12 PAGE WRITE EEPROM (0X50)
The Write Page EEPROM command is expecting
17 additional bytes in the command parameters, which
are EEPROM page plus 16 bytes of data. A more
comple te desc ription o f the memory organizat ion of th e
EEPROM can be found in Section 10.0 “EEPROM”
The response to this command is an acknowledge.
4.7. 13 BULK ERASE EEPROM (0X4F)
The Bulk Erase EEPROM command will erase the
entire EEPROM a rray and return it to a state of 0xFF FF
for each memory location of EEPROM. A more
comple te desc ription o f the memory organizat ion of th e
EEPROM can be found in Section 10.0 “EEPROM”.
This command is expecting the device address as the
command parameter for additional security when bulk
erasing the EEPROM of a device.
4.7.14 AUTO-CALIBRATION GAIN (0X5A)
The Auto-Calibration Gain command initiates
the single point calibration that is all that is typically
required for the system. This command calibrates the
RMS cu rrent , RMS v oltage and active powe r bas ed on
the t arget val ues wri tten in th e correspond ing regis ters.
See Section 9.0 “MCP39F501 Calibration” for more
information on device calibration.
4.7.15 CALIBRATE FREQUENCY (0X76)
For applications not using an external crystal and
running the MCP39F501 off the internal oscillator, a
gain calibration to the line frequency indication is
required. The Gain Line Frequency (0x00AE) register
is set such that the frequency indication matches what
is set in the Line Frequency Reference (0x0094)
register. See Section 9.0 “MCP39F501 Calibration”
for more information on device calibration.
4.8 Notation for Register Types
The follo wing nota tion has bee n adopted fo r describin g
the various registers used in the MCP39F501:
4.9 Single-Wi re Transmission Mode
In Single-w ire Transmission mode, at the end of each
comput ation cycle, the device automatically transmit s a
frame of power data. This allows for single-wire com-
munication after the device has been configured.
The single-wire transmission frame consists of
16 bytes: three Header Bytes, one Checksum and
12 bytes of power data (including RMS current, RMS
voltage, Active Power and Line Frequency).
TABLE 4-5: SHORT-HAND NOTATION
FOR REGISTER TYPES
Notation Description
u32 Unsigned, 32-bit register
s32 Signed, 32-bit register
u16 Unsigned, 16-bit register
s16 Signed, 16-bit register
b32 32-bit register containing discrete
Boolean bit settings
TABLE 4-6: SINGLE-WIRE
TRANSMISSION FRAME
#Byte
1 HEADERBYTE (0xAB)
2 HEADERBYTE2 (0xCD)
3 HEADERBYTE3 (0xEF)
4 CURRENT RMS – Byte 0
5 CURRENT RMS – Byte 1
6 CURRENT RMS – Byte 2
7 CURRENT RMS – Byte 3
8 VOLTAGE RMS – Byte 0
9 VOLTAGE RMS – Byte 1
10 ACTIVE POWER – Byte 0
11 ACTIVE POWER – Byte 1
12 ACTIVE POWER – Byte 2
13 ACTIVE POWER – Byte 3
14 LINE FREQUENCY – Byte 0
15 LINE FREQUENCY – Byte 1
16 CHECKSUM
Note 1: For custom single-wire transmission
packets, contact a M icrochip s ales office.
MCP39F501
DS20005256A-page 18 2013 Microchip Technology Inc.
NOTES:
2013 Microchip Technology Inc. DS20005256A-page 19
MCP39F501
5.0 CALCULATION ENGINE (CE)
DESCRIPTION
5.1 Computation Cycle Overview
The MCP39F501 uses a coherent sampling algorithm
to lock the sampling rate to the line frequency, and
reports all power output quantities at a 2N number of
line cycles. This is defined as a computation cycle and
is dependent on the line frequency, so any change in
the line frequency will change the update rate of the
output power quanti ties.
5.2 Raw Voltage and Currents Signal
Conditioning
The first set of signal conditioning that occurs inside the
MCP39F501 is shown in Figure 5-1. All conditions set
in this diagram effect all of the output registers (RMS
current, RMS voltage, active power, reactive power,
apparent power, etc.). The gain of the PGA, the
shutdown and reset status of the 24-bit ADCs are all
controlled through the System Configuration (0X0042)
register.
For DC applications, offset can be removed by using
the DC Offset Current (0x003C) register. To
compensate for any external phase error between the
current and voltage channels, the Phase
Compensation register (0x003E) can be used.
See Section 9.0 “MCP39F501 Calibration” for more
information on device calibration.
FIGURE 5-1: Channel I1 and V1 Signal Flow.
5.3 RMS Current and RMS Voltage
(0x0004, 0x0008)
The MCP39F501 device provides true RMS
measurements. The MCP39F501 device has two
simultaneous sampling 24-bit A/D converters for the
current and voltage measurements. The root mean
square calculations are performed on 2N current and
voltage samples, where N is defined by the register
Accumulation Interval Parameter.
EQUATION 5-1: RMS CURRENT AND
VOLTAGE
CHANNEL I1
SINC3
Digital Filter
24-bit  ADC
Multi-level
Modulator
DCOffsetCurrent:s16
++
CHANNEL V1
SINC3
Digital Filter
24-bit  AD C
Multi-level
Modulator HPF
PhaseCompensation:s16
HPF
+
-PGA
I1+
I1-
+
-PGA
V1+
V1-
SystemConfiguration:b32
i
v
IRMS
in

2
n0=
2N1
2N
---------------------------=VRMS
vn

2
n0=
2N1
2N
----------------------------=
MCP39F501
DS20005256A-page 20 2013 Microchip Technology Inc.
FIGURE 5-2: RMS Current and Voltage Calculation Signal Flow.
5.4 Apparent Power (0x0012)
This 32-bit register is the output register for the final
apparent power indication. It is the product of RMS
current and RMS voltage as shown in Equation 5-2.
EQUATION 5-2: APPARENT POWER
For scali ng of the appar ent power indica tion, the calc u-
lation e ngi ne u se s the reg is ter Ap p are nt Po wer D ivis or
(0x0040). This is described in the following register
operations, per Equation 5-3.
EQUATION 5-3: APPARENT POWER
5.5 Active Power (0x000A)
The MCP39F501 has two simultaneous sampling A/D
converters. For the active power calculation, the instan-
taneous current and instantaneous voltages are multi-
plied together to create instantaneous power. This
instantaneous powe r is then con ve rted t o activ e power
by averagi ng or t a ki ng the DC co mpo ne nt.
Equation 5-4 controls the number of samples used in
this accumulation prior to updating the Active Power
output register.
EQUATION 5-4: ACTIVE POWER
FIGURE 5-3: Active Power Calculation Signal Flow.
OffsetCurrentRMS:s32 (Note 1)
XCurrentRMS:u32
++
Range:b32
X
÷2
RANGE
VoltageRMS:u16
Range:b32
X
ApparentPower:u32
i
v
ACCU
0
2N-1 ÷ 2N
ACCU
0
2
N
-1
÷ 2N
GainCurrentRMS:u16
X
X
GainVoltageRMS:u16
Note 1: The value of the Offset Current RMS register is squared internal to the
calculation engine, so only the lower 16 bits should be used. The sign of the
offset correction is the most significant bit (MSb) of the 32 bit register.
÷2
RANGE
SI
RMS VRMS
=
SCurrentRMS VoltageRMS
10ApparentPowerDivisor
-------------------------------------------------------------------=
P1
2N
------V
kIk
k0=
k2
N1=
=
OffsetActivePower:s32
XActivePower:u32
++X
GainActivePower:u16
Range:b32
ACCU
0
2
N
-1
÷ 2N÷2
RANGE
i
v
2013 Microchip Technology Inc. DS20005256A-page 21
MCP39F501
5.6 Power Factor (0x0016)
Power factor is calculated by the ratio of P to S or active
power divided by apparent power.
EQUATION 5-5: POWER FACTOR
The Power Factor Reading is stored in a signed 16-bit
register (Power Factor, 0x0016). This register is a
signed, 2's complement register with the MSB
representing the polarity of the power factor. Positive
means inductive load, negative means capacitive load.
Each LSB is then equivalent to a weight of 2-15. A
maximum register value of 0x7FFF corresponds to a
power factor of 1. The minimum register value of
0x8000 corresponds to a power factor of -1.
5.7 Reactive Power (0x000E)
In the MCP39F501, Reactive Power is calculated
using a 90 degree phase shift in the voltage channel.
The same ac cu mulation princip les app ly as wi th ac tiv e
power where ACCU acts as the accumu lator. Any light
load or residual power can be removed by using the
Offset Reactive Power (0x0038) register. Gain is
corrected by the Gain Reactive Power (0x002E)
register. The final output is an unsigned 32-bit value
located in the Reactive Power register (0x000E).
FIGURE 5-4: Reactive Power Calculation Signal Flow.
5.8 Accumulation Interval Parameter
(0x005A)
The accumulation interval is defined as an 2N number
of line c ycles, wh ere N is the value in the Accumulation-
IntervalParameter register (0x005A).
5.9 Thermistor Voltage (0x001A)
When a vo lta ge output te mperature s ensor suc h as the
MCP9700 is connec ted to the AN_IN /DIO2 pi n and the
DIO2[n] bi ts of th e DOUT Configur ation re gister are s et
to 110 for temperature input, the device performs an
analog-to-digital co nve rsi on on the AN _IN/ DIO 2 pin .
The least 10 significant bits of the 16-bit Thermistor
Voltage register contain the output of the ADC. The
conversion rate of the temperature measurement
occurs once ev ery co mputation cyc le.
Note that if the AN_IN/DIO2 pin is configured through
the DIO Configuration register (0x0046) as an output,
then the Thermistor Voltage register value will equal
zero.
The Thermistor Voltage is used for temperature
compensation of the calculation engine. See
Section 9.8 “Temperature Compensation
(Address es 0x00B0/B2/B4 /B6)” for more informa tion.
FIGURE 5-5: Thermistor Voltage Signal
Flow.
PF P
S
---=
OffsetReactivePower:s32
XACCU1
0
HPF
ReactivePower:u32
+-
HPF (+90deg.)
X
GainReactivePower:u16
Range:b32
2
N
-1÷ 2
N
÷2
RANGE
i
v
ThermistorVoltage:u16
10-bit
ADC
MCP9700
MCP39F501
DS20005256A-page 22 2013 Microchip Technology Inc.
NOTES:
2013 Microchip Technology Inc. DS20005256A-page 23
MCP39F501
6.0 REGISTERS DESCRIPTION
6.1 Register Map
The following table describes the registers for the MCP39F501 device.
TABLE 6-1: MCP39F501 REGISTER MAP
Address Register Name Section
Number Read/
Write Data
type Description
Output Registers
0x0000 Address Pointer 6.2 Ru16 Address pointer for read or write commands
0x0002 System Version 6.3 Ru16 System version date code information for
MCP39F501, set at the Microchip factory;
format YMDD
0x0004 Current RMS 5.3 Ru32 RMS Current output
0x0008 Voltage RMS 5.3 Ru16 RMS Voltage output
0x000A Active Power 5.5 Ru32 Active Power output
0x000E Reactive Power 5.7 Ru32 Reactive Power output
0x0012 Apparent Power 5.4 Ru32 Apparent Power output
0x0016 Power Factor 5.6 Rs16 Power Factor output
0x0018 Line Frequency 9.7 Ru16 Line Frequen cy output
0x001A Thermistor Voltage 5.9 Ru16 Temperature Mon itor out put
0x001C Event Flag 7.2 Rb16 Status of all enabled events
0x001E System Status 6.4 Rb16 System Status Register
0x0020 Reserved u16 Reserved
0x0022 Reserved u16 Reserved
Calibration Registers
0x0024 Reserved u16 Reserved
0x0026 Device Address 4.4 R/W u16 Device Address fo r the device
0x0028 Gain Current RMS 9.3 R/W u16 Gain Calibration Factor for RMS Current
0x002A Gain Voltage RMS 9.3 R/W u16 Gain Calibration Factor for RMS Voltage
0x002C Gain Active Power 9.3 R/W u16 Gain Calibration Factor for Active Power
0x002E Gain Reactive Pow er 9.3 R/W u16 Gain Calibration Factor for Reactive Power
0x0030 Offset Current RMS 9.6.1 R/W s32 Offset Calibration Factor for RMS Current
0x0034 Offset Active Power 9.6.1 R/W s32 Offset Calibration Factor for Active Power
0x0038 Offset Reactive Power 9.6.1 R/W s32 Offset Calibration Factor for Reactive Power
0x003C DC Of fs et Current 9.6.2 R/W s16 Offset Calibration Factor for DC Current
0x003E Phase Compensation 9.5 R/W s16 Phase Compensation
0x0040 Apparent Power Divisor 5.4 R/W u16 Number of Digits for apparent power divisor to
match IRMS and VRMS resolution
Design Configuration Registers
0x0042 System Configuration 6.5 R/W b32 Control for device configuration, including
ADC configuration
0x0046 DIO Configur atio n 8.0 R/W b16 Configurable digital output settings for alarm,
and event flags
0x0048 Range 6.6 R/W b32 Scaling factor for Outputs
Note 1: These registers are reserved for EMI filter compensation when necessary for power supply monitoring.
They may require specific adjustment depending on PSU parameters, please contact the local Microchip
office for further support.
MCP39F501
DS20005256A-page 24 2013 Microchip Technology Inc.
0x004C Calibration Current 9.3.1 R/W u32 Target Current to be used during single-point
calibration
0x0050 Calibration Voltage 9.3.1 R/W u16 Target Voltage to be used during single-point
calibration
0x0052 Calibration Act iv e Power 9.3.1 R/W u32 Target Active Power to be used during
single-point calibration
0x0056 Calibration R eac ti ve Power 9.5.1 R/W u32 Target Reactiv e Power to be us ed during
single-point calibration
0x005A Accumulation Interval
Parameter 5.8 R/W u16 N for 2N number of line cycles to be used
during a single computation cycle
0x005C Reserved R/W u16 Reserved
Event Notification Registers
0x005E Over Current Limit 7.0 R/W u32 RMS Current threshold at which an event flag
is recorded
0x0062 Reserved 7.0 R/W u16 Reserved
0x0064 Over Power Limit 7.0 R/W u32 Active Power threshold at which an event flag
is recorded
0x0068 Reserved 7.0 R/W u16 Reserved
0x006A Over Frequency Limit 7.0 R/W u16 Line Frequency threshold at which an event
flag is recorded
0x006C Under Frequency Limit 7.0 R/W u16 Line Frequency threshold at which an event
flag is recorded
0x006E Over Temperature Limit 7.0 R/W u16 Temperature threshol d at wh ich an event f lag
is recorded
0x0070 Under Temperature Limit 7.0 R/W u16 Tempe rature threshold at which an event flag
is recorded
0x0072 Voltage Sag Limit 7.7 R/W u16 RMS Vo ltage threshold at which an event flag
is recorded
0x0074 Voltage Surge Limit 7.7 R/W u16 RMS Voltage threshold at which an event flag
is recorded
0x0076 Over Current Hold 7.0 R/W u16 Number of computation cycles for which the
Over C urrent Limit must be breach ed
0x0078 Reserved R/W u16 Reserved
0x007A Over Power Hold 7.0 R/W u16 Number of computation cycles for which the
Over Power Limit must be held
0x007C Reserved R/W u16 Reserved
0x007E Over Frequency Hold 7.0 R/W u16 Number of computation cycles for which the
Over Frequency Limit must be held
0x0080 Under Frequency Hold 7.0 R/W u16 Number of computation cycles for which the
Under Frequ enc y Lim it mu st be hel d
0x0082 Over Temperature Hold 7.0 R/W u16 Number of computation cycles for which the
Over Temperature Limit must be held
0x0084 Under Temperature Hold 7.0 R/W u16 Hold time for which the Under Temperature
Limit must be held
0x0086 Reserved R/W u16 Reserved
TABLE 6-1: MCP39F501 REGISTER MAP (CONTINUED)
Address Register Name Section
Number Read/
Write Data
type Description
Note 1: These registers are reserved for EMI filter compensation when necessary for power supply monitoring.
They may require specific adjustment depending on PSU parameters, please contact the local Microchip
office for further support.
2013 Microchip Technology Inc. DS20005256A-page 25
MCP39F501
0x0088 Reserved R/W u16 Reserved
0x008A Event Enable 7.1 R/W u16 Enable Event Register
0x008C Event Mask Critical 7.3 R/W u16 Mask for event notifications to be put on DIO
pin select ed as “Event Critic al
0x008E Event Mask Standard 7.4 R/W u16 Mask for event notification to be put on DIO
pin select ed as “Event Standard”
0x0090 Event Test 7.5 R/W u16 Register used to set events for testing pur-
poses
0x0092 Event Clear 7.6 R/W u16 Register used to clear eve nts
0x0094 Line Frequency Ref. 9.7.1 R/W u16 Referen ce Value for the nominal lin e
frequency
0x0096 Reserved R u16 Reserved
0x00AE Gain Line Frequenc y 9.7 R/W u16 Cor rection Factor for Line Frequency
Indication
EMI Filter Compensation Registers (Note 1)
0x0098 Reserved R u16 Reserved
0x009A Reserved R u16 Reserved
0x009C Reserved R u16 Reserved
0x009E Reserved R u16 Reserved
0x00A0 Reserved R u16 Reserved
0x00A2 Reserved R u16 Reserved
0x00A4 Reserved R u16 Reserved
0x00A6 Reserved R u16 Reserved
0x00A8 Reserved R u16 Reserved
0x00AA Reserved R u16 Reserved
0x00AC Reserved R u16 Reserved
TEMPERATURE COMPENSATION REGISTERS
0x00B0 Temperatur e Co mp ens ati on
for Frequency 9.8 R/W Correction factor for compensating the line
frequency indication over temperature
0x00B2 Temperatur e Co mp ens ati on
for Current 9.8 R/W Correction factor fo r compensating the Current
RMS indication over temperature
0x00B4 Temperatur e Co mp ens ati on
for Power 9.8 R/W Correction factor for compensating the active
power indication over temperature
0x0B6 Ambient Temperature
Reference Voltag e 9.8 R/W Regis ter fo r sto ring the re fere nc e tem pe ratu re
during calibration
TABLE 6-1: MCP39F501 REGISTER MAP (CONTINUED)
Address Register Name Section
Number Read/
Write Data
type Description
Note 1: These registers are reserved for EMI filter compensation when necessary for power supply monitoring.
They may require specific adjustment depending on PSU parameters, please contact the local Microchip
office for further support.
MCP39F501
DS20005256A-page 26 2013 Microchip Technology Inc.
6.2 Address Pointer
(0x0000)
This unsigned 16-bit register contains the address to
which all read and write instruc tions occur . This register
is only written through the Set Address Pointer
command and is otherwise outside the writable range
of register addresses.
6.3 System Version (0x0002)
The System Version register is hard-coded by
Microchip Technology Inc. and contains calculation
engine date code information. The System Version
register is a date code in the YMDD format, with year
and mon th in hex , day in decim al (e.g. 0x D220 = 2013,
Feb. 20th).
6.4 System S tatus (0x001E)
The System Status register is a read-only register and
can be use d to detect the various st ates of pin leve ls as
defined bel ow.
REGISTER 6-1: SYSTEM STATUS REGISTER
U-0 U-0 U-0 U-0 U-0 U-0 U-0 U-0
bit 15 bit 8
U-0 R-n R-n R-n R-n R-n R-n R-n
DIO3_S DIO2_S DIO1_S DIO0_S ADDRESS[1] ADDRESS[0] MULTIPLE
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 6-3 DIOn_S: State of DIO pin when configured as an input
1 = State of DIO pin is HIGH
0 = State of DIO pin is LO W
bit 2-1 ADDRESS[1:0]: State of A1/A0 pins at POR
1 = Pin is logic high
0 = Pin is logic low
bit 0 MULTIPLE: Multiple or Single Device mode
1 = State of MODE/DIR pin was LOW at POR (Multipl e Device mode)
0 = State of MODE/DIR pin was HIGH at POR (Single Device mode)
2013 Microchip Technology Inc. DS20005256A-page 27
MCP39F501
6.5 System Configuration
(0x0042)
The Syste m Con figuration register con t ai ns bit s for th e
following control:
PGA setting
ADC Reset State
ADC Shutdown State
Volt a ge Refere nc e Trim
Single Wire Auto-transmission
These options are described in the following sections.
6.5.1 PROGRAMMABLE GAIN
AMPLIFIERS (PGA)
The two Programmable Gain Amplifiers (PGAs) reside
at the front-end of each 24-bit Delta-Sigma ADC. They
have two functions:
Translate the common-mode of the input from
AGND to an intern al lev el bet w een AGND and AVDD
Amplify the input differential signal
The translation of the common mode does not change
the differential signal but recenters the common-mode
so that the input si gnal can be properly amplified.
The PGA block can be used to amplify ve ry low signals,
but the differential input range of the delta-sigma
modulator must not be exceeded. The PGA is
controlled by the PGA_CHn<2:0> bits in Register 6-2
the System Configuration register. Table 6-2 rep-
resents the gain settings for the PGAs:
6.5.2 24-BIT ADC RESET MODE
(SOFT RESET MODE)
24-bit ADC Reset mode (also called Soft Reset) can
only be entered through setting high the RESET<1:0>
bits in the System Configuration register. This mode is
defined as the condition where the converters are
active but their ou tput is forced to ‘0’.
6.5. 3 ADC S HU TDOWN MO DE
ADC Shutdown mode is defined as a state where the
converters and their biases are off, consuming only
leakage current. When the Shutdown bit is reset to ‘0’,
the analog biases will be enabled, as well as the clock
and the digital circuitry.
Each converter can be placed in Shutdown mode
independently. This mode is only available through
programming of the SHUTDOWN<1:0> bits in the
SystemConfiguration register.
6.5.4 VREF TEMPERATURE
COMPENSATION
If desired, the user can calibrate out the temperature
drift for ultra-low VREF drift.
The internal voltage reference comprises a proprietary
circuit and algorithm to compensate first order and
second order temperature coefficients. The
compen satio n allow s very lo w temp erature c oef fici ent s
(typically 10 ppm/°C) on the entire range of
temperatures from -40°C to +125°C. This temperature
coefficient varies from part to part.
The temperature coefficient can be adjusted on each
part through the System Configuration register
(0x0042). The default value of this register is set to
0x42. The typical variation of the temperature
coefficient of the internal voltage reference, with
respect to VREFCAL register code, is given by
Figure 6-1.
FIGURE 6-1: VREF Tempco vs. VR EFCAL
Trimcode Chart.
TABLE 6-2: PGA CONFIGURATION
SETTING (Note 1)
Gain
PGA_CHn<2:0> Gain
(V/V) Gain
(dB) VIN Range
(V)
000 10±0.5
001 26±0.25
010 412±0.125
011 8 18 ±0.0625
10016 24 ±0.03125
10132 30 ±0.015625
Note 1: The two undefined settings (110, 111)
are G = 1.
0
10
20
30
40
50
60
0 64 128 192 256
V
REF
Drift (ppm)
VREFCAL Register Trim Code (decimal)
MCP39F501
DS20005256A-page 28 2013 Microchip Technology Inc.
REGISTER 6-2: SYSTEM CONFIGURATION REGISTER
U-0 U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
PGA_CH1[2] PGA_CH1[1] PGA_CH1[0] PGA_CH0[2] PHA_CH0[1] PGA_CH0[0]
bit 31 bit 24
R/W-0 R/W-1 R/W-0 R/W-0 R/W-0 R/W-0 R/W-1 R/W-0
VREFCAL[7] VREFCAL[6] VREFCAL[5] VREFCAL[4] VREFCAL[3] VREFCAL[2] VREFCAL[1] VREFCAL[0]
bit 23 bit 16
U-0 U-0 U-0 U-0 U-0 U-0 U-0 R/W-0
SINGLE_WIRE
bit 15 bit 8
R/W-0 R/W-0 R/W-0 R/W-0 U-0 R/W-0 U-0 U-0
RESET[1] RESET[0] SHUTDOWN[1] SHUTDOWN[0] VREFEXT
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 29-27 PGA_CH1 [2:0]: PGA Setting for C hannel 1
111 = Reserved (Gain = 1)
110 = Reserved (Gain = 1)
101 = Gain is 32
100 = Gain is 16
011 = Gain is 8
010 = Gain is 4
001 = Gain is 2
000 = Gain is 1 (DEFAULT)
bit 26-24 PGA_CH0 [2:0]: PGA Setting for C hannel 0
111 = Reserved (Gain = 1)
110 = Reserved (Gain = 1)
101 = Gain is 32
100 = Gain is 16
011 = Gain is 8
010 = Gain is 4
001 = Gain is 2
000 = Gain is 1 (DEFAULT)
bit 23-16 VREFCAL[n]: Internal voltage reference temperature coefficient register valu e (See Section 6.5.4 “VREF Tempera-
ture Compensation” for complete description)
bit 15-9 Unimplemented: Read as ‘0
bit 8 SINGLE_WIRE: single wire enable bit
1 = Single Wire transmission is enabled
0 = Single Wire transmission is disabled (DEFAULT)
bit 7-6 RESET [1:0]: Reset mode setting for ADCs
11 = Both I1 and V1 are in Reset mode
10 = V1 ADC is in Reset m od e
01 = I1 ADC is in Reset mode
00 = Neither ADC is in Reset mode (DEFAULT)
bit 5-4 SHUTDOWN [1:0]: Shutdo wn mod e sett in g fo r A DCs
11 = Both I1 and V1 are in Shutdown
10 = V1 ADC is in Shutdown
01 = I1 ADC is in Shutdown
00 = Neither ADC is in Shutdown (DEFAULT)
bit 2 VREFEXT: Internal Voltage Reference Shutdown Control
1 = Internal Voltage Reference Disabled
0 = Internal Voltage Reference Enabled (DEFAULT)
bit 1-0 Unimplemented: Read as ‘0
2013 Microchip Technology Inc. DS20005256A-page 29
MCP39F501
6.6 Range Register (0x0048)
The Ra nge register i s a 32-bit regi ster tha t cont ains the
number of right bit shifts for the following outputs,
divided into separate by tes defined below:
RMS Current
•RMS Voltage
•Power
Note that the power range byte operates across both
the active and reactive output registers and sets the
same scale .
The pu rpos e of this regi ster is t wo-fo ld: t he numbe r of
right bit shifting (division by 2RANGE) must be high
enough to prevent overflow in the output register, and
low eno ugh to al low for the desire d output resolut ion. It
is the user’s responsibility to set this register correctly
to ensure proper output operation for a given meter
design.
For further information and example usage, see
Section 9.3 “Single Point Gain Calibrations
(Calibrations at Unity Power Factor)”.
.
REGISTER 6-3: RANGE REGISTER
U-0 U-0 U-0 U-0 U-0 U-0 U-0 U-0
bit 31 bit 24
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
POWER[7] POWER[6] POWER[5] POWER[4] POWER[3] POWER[2] POWER[1] POWER[0]
bit 23 bit 16
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
CURRENT[7] CURRENT[6] CURRENT[5] CURRENT[4] CURRENT[3] CURRENT[2] CURRENT[1] CURRENT[0]
bit 15 bit 8
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
VOLTAGE[7] VOLTAGE[6] VOLTAGE[5] VOLTAGE[4] VOLTAGE[3] VOLTAGE[2] VOLTAGE[1] VOLTAGE[0]
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bi t, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 32-24 Unimplemented: Read as0
bit 23-16 POWER[7:0]: Sets the number of right bit shifts for the Active and Reactive Power output registers.
bit 15-8 CURRENT[7:0]: Sets the number of right bit shifts for the Current RMS output register.
bit 7-0 VOLTAGE[7:0]: Sets the number of right bi t shifts for the Voltage RMS output register.
MCP39F501
DS20005256A-page 30 2013 Microchip Technology Inc.
NOTES:
2013 Microchip Technology Inc. DS20005256A-page 31
MCP39F501
7.0 EVENT NOTIFICATIONS
There are six registers that correspond to the event
notifications that can occur when using the
MCP39F501:
Event Enabled
Event Flag
Event Mask Critical
Event Mask Standard
Event Test
Event Clear
FIGURE 7-1: Event Registers Operation Flow Chart.
Is the event
Cleared
or
Disabled
Other
Masked
as
Standard
Is the event
Masked
as
Critical
Clear
Standard Pin
Clear
Critical Pin
Is the event
Flagged
or
Under Test
?
?
?
?Is the
Over/Under
Event
Condition
True
?
Limit Counter
++
Is the
Event
Hold Time
Satisfied
?
Clear Event
Flag
Set Event
Flag
Is the event
Masked
as
Standard
Is the event
Masked
as
Critical
?
?
Set
Standard Pin
Set
Critical Pin
Exit and
Process
Next
Event
Exit and
Process
Next
Event
YES
YES
YES
YES
YES
YES
Event Ord er:
Over Current
Over Power
Over Frequency
Under Frequency
Over Temperature
Under Temperature
YES
YES
BEGIN
Clear Event
Test
Clear Event
Clear
Limit Counter
= 0
Events
Flag+Std.
?
Is the event
YES
Other
Events
Flag+Crt.
?
YES
MCP39F501
DS20005256A-page 32 2013 Microchip Technology Inc.
7.1 Event Enable Register ( 0x008A)
The Event Enable register is a read-only register that
flags when an event is enabled per the limit and hold
registers.
:
REGISTER 7-1: EVENT ENABLE REGISTER
R/W R/W R/W R/W R/W R/W R/W R/W
OC OV OP UV OF UF OT UT
bit 15 bit 8
R/W R/W U-0 U-0 U-0 U-0 U-0 U-0
VSA VSU
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0
-n = Value at POR ‘1’ = Bit is set 0’ = Bit is cleared x = Bit is unknown
bit 15 OC: Over Current
1 = Fault event is enabled
0 = No Fault
bit 14 OV: Over Voltage
1 = Fault event is enabled
0 = No Fault
bit 13 OP: Over Pow er
1 = Fault event is enabled
0 = No Fault
bit 12 UV: Under Voltage
1 = Fault event is enabled
0 = No Fault
bit 11 OF: Over Frequency
1 = Fault event is enabled
0 = No Fault
bit 10 UF: Under Frequency
1 = Fault event is enabled
0 = No Fault
bit 9 OT: Over Temperature
1 = Fault event is enabled
0 = No Fault
bit 8 UT: Under Temperature
1 = Fault event is enabled
0 = No Fault
bit 7 VSA: Voltage Sag
1 = Fault event is enabled
0 = No Fault
bit 6 VSU: Voltage Surge
1 = Fault event is enabled
0 = No Fault
bit 5-0 Unimplemented: Read as0
2013 Microchip Technology Inc. DS20005256A-page 33
MCP39F501
7.2 Event Flag Register (0x001C)
The Event Flag register is a rea d-only register that flags
when an event has occurred per the limit and hold
registers.
Note that event flags are latched until the event has
passed and the bit has been cleared by the Event Clear
register.
:
REGISTER 7-2: EVENT FLAG REGISTER
R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0
OC OV OP UV OF UF OT UT
bit 15 bit 8
R-0 R-0 U-0 U-0 U-0 U-0 U-0 U-0
VSA VSU
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15 OC: Over Current
1 = Fault event has oc curred
0 = No Fault
bit 14 OV: Over Voltage
1 = Fault event has oc curred
0 = No Fault
bit 13 OP: Over Pow er
1 = Fault event has oc curred
0 = No Fault
bit 12 UV: Under Voltage
1 = Fault event has oc curred
0 = No Fault
bit 11 OF: Over Frequency
1 = Fault event has oc curred
0 = No Fault
bit 10 UF: Under Frequency
1 = Fault event has oc curred
0 = No Fault
bit 9 OT: Over Temperature
1 = Fault event has oc curred
0 = No Fault
bit 8 UT: Under Temperature
1 = Fault event has oc curred
0 = No Fault
bit 7 VSA: Voltage Sag
1 = Fault event has oc curred
0 = No Fault
bit 6 VSU: Voltage Surge
1 = Fault event has oc curred
0 = No Fault
bit 5-0 Unimplemented: Read as0
MCP39F501
DS20005256A-page 34 2013 Microchip Technology Inc.
7.3 Event Mask Critical Register
(0x008C)
The Event M ask Cri tical re gister i s used to mask which
event s will hav e an imp act on the di gital I/O pin that ha s
been de signated to th e Notificatio n Criti cal st atus in the
Configurable Digital I/O (DIO) control register. Any
number of events can be set here to create activity on
the corresponding DIO pin.
REGISTER 7-3: EVENT MASK CRITICAL REGISTER
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
OC OV OP UV OF UF OT UT
bit 15 bit 8
R/W-0 R/W-0 U-0 U-0 U-0 U-0 U-0 U-0
VSA VSU
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0
-n = Value at POR ‘1’ = Bit is set 0’ = Bit is cleared x = Bit is unknown
bit 15 OC : Over Current
1 = If a fault event occurs, the DIO pin assigned to Notification Critical will be driven high
0 = If a fault event occurs, there is no effect on DIO pin assigned to Notification Critical
bit 14 OV: Over Voltage
1 = If a fault event occurs, the DIO pin assigned to Notification Critical will be driven high
0 = If a fault event occurs, there is no effect on DIO pin assigned to Notification Critical
bit 13 OP : Over Power
1 = If a fault event occurs, the DIO pin assigned to Notification Critical will be driven high
0 = If a fault event occurs, there is no effect on DIO pin assigned to Notification Critical
bit 12 UV: Under Voltage
1 = If a fault event occurs, the DIO pin assigned to Notification Critical will be driven high
0 = If a fault event occurs, there is no effect on DIO pin assigned to Notification Critical
bit 11 OF: Over Frequency
1 = If a fault event occurs, the DIO pin assigned to Notification Critical will be driven high
0 = If a fault event occurs, there is no effect on DIO pin assigned to Notification Critical
bit 10 UF : Under Frequ ency
1 = If a fault event occurs, the DIO pin assigned to Notification Critical will be driven high
0 = If a fault event occurs, there is no effect on DIO pin assigned to Notification Critical
bit 9 OT: Over Temperature
1 = If a fault event occurs, the DIO pin assigned to Notification Critical will be driven high
0 = If a fault event occurs, there is no effect on DIO pin assigned to Notification Critical
bit 8 UT: Un der Tem peratur e
1 = If a fault event occurs, the DIO pin assigned to Notification Critical will be driven high
0 = If a fault event occurs, there is no effect on DIO pin assigned to Notification Critical
bit 7 VSA: Voltage Sa g
1 = If a fault event occurs, the DIO pin assigned to Notification Critical will be driven high
0 = If a fault event occurs, there is no effect on DIO pin assigned to Notification Critical
bit 6 VSU: Voltage Su rge
1 = If a fault event occurs, the DIO pin assigned to Notification Critical will be driven high
0 = If a fault event occurs, there is no effect on DIO pin assigned to Notification Critical
bit 5-0 Unimplemented: Read as ‘0
2013 Microchip Technology Inc. DS20005256A-page 35
MCP39F501
7.4 Event Mask Standard Register
(0x008E)
The Event Mask Standard register is used to mask
which events will have an impact on the digital I/O pin
that has been designated to the Notification Standard
stat us in the D IO control reg ister . Any n umber of ev ents
can be set here to create activity on the corresponding
DIO pin.
REGISTER 7-4: EVENT MASK STANDARD REGISTER
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
OC OV OP UV OF UF OT UT
bit 15 bit 8
R/W-0 R/W-0 U-0 U-0 U-0 U-0 U-0 U-0
VSA VSU
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15 OC : Over Current
1 = If a fault even t o ccurs, the DIO pi n as si gned to No tif icat i on Standard will be driven high
0 = If a fault even t o ccurs , there is no effect on the DIO pin assigned to N ot ification Standard
bit 14 OV: Over Voltage
1 = If a fault even t o ccurs, the DIO pi n as si gned to No tif icat i on Standard will be driven high
0 = If a fault even t o ccurs, the re is no effect on th e D I O pin assigne d to N ot ifi ca tion Stan dard
bit 13 OP : Over Power
1 = If a fault even t o ccurs, the DIO pi n as si gned to No tif icat i on Standard will be driven high
0 = If a fault even t o ccurs, the re is no effect on th e D I O pin assigne d to N ot ifi ca tion Stan dard
bit 12 UV: Under Voltage
1 = If a fault even t o ccurs, the DIO pi n as si gned to No tif icat i on Standard will be driven high
0 = If a fault even t o ccurs, the re is no effect on th e D I O pin assigne d to N ot ifi ca tion Stan dard
bit 11 OF: Over Frequency
1 = If a fault even t o ccurs, the DIO pi n as si gned to No tif icat i on Standard will be driven high
0 = If a fault even t o ccurs, the re is no effect on th e D I O pin assigne d to N ot ifi ca tion Stan dard
bit 10 UF : Under Frequ ency
1 = If a fault even t o ccurs, the DIO pi n as si gned to No tif icat i on Standard will be driven high
0 = If a fault even t o ccurs, the re is no effect on th e D I O pin assigne d to N ot ifi ca tion Stan dard
bit 9 OT: Over Temperature
1 = If a fault even t o ccurs, the DIO pi n as si gned to No tif icat i on Standard will be driven high
0 = If a fault even t o ccurs, the re is no effect on th e D I O pin assigne d to N ot ifi ca tion Stan dard
bit 8 UT: Un der Tem peratur e
1 = If a fault even t o ccurs, the DIO pi n as si gned to No tif icat i on Standard will be driven high
0 = If a fault even t o ccurs, the re is no effect on th e D I O pin assigne d to N ot ifi ca tion Stan dard
bit 7 VSA: Voltage Sa g
1 = If a fault even t o ccurs, the DIO pi n as si gned to No tif icat i on Standard will be driven high
0 = If a fault even t o ccurs, the re is no effect on th e D I O pin assigne d to N ot ifi ca tion Stan dard
bit 6 VSU: Voltage Su rge
1 = If a fault even t o ccurs, the DIO pi n as si gned to No tif icat i on Standard will be driven high
0 = If a fault even t o ccurs, the re is no effect on th e D I O pin assigne d to N ot ifi ca tion Stan dard
bit 5-0 Unimplemented: Read as ‘0
MCP39F501
DS20005256A-page 36 2013 Microchip Technology Inc.
7.5 Event Test Register (0x0090)
The Event Test register is used when the system
designer wants to initiate and test event conditions
without being able to apply the appropriate currents,
voltages, powers, temperature or frequencies that
would normally trigger an event notification.
Here, when a corresponding bit is set, the MCP39F501
device acts as t hough the a ppropriate lim it and the hold
registers have been breached, and the corresponding
event is tr igge red . Thes e re giste rs sh oul d not be used
to clear a true event that is triggered from the limit and
hold registers, rather the Event Clear register is used
for this purpose.
:
REGISTER 7-5: EVENT TEST REGISTER
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
OC OV OP UV OF UF OT UT
bit 15 bit 8
R/W-0 R/W-0 U-0 U-0 U-0 U-0 U-0 U-0
VSA VSU
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0
-n = Value at POR ‘1’ = Bit is set 0’ = Bit is cleared x = Bit is unknown
bit 15 OC: Overcurrent
1 = T r iggers a n event and th e corres ponding event f lag bit s and Critical /S t andard p ins will follow per th e
mask registers
0 = Clea rs any e ve nt set us ing the event tes t re gi ste r. Writing a zero here has no ef f ec t on true event s ,
for clearing true eve nts use the event clear registe r
bit 14 OV: Overvoltage
1 = T r iggers a n event and th e corres ponding event f lag bit s and Critical /S t andard p ins will follow per th e
mask registers
0 = Clea rs any e ve nt set us ing the event tes t re gi ste r. Writing a zero here has no ef f ec t on true event s ,
for clearing true eve nts use the event clear registe r
bit 13 OP: Over Pow er
1 = T r iggers a n event and th e corres ponding event f lag bit s and Critical /S t andard p ins will follow per th e
mask registers
0 = Clea rs any e ve nt set us ing the event tes t re gi ste r. Writing a zero here has no ef f ec t on true event s ,
for clearing true eve nts use the event clear registe r
bit 12 UV: Undervoltage
1 = T r iggers a n event and th e corres ponding event f lag bit s and Critical /S t andard p ins will follow per th e
mask registers
0 = Clea rs any e ve nt set us ing the event tes t re gi ste r. Writing a zero here has no ef f ec t on true event s ,
for clearing true eve nts use the event clear registe r
bit 11 OF: Over Frequency
1 = T r iggers a n event and th e corres ponding event f lag bit s and Critical /S t andard p ins will follow per th e
mask registers
0 = Clea rs any e ve nt set us ing the event tes t re gi ste r. Writing a zero here has no ef f ec t on true event s ,
for clearing true eve nts use the event clear registe r
bit 10 UF: Under Frequency
1 = T r iggers a n event and th e corres ponding event f lag bit s and Critical /S t andard p ins will follow per th e
mask registers
0 = Clea rs any e ve nt set us ing the event tes t re gi ste r. Writing a zero here has no ef f ec t on true event s ,
for clearing true eve nts use the event clear registe r
2013 Microchip Technology Inc. DS20005256A-page 37
MCP39F501
7.6 Event Clear Register (0x0092)
The Event Test register is used to clear an event that
has been triggered by either real conditions that have
breache d the corre spond ing lim it and ho ld regis ters for
a given event, or an event that has been triggered by
setting the corresponding bit in the Event Test register.
By clearing an event using the EventClear register, if
the co r re sp on din g ev en t has been s et u si ng t h e E v ent
Test register , thi s bit, along with the Even t Flag register ,
will be automat ically cleared.
The Event C lear regis ter bit s are not l atched , and onc e
set, will be automatically cleared after the Event Flag
and Event Test registers have been cleared.
bit 9 OT: Over Temperature
1 = T r iggers a n event and th e corres ponding event f lag bit s and Critical /S t andard p ins will follow per th e
mask registers
0 = Clea rs any e ve nt set us in g the event test register. Writ ing a zero here has no effec t on tru e e ve nt s ,
for clearing true eve nts use the event clear registe r
bit 8 UT: Under Temperature
1 = T r iggers a n event and th e corres ponding event f lag bit s and Critical /S t andard p ins will follow per th e
mask registers
0 = Clea rs any e ve nt set us in g the event test register. Writ ing a zero here has no effec t on tru e e ve nt s ,
for clearing true eve nts use the event clear registe r
bit 7 VSA: Voltage Sag
1 = T r iggers a n event and th e corres ponding event f lag bit s and Critical /S t andard p ins will follow per th e
mask registers
0 = Clea rs any e ve nt set us in g the event test register. Writ ing a zero here has no effec t on tru e e ve nt s ,
for clearing true eve nts use the event clear registe r
bit 6 VSU: Voltage Surge
1 = T r iggers a n event and th e corres ponding event f lag bit s and Critical /S t andard p ins will follow per th e
mask registers
0 = Clea rs any e ve nt set us in g the event test register. Writ ing a zero here has no effec t on tru e e ve nt s ,
for clearing true eve nts use the event clear registe r
bit 5-0 Unimplemented: Read as0
REGISTER 7-5: EVENT TEST REGISTER (CONTINUED)
REGISTER 7-6: EVENT CLEAR REGISTER
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
OC OV OP UV OF UF OT UT
bit 15 bit 8
R/W-0 R/W-0 U-0 U-0 U-0 U-0 U-0 U-0
VSA VSU ——
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15 OC: Overcurrent
1 = Clears the event
0 = No effect
MCP39F501
DS20005256A-page 38 2013 Microchip Technology Inc.
7.7 Voltage Sag and Voltage Surge
Detection
The event alarms for Voltage Sag and Voltage Surge
work differently compared to the other event alarms,
which are tested against every computation cycle.
These two event alarms are designed to provide a
much faster interrupt if the condition occurs. Note that
neither of these two events have a respective Hold reg-
ister associated with them, since the detection time is
less than one line cycle.
The calculation engine keeps track of a trailing mean
square of t he i npu t vo lt age, as defined by the foll ow in g
equation:
EQUATION 7-1:
Therefore, at each data read y o cc urre nce , the value of
VSA is compared to the programmable threshold set in
the Voltage Sag Limit register (0x0086) and Voltage
Surge Limit register (0x0088) to determine if a flag
should be set. If either of these events are masked to
either the standard or critical event pin, a logic-high
interr upt will be given on these pins . These ev ent s, lik e
all the other events, are latched, and must be cleared
after the event has passed by using the appropriate
clear event bit.
The sag or surge events can be used to quickly deter-
mine if a power failure has occurred in the system.
Using the on-c hip EEPROM of the M CP39F5 01, thes e
events can be quickly logged to memory to keep track
of damaging events for the PSU.
bit 14 OV: Overvoltage
1 = Clears the event
0 = No effect
bit 13 OP: Over Power
1 = Clears the event
0 = No effect
bit 12 UV: Undervoltage
1 = Clears the event
0 = No effect
bit 11 OF: Over Frequency
1 = Clears the event
0 = No effect
bit 10 UF: Under Frequency
1 = Clears the event
0 = No effect
bit 9 OT: Over Temperature
1 = Clears the event
0 = No effect
bit 8 UT: Under Temperature
1 = Clears the event
0 = No effect
bit 7 VSA: Voltage Sag
1 = Clears the event
0 = No effect
bit 6 VSU: Voltage Surge
1 = Clears the event
0 = No effect
bit 5-0 Unimplemented: Read as0
REGISTER 7-6: EVENT CLEAR REGISTER (CONTINUED)
VSA
2f
LINE
fSAMPLE
--------------------------V
n
nfSAMPLE
2f
LINE
--------------------------
1=
0
2
=
2013 Microchip Technology Inc. DS20005256A-page 39
MCP39F501
8.0 CONFIGURABLE DIGITAL I/O
PINS (DIO CONFIGURATION –
0X0046)
8.1 Overview
The MCP39F501 device has four pins that can be
configured in five possible configurations. These
configurations are:
Noti fication Standard Outp ut
Notification Critical Output
Logic Input
Device Address Bit Input (DIO0/DIO1 only)
Temperature Input (DIO2 only)
8.1.1 NOTIFICATION OUTPUTS
(STANDARD AND CRITICAL)
When a pin is defined to be a notification for either a
standard or critical event, the associated pin will
become active based on the masks set through the
event registers (see Section 7.0 “Event Notifica-
tions”).
8.1.2 LOGIC INPUTS
The default assignme nt for all DIO pin s are lo gic inpu t.
In this assignment, the state of the DIO pin is reflected
in the SystemStatus register, and can be used to flag
for various system events and read through the serial
interface.
8.1.3 DEVICE ADDRESS BIT INPUT
(A0/DIO0, A1/DIO1 ONLY)
There are two digital IO pins that are multiplexed with
the add ress pins for a mult i-device b us. DIO0 is also A0
and DIO 1 is also A1. For sy stems with multiple de vice s
on a single bus, th e MODE/DIR pin should have a weak
pull-down resistor to GND, as seen in Figure 4-2. At
POR, the MCP39F501 tests the state of this pin, and if
the MODE/DIR is logic low, then the DIO0 and DIO1
are disabled and these pins become input pins for the
A0 and A1 bits of the Device Address device address,
the beginning of the calibration register block. If the
MODE/DIR pin is logic high, then the device is
considered to be in Single Device mode, the address
pins are not needed, and DIO0 and DIO1 can then be
configu red as any o f the se ven pos sible c onfigurati ons.
8.1.4 TEMPERA TURE I NPUT (D IO2 ON LY)
When DIO2 is configured as a temperature input, the
Thermistor Voltage register (0x001A) contains the
scaled value of the ADC reading from an attached
temperature sensor.
If DIO2 is configured as an output, the value in the
Thermistor Voltage register will be equal to zero.
REGISTER 8-1: DIO CONFIGURATION REGISTER
U-0 U-0 U-0 U-0 R/W-0 R/W-0 R/W-0 R/W-0
DIO3[2] DIO3[1] DIO[0] DIO2[2]
bit 15 bit 8
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
DIO2[1] DIO2[0] DIO1[2] DIO1[1] DIO1[0] DIO0[2] DIO0[1] DIO0[0]
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-12 Unimplemented: Read as ‘0
bit 11-9 DIO3[n]: DIO3 Configuration
111 = Not Used
110 = Not Used
101 = Notification Standard Output
100 = Notification Critical Output
011 = Not Used
010 = Input (Default)
001 = Not Used
000 = Not Used
MCP39F501
DS20005256A-page 40 2013 Microchip Technology Inc.
bit 8-6 DIO2[n]: DIO2 Configuration
111 = Not Used
110 = Not Used
101 = Notification Standard Output
100 = Notification Critical Output
011 = Temperature Input
010 = Input (Default)
001 = Not Used
000 = Not Used
bit 5-3 DIO1[n]: DIO1 Configuration
111 = Not Used
110 = Not Used
101 = Notification Standard Output
100 = Notification Critical Output
011 = Device Address Bit Input
010 = Input (Default)
001 = Not Used
000 = Not Used
bit 2-0 DIO0[n]: DIO0 Configuration
111 = Not Used
110 = Not Used
101 = Notification Standard Output
100 = Notification Critical Output
011 = Device Address Bit Input
010 = Input (Default)
001 = Not Used
000 = Not Used
REGISTER 8-1: DIO CONFIGURATION REGISTER (CONTINUED)
2013 Microchip Technology Inc. DS20005256A-page 41
MCP39F501
9.0 MCP39F501 CALIBRATION
9.1 Overview
Calibration compensates for ADC gain error, compo-
nent tolerances and overall noise in the system. The
device provides an on-chip calibration algorithm that
allows simple system calibration to be performed
quickly. The excellent analog performance of the A/D
convert ers on the MCP39F5 01 allows for a single point
calibration and a single calibration command to
achieve accurate measurements.
Calibration can be done by either using the predefined
auto- calibrati on comm ands , or by wri ting dire ctly to the
calibration registers. If additional calibration points are
requ ired (AC offse t, Phas e Compen sati on, D C offset) ,
the corresponding calibration registers are available to
the user and will be described separately in this
section.
9.2 Calibration Order
The pr oper s tep s for calib ration need t o b e maint a ined.
If the device has an external temperature sensor
attached, temperature calibration should be done first
by reading the value from the Thermistor Voltage
register (0x001A) and copying the value by writing to
the Ambient Temperature Reference Voltage register
(0x00B6).
If the device runs on the internal oscillator, the line
frequency must be calibrated next using the Auto-
Calibration Frequency command.
The single point gain calibration at unity power factor
should be perform ed nex t.
If non-unity displacement power factor measurements
are a concern, then the next step should be phase
calibration, followed by reactive power gai n calibration.
To summarize the order of calibration:
1. Temperature Calibration (optional)
2. Line Frequency Calibration (optional)
3. Gain Calibration at PF = 1
4. Phase Calibration at PF 1 (optional)
5. Reactive Gain Calibration at PF 1(optional)
9.3 Single Point Gain Calibrations
(Calibrations at Unity Power Factor)
When using the device in AC mode with the high-pass
filters turned on, most offset errors are removed and
only a single point gain calibration is required.
Setting the gain registers to properly produce the
desired outputs can be done manuall y b y wr itin g to the
appropriate register. The alternative method is to use
the auto-calibration commands described in this
section.
9.3.1 USING THE Auto-Calibration
Gain COMMAND
By applyi ng stable ref erence volt ages and curren ts that
are equivalent to the values that reside in the target
Calibration Current (0x004C), Calibration Voltage
(0x0050) and Calibration Active Power (0x0052)
registers, the Auto-Calibration Gain command
can then be issued to the device.
After a successful calibration (response = ACK), a
Save Registers to Flash command can th e n be
issued to save the calibration constants calculated by
the device.
The following registers are set when the Auto-Cali-
bration Gain command is issued:
Gain Current RMS (0x0028)
Gain Voltage RMS (0x002A)
Gain Active Power (0x002C)
When this command is issued, the MCP39F501
attempts to match the expected values to the mea-
sured va lues f or all th ree output quanti ties by changin g
the gain register based on the following formula:
EQUATION 9-1:
The same formula applies for voltage RMS, current
RMS and active power. Since the gain registers for all
three quantities are 16-bit numbers, the ratio of the
expected value to the measured value (which can be
modified by changing the Range register) and the
previous gain must be such that the equation yields a
valid number. Here the limits are set to be from 25,000
to 65,535. A new gain within this range for all three
limits will return an ACK for a successful calibration,
otherwise the command returns a NAK for a failed
calibration attempt.
It is the user’s responsibility to ensure that the proper
range settings, PGA settings and hardware design
settings are correct to allow for successful calibration
using this command.
9.3.2 EXAMPLE OF RANGE SELECTION
FOR VALID CALIBRATION
In this example, a user applies a calibration current of
1A to an uncalibrated system. The indicated value in
the Current RMS register (0x0004) is 2300 with the
system 's sp ec ifi c sh un t val ue, PGA ga in, et c. Th e us er
expects to see a value of 1000 in the Current RMS
register when 1A current is applied, meaning 1.000 A
with 1 mA resolution. Other given values are:
The existing value fo r Gain Curr ent R MS is
33480.
The existing value for Range is 12.
GAINNEW GAINOLD Expected
Measured
--------------------------=
MCP39F501
DS20005256A-page 42 2013 Microchip Technology Inc.
By using Equation 9-1, the calculation for GainNEW
yields:
EQUATION 9-2:
When using the Auto-Calibration Gain com-
mand, the res ult wo uld be a f ail ed c ali bra tion or a NAK
returned form the MCP39F501, because the resulting
GainNEW is less than 20,000.
The solution is to use the Range register to bring the
measured value closer to the expected value, such
that a new gain value can be calculated within the
limits specified above.
The Range register specifies the number of right-bit
shifts (equivalent to divisions by 2) after the
multiplication with the Gain Current RMS register.
Refer to Section 5.0 “Calculation Engine (CE)
Description” for information on the Range register.
Incrementing the Range register by 1 unit, an addi-
tional right-bit shift or ÷2 is included in the calculation.
Increasing the current range from 12 to 13 yields the
new measured Current RMS register value of 2300/2
= 1150. The expected (1000) and measured (1150)
are much closer now, so the expected new gain
should be within the limits:
EQUATION 9-3:
The resulting new gain is within the limits and the
device successfully calibrates Current RMS and
returns an ACK.
It can be observed that the range can be set to 14 and
the resulting new gain will still be within limits
(GainNEW = 58226). However, since this gain value is
close to the limit of the 16-bit Gain register, variations
from system to system (component tolerances, etc.)
might create a scenario where the calibration is not
successful on some units and there would be a yield
issue. The best approach is to choose a range value
that places the new gain in the mi ddl e o f th e bo un ds of
the gain registers described above.
In a second example, when applying 1A, the user
expects an output of 1.0000A with 0.1 mA resolution.
The example is starting with t he same ini tial value s:
EQUATION 9-4:
The GainNEW is much larger than the 16-bit limit of
65535, so fewer right-bit shifts must be introduced to
get the measured value closer to the expected value.
The user needs to compute the number of bit shifts
that will give a value lower than 65535. To estimate
this number:
EQUATION 9-5:
2.2 rounds to the closest integer value of 2. The range
value ch an g es to 12 2 = 1 0 ; ther e are 2 l e ss ri gh t -bi t
shifts.
The new measured value will be 2300 x 22=9200.
EQUATION 9-6:
The resulting new gain is within the limits and the
device successfully calibrates Current RMS and
returns an ACK.
9.4 Calibrating the Phase
Compensation Register (0x003E)
Phase compensation is provided to adjust for any
phase delay between the current and voltage path.
This pro ced ure requ ire s s in uso ida l c urre nt a nd v ol t ag e
waveforms, with a significant phase shift between
them, and significant amplitudes. The recommended
displacement power factor for calibration is 0.5. The
procedure for calculating the phase compensation
register is the following:
1. Determine what is the difference between the
angle corresponding to the measured power
factor (PFMEAS) and the angl e co rres pon din g to
the expected power factor (PFEXP), in degrees.
EQUATION 9-7:
2. Convert this from degrees to the resolution
provided by the Equation 9-8:
EQUATION 9-8:
GAINNEW GAINOLD Expected
Measured
---------------------------
33480 1000
2300
------------
14556===
14556 20000
GAINNEW GAINOLD Expected
Measured
---------------------------
33480 1000
1150
------------
29113===
20000 29113 65535

GAINNEW GAINOLD Expected
Measured
---------------------------
33480 1000
2300
------------
145565===
145565 65535
145565
65535
------------------2.2=
GAINNEW GAINOLD Expected
Measured
---------------------------
33480 10000
9200
---------------
36391===
20000 36391 65535

PFMEAS Value in PowerFactor Register
32768
---------------------------------------------------------------------------=
ANGLEMEAS
 PFMEAS

180
---------
acos=
ANGLEEXP
 PFEXP

180
---------
acos=
ANGLEMEAS ANGLEEXP
40
=
2013 Microchip Technology Inc. DS20005256A-page 43
MCP39F501
3. Combine this additional phase compensation to
whatever value is currently in the phase
compensation, and update the register.
Equation 9-9 should be computed in terms of a
8-bit 2's complement signed value. The 8-bit
result is placed in the least sign ificant byte of the
16-bit Phase Compensation r egister (0 x003E).
EQUATION 9-9:
Based on Equation 9-9, the max imum angle in degrees
that can be compensated is ±3.2 degrees. If a larger
phase shift is required, contact your local Microchip
sales office.
9.5 Reactive Power Calibration
and Phase Compensation
(Calibrations at Non-unity Power
Factor)
In order to correctly calibrate the reactive power
calculation through the Gain Reactive Power register
(0x002E), and to properly correct for any phase error
through the Phase Compensation register, the
calibration must be done at a power factor other than
PF = 1, typically at PF = 0.5.
9.5.1 USING THE AUTO-CALIBRATION
REACTIVE GAIN COMMAND
By applying the equivalent current, voltage and phase
lag (or lead) that correspond to the target reactive
power in the Calibration Reactive Power register
(0x0056), the Auto-Calibration Gain command
(0x7A) can be issued to the device.
After a successful calibration (response = ACK), a
Save Registers to Flash command can then be
issued to save the calibration constants calculated by
the device.
The following register is set when the
Auto-Calibration Gain command is issued:
Gain Reactive Power
When this command is issued, the MCP39F501
attempts to match the expected value of the reactive
power to the measured value of reactive power by
changing the GainReactivePower register.
9.6 Offset/No Load Ca librations
During offset calibrations, no line voltage or current
should be appli ed to th e system. The syst em shoul d be
in a No Load condition.
9.6.1 AC OFFSET CALIBRATION
There are three registers associated with the AC Offset
Calibration:
Offset Current RMS(0x0030)
Offset Acti ve Power(0x0034)
Offset Reactive Power(0x0038)
When computing the AC offset values, the respective
gain and Range registers should be taken into
consideration according to the block diagrams in
Figures 5-2, 5-3 and 5-4.
After a successful offset calibration, a Save
Registers to Flash command can then be iss ued
to save the calibration constants calculated by the
device.
9.6.2 DC OF FSET CALIBRATION
In DC applications, the high-pass filter on the current
and voltage channels is turned off. To remove any
residual DC value on the current, the DCOffsetCurrent
(0x003C) register adds to the A/D conversion
immediately after the ADC and prior to any other
function.
9.7 Calibrating the Line Frequency
Register (0x0018)
The Line Frequency register contains a 16-bit number
with a value equivalent to the input line frequency as it
is measured on the voltage channel. When in DC
mode, this calculation is turned off and the register will
be equal to zero.
The measurement of the line frequency is only valid
from 45 to 65 Hz.
9.7.1 USING THE Auto-Calibration
Frequency COMMAND
By a applying stable reference voltage with a constant
line freq uency th at is equ ivalent to the val ue that res ide
in the Line Frequency Ref (0x0094), the Auto-Cali-
bration Frequency command ca n then be issu ed
to the device.
After a successful calibration (response = ACK), a
Save Registers to Flash command can th e n be
issued to save the calibration constants calculated by
the device.
The following register is set when the Auto-Cali-
bration Frequency com ma nd is issu ed:
• Gain Line Frequency (0x00AE)
Note that the command is only required when running
of f the interna l oscilla tor. The formula used to calcu late
the new gain is given in Equation 9-1.
PhaseCompensationNEW PhaseCompensationOLD
+=
MCP39F501
DS20005256A-page 44 2013 Microchip Technology Inc.
9.8 Temperature Compensation
(Addresses 0x00B0/B2/B4/B6)
MCP39F501 measures the indication of the tempera-
ture sens or and uses the va lue to comp ensate the tem-
perature variation of the shunt resistance and the
frequency of the internal RC oscillator.
The same formula applies for Line Frequency, Current
RMS, Active Power and Reactive Power. The
temperature compensation coefficient depends on the
16-bit signed integer value of the corresponding
compensation register.
EQUATION 9-10:
At the calibration temperature, the effect of the com-
pensati on coeffi cient s is minimal. Th e coeffic ients nee d
to be tune d when the difference between the calibration
temperature and the device temperature is significant.
It is recom mend ed to use the de fau lt value s as sta rtin g
points.
yx1cTT
CAL

+
=
Where:
x = Uncompensated Output (corresponding to
Line Frequency, Current RMS, Active Power
and Reactive Power)
y = Compens ated Output
c = Temperature Compensation Coefficient
(depending on the shunt's Temperature
Coeffi cient of Resistance or on the internal RC
oscillator temperature frequency drift)
T = T herm istor Voltage (in 10-bit ADC units)
TCAL = Ambient Temperature Reference Voltage. It
should be set at the beginning of the
calibration procedure, by reading the
thermistor voltage and writing its value to the
ambient temperature reference voltage
register.
M = 26 (for Line Frequency compensation)
= 27 (for Current, Active Power and Reactive
Power)
cTemperatureCompensation Register
2M
-----------------------------------------------------------------------------------------------=
2013 Microchip Technology Inc. DS20005256A-page 45
MCP39F501
10.0 EEPROM
The data EEPROM is organized as 16-bit wide mem-
ory. Each word is d irec tly a ddre ss ab le, an d i s read abl e
and writable across the entire VDD range. The
MCP39F501 has 256 16-bit words of EEPROM that is
organized in 32 pages for a total of 512 bytes.
There are three commands that support access to the
EEPROM array.
EEPROM Page Read (0x42)
EEPROM Page Write (0x50)
EEPROM Bulk Erase (0x4F)
TABLE 10-1: EXAMPLE EEPROM COMMANDS AND DEVICE RESPONSE
Command Command ID BYTE 0 BYTE 1-N # Bytes Successful Response
Page Read EEPROM 0x42 PAGE 2 ACK, Dat a, CRC
Page Write EEPROM 0x50 P AGE + 16 BYTES
OF DATA 18 ACK
Bulk Erase EEPROM 0x4F --------- 1 ACK
TABLE 10-2: MCP39F501 EEPROM ORGANIZATION
Page 00 02 04 06 08 0A 0C 0E
0 0000 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
10010 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
20020 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
30030 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
40040 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
50050 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
60060 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
70070 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
80080 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
90090 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
10 00A0 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
11 00B0 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
12 00C0 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
13 00D0 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
14 00E0 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
15 00F0 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
16 0100 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
17 0110 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
18 0120 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
19 0130 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
20 0140 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
21 0150 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
22 0160 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
23 0170 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
24 0180 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
25 0190 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
26 01A0 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
27 01B0 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
28 01C0 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
29 01D0 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
30 01E0 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
31 01F0 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
MCP39F501
DS20005256A-page 46 2013 Microchip Technology Inc.
NOTES:
2013 Microchip Technology Inc. DS20005256A-page 47
MCP39F501
11.0 PACKAGING INFORMATION
11.1 Package Marking Information
28-Lead QFN (5x5x0.9 mm) Example
PIN 1 PIN 1
Legend: XX...X Customer-specific information
Y Year code (last digit of calendar year)
YY Year code (last 2 digits of calendar year)
WW Week code (week of January 1 is week ‘01’)
NNN Alphanume ric trac ea bil ity code
Pb-free JEDEC designator for Matte Tin (Sn)
*This package is Pb-free. The Pb-free JEDEC designator ( )
can be found on the outer packaging for this pa ckage.
Note: In the even t the full M icroc hip p art numb er cann ot be mark ed on one line, it wil l
be carried over to the next line, thus limiting the number of available
characters for customer-specific information.
3
e
3
e
39F501
E/MQ ^^
1340256
3
e
MCP39F501
DS20005256A-page 48 2013 Microchip Technology Inc.
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
2013 Microchip Technology Inc. DS20005256A-page 49
MCP39F501
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
MCP39F501
DS20005256A-page 50 2013 Microchip Technology Inc.
28-Lead Plastic Quad Flat, No Lead Package (MQ) – 5x5 mm Body [QFN] Land Pattern
With 0.55 mm Contact Length
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
Microchip Technology Drawing C04-2140A
2013 Microchip Technology Inc. DS20005256A-page 51
MCP39F501
APPENDIX A: REVIS ION HISTORY
Revision A (December 2013)
Original Release of this Document .
MCP39F501
DS20005256A-page 52 2013 Microchip Technology Inc.
NOTES:
2013 Microchip Technology Inc. DS20005256A-page 53
MCP39F501
PRODUCT IDENTIFICATION SYSTEM
To order or obtain information, e.g., on pricing or delivery, refer to the factory or the listed sales office.
Device: MCP39F501: Single Phase Energy and Power Monitoring
IC with Calculation
Tape an d Reel Option: Blan k = Standa rd packaging (tu be or tra y)
T = Tape and Reel(1)
Temperature Range: E = -40°C to +125°C
Package: MQ = Plastic Quad Flat, No Lead Package – 5x5x0.9 mm
Body (QFN)
Examples:
a) MC P 3 9F5 01 -E/ M Q: Extended Tem perature,
28LD 5x5 QFN package.
b) MCP39F501 T-E/MQ: Ta pe and Reel ,
Extended Temperature,
28LD 5x5 QFN package.
PART NO. X
Temperature
Range
Device
/XX
Package
[X](1)
Tape and
Reel
Note 1: Tape and Reel identifier only appears in the
catalog part number description. This identi-
fier is used for ordering purposes and is not
printed on the device package. Check with
your Microchip sales office for package
availability for the Tape and Reel option.
2013 Microchip Technology Inc. DS20005256A-page 54
MCP39F501
NOTES:
2013 Microchip Technology Inc. DS20005256A-page 55
Information contained in this publication regarding device
applications a nd the lik e is p ro vided on ly for yo ur con ve nien ce
and may be supers eded by updates . I t is you r r es ponsibil it y to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
FlashFlex, KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro,
PICSTART, PIC32 logo, rfPIC, SST, SST Logo, SuperF lash
and UNI/O are registered trademarks of Microchip T echnology
Incorporated in the U.S.A. and other countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MTP, SE EVAL and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A.
Silicon Storage Technology is a registered trademark of
Microchip Technology Inc. in other countries.
Analog-for-the-Digital Age, Application Maestro, BodyCom,
chipKIT, chipKIT logo, CodeGuard, dsPICDEM,
dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONIT OR, FanSense, HI-TIDE, In-Circuit Se rial
Programm ing, ICSP, Mindi, MiWi, MPASM, MPF, MPLAB
Certified logo, MPLIB, MPLINK, mTouch, Omniscient Code
Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit,
PICtail, REAL ICE, rfLAB, Select Mode, SQI, Serial Quad I/O,
Total Endurance, TSHARC, UniWinDriver, WiperLock, ZENA
and Z-Scale are trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip T echnology Incorporated
in the U.S.A.
GestIC and ULPP are registered trademarks of Microchip
Technology Germany II GmbH & C o. KG, a subsidiary of
Microchip Technology Inc., in other countries.
All other trademarks mentioned herein are property of their
respective companies.
© 2013, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
ISBN: 9781620777787
Note the following details of the code protection feature on Microchip devices:
Microchip products meet the specification contained in their particular Microchip Data Sheet.
Microchip believes that it s family of products is one of the most secure families of it s kind on the market today, when used in the
intended manner and under normal conditions.
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
Microchip is willing to work with the customer who is concerned about the integrity of their code.
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.
Code protection is c onstantly evolving. We a t Microc hip are co m mitted to continuously improving the code prot ect ion featur es of our
products. Attempts to break Microchip’ s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
devices, Serial EEPROMs, microperiph erals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
QUA LITY MANAGEMENT S
YSTEM
CERTIFIED BY DNV
== ISO /TS 16949 ==
DS20005256A-page 56 2013 Microchip Technology Inc.
AMERICAS
Corporate Office
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7200
Fax: 480-792-7277
Technical Support:
http://www.microchip.com/
support
Web Address:
www.microchip.com
Atlanta
Duluth, GA
Tel: 678-957-9614
Fax: 678-957-1455
Boston
Westborough, MA
Tel: 774-760-0087
Fax: 774-760-0088
Chicago
Itasc a , IL
Tel: 630-285-0071
Fax: 630-285-0075
Cleveland
Independence, OH
Tel: 216-447-0464
Fax: 216-447-0643
Dallas
Addison, TX
Tel: 972-818-7423
Fax: 972-818-2924
Detroit
Farmington Hills, MI
Tel: 248-538-2250
Fax: 248-538-2260
Indianapolis
Noblesville, IN
Tel: 317-773-8323
Fax: 317-773-5453
Los A n ge les
Mission Viejo, CA
Tel: 949-462-9523
Fax: 949-462-9608
Santa Clara
Santa Clara, CA
Tel: 408-961-6444
Fax: 408-961-6445
Toronto
Mississauga, Ontario,
Canada
Tel: 905-673-0699
Fax: 905-673-6509
ASIA/PACIFIC
Asia Pacific Office
Suites 3707-14, 37th Floor
Tower 6, The Gateway
Harbour City, Kowloon
Hong Kong
Tel: 852-2401-1200
Fax: 852-2401-3431
Australia - Sydney
Tel: 61-2-9868-6733
Fax: 61-2-9868-6755
China - Beijing
Tel: 86-10-8569-7000
Fax: 86-10-8528-2104
China - Chengdu
Tel: 86-28-8665-5511
Fax: 86-28-8665-7889
China - Chongqing
Tel: 86-23-8980-9588
Fax: 86-23-8980-9500
China - Hangzhou
Tel: 86-571-2819-3187
Fax: 86-571-2819-3189
China - Hong Kong SAR
Tel: 852-2943-5100
Fax: 852-2401-3431
China - Nanjing
Tel: 86-25-8473-2460
Fax: 86-25-8473-2470
China - Qingdao
Tel: 86-532-8502-7355
Fax: 86-532-8502-7205
China - Shanghai
Tel: 86-21-5407-5533
Fax: 86-21-5407-5066
China - Shenyang
Tel: 86-24-2334-2829
Fax: 86-24-2334-2393
China - Shenzhen
Tel: 86-755-8864-2200
Fax: 86-755-8203-1760
China - Wuhan
Tel: 86-27-5980-5300
Fax: 86-27-5980-5118
China - Xian
Tel: 86-29-8833-7252
Fax: 86-29-8833-7256
China - Xiamen
Tel: 86-592-2388138
Fax: 86-592-2388130
China - Zhuhai
Tel: 86-756-3210040
Fax: 86-756-3210049
ASIA/PACIFIC
India - Bangalore
Tel: 91-80-3090-4444
Fax: 91-80-3090-4123
India - New Delhi
Tel: 91-11-4160-8631
Fax: 91-11-4160-8632
India - Pune
Tel: 91-20-3019-1500
Japan - Osaka
Tel: 81-6-6152-7160
Fax: 81-6-6152-9310
Japan - Tokyo
Tel: 81-3-6880- 3770
Fax: 81-3-6880-3771
Korea - Daegu
Tel: 82-53-744-4301
Fax: 82-53-744-4302
Korea - Seoul
Tel: 82-2-554-7200
Fax: 82-2-558-5932 or
82-2-558-5934
Malaysia - Kuala Lumpur
Tel: 60-3-6201-9857
Fax: 60-3-6201-9859
Malaysia - Penang
Tel: 60-4-227-8870
Fax: 60-4-227-4068
Philippines - Manila
Tel: 63-2-634-9065
Fax: 63-2-634-9069
Singapore
Tel: 65-6334-8870
Fax: 65-6334-8850
Taiwan - Hsin Chu
Tel: 886-3-5778-366
Fax: 886-3-5770-955
Taiwan - Ka ohsiung
Tel: 886-7-213-7828
Fax: 886-7-330-9305
Taiwan - Taipei
Tel: 886-2-2508-8600
Fax: 886-2-2508-0102
Thailand - Bangkok
Tel: 66-2-694-1351
Fax: 66-2-694-1350
EUROPE
Austria - Wels
Tel: 43-7242-2244-39
Fax: 43-7242-2244-393
Denmark - Cop e nha gen
Tel: 45-4450-2828
Fax: 45-4485-2829
France - Paris
Tel: 33-1-69-53-63-20
Fax: 33-1-69-30-90-79
Germany - Munich
Tel: 49-89-627-144-0
Fax: 49-89-627-14 4-44
Italy - Milan
Tel: 39-0331-742611
Fax: 39-0331-466781
Netherlands - Drunen
Tel: 31-416-690399
Fax: 31-416-690340
Spain - Madrid
Tel: 34-91-708-08-90
Fax: 34-91-708-08 -91
UK - Wokingham
Tel: 44-118-921-5869
Fax: 44-118-921-5820
Worldwide Sales and Service
08/20/13
Mouser Electronics
Authorized Distributor
Click to View Pricing, Inventory, Delivery & Lifecycle Information:
Microchip:
MCP39F501T-E/MQ MCP39F501-E/MQ