71M6531D/F, 71M6532D/F Energy Meter IC TM Simplifying System Integration DATA SHEET 19-5374 Rev 1 4/13 GENERAL DESCRIPTION FEATURES Wh accuracy < 0.1% over 2000:1 current The 71M6531D/F and 71M6532D/F are highly range integrated SOCs with an MPU core, RTC, FLASH and LCD Exceeds IEC62053/ANSI C12.20 standards driver. The patented Single Converter Technology with a Four sensor inputs 22-bit delta-sigma ADC, four analog inputs, digital tempera- Low-jitter Wh and VARh plus two additional ture compensation, precision voltage reference, battery voltage pulse test outputs (4 total, 10 kHz maximum) monitor and 32-bit computation engine (CE) supports a wide with pulse count range of residential metering applications with very few low- Four-quadrant metering cost external components. Tamper detection (Neutral current with CT, A 32-kHz crystal time base for the entire system and internal Rogowski or shunt, magnetic tamper input) battery backup support for RAM and RTC further reduce system Line frequency count for RTC cost. The IC supports 2-wire, and 3-wire single-phase and Digital temperature compensation dual-phase residential metering along with tamper-detection Sag detection for phase A and B mechanisms. The 71M6531D/F offers single-ended inputs for Independent 32-bit compute engine two current channels and two single-ended voltage inputs. 46-64 Hz line frequency range with same The 71M6532D/F has two differential current inputs and three calibration. Phase compensation ( 7) single-ended voltage inputs. Three battery modes with wake-up on timer 2 C, or push-button: Maximum design flexibility is provided by multiple UARTs, I Wire, up to 21 DIO pins and in-system programmable FLASH BROWNOUT Mode (52 A typ.) LCD Mode (21 A typ., DAC active) memory, which can be updated with data or application code SLEEP Mode (0.7 A typ.) in operation. Energy display during mains power failure A complete array of ICE and development tools, programming 39 mW typical consumption 3.3 V, MPU libraries and reference designs enable rapid development and clock frequency 614 kHz certification of TOU, AMR and Prepay meters that comply with 22-bit delta-sigma ADC with 3360 Hz or worldwide electricity metering standards. 2520 Hz sample rate 8-bit MPU (80515),1 clock cycle per instruction, 10 MHz maximum, with integrated ICE for CT/SHUNT A debug LOAD POWER SUPPLY RTC for TOU functions with clock-rate adjust NEUTRAL register CT LOAD B Hardware watchdog timer, power fail monitor LCD driver with 4 common segment drivers: ADC V3.3 V3.3A GNDA GNDD Up to 156 (71M6531D/F) or 268 pixels IAP* SYS IAN* PWR MODE VA (71M6532D/F) CONTROL IBP* WAKE-UP IBN* Up to 22 (71M6531D/F) or 43 (71M6532D/F) 71M6531 VB REGULATOR 71M6532 general-purpose I/O pins. Digital I/O pins VBAT V2.5 compatible with 5 V inputs BATTERY VOLTAGE REF TEMP LCD & DIO 32 kHz time base SENSOR VREF COM0..3 VBIAS RAM High-speed slave SPI interface to data RAM LCD SEG 88.88.8888 SERIAL PORTS SEG/DIO Two UARTs for IR and AMR, IR driver with FLASH TX AMR MEMORY modulation I2C or Wire RX EEPROM COMPUTE FLASH memory with security and in-system RX/DIO1 SENSE ENGINE IR program update: TX/DIO2 TEST PULSES DRIVE/MOD MPU 128 KB (71M6531D/32D) COMPARATOR POWER V1 TIMERS SPI SPI HOST 256 KB (71M6531F/32F) FAULT OSC/PLL RTC 4 KB MPU XRAM XIN V3P3D 32 kHz ICE E GNDD ICE I/F XOUT Industrial temperature range * 02/18/2009 Differential pins only on 6532D/F 68-pin QFN package for 71M6531D/F pin- compatible with 71M6521, 100-pin LQFP package for 71M6532D/F, lead free Rev 2 1 Data Sheet 71M6531D/F-71M6532D/F FDS 6531/6532 005 Table of Contents 1 Hardware Description ....................................................................................................................... 10 1.1 Hardware Overview ................................................................................................................... 10 1.2 Analog Front End (AFE) ............................................................................................................. 10 1.2.1 Signal Input Pins ............................................................................................................ 10 1.2.2 Input Multiplexer............................................................................................................. 11 1.2.3 A/D Converter (ADC) ..................................................................................................... 12 1.2.4 FIR Filter ........................................................................................................................ 12 1.2.5 Voltage References ....................................................................................................... 12 1.2.6 Temperature Sensor ...................................................................................................... 14 1.2.7 Battery Monitor............................................................................................................... 14 1.2.8 AFE Functional Description ........................................................................................... 14 1.2.9 Digital Computation Engine (CE) ................................................................................... 15 1.2.10 Meter Equations ............................................................................................................. 16 1.2.11 Real-Time Monitor ......................................................................................................... 16 1.2.12 Pulse Generators ........................................................................................................... 16 1.2.13 Data RAM (XRAM) ........................................................................................................ 17 1.2.14 Delay Compensation ..................................................................................................... 17 1.2.15 CE Functional Overview ................................................................................................ 17 1.3 80515 MPU Core ....................................................................................................................... 19 1.3.1 Memory Organization and Addressing .......................................................................... 19 1.3.2 Special Function Registers (SFRs)................................................................................ 21 1.3.3 Generic 80515 Special Function Registers ................................................................... 22 1.3.4 Special Function Registers (SFRs) Specific to the 71M6531D/F and 71M6532D/F ..... 24 1.3.5 Instruction Set ................................................................................................................ 26 1.3.6 UARTs ........................................................................................................................... 26 1.3.7 Timers and Counters ..................................................................................................... 28 1.3.8 WD Timer (Software Watchdog Timer) ......................................................................... 30 1.3.9 Interrupts ........................................................................................................................ 30 1.4 On-Chip Resources ................................................................................................................... 36 1.4.1 Oscillator ........................................................................................................................ 36 1.4.2 Internal Clocks ............................................................................................................... 36 1.4.3 Real-Time Clock (RTC) ................................................................................................. 37 1.4.4 Temperature Sensor ...................................................................................................... 38 1.4.5 Physical Memory............................................................................................................ 38 1.4.6 Optical Interface ............................................................................................................. 40 1.4.7 Digital I/O 71M6531D/F .............................................................................................. 41 1.4.8 Digital I/O 71M6532D/F .............................................................................................. 43 1.4.9 Digital IO Common Characteristics for 71M6531D/F and 71M6532D/F .................... 44 1.4.10 LCD Drivers 71M6531D/F .......................................................................................... 45 1.4.11 LCD Drivers 71M6532D/F .......................................................................................... 46 1.4.12 LCD Drivers Common Characteristics for 71M6531D/F and 71M6532D/F ............... 46 1.4.13 Battery Monitor............................................................................................................... 46 1.4.14 EEPROM Interface ........................................................................................................ 46 1.4.15 SPI Slave Port................................................................................................................ 49 1.4.16 Hardware Watchdog Timer ............................................................................................ 52 1.4.17 Test Ports (TMUXOUT pin) ........................................................................................... 53 2 Rev 2