文档库 最新最全的文档下载
当前位置:文档库 › ARD00280;中文规格书,Datasheet资料

ARD00280;中文规格书,Datasheet资料

Single-Phase Energy Meter

Reference Design

? 2011 Microchip Technology Inc.DS51931A

DS51931A-page 2? 2011 Microchip Technology https://www.wendangku.net/doc/ac5972614.html,rmation 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.Trademarks The Microchip name and logo, the Microchip logo, dsPIC, K EE L OQ , K EE L OQ logo, MPLAB, PIC, PICmicro, PICSTART, PIC 32 logo, rfPIC and UNI/O are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor, MXDEV , MXLAB, SEEVAL and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A.Analog-for-the-Digital Age, Application Maestro, CodeGuard, dsPICDEM, https://www.wendangku.net/doc/ac5972614.html,, dsPICworks, dsSPEAK, ECAN, ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP , Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB, MPLINK, mTouch, Omniscient Code Generation, PICC, PICC-18, PICDEM, https://www.wendangku.net/doc/ac5972614.html,, PICkit,

PICtail, REAL ICE, rfLAB, Select Mode, Total Endurance,

TSHARC, UniWinDriver, WiperLock 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.

All other trademarks mentioned herein are property of their

respective companies.

? 2011, Microchip Technology Incorporated, Printed in the

U.S.A., All Rights Reserved.

Printed on recycled paper.ISBN: 978-1-61341-075-2

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 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.Microchip received ISO/TS-16949:2002 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, K EE L OQ ? code hopping

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.

PIC18F87J72 SINGLE-PHASE ENERGY METER REFERENCE DESIGN

? 2011 Microchip Technology Inc.DS51931A-page 3Table of Contents

Preface (7)

Introduction (7)

Document Layout (8)

Conventions Used in this Guide (9)

Recommended Reading (10)

The Microchip Web Site (10)

Customer Support (10)

Document Revision History.................................................................................10Chapter 1. Product Overview

1.1 Introduction (11)

1.2 What the PIC18F87J72 Single-Phase Energy Meter Reference Design Kit Includes (12)

1.3 Getting Started .............................................................................................12Chapter

2. Hardware

2.1 Overview (13)

2.2 Input and Analog Front End (16)

2.3 Power Supply Circuit ....................................................................................17Chapter

3. Calculation Engine and Register Description

3.1 Calculation Engine Signal Flow Summary (19)

3.2 Complete Register List (20)

3.3 MODE (21)

3.4 STATUS (22)

3.5 CAL_CONTROL (23)

3.6 LINE_CYC (24)

3.7 LINE_CYC_CNT (24)

3.8 RAW2_I_RMS (24)

3.9 RAW_I_RMS (24)

3.10 I_RMS (25)

3.11 RAW2_V_RMS (25)

3.12 RAW_V_RMS (25)

3.13 V_RMS (25)

3.14 LINE_FREQUENCY (25)

3.15 RAW_POWER_ACT (26)

3.16 POWER_ACT (26)

3.17 POWER_APP (26)

3.18 RAW_POWER_REACT (26)

PIC18F87J72 Single-Phase Energy Meter Reference Design

3.19 POWER_REACT (27)

3.20 PERIOD (27)

3.21 ENERGY_ACT (27)

3.22 ENERGY_APP (27)

3.23 I_ABS_MAX (28)

3.24 V_ABS_MAX (28)

3.25 ENERGY_REACT (28)

3.26 PHASE_COMPENSATION (28)

3.27 OFFSET_I_RMS (28)

3.28 OFFSET_V_RMS (29)

3.29 GAIN_I_RMS (29)

3.30 GAIN_V_RMS (29)

3.31 OFFSET_POWER_ACT (29)

3.32 GAIN_POWER_ACT (29)

3.33 OFFSET_POWER_REACT (30)

3.34 GAIN_POWER_REACT (30)

3.35 GAIN_ENERGY_ACT (30)

3.36 GAIN_ENERGY_APP (30)

3.37 GAIN_ENERGY_REACT (30)

3.38 CF_PULSE_WIDTH (31)

3.39 GAIN_DENR_ENERGY_ACT (31)

3.40 GAIN_NUMR_ENERGY_ACT (31)

3.41 METER_CONFIG (31)

3.42 CAL_STATUS (32)

3.43 MAXIMUM CURRENT (32)

3.44 CALIBRATION_VOLTAGE (32)

3.45 CALIBRATION_CURRENT (32)

3.46 CALIBRATION_FREQUENCY (33)

3.47 METER_CONSTANT (33)

3.48 CALIBRATION_LINE_CYCLE (33)

3.49 GAIN_DENR_ENERGY_REACT (33)

3.50 GAIN_NUMR_ENERGY_REACT (33)

3.51 PHASE_COMPENSATION_90 (33)

3.52 CREEP_THRSHOLD_MINUTE (34)

3.53 CREEP_THRSHOLD_SECOND (34)

3.54 ENERGY_ACT_FORWARD (34)

3.55 ENERGY_ACT_REVERSE (34)

3.56 ENERGY_REACT_INDUCTIVE (34)

3.57 ENERGY_REACT_CAPACITIVE (35)

DS51931A-page 4? 2011 Microchip Technology Inc.

Appendix A. Schematic and Layouts

A.1 Introduction (37)

A.2 Schematics and PCB Layout (37)

A.3 Board – Schematic (38)

A.4 Board – Schematic Top Silk and Boarder Outline (39)

A.5 Board – Top Silk (40)

A.6 Board – Top Trace and Pads (41)

A.7 Board – Bottom Silk (42)

A.8 Board – Bottom Trace and Pads (43)

Appendix B. Bill of Materials (BOM)

Worldwide Sales and Service (50)

? 2011 Microchip Technology Inc.DS51931A-page 5

PIC18F87J72 Single-Phase Energy Meter Reference Design NOTES:

DS51931A-page 6? 2011 Microchip Technology Inc.

PIC18F87J72 SINGLE-PHASE ENERGY

METER REFERENCE DESIGN

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 (https://www.wendangku.net/doc/ac5972614.html,) 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 page number. The numbering convention for the DS number is

“DSXXXXXA”, where “XXXXX” 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? IDE on-line help.

Select the Help menu, and then Topics to open a list of available online help files.

INTRODUCTION

This chapter contains general information that will be useful to know before using the

PIC18F87J72 Single-Phase Energy Meter Reference Design. Items discussed in this

chapter include:

?Document Layout

?Conventions Used in this Guide

?Recommended Reading

?The Microchip Web Site

?Customer Support

?Document Revision History

? 2011 Microchip Technology Inc.DS51931A-page 7

PIC18F87J72 Single-Phase Energy Meter Reference Design

DOCUMENT LAYOUT

This document describes how to use the PIC18F87J72 Single-Phase Energy Meter

Reference Design as a development tool to emulate and debug firmware on a target

board. The manual layout is as follows:

?Chapter 1.“Product Overview” – Important information on using the

PIC18F87J72 Single-Phase Energy Meter Reference Design including a getting

started section that describes wiring the line and load connections.

?Chapter 2.“Hardware” – Includes detail on the function blocks of the meter

including the analog front end design, and power supply design.

?Chapter 3.“Calculation Engine and Register Description” – This section

describes the digital signal flow for all power output quantities such as RMS

current, RMS voltage, active power, and apparent power. This section also

includes the calibration registers detail.

?Appendix A.“Schematic and Layouts” – Shows the schematic and layout

diagrams

?Appendix B.“Bill of Materials (BOM)” – Lists the parts used to build the

PIC18F87J72 Single-Phase Energy Meter Reference Design.

DS51931A-page 8? 2011 Microchip Technology Inc.

Preface

? 2011 Microchip Technology Inc.DS51931A-page 9

CONVENTIONS USED IN THIS GUIDE

This manual uses the following documentation conventions:DOCUMENTATION CONVENTIONS

Description

Represents Examples Arial font:

Italic characters

Referenced books MPLAB ? IDE User’s Guide Emphasized text ...is the only compiler...Initial caps A window

the Output window A dialog

the Settings dialog A menu selection

select Enable Programmer Quotes A field name in a window or

dialog

“Save project before build”Underlined, italic text with right angle bracket A menu path

File>Save Bold characters A dialog button

Click OK A tab

Click the Power tab N‘Rnnnn A number in verilog format,

where N is the total number of

digits, R is the radix and n is a

digit.

4‘b0010, 2‘hF1Text in angle brackets < > A key on the keyboard

Press , Courier New font:Plain Courier New Sample source code

#define START Filenames

autoexec.bat File paths

c:\mcc18\h Keywords

_asm, _endasm, static Command-line options

-Opa+, -Opa-Bit values

0, 1Constants

0xFF, ‘A’Italic Courier New A variable argument

file .o , where file can be any valid filename Square brackets [ ]Optional arguments

mcc18 [options] file [options]Curly brackets and pipe character: { | }Choice of mutually exclusive

arguments; an OR selection

errorlevel {0|1}Ellipses...Replaces repeated text var_name [,

var_name...]

Represents code supplied by user void main (void)

{ ...

}

PIC18F87J72 Single-Phase Energy Meter Reference Design

RECOMMENDED READING

This user’s guide describes how to use the PIC18F87J72 Single-Phase Energy Meter

Reference Design. Other useful documents are listed below. The following Microchip

documents are available and recommended as supplemental reference resources.

PIC18F87J72 Family Data Sheet – “80-Pin, High-Performance Microcontrollers

with Dual Channel AFE, LCD Driver and nanoWatt Technology“ (DS39979)

This data sheet provides detailed information regarding the PIC18F87J72 device.

“Single-Phase Energy Meter Calibration User’s Guide” (DS51964)

THE MICROCHIP WEB SITE

Microchip provides online support via our web site at https://www.wendangku.net/doc/ac5972614.html,. 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

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: https://www.wendangku.net/doc/ac5972614.html,

DOCUMENT REVISION HISTORY

Revision A (March 2011)

?Initial Release of this Document.

DS51931A-page 10? 2011 Microchip Technology Inc.

分销商库存信息: MICROCHIP

ARD00280

相关文档