Note the following details of the code protection feature on Microchip devices:
YSTEM
CERTIFIED BY DNV
== ISO/TS 16949==
•Microchip products meet the specification contained in their particular Microchip Data Sheet.
•Microchip believes that its family of products is one of the most secure families of its 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 constantly evolving. We at Microchip are committed to continuously improving the code protection features 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.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility 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 unless otherwise stated.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
FlashFlex, flexPWR, JukeBlox, K
LANCheck, MediaLB, MOST, MOST logo, MPLAB,
OptoLyzer, PIC, PICSTART, PIC
SST, SST Logo, SuperFlash and UNI/O are registered
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
The Embedded Control Solutions Company and mTouch are
registered trademarks of Microchip Technology Incorporated
in the U.S.A.
Analog-for-the-Digital Age, BodyCom, chipKIT, chipKIT logo,
CodeGuard, dsPICDEM, dsPICDEM.net, ECAN, In-Circuit
Serial Programming, ICSP, Inter-Chip Connectivity, KleerNet,
KleerNet logo, MiWi, motorBench, MPASM, MPF, MPLAB
Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach,
Omniscient Code Generation, PICDEM, PICDEM.net, PICkit,
PICtail, RightTouch logo, REAL ICE, SQI, Serial Quad I/O,
Total Endurance, TSHARC, USBCheck, VariSense,
ViewSpan, WiperLock, Wireless DNA, and ZENA are
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
Silicon Storage Technology is a registered trademark of
Microchip Technology Inc. in other countries.
GestIC is a registered trademark of Microchip Technology
Germany II GmbH & Co. KG, a subsidiary of Microchip
Technology Inc., in other countries.
All other trademarks mentioned herein are property of their
respective companies.
DS50002413A-page 2 2015 Microchip Technology Inc.
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
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
Page 3
Object of Declaration: MCP39F521 Power Monitor Demonstration Board
MCP39F521 Power Monitor Demonstration Board User’s Guide
NOTES:
DS50002413A-page 6 2015 Microchip Technology Inc.
Page 7
MCP39F521 POWER MONITOR
DEMONSTRATION BOARD USER’S GUIDE
Preface
NOTICE TO CUSTOMERS
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so some actual dialogs
and/or tool descriptions may differ from those in this document. Please refer to our web site
(www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each
page, in front of the p age number. The numbering convention for the DS number is
“DSXXXXXXXXA”, where “XXXXXXXX” is the document number and “A” is the revision level
of the document.
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available online help files.
INTRODUCTION
®
IDE online help.
This chapter contains general information that will be useful to know before using the
MCP39F521 Power Monitor Demonstration Board. Items discussed in this chapter
include:
• Document Layout
• Conventions Used in this Guide
• Recommended Reading
• The Microchip Web Site
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes how to use the MCP39F521 Power Monitor Demonstration
Board to evaluate the MCP39F521 device. The manual layout is as follows:
• Chapter 1. “Product Overview” – Provides important information about the
MCP39F521 Power Monitor Demonstration Board
• Chapter 2. “Installation and Operation” – Provides information on using the
MCP39F521 Power Monitor Demonstration Board, including Section 2.1.1 that
describes wiring the line and load connections
• Chapter 3. “Hardwa re Desc ript ion ” – Provides details on the functional blocks
of the power monitor, including the analog front-end design and power supply
design
• Appendix A. “Schematic and Layouts” – Shows the schematic and layout
diagrams
• Appendix B. “Bill of Materials (BOM)” – Lists the parts used to build the
Choice of mutually exclusive
arguments; an OR selection
Represents code supplied by
user
“Save project before build”
4‘b0010, 2‘hF1
any valid filename
[options]
errorlevel {0|1}
var_name...]
void main (void)
{ ...
}
®
IDE User’s Guide
DS50002413A-page 8 2015 Microchip Technology Inc.
Page 9
RECOMMENDED READING
This user's guide describes how to use the MCP39F521 Power Monitor Demonstration
Board. Other useful documents are listed below. The following Microchip documents
are available and recommended as supplemental reference resources.
MCP39F521 Data Sheet – “I
Calculation” (DS20005442)
This data sheet provides detailed information regarding the MCP39F521 device.
THE MICROCHIP WEB SITE
Microchip provides online support via our web site at www.microchip.com. This web
site is used as a means to make files and information easily available to customers.
Accessible by using your favorite Internet browser, the web site contains the following
information:
• Product Support – Data sheets and errata, application notes and sample
programs, design resources, user’s guides and hardware support documents,
latest software releases and archived software
• General Technical Support – Frequently Asked Questions (FAQs), technical
support requests, online discussion groups, Microchip consultant program
member listing
• Business of Microchip – Product selector and ordering guides, latest Microchip
press releases, listing of seminars and events, listings of Microchip sales offices,
distributors and factory representatives
Preface
2
CSingle Phase Energy and P ower Monitoring IC with
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
Customers should contact their distributor, representative or field application engineer
(FAE) for support. Local sales offices are also available to help customers. A listing of
sales offices and locations is included in the back of this document.
Technical support is available through the web site at: http://support.microchip.com
MCP39F521 Power Monitor Demonstration Board User’s Guide
NOTES:
DS50002413A-page 10 2015 Microchip Technology Inc.
Page 11
Chapter 1. Product Overview
1.1INTRODUCTION
The MCP39F521 Power Monitor Demonstration Board is a fully functional single-phase
power and energy monitor. The system calculates active power, reactive power, RMS
current, RMS voltage, active energy (both import and export), reactive energy and
other typical power quantities as defined in the MCP39F521 data sheet.
The “MCP39F521 Power Monitor Utility” software is used to calibrate and monitor the
system, and can be used to create custom calibration setups. For most accuracy
requirements, only a single-point calibration is needed. The energy meter software
offers an automated step-by-step calibration process that can be used to quickly
calibrate energy meters.
This demonstration board uses the MCP39F521 Power Monitor Utility software for
evaluation via a USB connection to the board. A download link for this software can be
found on the evaluation board’s web page. For instructions on the use of this software,
refer to the software’s supporting documentation included within the application install
package.
MCP39F521 POWER MONITOR
DEMONSTRATION BOARD USER’S GUIDE
FIGURE 1-1:MCP39F521 Power Monitor Demons tratio n Boar d .
MCP39F521 Power Monitor Demonstration Board User’s Guide
1.2WHAT THE MCP39F521 POWER MONITOR DEMONSTRATION BOARD KIT
INCLUDES
This MCP39F521 Power Monitor Demonstration Board kit includes:
• MCP39F521 Power Monitor Demonstration Board (ADM00686)
• AC Line Cable
• IEC-to-Female AC Load Cable
• Mini-USB Cable
• Important Information Sheet
DS50002413A-page 12 2015 Microchip Technology Inc.
Page 13
Chapter 2. Installation and Operation
LINE
LOAD
2.1GETTING STARTED
To use the MCP39F521 Power Monitor Demonstration Board, follow the steps
described in the following sections. The meter design uses a 5A load for calibration
current and a maximum current (I
It is not recommended to put more than 15A through the AC plugs mounted on the
Printed Circuit Board (PCB).
To test the calibrated meter, the following connections can be made:
2.1.1Step 1: Wiring connections
Figure 2-1 identifies the line and load connections of the MCP39F521 Power Monitor
Demonstration Board.
MCP39F521 POWER MONITOR
DEMONSTRATION BOARD USER’S GUIDE
) of 15A.
MAX
FIGURE 2-1:Connecting the MCP39F521 Power Monitor Demonstration Board.
2.1.2Step 2: Tu rn on line/load power to the meter (power the meter)
The meter will turn on when the line connection is powered by 90V to 220V.
2.1.3Step 3: Connect the USB cable to a PC with the installed
“MCP39F521 Power Monitor Utility” software
Select the appropriate COM port. If the meter is connected correctly, the connection
status in the bottom-left corner of the software will display “Meter Connected”. If no
meter is found, the status will be “Meter Disconnected”. Check that the correct COM
port was selected and try again. Press the “Start” Icon to begin showing output data and
UART transmission between the PC and the MCP39F521.
MCP39F521 Power Monitor Demonstration Board User’s Guide
Legend:
12=Load connection (15A maximum recommended current)
13=Line connection AC supply (90-230V)
13
12
Figure 3-2 illustrates the components on the board’s bottom view.
FIGURE 3-2:MCP39F521 Power Monitor Demonstration Board Bottom View.
DS50002413A-page 16 2015 Microchip Technology Inc.
Page 17
3.1INPUT AND ANALOG FRONT END
499 k
LINE
499 k
1k
33 nF
A
GND
A
GND
V1+
1k
NEUTRAL
33 nF
A
GND
I1+
1k
NEUTRAL OUT
33 nF
A
GND
I1-
2m
Shunt
MCP39F521
CP1
CP2
The MCP39F521 Power Monitor Demonstration Board will operate from 90V to 230V.
At the bottom of the main board are the high-voltage line and neutral connections. The
shunt sits on the neutral side, or low side, of a two-wire system. The board comes
populated with a surface mount 2 mΩ shunt. If a lower value external shunt is to be
used, the wires going from the external shunt to the CP1 and CP2 connections should
twisted together.
The neutral side of the two-wire system goes into a resistor divider on the voltage
channel input, along with a DC offset added from V
included. The voltage channel uses two 499 kΩ resistors to achieve a divider ratio of
1000:1. For a line voltage of 220 V
220 mV