71M6545/71M6545H Metrology Processors GENERAL DESCRIPTION FEATURES The 71M6545/71M6545H metrology processors are based on 0.1% Typical Accuracy Over 2000:1 Current Range 4th-generation metering architecture supporting the 71M6xxx series of isolated current sensing productthsa t offer drastic Exceeds IEC 62053/ANSI C12.20 Standards reduction in component count, immunity to magnetic tampering, Seven Sensor Inputs with Neutral Current and unparalleled reliability. The 71M6545/71M6545H integrate Measurement, Differential Mode Selectable our Single Converter Technology with a -bi22t deltas- igma for Current Inputs ADC, a customizable 32-bit computation engine (CE) for core Selectable Gain of 1 or 8 for One Current metrology functions, as well as a usperrog- rammable 8051- Input to Support Shunts compatible application processor (MPU) core with up to 64KB High-Speed Wh/VARh Pulse Outputs with flash and up to 5KB RAM. Programmable Width An external host pocr essor can access metrology functions di- Flash/RAM Size rectly through the SP I interface, or alternatively through the 32KB/3KB (71M6545) embedded MPU core in applications requiring metrology data 64KB/5KB (71M6545H) capture, storage, and preprocessing within the metrology Up to Four Pulse Outputs with Pulse Count subsystem. In addition, the devices integrate an RTC, DIO, and UART. A complete array of ICE and development tools, Four-Quadrant Metering, Phase programming libraries, and reference designs enable rapid Sequencing development and certification of meters that meet all ANSandI Digital Temperature Compensation IEC electricity metering standards worldwide. Metrology Compensation Accurate RTC for TOU Functions with Shunt Resistor Sensors C Automatic Temperature Compensation NEUTRAL for Crystal in All Power Modes B LOAD Independent 32-Bit Compute Engine A 4664Hz Line Frequency Range with the Same Calibration Phase Compensation (7) POWER SUPPLY 1A Supply Current in Sleep Mode This system is referenced to Neutral NEUTRAL Flash Security MUX and ADC V3P3A V3P3SYS GNDA GNDD In-System Program Update Pulse Transformers IADC0 IN* IADC1 PWR MODE C VADC10 (VC) CONTROL 8-Bit MPU (80515), Up to 5 MIPS, for IADC6 IC PB IADC7 Optional Implementation of Postprocessing 71M6545/H B REGULATOR VADC9 (VB) IADC4 and Host Support Functions (Optional Use) IB IADC5 VBAT RTC A VADC8 (VA) RTC Up to 29 DIO Pins IADC2 BATTERY TEMPERATURE BATTERY IA IADC3 MONITOR SENSOR Hardware Watchdog Timer (WDT) VREF OSCILLATOR/ RAM 2 PLL XIN I C/MICROWIRE EEPROM Interface SERIAL PORT 32 kHz XOUT RX SPI Interface for Host: TX DIO, PULSES, MPU LEDs 24 Full Access to Shared Memory Space RTC DIO DIO FLASH TIMERS MEMORY 2 Flash Program Capability I C or Wire V3P3D EEPROM ICE UART SPI CKI WPULSE T SPI DI XPULSE M COMPUTE Industrial Temperature Range SPI DO SPI INTERFACE RPULSE U ENGINE SPI CSZ YPULSE HOST X 3.3 VDC PULSES 64-Pin Lead(Pb)-Free LQFP Package XFER BUSY 10/7/2010 SAG *IN = Optional Neutral Current Single Converter Technology is a registered trademark of Maxim Integrated Products, Inc. MICROWIRE is a registered trademark of National Semiconductor Corp. For pricing, delivery, and ordering information, please co ntact Maxim Direct at 19-5378 Rev 2 10/13 1-888-629-4642, or visit Maxim Integrateds website at www.maximintegrated.com. Resistor Dividers 71M6xx3 71M6xx3 71M6xx371M6545/71M6545H 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 ............................................................................... 21 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 MPU Setup Code ........................................................................................................... 30 2.4.2 80515 MPU Overview .................................................................................................... 30 2.4.3 Memory Organization and Addressing .......................................................................... 31 2.4.4 Special Function Registers (SFRs)................................................................................ 33 2.4.5 Generic 80515 Special Function Registers ................................................................... 34 2.4.6 Instruction Set ................................................................................................................ 36 2.4.7 UARTs ........................................................................................................................... 36 2.4.8 Timers and Counters ..................................................................................................... 38 2.4.9 WD Timer (Software Watchdog Timer) ......................................................................... 40 2.4.10 Interrupts ........................................................................................................................ 40 2.5 On-Chip Resources ................................................................................................................... 46 2.5.1 Physical Memory............................................................................................................ 46 2.5.2 Oscillator ........................................................................................................................ 48 2.5.3 PLL and Internal Clocks ................................................................................................. 48 2.5.4 Real-Time Clock (RTC) ................................................................................................. 49 2.5.5 71M6545/H Temperature Sensor .................................................................................. 53 2.5.6 71M6xx3 Temperature Sensor ...................................................................................... 54 2.5.7 71M6545/H Battery Monitor ........................................................................................... 55 2.5.8 71M6xx3 VCC Monitor ................................................................................................... 55 2.5.9 UART Interface .............................................................................................................. 55 2.5.10 DIO Pins ......................................................................................................................... 55 2.5.11 EEPROM Interface ........................................................................................................ 57 2.5.12 SPI Slave Port................................................................................................................ 60 2.5.13 Hardware Watchdog Timer ............................................................................................ 64 2.5.14 Test Ports (TMUXOUT and TMUX2OUT Pins) ............................................................. 64 2 v2