71M6541D/F/G and 71M6542F/G Energy Meter ICs GENERAL DESCRIPTION BENEFITS AND FEATURES The 71M6541D/71M6541F/71M6541G/71M6542F/71M6542G (71M654x) are SoC Integration and Unique Isolation Technique 4th-generation single-phase metering SoCs with a 5MHz 8051- Reduces BOM Cost Without Sacrificing compatible MPU core, low-power RTC with digital temperature Performance compensation, flash memory, and LCD driver. Our Single Converter 0.1% Typical Accuracy Over 2000:1 Current Technology with a 22-bit delta-sigma ADC, three or four analog Range inputs, digital temperature compensation, precision voltage Exceeds IEC 62053/ANSI C12.20 Standards reference, and a 32-bit computation engine (CE) supports a wide Four-Quadrant Metering range of metering applications with very few external components. 46-64Hz Line Frequency Range with the The 71M6541/2 devices support optional interfaces to the 71M6x01 Same Calibration series of isolated sensors, which offer BOM cost reduction, immunity Phase Compensation (10) to magnetic tamper, and enhanced reliability. Other features include Independent 32-Bit Compute Engine an SPI interface, advanced power management, ultra-low-power 32KB Flash, 3KB RAM (71M6541D) operation in active and battery modes, 3/5KB shared RAM and 64KB Flash, 5KB RAM (71M6541F/42F) 32/64/128KB of flash memory that can be programmed in the field 128KB Flash, 5KB RAM (71M6541G/42G) with code and/or data during meter operation and the ability to drive Built-In Flash Security up to six LCD segments per SEG driver pin. High processing and SPI interface for Flash Program Capability sampling rates combined with differential inputs offer a powerful Up to Four Pulse Outputs with Pulse Count metering platform for residential meters. 8-Bit MPU (80515), Up to 5 MIPS A complete array of code development tools, demonstration code, Full-Speed MPU Clock in Brownout Mode and reference designs enable rapid development and certification of LCD Driver Allows Up to 6 Commons/Up to meters that meet all ANSI and IEC electricity metering standards 56 Pins worldwide. 5V LCD Driver with DAC The 71M654x family operates over the industrial temperature range Up to 51 Multifunction DIO Pins and comes in 64-pin (71M6541D/F/G) and 100-pin (71M6542F/G) Hardware Watchdog Timer (WDT) lead(Pb)-free LQFP packages. Two UARTs for IR and AMR IR LED Driver with Modulation Shunt NEUTRAL Innovative Isolation Technology (Requires Companion 71M6xxx Sensor, also from Maxim LOAD Note: Shunt Integrated) Eliminates Current Transformers LINE This system is referenced to LINE Two Current Sensor Inputs with Selectable NEUTRAL POWER SUPPLY Differential Mode LINE Selectable Gain of 1 or 8 for One Current Input to Support Shunts High-Speed Wh/VARh Pulse Outputs with 71M6xx1 MUX and ADC V3P3A V3P3SYS GNDA GNDD Programmable Width PWR MODE IAP CONTROL Digital Temperature Compensation Improves IAN WAKE-UP Pulse 71M6541D/F/G System Performance Trans- REGULATOR BATTERY former VBAT Metrology Compensation VA VBAT RTC RTC IBP BATTERY Accurate RTC for TOU Functions with BATTERY TEMPERATURE IBN MONITOR SENSOR Automatic Temperature Compensation for VREF RAM COM0...5 Crystal in All Power Modes LCD DISPLAY SERIAL PORTS SEG COMPUTE 8888.8888 Power Management Extends Battery Life During TX SEG/DIO ENGINE AMR LCD DRIVER RX Power Outages DIO, PULSES FLASH PULSES, DIO MEMORY MODUL- RX DIO IR Three Battery-Backup Modes: ATOR TX 2 I C or Wire o Brownout Mode (BRN) POWER FAULT MPU V3P3D EEPROM COMPARATOR RTC OSCILLATOR/ o LCD Mode (LCD) TIMERS PLL XIN HOST SPI INTERFACE 32 kHz o Sleep Mode (SLP) ICE XOUT Wake-Up on Pin Events and Wake-On 11/5/2010 Timer 1A in Sleep Mode Single Converter Technology is a registered trademark of Maxim Integrated Products, Inc. For pricing, delivery, and ordering information, please contact Maxim Direct at 19-5376 Rev 5 1/15 1-888-629-4642, or visit Maxim Integrateds website at www.maximintegrated.com. LINE Resistor Divider71M6541D/F/G and 71M6542F/G 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 ............................................................................................................ 14 2.2.2 Input Multiplexer............................................................................................................. 15 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 71M6x01 Isolated Sensor Interface (Remote Sensor Interface) ................................... 22 2.3 Digital Computation Engine (CE) ............................................................................................... 24 2.3.1 CE Program Memory ..................................................................................................... 24 2.3.2 CE Data Memory ........................................................................................................... 24 2.3.3 CE Communication with the MPU ................................................................................. 25 2.3.4 Meter Equations ............................................................................................................. 25 2.3.5 Real-Time Monitor (RTM) .............................................................................................. 25 2.3.6 Pulse Generators ........................................................................................................... 27 2.3.7 CE Functional Overview ................................................................................................ 28 2.4 80515 MPU Core ....................................................................................................................... 31 2.4.1 Memory Organization and Addressing .......................................................................... 31 2.4.2 Special Function Registers (SFRs)................................................................................ 33 2.4.3 Generic 80515 Special Function Registers ................................................................... 34 2.4.4 Instruction Set ................................................................................................................ 37 2.4.5 UARTs ........................................................................................................................... 37 2.4.6 Timers and Counters ..................................................................................................... 39 2.4.7 WD Timer (Software Watchdog Timer) ......................................................................... 41 2.4.8 Interrupts ........................................................................................................................ 41 2.5 On-Chip Resources ................................................................................................................... 48 2.5.1 Physical Memory............................................................................................................ 48 2.5.2 Oscillator ........................................................................................................................ 50 2.5.3 PLL and Internal Clocks ................................................................................................. 50 2.5.4 Real-Time Clock (RTC) ................................................................................................. 51 2.5.5 71M654x Temperature Sensor ...................................................................................... 56 2.5.6 71M654x Battery Monitor ............................................................................................... 57 2.5.7 UART and Optical Interface ........................................................................................... 58 2.5.8 Digital I/O and LCD Segment Drivers ............................................................................ 59 2.5.9 EEPROM Interface ........................................................................................................ 70 2.5.10 SPI Slave Port................................................................................................................ 73 2.5.11 Hardware Watchdog Timer ............................................................................................ 78 2.5.12 Test Ports (TMUXOUT and TMUX2OUT Pins) ............................................................. 78 3 Functional Description ..................................................................................................................... 80 3.1 Theory of Operation ................................................................................................................... 80 3.2 Battery Modes ............................................................................................................................ 81 3.2.1 BRN Mode ..................................................................................................................... 83 3.2.2 LCD Mode ...................................................................................................................... 83 3.2.3 SLP Mode ...................................................................................................................... 84 2 Rev 5