Energy Monitoring PICtail™ Plus Daughter Board User’s Guide © 2011 Microchip Technology Inc. DS51933A 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. 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. Trademarks The Microchip name and logo, the Microchip logo, dsPIC, KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART, PIC32 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, chipKIT, chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net, 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, PICDEM.net, 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-243-5 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, KEELOQ® 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. DS51933A-page 2 © 2011 Microchip Technology Inc. ENERGY MONITORING PICtail™ PLUS DAUGHTER BOARD USER’S GUIDE Table 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 ................................................................................. 10 Chapter 1. Product Overview 1.1 Introduction ................................................................................................... 11 1.2 What the Energy Monitoring PICtail™ Plus Daughter Board User’s Guide Kit Includes ......................................................................................................... 12 1.3 Getting Started ............................................................................................. 12 Chapter 2. Hardware 2.1 Overview ...................................................................................................... 13 2.2 Input and Analog Front End ......................................................................... 15 2.3 Power Supply Circuit .................................................................................... 16 Chapter 3. Calculation Engine and Register Description 3.1 Calculation Engine Signal Flow Summary ................................................... 17 3.2 Complete Register List ................................................................................. 18 3.3 MODE ........................................................................................................... 19 3.4 STATUS ....................................................................................................... 20 3.5 CAL_CONTROL ........................................................................................... 21 3.6 LINE_CYC ................................................................................................... 22 3.7 LINE_CYC_CNT ......................................................................................... 22 3.8 RAW2_I_RMS .............................................................................................. 22 3.9 RAW_I_RMS ................................................................................................ 22 3.10 I_RMS ........................................................................................................ 22 3.11 RAW2_V_RMS ......................................................................................... 23 3.12 RAW_V_RMS ........................................................................................... 23 3.13 V_RMS ....................................................................................................... 23 3.14 LINE_FREQUENCY ................................................................................... 23 3.15 RAW_POWER_ACT ................................................................................. 24 3.16 POWER_ACT ............................................................................................. 24 3.17 POWER_APP ............................................................................................ 24 3.18 RAW_POWER_REACT ............................................................................. 24 © 2011 Microchip Technology Inc. DS51933A-page 3 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide 3.19 POWER_REACT ........................................................................................ 25 3.20 PERIOD ...................................................................................................... 25 3.21 ENERGY_ACT ........................................................................................... 25 3.22 ENERGY_APP .......................................................................................... 25 3.23 I_ABS_MAX ............................................................................................... 26 3.24 V_ABS_MAX .............................................................................................. 26 3.25 ENERGY_REACT ...................................................................................... 26 3.26 PHASE_COMPENSATION ........................................................................ 26 3.27 OFFSET_I_RMS ....................................................................................... 26 3.28 OFFSET_V_RMS ...................................................................................... 27 3.29 GAIN_I_RMS ............................................................................................. 27 3.30 GAIN_V_RMS ............................................................................................ 27 3.31 OFFSET_POWER_ACT .......................................................................... 27 3.32 GAIN_POWER_ACT .................................................................................. 27 3.33 OFFSET_POWER_REACT ...................................................................... 28 3.34 GAIN_POWER_REACT ............................................................................. 28 3.35 GAIN_ENERGY_ACT ................................................................................ 28 3.36 GAIN_ENERGY_APP ................................................................................ 28 3.37 GAIN_ENERGY_REACT ........................................................................... 28 3.38 CF_PULSE_WIDTH ................................................................................... 29 3.39 GAIN_DENR_ENERGY_ACT .................................................................... 29 3.40 GAIN_NUMR_ENERGY_ACT ................................................................... 29 3.41 MODE1_DEF ........................................................................................... 29 3.42 CAL_STATUS ............................................................................................ 30 3.43 MAXIMUM CURRENT ............................................................................. 30 3.44 CALIBRATION_VOLTAGE ...................................................................... 30 3.45 CALIBRATION_CURRENT ...................................................................... 30 3.46 CALIBRATION_FREQUENCY .................................................................. 31 3.47 METER_CONSTANT ................................................................................ 31 3.48 CALIBRATION_LINE_CYCLE .................................................................. 31 3.49 GAIN_DENR_ENERGY_REACT .............................................................. 31 3.50 GAIN_NUMR_ENERGY_REACT ............................................................. 31 3.51 PHASE_COMPENSATION_90 ................................................................. 31 3.52 CREEP_THRSHOLD_MINUTE ................................................................. 32 3.53 CREEP_THRSHOLD_SECOND ................................................................ 32 3.54 ENERGY_ACT_FORWARD ...................................................................... 32 3.55 ENERGY_ACT_REVERSE ........................................................................ 32 3.56 ENERGY_REACT_INDUCTIVE ................................................................. 32 3.57 ENERGY_REACT_CAPACITIVE ............................................................... 33 Appendix A. Schematic and Layouts A.1 Introduction .................................................................................................. 35 A.2 Schematics and PCB Layout ....................................................................... 35 A.3 Board – Schematic ...................................................................................... 36 A.4 Board – Schematic Isolation ....................................................................... 37 DS51933A-page 4 © 2011 Microchip Technology Inc. A.5 Board – Top Silk .......................................................................................... 38 A.6 Board – Top Traces and Pads ..................................................................... 39 A.7 Board – Top Traces and Silk ....................................................................... 40 A.8 Board – Bottom Traces and Pads ................................................................ 41 A.9 Board – Bottom Silk ..................................................................................... 42 Appendix B. Bill of Materials (BOM) Worldwide Sales and Service .................................................................................... 47 © 2011 Microchip Technology Inc. DS51933A-page 5 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide DS51933A-page 6 © 2011 Microchip Technology Inc. ENERGY MONITORING PICtail™ PLUS DAUGHTER 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 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 Energy Monitoring PICtail™ Plus Daughter 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 © 2011 Microchip Technology Inc. DS51933A-page 7 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide DOCUMENT LAYOUT This document describes how to use the Energy Monitoring PICtail™ Plus Daughter Board 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 the Energy Monitoring PICtail™ Plus Daughter Board, including a getting started section that describes wiring the line and load connections. • Chapter 2. “Hardware” – This chapter details the function blocks of the meter, including the analog front end design, Phase Lock Loop (PLL) circuitry 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 Energy Monitoring PICtail™ Plus Daughter Board. DS51933A-page 8 © 2011 Microchip Technology Inc. Preface CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Arial font: Italic characters Initial caps Quotes Underlined, italic text with right angle bracket Bold characters N‘Rnnnn Text in angle brackets < > Courier New font: Plain Courier New Represents Referenced books Emphasized text A window A dialog A menu selection A field name in a window or dialog A menu path MPLAB® IDE User’s Guide ...is the only compiler... the Output window the Settings dialog select Enable Programmer “Save project before build” A dialog button A tab A number in verilog format, where N is the total number of digits, R is the radix and n is a digit. A key on the keyboard Click OK Click the Power tab 4‘b0010, 2‘hF1 Italic Courier New Sample source code Filenames File paths Keywords Command-line options Bit values Constants A variable argument Square brackets [ ] Optional arguments Curly brackets and pipe character: { | } Ellipses... Choice of mutually exclusive arguments; an OR selection Replaces repeated text Represents code supplied by user © 2011 Microchip Technology Inc. Examples File>Save Press <Enter>, <F1> #define START autoexec.bat c:\mcc18\h _asm, _endasm, static -Opa+, -Opa0, 1 0xFF, ‘A’ file.o, where file can be any valid filename mcc18 [options] file [options] errorlevel {0|1} var_name [, var_name...] void main (void) { ... } DS51933A-page 9 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide RECOMMENDED READING This user’s guide describes how to use the Energy Monitoring PICtail™ Plus Daughter Board. 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. AN994 Application Note “IEC61036 Meter Design using the MCP3905A/06A Energy Metering Devices” (DS00994) This application note documents the design decisions associated with using the MCP390X devices for energy meter design and IEC compliance, which are directly related to the PIC18F87J72 and other PIC® microcontroller-based meter designs. “Single-Phase Energy Meter Calibration User’s Guide” (DS51964) This document describes the software and calibration methods associated to the PIC18F87J72 and how to communicate to, and use the device registers described in this document for energy monitoring and calibration. 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 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 DOCUMENT REVISION HISTORY Revision A (June 2011) • Initial Release of this Document. DS51933A-page 10 © 2011 Microchip Technology Inc. ENERGY MONITORING PICtail™ PLUS DAUGHTER BOARD USER’S GUIDE Chapter 1. Product Overview 1.1 INTRODUCTION The Energy Monitoring PICtail™ Plus Daughter Board is a power monitor circuit that uses the highly integrated PIC18F87J72 single chip energy meter IC. This low-cost design does not use any transformers and requires few external components. It includes both an isolated USB connection for meter calibration and access to the device power calculation, and an isolated PICtail Plus connection for Explorer 16 Development Board and other board developments. The system calculates the Active Energy, Reactive Energy (both forward and reverse), Active Power, Reactive Power, Apparent Power, Root Mean Square Voltage (VRMS), Root Mean Square Current (IRMS), and other typical power quantities. The Microchip Energy Meter 1-Phase Software used with this board calibrates and monitors the system. It can also be used to create custom calibration setups. For some accuracy requirements only a single point calibration may be required. The software offers an automated step by step calibration process that can be used to quickly calibrate energy meters. FIGURE 1-1: © 2011 Microchip Technology Inc. Energy Monitoring PICtail™ Plus Daughter Board. DS51933A-page 11 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide 1.2 WHAT THE ENERGY MONITORING PICtail™ PLUS DAUGHTER BOARD USER’S GUIDE KIT INCLUDES The Energy Monitoring PICtail™ Plus Daughter Board Kit includes: • Energy Monitoring PICtail™ Plus Daughter Board (102-00330) • Important Information Sheet 1.3 GETTING STARTED The Energy Monitoring PICtail™ Plus Daughter Board uses a 2A load for calibration current, and a maximum current (IMAX) of 15A. All connections described in this section are dependent on the choice of the current sensing element. A secondary external transformer may be required in higher current meter designs. To test a calibrated meter, the following connections apply for a two-wire connection. 1.3.1 Step 1: Wiring connections J5 and J6 are the line and load connections of the meter. 1.3.2 Step 2: Connect the board to a PC running the energy meter software The meter will turn on when the line connection has 110V–240V connected. The PC software will show the total energy accumulated. DS51933A-page 12 © 2011 Microchip Technology Inc. ENERGY MONITORING PICtail™ PLUS DAUGHTER BOARD USER’S GUIDE Chapter 2. Hardware 2.1 OVERVIEW Figure 2-1 shows the Energy Monitoring PICtail Plus Daughter Board: 9 11 10 8 1 7 6 2 5 3 ™ 4 Legend: FIGURE 2-1: 1 = PICtail™ Plus connector (isolated) 2 = USB connection for “Energy Meter Software” on PC (isolated) 3 = Serial Connection Selection (Explorer 16 or USB) 4 = High voltage power supply (non-isolated) 5 = Line connection (male - 110 → 240V) 6 = Shunt, 3000 µW 7 = Load connection (female) 8 = Reset switch for PIC18F87J72 9 = Output Pulses for calibration in units of imp/kWh (calibrated to 3200 imp/kWh) 10 = EEPROM for calibration and energy meter usage storage 11 = PIC18F87J72 Hardware Components. © 2011 Microchip Technology Inc. DS51933A-page 13 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide Figure 2-2 shows the digital connections of the Energy Monitoring PICtail Plus Daughter Board. PIC18F87J72 RD5 RD6 Active Power Reactive Power PICtail™ Plus Connector (ISOLATED) RC7/RX RC6/TX Bidirectional Octo-coupler for Isolation ACSL-6210 RC3/SCK RC4/SDI RC5/SDO RA1 USB to UART Converter Mini – USB Connector MCP2200 (ISOLATED) SCK SDO SDI CS 25LC256 SPI – EEPROM FIGURE 2-2: DS51933A-page 14 Simplified Schematic for Digital Connections. © 2011 Microchip Technology Inc. Hardware 2.2 INPUT AND ANALOG FRONT END The Energy Monitoring PICtail Plus Daughter Board comes populated with components designed for 110–240V line voltage. The shunt sits on the low or neutral side of a two-wire system. The line of phase side of the two-wire system goes into a resistor divider on the voltage channel input. Anti-aliasing low-pass filters will be included on both differential channels. The voltage channel uses two 330 kΩ resistors to achieve a divider ratio of 664:1. For a line voltage of 230 VRMS, the channel 1 input signal size will be 490 mVPEAK. 150 FB (Note) 1.0 kΩ NEUTRAL CH0+ 68 nF Shunt A 150 FB (Note) 1.0 kΩ CH0- NEUTRAL 68 nF PIC18F87J72 A 330 kΩ 330 kΩ CH1+ LINE 68 nF 1.0 kΩ A A 1.0 kΩ CH1+ 68 nF A Note: FIGURE 2-3: A FB = ferrite beads. Ferrite beads have an impedance of the specified value at 100 MHz. Analog Input Circuitry. © 2011 Microchip Technology Inc. DS51933A-page 15 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide 2.3 POWER SUPPLY CIRCUIT The power supply circuit for the Energy Monitoring PICtail Plus Daughter Board uses a half-wave rectified signal, a single +5V voltage regulator and a 3.3V LDO. 1 3 2 +9V DC Power In (DO NOT USE WHILE METER IS CONNECTED TO MAINS!) 150 FB 1.5 µF 200 mA B 33Ω, 5W L 470 µF + N B B B +5V In Out MCP1702 GND 100 nF B A 10 µF +3.3V +5V In Out MCP1700 GND 100 nF B FIGURE 2-4: DS51933A-page 16 B B B 10 µF 100 nF B B Simplified Power Supply Circuit. © 2011 Microchip Technology Inc. ENERGY MONITORING PICtail™ PLUS DAUGHTER BOARD Chapter 3. Calculation Engine and Register Description 3.1 CALCULATION ENGINE SIGNAL FLOW SUMMARY RMS voltage, RMS current, Active Power and Apparent Power, and the calibration output pulse are all calculated through the following process described in Figure 3-1. The calibration registers for each calculation are shown as well as the output registers. OFFSET_I_RMS:16 16/24-bit ΔΣ ADC 2 Apparent Power RMS Current X Σ Reactive Power GAIN_ COMPENSATION _90:8 90° with Φ Correction OFFSET_POWER_REACT:32 X Σ Active Power 16/24-bit DS ADC Φ ADC PHASE_COMPENSATION:8 VOLTAGE OFFSET_POWER_ACT:32 OFFSET_V_RMS:16 GAIN_DENR_ENERGY_ACT:8 GAIN_NUMR_ENERGY_ACT:16 X2 Σ RMS Voltage Digital to Frequency Converter / FIGURE 3-1: X GAIN_ENERGY_APP:16 X GAIN_ENERGY_ACT:16 X GAIN_POWER_APP:16 X GAIN_POWER_ACT:16 X GAIN_I_RMS:16 X GAIN_V_RMS:16 GAIN_ENERGY_REACT:16 GAIN_POWER_REACT:16 X X kVAh ENERGY_APP:32 ENERGY_ACT:32 kWh kVA POWER_APP:32 kW POWER_ACT:32 A I_RMS:16 V V_RMS:16 ENERGY_REACT:32 POWER_REACT:32 kVAR kVARh Σ imp/kVARh imp/kWh Σ 1/METER_CONSTAT Digital to Frequency Converter GAIN_DENR_ENERGY_REACT:8 GAIN_NUMR_ENERGY_REACT:16 / 1/METER_CONSTAT X Σ X ADC CURRENT PIC18F87J72 Calculation Engine Signal Flow © 2011 Microchip Technology Inc. DS51933A-page 17 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide 3.2 COMPLETE REGISTER LIST TABLE 3-1: INTERNAL REGISTER SUMMARY Name Bits MODE 8 STATUS 8 R/W Description R/W Configuration register for operating mode of the meter. R STATUS register. CAL_CONTROL 8 R/W Configuration register for calibration control. LINE_CYC 16 R/W 2n number of line cycles to be used during energy accumulation. LINE_CYC_CNT 16 R Counter for number of line cycles. RAW2_I_RMS 64 R Raw2 RMS value from the current A/D converter in LSBs. RAW_I_RMS 16 R Raw RMS value from the current A/D converter in LSBs. I_RMS 16 R RMS value of the current, post Calibration. RAW2_V_RMS 64 R Raw2 RMS value from the voltage A/D converter in LSBs. RAW_V_RMS 16 R Raw RMS value from the voltage A/D converter in LSBs. V_RMS 16 R RMS value of the voltage, post Calibration. LINE_FREQUENCY 16 R Line Frequency. RAW_POWER_ACT 64 R Raw Active Power. POWER_ACT 32 R Final Active Power, units in watts (W). POWER_APP 32 R Final Apparent Power, units in volt-amperes (VA). RAW_POWER_REACT 64 R Raw Reactive Power. POWER_REACT 32 R Final Reactive Power, units in volt-amperes-reactive (VAR). PERIOD 32 R Period register. ENERGY_ACT 32 R Final Active Energy accumulated. RAW_ENERGY_ACT 64 R Raw Active Energy accumulated. ENERGY_APP 32 R Final Apparent Energy accumulated. RAW_ENERGY_APP 64 R Raw Apparent Energy accumulated. I_ABS_MAX 8 R Not implemented. V_ABS_MAX 8 R Not implemented. ENERGY_REACT 32 R Final Reactive Energy accumulated. RAW_ENERGY_REACT 64 R Final Reactive Energy accumulated. PHASE_COMPENSATION OFFSET_I_RMS 8 16 R/W Phase compensation between voltage and current. R/W Offset adjustment for RMS current reading. OFFSET_V_RMS 16 R/W Offset adjustment for RMS voltage reading. GAIN_I_RMS 16 R/W Gain adjustment for RMS current. GAIN_V_RMS 16 R/W Gain adjustment for RMS voltage. OFFSET_POWER_ACT 32 R/W Active Power offset. GAIN_POWER_ACT 16 R/W Active Power gain adjust. OFFSET_POWER_REACT 32 R/W Offset correction for Reactive Power. GAIN_POWER_REACT 16 R/W Reactive Power gain adjust to produce X VAR/LSB. GAIN_ENERGY_ACT 16 R/W Not implemented. GAIN_ENERGY_APP 16 R/W Not implemented. GAIN_ENERGY_REACT 16 R/W Not implemented. CF_PULSE_WIDTH 8 R/W Defines CF pulse width from 0 to 255 x 0.8192 ms (0.209s). GAIN_DENR_ENERGY_ACT 8 R/W Active Energy Pulse Output correction factor. GAIN_NUMR_ENERGY_ACT 16 R/W Active Energy Pulse Output correction factor. MODE1_DEF 16 R/W Power-Up Configuration Register. CAL_STATUS 16 R/W Calibration Status. DS51933A-page 18 © 2011 Microchip Technology Inc. Calculation Engine and Register Description TABLE 3-1: INTERNAL REGISTER SUMMARY (CONTINUED) Name Bits R/W Description MAXIMUM CURRENT 16 R/W Maximum current of the meter (IMAX). CALIBRATION_VOLTAGE 16 R/W Calibration Voltage of the meter (VCAL). CALIBRATION_CURRENT 16 R/W Calibration Current of the meter (ICAL). CALIBRATION_FREQUENCY 16 R/W Calibration Frequency of the meter. METER_CONSTANT 16 R/W Meter Constant in imp/kWh or imp/kVARh. CALIBRATION_LINE_CYCLE 16 R/W Number of line cycles for calibration. GAIN_DENR_ENERGY_REACT 8 R/W Reactive Energy Pulse Output correction factor. GAIN_NUMR_ENERGY_REACT 16 R/W Reactive Energy Pulse Output correction factor. PHASE_COMPENSATION_90 8 R/W Phase delay for Reactive Power. CREEP_THRSHOLD_MINUTE 8 R/W No Load threshold time (minutes). CREEP_THRSHOLD_SECOND ENERGY_ACT_FORWARD 8 32 R/W No Load threshold time (seconds). R/W Forward Active Energy. ENERGY_ACT_REVERSE 32 R/W Reverse Active Energy. ENERGY_REACT_INDUCTIVE 32 R/W Inductive Reactive Energy. ENERGY_REACT_CAPACITIVE 32 R/W Capacitive Reactive Energy. 3.3 MODE The MODE register controls the operation of the energy meter. The bit functions are defined by the table below. REGISTER 3-1: MODE REGISTER U-0 U-0 U-0 U-0 R/W-0 R/W-0 R/W-0 R/W-0 — — — — CF ABSOLUTE PHASE CREEP 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 7-4 Unimplemented: Read as ‘0’. bit 3 CF: Active Energy CF Phase Enable bit 1 = Bit = 1 Phase is enabled to be accumulated into the total energy registers or CF pulse output 0 = Bit = 0 Phase is DISABLED and is not accumulated into the total energy registers or CF pulse output bit 2 ABSOLUTE Positive Only Energy Accumulation Mode bit 1 = Bit = 1 Positive energy only 0 = Bit = 0 Both negative and positive energy accumulated (negative energy is subtracted) bit 1 PHASE: Phase bit 1 = Single Point Phase Correction 0 = Multi-Point Phase Correction (future) bit 0 CREEP: No-Load Threshold bit 1 = Enabled 0 = Disabled © 2011 Microchip Technology Inc. DS51933A-page 19 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide 3.4 STATUS The STATUS register contains the operational status of the energy meter. The bit functions are defined in the table below. REGISTER 3-2: STATUS REGISTER U-0 U-0 U-0 U-0 U-0 U-0 R U-0 — — — — — — PH_S — 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 bit 7-2 Unimplemented: Read as ‘0’ bit 1 PH_S: Phase Sign bit 1 = CT may be in backward (if enabled) 0 = Operation normal bit 0 Unimplemented: Read as ‘0’ DS51933A-page 20 x = Bit is unknown © 2011 Microchip Technology Inc. Calculation Engine and Register Description 3.5 CAL_CONTROL This is the Calibration mode control register. Bit 0 enables the Calibration mode. In this mode, the power meter operates as normal, but no updates are made to the voltage, current, power or energy registers as long as bit 1 is low. When bit 1 is set high, the registers are updated for LINE_CYC line cycles (only power and energy registers are updated). After this time, bit 1 is set low by the PIC18F87J72 and the update of the registers will stop. This allows the calibration software to set bit 0, clear the registers, set bit 1 and start reading the desired registers, as well as the CAL_CONTROL register, to check the status of bit 1. When bit 1 goes low, the LINE_CYC line cycles have passed and the registers are final. Note that bit 0 takes effect immediately, and bit 1 will take effect on the very next line cycle. When bit 1 goes low, all registers will be ready to read. REGISTER 3-3: CAL_CONTROL REGISTER (NOTE 1) U-0 U-0 U-0 U-0 U-0 U-0 — — — — — Reserved R/W-0 R/W-0 CAL_UPDATE CAL_MODE 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 7-3 Unimplemented: Read as ‘0’ bit 2 Reserved: bit 1 CAL_UPDATE: Calibration Update bit Power and energy registers updated for LINE_CYC line cycles when cleared. Bit must be set for registers to begin updating, which starts on the next line cycle after bit is set. 1 = When the CAL_MODE bit is set, set the CAL_UPDATE bit to enable update of power and energy registers starting on next line cycle. Bit = 1 Single Point Phase Correction 0 = When the CAL_MODE bit is set and the CAL_UPDATE bit has been set, the CAL_UPDATE bit will be cleared after LINE_CYC line cycles. At that point, all registers will be updated and no further updates will be done until the CAL_UPDATE bit is set again, or the CAL_MODE bit is cleared. bit 0 CAL_MODE: Calibration Mode bit This bit enables Calibration mode. 1 = Calibration mode enabled 0 = Calibration mode disabled Note 1: This register is used in Multi-Point and Single Point Calibration modes only. © 2011 Microchip Technology Inc. DS51933A-page 21 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide 3.6 LINE_CYC Name LINE_CYC Bits Cof 16 R/W Number of line cycles as a power of two. A setting of 0 indicates 20 or one line cycle. A setting of 1 is two line cycles (21), a setting of 2 is four lines cycles (22), up to a setting of eight, which is 256 line cycles. When written, this register will not take effect until the previous number of line cycles has been acquired. 3.7 LINE_CYC_CNT Name Bits Cof LINE_CYC_CNT 16 R This register counts from 0 and finishes at 2 (LINE_CYC - 1). Then re-starts at 0, where LINE_CYC represents the value in the LINE_CYC register. 3.8 RAW2_I_RMS Name RAW2_I_RMS Bits Cof 64 R This register is the square of the raw RMS value from the current A/D converter in LSBs. By definition, this register will always contain a positive value, including the situation where power is negative from a backwards CT or otherwise. This register is overwritten every LINE_CYC line cycle and is written only once, if the calibration is enabled. 3.9 RAW_I_RMS Name RAW_I_RMS Bits Cof 16 R This register is the raw RMS value from the current A/D converter in LSBs (square root of the top 32-bits of (RAW2_I_RMS + OFFSET_I_RMS). By definition, this register will always contain a positive value (even if the CT is in backwards). This register is overwritten every LINE_CYC line cycle and is written only once, if the calibration is enabled. 3.10 I_RMS Name I_RMS Bits Cof 16 R This register is the RMS value of phase A current in X A/LSB, as determined by the value in the GAIN_I_RMS register. When displaying the RMS current, multiply the (decimal) value in these registers by X to get the display value in Amperes. This register is overwritten every LINE_CYC line cycle (written only once if the calibration is enabled). DS51933A-page 22 © 2011 Microchip Technology Inc. Calculation Engine and Register Description 3.11 RAW2_V_RMS Name RAW2_V_RMS Bits Cof 64 R This register is the square of the raw RMS value from the voltage A/D converter in LSBs. By definition, it will always contain a positive value. This register is overwritten every LINE_CYC line cycle (written only once if the calibration is enabled). 3.12 RAW_V_RMS Name RAW_V_RMS Bits Cof 16 R This is the raw RMS value from the voltage A/D converter in LSBs (square root of the top 32-bits of RAW2_V_RMS + OFFSET_V_RMS. By definition, this register will always contain a positive value. The register is overwritten every LINE_CYC line cycle (written only once if the calibration is enabled). 3.13 V_RMS Name V_RMS Bits Cof 16 R This register is the RMS value of the voltage, in X 0.01 V/LSB, as determined by the value in the GAIN_V_RMS register. When displaying the RMS voltage, assume a calibrated meter exists and multiply the (decimal) value in these registers by X to get the display value in Volts. This register is overwritten every LINE_CYC line cycle (written only once if the calibration is enabled). 3.14 LINE_FREQUENCY Name Bits Cof LINE_FREQUENCY 16 R This register holds the measured line frequency using the zero crossing technique. © 2011 Microchip Technology Inc. DS51933A-page 23 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide 3.15 RAW_POWER_ACT Name Bits Cof RAW_POWER_ACT 64 R This register is the raw active power, as it represents the sum of current A/D value times voltage A/D value results over LINE_CYC line cycles (each line cycle has 128 results). Each current times voltage multiplication results in a 32-bit word. There are up to 256 line cycles with each line cycle being 128 results, and each result being 32-bit. Thus, 48 bits are needed. This is the register to be read during calibration for calculating the offset and gain values associated with active power, OFFSET_POWER_ACT and GAIN_POWER_ACT. This register is overwritten every line cycle, however if the calibration is enabled, the updates will stop once the LINE_CYC line cycles have elapsed. 3.16 POWER_ACT Name Bits Cof POWER_ACT 32 R This register is the value for active power. The goal of the calibration is to get this register value to equal X W/LSB. This is done with the OFFSET_POWER_ACT and GAIN_POWER_ACT registers. When displaying the power, multiply the (decimal) value in this register by X to get the display value in Watts. This register is overwritten every LINE_CYC line cycle (written only once if the calibration is enabled). 3.17 POWER_APP Name Bits Cof POWER_APP 32 R This is the value of the apparent power. The goal of the calibration is to get this value to equal X VA/LSB. This is done with the GAIN_POWER_APP registers. When displaying the power for phase A, multiply the (decimal) value in this register by X to get the display value in Watts. This register is overwritten every LINE_CYC line cycle (written only once if the calibration is enabled). 3.18 RAW_POWER_REACT Name Bits Cof RAW_POWER_REACT 64 R This is the raw reactive power. This register is read during the calibration for calculating the gain values associated with the reactive power and GAIN_POWER_REACT. This register is overwritten every LINE_CYC line cycle (written only once if the calibration is enabled). This register is accumulated once a line-cycle basis. DS51933A-page 24 © 2011 Microchip Technology Inc. Calculation Engine and Register Description 3.19 POWER_REACT Name POWER_REACT Bits Cof 32 R This is the value for reactive power. The goal is to get this value to equal X VAR/LSB. This is done with the GAIN_POWER_REACT register. When displaying the power, multiply the (decimal) value in this register by X to get the display value in Watts. This register is overwritten every LINE_CYC line cycle (written only once if the calibration is enabled). 3.20 PERIOD Name PERIOD Bits Cof 32 R This 32-bit register represents the total number of clock ticks that elapsed over the most recent LINE_CYC line cycle. Each LSB represents 1.6 µs with a 40 MHz clock on the microcontroller. This register is overwritten every LINE_CYC line cycle (written only once if the calibration is enabled). 3.21 ENERGY_ACT Bits Cof ENERGY_ACT Name 32 R RAW_ENERGY_ACT 64 R The design updates the Energy register using the CF Pulse blink output count. In this method, the Energy registers increments every pulse by a value equal to 1/(METER_CONSTANT). ENERGY_W = ENEGRY_W + (1/METER_CONSTANT) The gain calibration registers GAIN_NUMR_ENERGY_ACT and GAIN_DENR_ENERGY_ACT hold good for this method also. 3.22 ENERGY_APP Name Bits Cof ENERGY_APP 32 R RAW_ENERGY_APP 64 R These two registers represent the total apparent energy accumulated so far. © 2011 Microchip Technology Inc. DS51933A-page 25 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide 3.23 I_ABS_MAX Name I_ABS_MAX Bits Cof 8 R NOT IMPLEMENTED IN THIS FIRMWARE/SOFTWARE RELEASE. 3.24 V_ABS_MAX Name V_ABS_MAX Bits Cof 8 R/W NOT IMPLEMENTED IN THIS FIRMWARE/SOFTWARE RELEASE. 3.25 ENERGY_REACT Bits Cof ENERGY_REACT Name 32 R RAW_ENERGY_REACT 64 R The design updates the reactive energy registered using the CF Pulse blink output count too. In this method, the Energy registers increments every pulse by a value equal to 1/(METER_CONSTANT). ENERGY_REACT = ENERGY_REACT + (1/METER_CONSTANT) The gain calibration registers GAIN_NUMR_ENERGY_ACT and GAIN_DENR_ENERGY_ACT hold good for this method also. 3.26 PHASE_COMPENSATION Name Bits Cof PHASE_COMPENSATION 8 R/W Phase delay, signed 8-bit value, provides the phase compensation by sampling time/2. 3.27 OFFSET_I_RMS Name OFFSET_I_RMS Bits Cof 16 R/W Square of the offset for RMS current reading, signed 16-bit value. Note that this value should be similar to the ADC’s noise squared. At a gain of 1, the noise will be about 1 LSB, 2 LSBs at a gain of 2, 6 LSBs at a gain of 8, 11 LSBs at a gain of 16, and 22 LSBs at a gain of 32. There may be other sources of noise. Using the square of the offset allows for higher accuracy. The value will be added before the square root is taken when calculating the final RMS value. DS51933A-page 26 © 2011 Microchip Technology Inc. Calculation Engine and Register Description 3.28 OFFSET_V_RMS Name Bits Cof 16 R/W OFFSET_V_RMS Square of offset for RMS voltage reading, signed 8-bit value. Note that this value should be similar to the ADC’s noise squared. For the voltage channel, the noise will be about 1 LSB. There may be other sources of noise. Using the square of the offset allows for higher accuracy. The value will be added before the square root is taken when calculating the final RMS value. 3.29 GAIN_I_RMS Name Bits Cof GAIN_I_RMS 16 R/W Current gain to produce X A/LSB. The value is always less than one (for example, 32,767 = 0.9999695). 3.30 GAIN_V_RMS Name Bits Cof GAIN_V_RMS 16 R/W Voltage gain to produce 0.1 V/LSB in the V_RMS register. The value is always less than one (for example, 32,767 = 0.9999695). 3.31 OFFSET_POWER_ACT Name Bits Cof OFFSET_POWER_ACT 32 R/W Active power offset (this is a straight offset, not the square, as with voltage and current). A much larger value is needed because the power is a running sum. This is a 32-bit signed value. 3.32 GAIN_POWER_ACT Name Bits Cof GAIN_POWER_ACT 16 R/W Active power gain to produce X W/LSB. The value is always less than one (for example, 32,767 = 0.9999695). © 2011 Microchip Technology Inc. DS51933A-page 27 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide 3.33 OFFSET_POWER_REACT Name Bits Cof OFFSET_POWER_REACT 32 R/W Reactive power offset (this is a straight offset, not the square, as with voltage and current). A much larger value is needed because the power is a running sum. This is a 32-bit signed value. 3.34 GAIN_POWER_REACT Name Bits Cof GAIN_POWER_REACT 16 R/W Reactive power gain to produce X W/LSB. The value is always less than one (for example, 32,767 = 0.9999695). 3.35 GAIN_ENERGY_ACT Name Bits Cof GAIN_ENERGY_ACT 16 R/W Active energy gain to produce X Wh/LSB. The value is always less than one (for example, 32,767 = 0.9999695). 3.36 GAIN_ENERGY_APP Name Bits Cof GAIN_ENERGY_APP 16 R/W Apparent energy gain to produce X VAh/LSB. The value is always less than one (for example, 32,767 = 0.9999695). 3.37 GAIN_ENERGY_REACT Name Bits Cof GAIN_ENERGY_REACT 16 R/W Reactive energy gain to produce X VARh/LSB. The value is always less than one (for example, 32,767 = 0.9999695). DS51933A-page 28 © 2011 Microchip Technology Inc. Calculation Engine and Register Description 3.38 CF_PULSE_WIDTH Name Bits Cof CF_PULSE_WIDTH 8 R/W Defines the CF pulse width from 0 to 255. Length of width is valued * 8 * (1/LINE_FREQUENCY)/128) ms. A maximum of 0.266 seconds for 60 Hz and 0.319 seconds for 50 Hz. If the value is 0, no CF pulse is produced. 3.39 GAIN_DENR_ENERGY_ACT Name Bits Cof GAIN_DENR_ENERGY_ACT 8 R/W 8-bit signed value. Represents the number of shifts for active power energy register ENERGY_ACT before GAIN_DENR_ENERGY_ACT is applied. 3.40 GAIN_NUMR_ENERGY_ACT Name Bits Cof GAIN_NUMR_ENERGY_ACT 16 R/W Active power gain to produce a specified pulses per watt-hour. The value is always less than one (for example, 32,767 = 0.9999695). 3.41 MODE1_DEF Name MODE1_DEF Bits Cof 16 R/W MODE default power-up settings. On power-up, this register will be read and placed into the MODE register. © 2011 Microchip Technology Inc. DS51933A-page 29 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide 3.42 CAL_STATUS The CAL_STATUS register holds the calibration status for each individual phase. Broken down by phase, these are the values that can be calibrated. Each bit has the status of 0 = NOT Calibrated, 1 = CALIBRATED. REGISTER 3-4: R/W-0 CAL_STATUS REGISTER R/W-0 PHASE_COM OFFSET_I_ PENSATION RMS R/W-0 U-0 U-0 OFFSET_V_ RMS — — R/W-0 R/W-0 R/W-0 GAIN_I_RMS GAIN_V_RMS OFFSET_PO WER_ACT bit 15 bit 8 U-0 R/W-0 U-0 U-0 U-0 R/W-0 U-0 U-0 — GAIN_POW ER_ACT — — — GAIN_POWE R_REACT — — 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 bit 15-0 3.43 x = Bit is unknown All bits: Calibration Register Status bits 1 = This register has been calibrated 0 = This register is NOT calibrated MAXIMUM CURRENT Name MAXIMUM_CURRENT Bits Cof 16 R/W This register holds the maximum current for the meter (IMAX). 3.44 CALIBRATION_VOLTAGE Name Bits Cof CALIBRATION_VOLTAGE 16 R/W This register holds the calibration voltage of the meter (VCAL). 3.45 CALIBRATION_CURRENT Name Bits Cof CALIBRATION_CURRENT 16 R/W This register holds the calibration current of the meter (ICAL). DS51933A-page 30 © 2011 Microchip Technology Inc. Calculation Engine and Register Description 3.46 CALIBRATION_FREQUENCY Name Bits Cof CALIBRATION_FREQUENCY 16 R/W This register holds the calibration frequency of the meter. 3.47 METER_CONSTANT Name Bits Cof 16 R/W METER_CONSTANT This register holds the meter constant in imp/kWh or imp/kVARh. 3.48 CALIBRATION_LINE_CYCLE Name Bits Cof CALIBRATION_FREQUENCY 16 R/W This register holds the number of line cycles used during the calibration. 3.49 GAIN_DENR_ENERGY_REACT Name Bits Cof GAIN_DENR_ENERGY_REACT 8 R/W 8-bit signed value. Represents the number of shifts for reactive power energy register, before GAIN_NUMR_ENERGY_REACT is applied. 3.50 GAIN_NUMR_ENERGY_REACT Name Bits Cof GAIN_NUMR_ENERGY_REACT 16 R/W Reactive power gain to produce a specified pulse per VAR-hour. The value is always less than one (for example, 32,767 = 0.9999695). 3.51 PHASE_COMPENSATION_90 Name Bits Cof PHASE_COMPENSATION_90 8 R/W Phase delay for reactive power, signed 8-bit value, sampling time/2. © 2011 Microchip Technology Inc. DS51933A-page 31 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide 3.52 CREEP_THRSHOLD_MINUTE Name Bits Cof CREEP_THRSHOLD_MINUTE 8 R/W This 8-bit register holds the decimal representation of the creep threshold time in minutes (total creep is minutes + seconds register). 3.53 CREEP_THRSHOLD_SECOND Name Bits Cof CREEP_THRSHOLD_SECOND 8 R/W This 8-bit register holds the decimal representation of the creep threshold time in seconds (total creep is minutes + seconds register). 3.54 ENERGY_ACT_FORWARD Name ENERGY_ACT_FORWARD Bits Cof 32 R/W This 32-bit register is the accumulated active energy in the forward direction only. The design updates the Energy register using the CF Pulse blink output count. In this method, the Energy registers increments every pulse by a value equal to 1/(METER_CONSTANT). 3.55 ENERGY_ACT_REVERSE Name ENERGY_ACT_REVERSE Bits Cof 32 R/W This 32-bit register is the accumulated active energy in the reverse direction only. The design updates the Energy register using the CF Pulse blink output count. In this method, the Energy registers increments every pulse by a value equal to 1/(METER_CONSTANT). 3.56 ENERGY_REACT_INDUCTIVE Name Bits Cof ENERGY_REACT_INDUCTIVE 32 R/W This 32-bit register is the accumulated reactive energy in the inductive quadrants only. The design updates the Energy register using the CF Pulse blink output count. In this method, the Energy registers increments every pulse by a value equal to 1/(METER_CONSTANT). DS51933A-page 32 © 2011 Microchip Technology Inc. Calculation Engine and Register Description 3.57 ENERGY_REACT_CAPACITIVE Name Bits Cof ENERGY_REACT_CAPACITIVE 32 R/W This 32-bit register is the accumulated reactive energy in the capacitive quadrants only. The design updates the Energy register using the CF Pulse blink output count. In this method, the Energy registers increments every pulse by a value equal to 1/(METER_CONSTANT). © 2011 Microchip Technology Inc. DS51933A-page 33 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide NOTES: DS51933A-page 34 © 2011 Microchip Technology Inc. ENERGY MONITORING PICtail™ PLUS DAUGHTER BOARD USER’S GUIDE Appendix A. Schematic and Layouts A.1 INTRODUCTION This appendix contains the following schematics and layouts for the Energy Monitoring PICtail™ Plus Daughter Board User’s Guide: • • • • • • • A.2 Board – Schematic Board – Schematic Isolation Board – Top Silk Board – Top Traces and Pads Board – Top Traces and Silk Board – Bottom Traces and Pads Board – Bottom Silk SCHEMATICS AND PCB LAYOUT The layer order is shown in Figure A-1. Top Layer Bottom Layer FIGURE A-1: © 2011 Microchip Technology Inc. Layer Order. DS51933A-page 35 4 3 2 N LINE L N G CP4 J5 1 3 2 SHUNT1 A 200mA F1 N N_OUT 2 3 1 MOV1 275VAC 150 L2 PJ-102A J10 GNDB GNDB LINE BVS-A-R001-1 GNDB CP1 CP2 0603 R44 0603 GNDA C4 1.5UF 250VAC L5 300mA/150 POWER ECQ-U2A155ML GNDB N_OUT 332K, 1% GNDA R39 332K, 1% L4 300mA/150 N G L C35 68NF NPO 0805 C31 68NF NPO 0805 TP1 GNDB D1 (LOW) SMBJ8.5A 33 Pulse Rated R18 1206 1206 CP3 GNDA GNDA AC05000003309JAC00 3 2 1 J6 LINE 1K TF R42 1K TF R41 1 C28 1K B GNDB PMEG3005CT C14 GNDA 4 IN IN GNDA 1206 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 Q2 GNDB GNDB SDCH1+ SDCH1- 150 L1 OUT GNDA 3 C9 100NF GNDB SEG20/AN7/C1OUT/RF2 SEG21/AN8/C2INB/RF3 SEG22/AN9/C2INA/RF4 SEG23/AN10/C1INB/CVR SEG24/AN11/C1INA/RF6 SEG25/AN5/SS/RF7 VDDCORE/VCAP VSS RG4/SEG26 MCLR VLCAP2/RG3 VLCAP1/RX2/DT2/RG2 RG1/TX2/CK2 LCDBIAS0/RG0 LCDBIAS1/RE0 LCDBIAS2/RE1 SDCH0- SDCH0+ MCP1702T-5002E/MB C26 2 68NF NPO GNDA 1206 1K 0603 0603 0603 0603 0603 MPU_MCLR C17 47NF 47NF C16 47NF R37 GNDB C24 470UF 1206 1206 D5 330K R24 330K L3 R25 GNDA 0603 68NF NPO R38 300mA/150 GNDB C19 10uF C13 47NF 1 C11 NONE 0603 47NF 3.3V 0603 0603 79 R22 C 5V 10 78 C GNDB 10uF C8 3.3V 3.3V GNDB 0603 5V GNDA 1206 C30 10uF 0603 C34 AFE_SYNC U8 70 PIC18F87J72 GNDA 100NF C6 3.3V GNDB GNDB GNDA 0603 3 GNDA 0603 C36 100NF 0603 3.3V IN Q1 GNDB C5 100NF D GNDB 0603 AFE_F0/CS GNDB C41 10uF 3.3V 0603 GNDB 3.3V SDCLKI SEG13/CCP1/RC2 SEG17/SCK/SCL/RC3 SEG16/SDI/SDA/RC4 SEG12/SDO1/RC5 PGD/KBI3/RB7 VDD OSC1/CLKI/RA7 OSC2/CLKO/RA6 VSS PGC/KBI2/RB6 SEG29/KBI1/RB5 SEG11/KBI0/RB4 SEG10/CTED2/INT3/RB3 SEG9/CTED1/INT2/RB2 SEG8/RTCC/INT1/RB1 SEG30/INT0/RB0 SDCS SDSCK SDSDO 0603 D 100NF 0603 27PF GNDB GNDB 2 27PF U9 0603 1 MEM_CS ACTIVE POWER OUT GNDB VDD 4.7k R16 MPU_SDI POR 0603 VSS WP SO CS VCC SI SCK HOLD 1K R15 0603 EEPROM 4 3 2 1 U3 25AA256 ACTIVE_POWER GNDB 3.3V 8 5 6 7 J1 C1 100NF 100NF C21 C12 GNDB 3.3V 0603 GNDB 3.3V AFE_CLKIN AFE_CLKIN MPU_SCK MPU_SDI MPU_SDO MPU_PGD 3.3V GNDB MPU_PGC 100NF 41 42 43 44 45 46 47 48 49 50 51 52 54 C18 GNDB 3.3V C20 C22 100NF 0603 E 10 MHZ GNDB 0603 C15 C D3 0603 GNDB RED APTD1608SURCK J3 J4 Sheet1.SCHDOC M 2/8/2011 Sheet 3 4 3 4 1 F GNDB Rev U4 U7 2 B.Popescu of C. King Drawn by: Eng: 1 03-00330 PIC18F87J72 1P Energy Meter Filename: Date: Size Title REACTIVE POWER 680 R19 GNDB 0603 680 R20 PULSE OUTPUTS D2 REACTIVE_POWER MPU_PGD MPU_PGC GNDB MPU_MCLR 2 1 2 1 0603 680 R21 GNDB 0603 680 R17 GNDB 2 MPU_SCK IN CIRCUIT DEBUG / PROGRAMMING HEADER RED APTD1608SURCK MOM-NC PUSH = HI MPU_MCLR 3.3V 0603 F SW2 MPU_SDO GNDB 3.3V HDR_1x6 X1 Place either R16 or U9 3.3V GNDB 3.3V 53 AFE_DR AFE_F0/CS MPU_SCK MPU_SDI C23 100NF E 55 56 57 58 59 60 AC Mains side OUT 2 GNDB MCP1700T-3302E/TT 0603 C27 100NF GNDB 10 R43 67 100NF GNDB 68 R40 GNDA 72 AFE_SYNC 69 1 + B GND 1 80 LCDBIAS3/RE2 SEG19/AN6/RF1 21 77 COM0/RE3 ENVREG 22 COM1/RE4 76 COM2/RE5 AVDD 23 COM3/RE6 AVSS 24 AN3/VREF+/RA3 25 75 SEG31/CCP2(1)/RE7 SDAVSS 26 73 SEG0/RD0 74 SDAVDD AN2/VREF-/RA2 27 VDD SDREFIN29 SDREFIN+/SDOUT 28 71 VSS SEG18/AN1/RA1 30 MEM_CS SDVDD AN0/RA0 31 SDMCLR VSS 32 SEG1/RD1 GND MPU_SDO 64 SDSDI 66 SEG2/RD2 33 SEG15/AN4/RA5 34 SEG14/T0CKI/RA4 35 SEG3/RD3 65 SEG4/RD4 SEG32/T1OSI/CCP2(1)/ 36 ACTIVE_POWER 62 SEG6/RD6 61 SEG7/RD7 REACTIVE_POWER T1OSO/T13CLKI/RC0 37 VSS 3 6 5 4 3 2 1 63 SEG5/RD5 SEG27/TX1/CK1/RC6 38 USB_TX SDDR 40 AFE_DR SEG28/RX1/DT1/RC7 39 USB_RX SDVSS 1 1 2 DS51933A-page 36 1 4 3 2 1 A.3 2 A Energy Monitoring PICtail™ Plus Daughter Board User’s Guide BOARD – SCHEMATIC © 2011 Microchip Technology Inc. 4 3 2 1 A GND_ISO EXP16_3V3 EXP16_3V3 GND_ISO GND_ISO EXP16_3V3 GND_ISO GND_ISO 20 22 24 26 28 30 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 19 21 23 25 27 29 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 Connector from Explorer 16 18 12 16 10 9 17 8 7 11 15 6 14 4 5 13 2 3 ISO_RX GND_ISO GND_ISO GND_ISO EXP16_3V3 EXP16_3V3 GND_ISO GND_ISO EXP16_3V3 ISO_TX B B OSC1 GND_ISO 12 MHz X2 R34 RED D8 GND_ISO 0603 TBD USB_5V APTD1608SURCK OSC2 470 R26 2200_OSC1 2200_OSC2 ISO_VDD APTD1608SURCK USB_5V RED D9 470 R27 2200_RST TX_LED RX_LED C40 U1 D4 C39 6.8uF EXP16_3V3 GND_ISO GND_ISO VSS D+ DVUSB GP0/SSPND GP1/USBCFG GP2 CTS RX RTS MCP2200-I/SS VDD OSC1 OSC2 RST GP7/TxLED GP6/RxLED GP5 GP4 GP3 TX MCP2200-I/SS 100NF GND_ISO 0603 C ISO_VDD C Isolated side ISO_VDD 1 J7 ISO_VDD C25 100NF GND_ISO D+ D- GND_ISO 0603 USB_5V D+ D- ISO_TX J8 D 120 R1 270 R32 D 0603 J2 JMP 0603 GND_ISO VBUS 2200 TX 5 4 3 2 1 Shield © 2011 Microchip Technology Inc. 6 0603 4.7K R28 GND_ISO ISO_VDD ISO_RX 4 3 2 1 AN2 VDD1 Vo1 GND1 ACSL-6210 U10 GND2 Vo2 VDD2 AN1 8 5 6 7 GNDB R33 120 3.3V E USB_RX 0603 4.7K R29 3.3V E 0603 C Sheet2.SCHDOC M 2/8/2011 Sheet 2 F Rev 2 B.Popescu of C. King Drawn by: Eng: 1 03-00330 PIC18F87J72 1P Energy Meter Filename: Date: Size Title AC Mains side USB_TX F 2 4 3 2 1 A.4 ISO_VDD 1 2 3 A Schematic and Layouts BOARD – SCHEMATIC ISOLATION DS51933A-page 37 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide A.5 BOARD – TOP SILK ™ DS51933A-page 38 © 2011 Microchip Technology Inc. Schematic and Layouts A.6 BOARD – TOP TRACES AND PADS © 2011 Microchip Technology Inc. DS51933A-page 39 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide A.7 BOARD – TOP TRACES AND SILK ™ DS51933A-page 40 © 2011 Microchip Technology Inc. Schematic and Layouts A.8 BOARD – BOTTOM TRACES AND PADS © 2011 Microchip Technology Inc. DS51933A-page 41 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide A.9 BOARD – BOTTOM SILK DS51933A-page 42 © 2011 Microchip Technology Inc. ENERGY MONITORING PICtail™ PLUS DAUGHTER BOARD USER’S GUIDE Appendix B. Bill of Materials (BOM) TABLE B-1: Qty BILL OF MATERIALS (BOM) Reference Description Manufacturer Panasonic® Part Number 15 C1, C5, C6, CAP .1UF 16V CERAMIC Y5V C9, C12, C18, 0603 C21, C22, C23, C25, C27, C34, C36, C40 1 C4 CAP 1.5UF 250/275VAC ECQ-UL Panasonic – ECG ECQ-U2A155ML 3 C8, C19, C41 CAP CER 10UF 6.3V Y5V 0805 Murata Manufacturing Co., Ltd. GRM21BF50J106ZE01L 5 C11, C13, C14, C16, C17 CAP CER 47000PF 25V 10% X7R 0603 Murata Manufacturing Co., Ltd. GRM188R71E473KA01D 2 C15, C20 CAP CERAMIC 27PF 50V NP0 0603 Kemet C0603C270J5GACTU 2 C24 CAP 470UF 25V ELECT FC SMD Panasonic – ECG EEV-FC1E471P 4 C26, C28, C31, C35 CAP CER 6800PF 50V 5% C0G 1206 Murata Manufacturing Co., Ltd. GRM3195C1H682JA01D 1 C30 CAP Tantalum A 10uF 6.3V AVX Corporation TAJA106M006RNJ 1 C39 CAP CERAMIC 6.8UF 6.3V X5R 0805 Kemet C0805C685K9PACTU 1 D1 Transient Voltage Suppressors 8.5V, Peak Pulse 600W, 41.7A Littelfuse® Inc. SMBJ8.5A 4 D2, D3, D8, D9 LED – SMD Helios SMD Red Kingbright Corporation APTD1608SURCK 1 D4 SCHOTTKY DIODE G3010BER/SOD NXP Semiconductors PMEG3005CT,215 1 D5 SCHOTTKY DIODE G3010BER/SOD NXP Semiconductors 3005CT,215 1 F1 Fuses 250V IEC LL .200A TR5 Littelfuse Inc. 37002000000 1 J1 6 X 1 Header 2.54mm on center 6 mm/2.5mm Samtec, Inc TSW-106-07-G-S 1 J2 3 x 1 Header 2.54mm — — – ECG ® ECJ-1VF1C104Z 0 J3, J4 CONN HEADER 2POS .100 VERT Molex Electronics TIN 1 J5 MOD INLET ANG GND W/M3 HOLE PCB Schurter Electronic Components GSP1.9103.1 1 J6 MODULE PWR OUTLET F SCREW-ON PCB Schurter Electronic Components 6182.0033 1 J7 MINI EDGE CARD CONNECTOR 1.MM Samtec, Inc MEC1-160-02-S-D-EM2 Note 1: 22-28-4020 The components listed in this Bill of Materials are representative of the PCB assembly. The released BOM used in manufacturing uses all RoHS-compliant components. © 2011 Microchip Technology Inc. DS51933A-page 43 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide TABLE B-1: Qty BILL OF MATERIALS (BOM) (CONTINUED) Reference Description Manufacturer Part Number 1 J8 CONN RCPT USB MINI B MID MOUNT Hirose Electric Co., Ltd. UX60SD-MB-5S55 1 J10 CONN PWR JACK 2.5X5.5MM VERT SMD CUI Inc. PJ-006B-SMT 1 JMP SHUNT ECONOMY 2POS .100 TIN (for J2) Tyco Electronics 2-382811-1 2 L1, L2 FERRITE 300MA 150 OHM 1806 SMD Laird Technologies® LI1806C151R-10 3 L3, L4, L5 FERRITE 800MA 150 OHM 0805 SMD Laird Technologies LI0805H151R-10 1 MOV1 VARISTOR 275V RMS 20MM RADIAL EPCOS AG. S20K275E2 1 PCB RoHS Compliant Bare PCB, Energy Monitoring PICtail™ Plus Daughter Board (PIC18F87J72) — 104-00330 1 Q1 IIC LDO REG 200MA 3.3V SOT-23-3 Microchip Technology Inc. MCP1700T-3302E/TT 1 Q2 IC REG LDO 5V 250MA SOT-89-3 Microchip Technology Inc. MCP1702T-5002E/MB 2 R1, R33 RES SMT, 120-OHM 1/10W 5% 0603 Panasonic – ECG ERJ-3GEYJ121V 1 R15 RES SMT, 1K-OHM 1/10W 5% 0603 Panasonic – ECG ERJ-3GEYJ102V 2 R17, R21 RES 680 OHM 1/10W 5% 0603 SMD Stackpole Electronics Inc. RMCF0603JT680R 1 R18 RESISTOR SILICONE 33 OHM 5W Ohmite® Mfg. Co. 45F33RE 2 R19, R20 RES SMT, 330-OHM 1/10W 5% 0603 Panasonic – ECG ERJ-3GEYJ331V 0 R22 DO NOT POPULATE — — 2 R24, R25 RES 330K OHM 1/4W 5% 1206 SMD Stackpole Electronics Inc RMCF 1/8 330K 5% R 2 R26, R27 RES SMT, 470-OHM 1/10W 5% 0603 Panasonic – ECG ERJ-3GEYJ471V 2 R16, R28, R29 RES SMT, 4.7K-OHM 1/10W 5% 0603 Panasonic – ECG ERJ-3GEYJ472V 1 R32 RES SMT, 270-OHM 1/10W 5% 0603 Panasonic – ECG ERJ-3GEYJ271V 0 R34 DO NOT POPULATE — — 4 R37, R38, R41, R42 RES 1.00K OHM 1/8W 1% 0805 SMD Rohm Semiconductor MCR10EZHF1001 2 R39, R44 RES 332K OHM 1/8W 1% 0805 SMD Rohm Semiconductor MCR10EZPF3323 2 R40, R43 RES SMT, 10-OHM 1/10W 5% 0603 Panasonic – ECG ERJ-3GEYJ100V 1 SHUNT1 Precision Current Sensing Resistors 3 mΩ, 3W, tolerance:1.0% ISOTEK Corporation BVS-A-R003-1.0 Note 1: The components listed in this Bill of Materials are representative of the PCB assembly. The released BOM used in manufacturing uses all RoHS-compliant components. DS51933A-page 44 © 2011 Microchip Technology Inc. Bill of Materials (BOM) TABLE B-1: Qty BILL OF MATERIALS (BOM) (CONTINUED) Reference Description Manufacturer Part Number 1 SW2 SWITCH TACT 6MM SMD MOM 230GF Omron Corporation B3S-1002 BY OMZ 1 TP1 Wire Test Point 0.3" Length Component Corporation® PJ-202-30 1 U2 IC USB TO UART 20-SSOP Microchip Technology Inc. MCP2200-I/SS 1 U3 IC EEPROM 256 KBIT 10 MHz 8-SOIC Microchip Technology Inc. 25AA256-I/SN 2 U4, U7 PHOTOCOUPLER DARL OUT 4-SMD Sharp® Electronics Corporation PC365NJ0000F 1 U8 PIC18F Microcontroller with 32K bytes of Flash, 2048 bytes of RAM Microchip Technology Inc. PIC18F87J72-80I/PT 1 U9 DO NOT POPULATE Microchip Technology Inc. MCP130T-270I/TT 1 U10 OPTOCOUPLER DUAL BI 15MBD Avago Technologies 8-SOIC ACSL-6210-00RE 1 X1 CRYSTAL 10.0000 MHz 10PF SMD ABM3B-10.000MHZ-10-1-U-T 1 X2 RESONATOR 12.0 MHz CERAMIC Murata Manufacturing Co., Ltd. CSTCE12M0G55-R0 4 Ea Conner and center of PCB BUMPON HEMISPHERE .63X.31 BLACK SJ-5027 (BLACK) Note 1: Abracon Corporation 3M The components listed in this Bill of Materials are representative of the PCB assembly. The released BOM used in manufacturing uses all RoHS-compliant components. © 2011 Microchip Technology Inc. DS51933A-page 45 Energy Monitoring PICtail™ Plus Daughter Board User’s Guide DS51933A-page 46 © 2011 Microchip Technology Inc. Worldwide Sales and Service AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE 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 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 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 Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 India - Pune Tel: 91-20-2566-1512 Fax: 91-20-2566-1513 France - Paris Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79 Japan - Yokohama Tel: 81-45-471- 6166 Fax: 81-45-471-6122 Germany - Munich Tel: 49-89-627-144-0 Fax: 49-89-627-144-44 Atlanta Duluth, GA Tel: 678-957-9614 Fax: 678-957-1455 Boston Westborough, MA Tel: 774-760-0087 Fax: 774-760-0088 Chicago Itasca, 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 Angeles 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 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 Korea - Seoul Tel: 82-2-554-7200 Fax: 82-2-558-5932 or 82-2-558-5934 China - Hangzhou Tel: 86-571-2819-3180 Fax: 86-571-2819-3189 Malaysia - Kuala Lumpur Tel: 60-3-6201-9857 Fax: 60-3-6201-9859 China - Hong Kong SAR Tel: 852-2401-1200 Fax: 852-2401-3431 Malaysia - Penang Tel: 60-4-227-8870 Fax: 60-4-227-4068 China - Nanjing Tel: 86-25-8473-2460 Fax: 86-25-8473-2470 Philippines - Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 China - Qingdao Tel: 86-532-8502-7355 Fax: 86-532-8502-7205 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 China - Shanghai Tel: 86-21-5407-5533 Fax: 86-21-5407-5066 Taiwan - Hsin Chu Tel: 886-3-6578-300 Fax: 886-3-6578-370 China - Shenyang Tel: 86-24-2334-2829 Fax: 86-24-2334-2393 Taiwan - Kaohsiung Tel: 886-7-213-7830 Fax: 886-7-330-9305 China - Shenzhen Tel: 86-755-8203-2660 Fax: 86-755-8203-1760 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 China - Wuhan Tel: 86-27-5980-5300 Fax: 86-27-5980-5118 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 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 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 DS51933A-page 47 Korea - Daegu Tel: 82-53-744-4301 Fax: 82-53-744-4302 05/02/11 © 2011 Microchip Technology Inc.