MCP3909RD-1PH1 Microchip Technology, MCP3909RD-1PH1 Datasheet

BOARD DES MCP3909 ENERGY METER

MCP3909RD-1PH1

Manufacturer Part Number
MCP3909RD-1PH1
Description
BOARD DES MCP3909 ENERGY METER
Manufacturer
Microchip Technology

Specifications of MCP3909RD-1PH1

Main Purpose
Power Management, Energy/Power Meter
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
MCP3909, PIC18F85J90
Primary Attributes
Single Phase Shunt Energy Meter
Secondary Attributes
16 Bit ADC
Ic Function
Single Phase Energy Measurement IC
Supply Voltage Range
4.5V To 5.5V
Operating Temperature Range
-40°C To +85°C
Digital Ic Case Style
SSOP
No. Of Pins
24
Interface Type
SPI
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
MCP3909
and PIC18F85J90
Single Phase Energy Meter
Reference Design
© 2009 Microchip Technology Inc.
DS51884A

Related parts for MCP3909RD-1PH1

MCP3909RD-1PH1 Summary of contents

Page 1

... Single Phase Energy Meter © 2009 Microchip Technology Inc. MCP3909 and PIC18F85J90 Reference Design DS51884A ...

Page 2

... 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. ...

Page 3

... PIC18F85J90 Protocol ................................................................................. 31 Chapter 5. Meter Calibration 5.1 Calibration Overview .................................................................................... 33 5.2 Active Power Signal Flow and Calibration .................................................... 35 5.3 RMS Current, RMS Voltage, Apparent Power Signal Flow and Calibration . 36 © 2009 Microchip Technology Inc. MCP3909/PIC18F85J90 SINGLE PHASE ENERGY METER REFERENCE DESIGN Table of Contents DS51884A-page 3 ...

Page 4

... A.3 Board Schematic - Page 2 ........................................................................... 51 A.4 Board Schematic - Page 3 ........................................................................... 52 A.5 Board - Top Layer And Silk-screen .............................................................. 53 A.6 Board - Top Copper ..................................................................................... 54 A.7 Board - Bottom Layer and Silk-screen ........................................................ 55 A.8 Board - Bottom Copper ................................................................................ 56 Appendix B. Bill of Materials Worldwide Sales and Service .....................................................................................60 DS51884A-page 4 © 2009 Microchip Technology Inc. ...

Page 5

... Document Layout • Conventions Used in this Guide • Recommended Reading • The Microchip Web Site • Customer Support • Document Revision History © 2009 Microchip Technology Inc. MCP3909/PIC18F85J90 SINGLE PHASE ENERGY METER REFERENCE DESIGN Preface NOTICE TO CUSTOMERS ® IDE on-line help. ...

Page 6

... The PC calibration software that is included with the meter automates the steps and calculations described in this chapter. • .Appendix A. “Schematic and Layouts” – Shows the schematic and layout diagrams • Appendix B. “Bill of Materials” – Lists the parts used to build the meter. DS51884A-page 6 © 2009 Microchip Technology Inc. ...

Page 7

... N‘Rnnnn Text in angle brackets < > Courier New font: Plain Courier New Italic Courier New Square brackets [ ] Curly brackets and pipe character Ellipses... © 2009 Microchip Technology Inc. Represents Referenced books MPLAB Emphasized text ...is the only compiler... A window the Output window A dialog ...

Page 8

... 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 (December 2009) • Initial Release of this Document. DS51884A-page 8 © 2009 Microchip Technology Inc. ...

Page 9

... The energy meter software offers an automated step by step calibration process that can be used to quickly calibrate energy meters. FIGURE 1-1: Design. © 2009 Microchip Technology Inc. MCP3909/PIC18F85J90 SINGLE PHASE ENERGY METER REFERENCE DESIGN ® micro-based energy meter designs using the ...

Page 10

... This MCP3909/PIC18F85J90 Single Phase Energy Meter Reference Design Kit includes: • MCP3909/PIC18F85J90 Single Phase Energy Meter Reference Design, 102-00130 • Important Information Sheet DS51884A-page 10 RS-232 Reactive Active Power Power In-Circuit Programming KWH PIC18F85J90 SPI MCP3909 25LC256 Power Supply & Protection Circuitry © 2009 Microchip Technology Inc. ...

Page 11

... MAIN FIGURE 1-3: 1.3.2 Step 2: Turn On Line/Load Power to the Meter (Power the Meter) The meter will turn on when the line connection has 220V connected. The LCD display will show total energy accumulated. © 2009 Microchip Technology Inc. Product Overview ) of 10A. MAX Example Connections using a 4-Wire System ...

Page 12

... MCP3909/PIC18F85J90 Single Phase Energy Meter Reference Design NOTES: DS51884A-page 12 © 2009 Microchip Technology Inc. ...

Page 13

... FB = ferrite beads. Ferrite beads have an impedance of the specified value at 100 MHz. FIGURE 2-1: Analog Front End, Phase A Connections and Reference Designators shown. © 2009 Microchip Technology Inc. MCP3909/PIC18F85J90 SINGLE PHASE ENERGY METER REFERENCE DESIGN Chapter 2. Hardware , the channel 1 input signal size will be 490 mV RMS 1.0 kΩ ...

Page 14

... LDO. +9V DS Power In (DO NOT USE WHILE METER IS CONNECTED TO MAINS!) 150 FB (Note) NEUTRAL LINE A FIGURE 2-2: Low-Cost Power Supply Circuit. DS51884A-page 470Ω 1uF A +5V 100 +5V Out 100 Gnd +3.3V In Out EN Byp 100 nF Gnd 100 © 2009 Microchip Technology Inc. ...

Page 15

... RC7/RX RC6/TX RA2 RA3 RC2/CCP1 RA0 RJ7 RC3/SCK RC5/SDO RC4/SDI RA0 RB4 RB5 FIGURE 2-3: MCP3909/PIC18F85J90 Digital Connections. © 2009 Microchip Technology Inc. ACTIVE POWER UART - PC MAX3323 ANALOG FRONT END MCLK MCLR 16-bit Multi-level HPF1 ΔΣ ADC CS SCK SDI 16-bit ...

Page 16

... MCP3909/PIC18F85J90 Single Phase Energy Meter Reference Design NOTES: DS51884A-page 16 © 2009 Microchip Technology Inc. ...

Page 17

... The calibration registers fall into one of three categories: offset, gain, and LSB, denoted by _OFF, _GAIN and _GLSB register names. In addition there are two registers, CFNUM and CFDEN, that calibrate the output pulse, CF. © 2009 Microchip Technology Inc. MCP3909/PIC18F85J90 SINGLE PHASE ENERGY METER REFERENCE DESIGN DS51884A-page 17 ...

Page 18

... ADC PGA CURRENT MCP3909 ADC VOLTAGE FIGURE 3-1: Active Energy Calculation. DS51884A-page 18 PHA_W_OFF:32 PHA_W_RAW:48 Σ Φ PHA_DELAY:8 CF_NUM:16 Digital to Frequency Converter / CF OUTPUT FREQUENCY ON PIN kWh (Displayed on LCD ENERGY_W_L:64 © 2009 Microchip Technology Inc. ...

Page 19

... CF_PULSE_WIDTH 0x1AB RESERVED 0x1AC CFDEN 0x1AD RESERVED 0x1AE CFNUM 0x1B0 MODE1DEF 0x1B2 PHA_CAL_STATUS 0x1B8 STAND_W_RAW © 2009 Microchip Technology Inc. Calculation and Register Description R/W 16 R/W Configuration register for operating mode of the meter 16 — Reserved 16 R Status Register 16 — Reserved 16 R/W Configuration register for calibration control ...

Page 20

... Cof 0x000 16 R/W R/W R/W U-0 ACT1 ACT0 R/W R/W R/W CF_B CF_A ABSOLUTE U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared U-0 U-0 — — — bit 8 R/W R/W PHASE CREEP bit Bit is unknown © 2009 Microchip Technology Inc. ...

Page 21

... PHA_S: Phase A Sign Bit. (if enabled, see MODE1 bits). Negative active power, this may indicate the CT is wired in backwards = 1 = Operation Normal 0 bit 1-0 Unimplemented: Read as ‘0’ © 2009 Microchip Technology Inc. Calculation and Register Description STATUS1 REGISTER Bits Address Cof 0x004 16 R ...

Page 22

... Cof 0x008 16 R/W U-0 U-0 U-0 — — — U-0 U-0 U-0 — — Reserved U = Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared U-0 U-0 — — bit 8 R/W-0 R/W-0 CAL_Update Cal_Mode bit Bit is unknown © 2009 Microchip Technology Inc. ...

Page 23

... LSB resolution of 0.1 mW, is specific for the 5(10)A, 220V rating that this meter is designed for). This register is overwritten every LINE_CYC line cycles (written only once if calibration is enabled). © 2009 Microchip Technology Inc. Calculation and Register Description LINE_CYC REGISTER Bits ...

Page 24

... LINE_CYC line cycles. Each LSB represents 1.6 us with a 40 MHz clock on the microcontroller. This register is overwritten every LINE_CYC line cycles (written only once if calibration is enabled). DS51884A-page 24 PHA_VAR_RAW REGISTER Bits Address Cof 48 0x0A0 R PHA_VAR REGISTER Bits Address Cof 32 0x0B2 R PERIOD REGISTER Bits Address Cof 32 0x0C0 R © 2009 Microchip Technology Inc. ...

Page 25

... The ENERGY_W_L_RAW register is the register that should be read when calibrating CFNUM and CFDEN. This register is updated every line cycle (updating ends once LINE_CYC line cycles have passed if calibration is enabled). © 2009 Microchip Technology Inc. Calculation and Register Description ENERGY_W_ REGISTERS Bits ...

Page 26

... LINE_CYC line cycles. ENERGY_VAR REGISTER Bit Address 64 0x100 64 0x108 32 0x116 48 0x110 ⎛ ⎞ PHA_VA_GAIN • ) -------------------------------------- - ⎝ ⎠ 32768 ⎞ ⎠ • ⎞ PERIOD 128 • ------------------------------------- - ⎠ 65536 Cof © 2009 Microchip Technology Inc. ...

Page 27

... Phase A active power gain to produce X W/LSB. The value is always less than one (for example, 32,767 = 0.9999695). 3.5.5 PHA_VAR_GAIN (NOT IMPLEMENTED) NOT IMPLEMENTED IN THIS FIRMWARE/SOFTWARE RELEASE. 3.5.6 PHA_VAR_GLSB (NOT IMPLEMENTED) NOT IMPLEMENTED IN THIS FIRMWARE/SOFTWARE RELEASE. © 2009 Microchip Technology Inc. Calculation and Register Description PHA_DELAY REGISTER Bit Address Cof 8 0x140 ...

Page 28

... R/W ENERGY_VAR_GLSB REGISTER Bits Address Cof 16 0x1A4 R/W CREEP_THRESH REGISTER Bits Address Cof 32 0x1A6 R/W CF_PULSE_WIDTH REGISTER Bits Address Cof 8 0x1AA R/W CFDEN REGISTER Bits Address Cof 16 0x1AC R/W CFNUM REGISTER Bits Address Cof 16 0x1AE R/W © 2009 Microchip Technology Inc. ...

Page 29

... This calibration register holds the energy value that was accumulated during the standard phase measurement under calibration configuration C1. The software will read this value when performing phase to phase gain matching during active power calibration. © 2009 Microchip Technology Inc. Calculation and Register Description MODE1_DEF REGISTER Bits ...

Page 30

... MCP3909/PIC18F85J90 Single Phase Energy Meter Reference Design NOTES: DS51884A-page 30 © 2009 Microchip Technology Inc. ...

Page 31

... During that time, the meter is not functional. The store command should only be used after calibrating the meter and not while actual use. Example: 'SX'. Returns: 'SX'. © 2009 Microchip Technology Inc. MCP3909/PIC18F85J90 SINGLE PHASE ENERGY METER REFERENCE DESIGN DS51884A-page 31 ...

Page 32

... READ on ENERGY_W_L_RAW Register FIGURE 4-2: Read Command Protocol. DS51884A-page 32 3 Address Bytes (ASCII “X” (ASCII Command ASCII “W 170 X” Address Bytes (ASCII “X” (ASCII COMMAND ASCII “R 0D4 06 X” Command Hex COMMAND HEX © 2009 Microchip Technology Inc. ...

Page 33

... Depending on the accuracy and meter type, not all 4 calibration configurations are required to fully calibrate a meter. In some cases only a single point calibraton is required. The software allows individual configurations to be turned on or off when going through the calibration flow. © 2009 Microchip Technology Inc. MCP3909/PIC18F85J90 SINGLE PHASE ENERGY METER REFERENCE DESIGN DS51884A-page 33 ...

Page 34

... CF, METER_CONSTANT = 3200 imp/kWh or 6400 imp/kWh. DS51884A-page 34 , Meter Constant and Calibration Configurations and basic current I B and basic current I B and 1/100 10A. MAX at a power factor power power factor of B and 1/ power B B © 2009 Microchip Technology Inc. ...

Page 35

... PHA_W:32 ENERGY_W_GLSB:16 (NOT IMPLEMENTED) ENERGY_W_L:32 ENERGY_W_L_RAW:48 ENERGY_W_Z:64 ENERGY_W:64 FIGURE 5-1: Active Power Signal Path showing Output and Calibration Registers. © 2009 Microchip Technology Inc. CALIBRATION REGISTERS GENERATED THROUGH THIS ROUTINE Equations Section 5.3.3 Section 5.3.3 Section 5.3.5 Section 5.3.7 Section 5.3.3 ...

Page 36

... Section 5.3.9 Section 5.3.9 Section 5.3.9 Section 5.3.3 Not Implemented PHA_I_RMS_OFF:16 Σ PHA_I_RMS_GLSB:16 PHA_V_RMS_OFF:16 PHA_V_RMS_GLSB:16 Σ Apparent Power X X PERIOD:32 (INTERNAL REGISTER) X Configurations Needed C1, C4 C1, C4 C1 ONLY C1 ONLY PHA_I_RMS_RAW: PHA_I_RMS:16 V PHA_V_RMS:16 X PH_V_RMS_RAW:16 PHA_VA_RAW X PHA_VA_GAIN:16 PHA_VA:32 © 2009 Microchip Technology Inc. ...

Page 37

... Main Flow Chart for Calibration Configuration C1 FIGURE 5-3: Main Calibration Flow Chart. © 2009 Microchip Technology Inc. Meter Calibration Begin Calibration Set MODE1 register bits and LINE_CYC register Put meter in Calibration Configuration C1 (V and I at PF= Enable Calibration Mode by setting bit 0 and 1 of ...

Page 38

... LOG • Line Freq 128 ENERGY_W_L_RAW = -------------------------------------------------------------------------------------------------------------------------- - LOG(2) 32 • ⎛ ⎞ 2 CF_IMP_S ---------------------------------------- ⎝ ⎠ • Line Freq 128 --------------------------------------------------------------- - 2 = ⎛ ENERGY_W_L_RAW --------------------------------------------------------- - ⎝ • LINE_CYC_NUM 256 PHA_W_GAIN = 16 384 V I • ----------- - 1000 • • CFDEN • 32768 ⎞ ⎠ , © 2009 Microchip Technology Inc. ...

Page 39

... The calculation for PHA_VA_GLSB is identical except that it uses the PHA_VA_RAW register instead of PHA_W_RAW: EQUATION 5-8: PHA_VA_GLSB Note: Convert to 16-bit signed integer for compatibility with PIC18F85J90 register and firmware calculations. © 2009 Microchip Technology Inc. Meter Calibration and I B MAX • ⎛ ...

Page 40

... B B Enable Calibration Mode by setting bit 0 and 1 of CAL_CONTROL reg CAL_MODE bit 1 low? YES Read contents of PHA_W_RAW register Read contents of STAND_W_RAW register Calculate & Write PHA_DELAY calibration register contents based on equations in Section 5.3.5 End This Phase © 2009 Microchip Technology Inc. ...

Page 41

... EQUATION 5-13: PHA_DELAY Note 1: Convert to 8-bit signed integer for compatibility with PIC18F2520 register and firmware calculations. 2: Since 60 degrees (default) is being subtracted from the measured quantity, the current should lag the voltage under configuration C2. © 2009 Microchip Technology Inc. = PHA_W_RAW @ Configuration PHA_W_RAW @ ...

Page 42

... Put meter in Calibration Configuration C3 (V and 1/100 I at PF= Enable Calibration Mode by setting bit 0 and 1 of CAL_CONTROL register CAL_MODE bit 1 low ? YES Read contents of ENERGY_W_L_RAW Register Calculate & Write PHA_W_OFF register contents based on equations in Section 5.3.7 End of This Phase © 2009 Microchip Technology Inc. ...

Page 43

... C4 (where the number of line cycles should be set to a larger value such 128). This may also be true if offset does not contribute a large enough percentage to W2 (for example, 10% to 50% or more). © 2009 Microchip Technology Inc. Offset A W1 ...

Page 44

... YES Read contents of PhA_I_RMS_RAW2 and PhA_V_RMS_RAW2 registers (referred to as IR2 and VR2 in equation set) Fetch values from Calibration Configuration C1 Calculate & Write PHA_I_RMS_OFF, PHA_V_RMS_OFF, PHA_I_RMS_GLSB, PHA_V_RMS_GLSB, calibration register contents based equations in Section 5.3.9 End of This Phase © 2009 Microchip Technology Inc. ...

Page 45

... EQUATION 5-21: IR2 EQUATION 5-22: VR2 EQUATION 5-23: EQUATION 5-24: EQUATION 5-25: Note: Convert to 16-bit signed integer for compatibility with PIC18F85J90 register and firmware calculations © 2009 Microchip Technology Inc. and I voltages and currents will be 1/10 of the V MIN MIN = PHA_I_RMS_RAW2 @ I = PHA_V_RMS_RAW2 @ I = ...

Page 46

... ILSB = Value from Table 5-3 based on I VLSB = Value from Table 5-5 based ⎛ B ------------ - ⎝ ILSB ----------------------------------------------------------------------- - 32768 = IR 1 -------------- - + PHA_I_RMS_OFF 65536 V ⎛ B ------------- - ⎝ VLSB ------------------------------------------------------------------------- - 32768 = VR 1 -------------- - + PHA_V_RMS_OFF 65536 ⎞ – VR ⎠ 2 – 65536 value MAX value B ⎞ ⎠ • ⎞ ⎠ • © 2009 Microchip Technology Inc. ...

Page 47

... TABLE 5-5: Maximum Voltage Less than or Equal To ALL Note that the decimal point location in the reading frame is updated whenever the values are changed. CAL MAX © 2009 Microchip Technology Inc. CURRENT RESOLUTION TABLE LSB Resolution (A) 0.001 0.01 0.1 1 POWER RESOLUTION TABLE ...

Page 48

... MCP3909/PIC18F85J90 Single Phase Energy Meter Reference Design NOTES: DS51884A-page 48 © 2009 Microchip Technology Inc. ...

Page 49

... Board Schematic - Page 2 • Board Schematic - Page 3 • Board - Top Layer and Silk-screen • Board - Top Copper • Board - Bottom Layer and Silk-screen • Board - Bottom Copper © 2009 Microchip Technology Inc. MCP3909/PIC18F85J90 SINGLE PHASE ENERGY METER REFERENCE DESIGN DS51884A-page 49 ...

Page 50

... MCP3909/PIC18F85J90 Single Phase Energy Meter Reference Design A.2 BOARD SCHEMATIC - PAGE 1 DS51884A-page 50 © 2009 Microchip Technology Inc. ...

Page 51

... A.3 BOARD SCHEMATIC - PAGE 2 © 2009 Microchip Technology Inc. Schematic and Layouts DS51884A-page 51 ...

Page 52

... MCP3909/PIC18F85J90 Single Phase Energy Meter Reference Design A.4 BOARD SCHEMATIC - PAGE 3 DS51884A-page 52 © 2009 Microchip Technology Inc. ...

Page 53

... A.5 BOARD - TOP LAYER AND SILK-SCREEN MCP3909 / PIC18F85J90 SHUNT METER © 2009 Microchip Technology Inc. Schematic and Layouts DANGER HIGH VOLTAGE DS51884A-page 53 ...

Page 54

... MCP3909/PIC18F85J90 Single Phase Energy Meter Reference Design A.6 BOARD - TOP COPPER DS51884A-page 54 © 2009 Microchip Technology Inc. ...

Page 55

... A.7 BOARD - BOTTOM LAYER AND SILK-SCREEN DANGER HIGH VOLTAGE © 2009 Microchip Technology Inc. Schematic and Layouts DS51884A-page 55 ...

Page 56

... MCP3909/PIC18F85J90 Single Phase Energy Meter Reference Design A.8 BOARD - BOTTOM COPPER DS51884A-page 56 © 2009 Microchip Technology Inc. ...

Page 57

... RES 10.0K OHM 1/10W 1% 0603 SMD 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. © 2009 Microchip Technology Inc. MCP3909/PIC18F85J90 SINGLE PHASE ENERGY METER REFERENCE DESIGN Description Manufacturer ...

Page 58

... Sharp Microelectronics Texas Instruments Inc. National Semiconductor Microchip Technology inc. Microchip Technology Inc. Maxim Abracon™ Corporation ABM3B-10.000MHZ-10-1-U-T Part Number TNPW1206332KBETY MCR10EZHF1001 MCR03EZPFX10R0 RGH2012-2E-P-102-B B3S-1002P PJ-202-30 ® GP1US301XP MCP3909T-I/SS 25LC256-I/SN PC365NJ0000F TPS79133DBVR LM1117MP-5.0/NOPB PIC18F85J90-I/PT MCP130T-270I/TT MAX3323EEUE+ © 2009 Microchip Technology Inc. ...

Page 59

... NOTES: © 2009 Microchip Technology Inc. Bill of Materials DS51884A-page 59 ...

Page 60

... Fax: 886-3-6578-370 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 © 2009 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...

Related keywords