71M6543F/71M6543G Energy Meter ICs GENERAL DESCRIPTION FEATURES The 71M6543F/71M6543G are 4th-generation polyphase metering 0.1% Typical Accuracy Over 2000:1 Current systems-on-chips (SoCs) with a 5MHz 8051-compatible MPU core, Range low-power real-time clock RTC( ) with digital temperature Exceeds IEC 62053/ANSI C12.20 Standards compensation, flash memor,y and LCD driverO. ur Single Seven Sensor Inputs with Neutral Current Converter Technology with a 22bi-t deltas-igma ADC, seven Measurement, Differential Mode Selectable analog inputs, digi talmetrology temperature compensation, for Current Inputs precision voltage reference, and a 32-bit computation engine (CE) Selectable Gain of 1 or 8 for One Current supports a wide range of metering applications with very few Input to Support Shunts external components. High-Speed Wh/VARh Pulse Outputs with The 71M6543F/71M6543G support optional interfaces to the Programmable Width 71M6xx3 series of isolated sensors that offer BOM cost reduction, immunity to magnetic tamper, and enhanced reliability. The ICs 64KB Flash, 5KB RAM (71M6543F) feature ultra-low-power operation in active and battery modes, 5KB 128KB Flash, 5KB RAM (71M6543G) shared RAM, and 64KB (71M6543F) or 128KB (71M6543Gof) Up to Four Pulse Outputs with Pulse Count flash memory, which can be programmed with code and/or data Four-Quadrant Metering, Phase Sequencing during meter operation. Digital Temperature Compensation: A complete array ofc ode development tools, demonstration code, and reference designs enable rapid development and certification of Metrology Compensation meters that meet all ANSandI IEC electricity meterings tandards Accurate RTC for TOU Functions with worldwide. Automatic Temperature Compensation Shunt Current Sensors for Crystal in All Power Modes C NEUTRAL LOAD Independent 32-Bit Compute Engine B 46-64Hz Line Frequency Range with the Same A Calibration Phase Compensation (7) POWER SUPPLY NEUTRAL Three Battery-Backup Modes: Note: This system is referenced to Neutral Brownout Mode 3x 71M6xx3 LCD Mode Sleep Mode MUX and ADC V3P3A V3P3SYS GNDA GNDD Pulse Transformers IADC0 IN* Wake-Up on Pin Events and Wake-on-Timer IADC1 PWR MODE CONTROL VADC10 (VC) IADC6 IC WAKE-UP 1A in Sleep Mode IADC7 71M6543F/ VADC9 (VB) REGULATOR BATTERY IADC4 71M6543G IB Flash Security VBAT IADC5 VBAT RTC VADC8 (VA) RTC BATTERY IADC2 In-System Program Update TEMPERATURE BATTERY IA IADC3 MONITOR SENSOR 8-Bit MPU (80515), Up to 5MIPS VREF RAM COM0...5 LCD DISPLAY SERIAL PORTS SEG COMPUTE Full-Speed MPU Clock in Brownout Mode 8888.8888 TX SEG/DIO ENGINE AMR LCD DRIVER RX LCD Driver: DIO, PULSES FLASH PULSES, DIO MEMORY MODUL- DIO RX 6 Common Segment Drivers IR ATOR TX 2 I C or Wire Up to 56 Selectable Pins POWER FAULT MPU V3P3D EEPROM COMPARATOR RTC OSCILLATOR/ TIMERS PLL Up to 51 Multifunction DIO Pins XIN SPI INTERFACE 32 kHz HOST ICE XOUT Hardware Watchdog Timer (WDT) *IN = Neutral Current 9/17/2010 2 I C/MICROWIRE EEPROM Interface SPI Interface with Flash Program Capability Single Converter Technology is a registered trademark of Maxim Integrated Products, Inc. Two UARTs for IR and AMR MICROWIRE is a registered trademark of National Semiconductor Corp. IR LED Driver with Modulation Industrial Temperature Range 100-Pin Lead-Free LQFP Package For pricing, delivery, and ordering information, please contact Maxim Direct at 19-5375 Rev 2 10/13 1-888-629-4642, or visit Maxim Integrateds website at www.maximintegrated.com. Resistor Dividers 71M6xx3 71M6xx3 71M6xx371M6543F/71M6543G Data Sheet Table of Contents 1 Introduction ....................................................................................................................................... 10 2 Hardware Description ....................................................................................................................... 11 2.1 Hardware Overview ................................................................................................................... 11 2.2 Analog Front-End (AFE) ............................................................................................................ 12 2.2.1 Signal Input Pins ............................................................................................................ 13 2.2.2 Input Multiplexer............................................................................................................. 14 2.2.3 Delay Compensation ..................................................................................................... 19 2.2.4 ADC Pre-Amplifier ......................................................................................................... 20 2.2.5 A/D Converter (ADC) ..................................................................................................... 20 2.2.6 FIR Filter ........................................................................................................................ 20 2.2.7 Voltage References ....................................................................................................... 20 2.2.8 71M6xx3 Isolated Sensor Interface ............................................................................... 22 2.3 Digital Computation Engine (CE) ............................................................................................... 25 2.3.1 CE Program Memory ..................................................................................................... 25 2.3.2 CE Data Memory ........................................................................................................... 25 2.3.3 CE Communication with the MPU ................................................................................. 25 2.3.4 Meter Equations ............................................................................................................. 26 2.3.5 Real-Time Monitor (RTM) .............................................................................................. 26 2.3.6 Pulse Generators ........................................................................................................... 26 2.3.7 CE Functional Overview ................................................................................................ 28 2.4 80515 MPU Core ....................................................................................................................... 30 2.4.1 Memory Organization and Addressing .......................................................................... 30 2.4.2 Special Function Registers (SFRs)................................................................................ 32 2.4.3 Generic 80515 Special Function Registers ................................................................... 33 2.4.4 Instruction Set ................................................................................................................ 35 2.4.5 UARTs ........................................................................................................................... 35 2.4.6 Timers and Counters ..................................................................................................... 38 2.4.7 WD Timer (Software Watchdog Timer) ......................................................................... 39 2.4.8 Interrupts ........................................................................................................................ 39 2.5 On-Chip Resources ................................................................................................................... 46 2.5.1 Physical Memory............................................................................................................ 46 2.5.2 Oscillator ........................................................................................................................ 48 2.5.3 PLL and Internal Clocks ................................................................................................. 49 2.5.4 Real-Time Clock (RTC) ................................................................................................. 49 2.5.5 71M6543 Temperature Sensor ...................................................................................... 53 2.5.6 71M6xx3 Temperature Sensor ...................................................................................... 56 2.5.7 71M6543 Battery Monitor .............................................................................................. 56 2.5.8 71M6xx3 VCC Monitor ................................................................................................... 56 2.5.9 UART and Optical Interface ........................................................................................... 56 2.5.10 Digital I/O and LCD Segment Drivers ............................................................................ 57 2.5.11 EEPROM Interface ........................................................................................................ 65 2.5.12 SPI Slave Port................................................................................................................ 67 2.5.13 Hardware Watchdog Timer ............................................................................................ 71 2.5.14 Test Ports (TMUXOUT and TMUX2OUT Pins) ............................................................. 72 3 Functional Description ..................................................................................................................... 74 3.1 Theory of Operation ................................................................................................................... 74 3.2 Battery Modes ............................................................................................................................ 74 3.2.1 BRN Mode ..................................................................................................................... 77 2 v2