Page 2
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.
Customer Support ....................10 Document Revision History ................. 10 Chapter 1. Product Overview 1.1 Introduction ....................11 1.2 What the MCP3901 and PIC18F65J90 Energy Meter Reference Design Kit Includes ............... 12 1.3 Getting Started ..................... 12 Chapter 2. Hardware 2.1 Overview ...................... 13 2.2 Input and Analog Front End .................
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 MCP3901 and PIC18F65J90 Energy Meter Reference Design User’s Guide. Items discussed in this chapter include: • Document Layout •...
MCP3901 and PIC18F65J90 Energy Meter Reference Design DOCUMENT LAYOUT This document describes how to use the MCP3901 and PIC18F65J90 Energy Meter Reference Design as a development tool to emulate and debug firmware on a target board. The manual layout is as follows: •...
MCP3901 and PIC18F65J90 Energy Meter Reference Design RECOMMENDED READING This user's guide describes how to use the MCP3901 and PIC18F65J90 Energy Meter Reference Design. Other useful documents are listed below. The following Microchip documents are available and recommended as supplemental reference resources.
Chapter 1. Product Overview INTRODUCTION The MCP3901 and PIC18F65J90 Energy Meter Reference Design is a fully functional IEC Class 0.5 compliant single-phase meter. This low-cost design does not use any transformers and requires few external components. The PIC18F65J90 directly drives the LCD, and includes both an isolated USB connection for meter calibration and access to the device power calculations.
) of 60A. To test a calibrated meter, the following connections apply for a two-wire connection. 1.3.1 Step 1: Wiring Connections Figure 1-2 identifies the line and load connections of the MCP3901 and PIC18F65J90 Energy Meter Reference Design. Line Line...
MCP3901 AND PIC18F65J90 ENERGY METER REFERENCE DESIGN Chapter 2. Hardware OVERVIEW Figures 2-1 show the MCP3901 and PIC18F65J90 and Energy Meter Reference Design: D9D8 LCD1 DANGER HIGH VOLTAGE MCP3901 / PIC18F65J90 SHUNT METER Legend: 1 = IR for meter communication...
Page 14
MCP3901 and PIC18F65J90 Energy Meter Reference Design R27 R26 C24 C25 DANGER HIGH VOLTAGE MOV1 Legend: Opto-isolators for Pulse outputs Power supply Non-volatile memory for calibration constants and energy usage data PIC18F65J90 Isolation IC MCP2200 for USB connection FIGURE 2-2: Bottom View –...
MCP3901 and PIC18F65J90 Energy Meter Reference Design INPUT AND ANALOG FRONT END The MCP3901 and PIC18F65J90 and Energy Meter Reference Design comes populated with components designed for 220V line voltage. At the bottom of the main board are the high voltage line and neutral connections. There are four connections that are made from the PCB to the meter casing.
MCP3901 AND PIC18F65J90 ENERGY METER REFERENCE DESIGN Chapter 3. Calculation Engine and Register Description CALCULATION ENGINE SIGNAL FLOW SUMMARY RMS voltage, RMS current, Active Power, Reactive Power and Apparent Power, and the calibration output pulse are all calculated through the following process described in Figure 3-1.
MCP3901 and PIC18F65J90 Energy Meter Reference Design REGISTER LIST Note: Important! Not all registers and features are implemented in this version of firmware release. TABLE 3-1: INTERNAL REGISTER SUMMARY Name Bits R/W Description MODE R/W Configuration register for operating mode of the meter...
MCP3901 and PIC18F65J90 Energy Meter Reference Design 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 — — — — — — PH_S —...
MCP3901 and PIC18F65J90 Energy Meter Reference Design RAW_I_RMS Name Bits RAW_I_RMS 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).
MCP3901 and PIC18F65J90 Energy Meter Reference Design 3.18 RAW_POWER_REACT Name Bits RAW_POWER_REACT 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 calibration is enabled).
MCP3901 and PIC18F65J90 Energy Meter Reference Design 3.27 OFFSET_I_RMS Name Bits OFFSET_I_RMS 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.
MCP3901 and PIC18F65J90 Energy Meter Reference Design 3.38 CF_PULSE_WIDTH Name Bits CF_PULSE_WIDTH 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.
MCP3901 and PIC18F65J90 Energy Meter Reference Design 3.48 CALIBRATION_LINE_CYCLE Name Bits CALIBRATION_FREQUENCY This register holds the number of line cycles used during the calibration. 3.49 GAIN_DENR_ENERGY_REACT Name Bits GAIN_DENR_ENERGY_REACT 8-bit signed value. Represents the number of shifts for reactive power energy register, before GAIN_NUMR_ENERGY_REACT is applied.
Page 32
MCP3901 and PIC18F65J90 Energy Meter Reference Design 4.1.1.4 “W” WRITE: WRITE STARTING AT SPECIFIED ADDRESS Write specified bytes. Example: 'W030000102030405060708090A0B0C0D0E0FX'. Returns: 'W030000102030405060708090A0B0C0D0E0FX'. Note: If the number of data characters is odd, the last character (the one just prior to the 'X') will be ignored.
ENERGY METER REFERENCE DESIGN Appendix A. Schematic and Layouts INTRODUCTION This appendix contains the following schematics and layouts for the MCP3901 and PIC18F65J90 Energy Meter Reference Design: • Board – ADC Schematic • Board – MCU Schematic • Board – LCD and USB Schematic •...
Page 43
VARISTOR 275V RMS 20MM RADIAL EPCOS Inc. S20K275E2 6 X 1 Header 2.54 mm on center 6 mm/2.5 Samtec TSW-106-07-G-S RoHS Compliant Bare PCB, MCP3901 — 104-00342 PIC18F65J90 Shunt Meter Ref Des IC REG LDO 3.3V 250MA SOT23-3 Microchip MCP1700T-3302E/TT Technology Inc.
Page 44
MCP3901 and PIC18F65J90 Energy Meter Reference Design TABLE B-1: BILL OF MATERIALS (BOM) (CONTINUED) Reference Description Manufacturer Part Number RES 100 OHM 1W 5% 2512 SMD Panasonic - ECG ERJ-1TNF1000U R13, R15 RES 4.70K OHM 1/10W 1% 0603 SMD Panasonic - ECG...
Need help?
Do you have a question about the MCP3901 and is the answer not in the manual?
Questions and answers