71M6521BE Energy Meter IC DATA SHEET JANUARY 2008 FEATURES GENERAL DESCRIPTION < 0.4% Wh accuracy over 2000:1 current range and over temperature The TERIDIAN 71M6521BE is a highly integrated SOC with an MPU core, Exceeds IEC62053 / ANSI C12.20 standards FLASH and LCD driver. TERIDIANs patented Single Converter Technol- Voltage reference < 40ppm/C ogy with a 22-bit delta-sigma ADC, four analog inputs, digital temperature compensation, precision voltage reference, battery voltage monitor, and 32- Four sensor inputsVDD referenced bit computation engine (CE) supports a wide range of residential metering Low jitter Wh test output (10kHz maximum) applications with very few low-cost external components. A 32kHz crystal Pulse count for Wh pulse output time-base for the entire system further reduces system cost. The IC supports 2-wire single-phase residential metering along with tamper- Tamper detection: Neutral current with CT or detection mechanisms. shunt Line frequency count for time keeping 2 Maximum design flexibility is provided by multiple UARTs, I C, Wire, up to Digital temperature compensation 14 DIO pins and in-system programmable FLASH memory, which can be Sag detection for phase A and B updated with data or application code in operation. Independent 32-bit compute engine A complete array of ICE and development tools, programming libraries and 46-64Hz line frequency range with same reference designs enable rapid development and certification of AMR and calibration Prepay meters that comply with worldwide electricity metering standards. Phase compensation (7) CT/SHUNT Battery monitor A LOAD Three battery modes w/ wake-up on push-button POWER SUPPLY NEUT or timer: LOAD B Brownout mode (48A) LCD mode (5.7A) Sleep mode (2.9A) CONVERTER V3.3 V3.3A GNDA GNDD SYS IA Energy display on main power failure PWR MODE VA CONTROL IB Wake-up with push-button TERIDIAN WAKE-UP VB 71M6521BE 22-bit delta-sigma ADC REGULATOR VBAT 8-bit MPU (80515), 1 clock cycle per instruction V2.5 BATTERY VOLTAGE REF TEMP w/ integrated ICE for MPU debug DIO, PULSE SENSOR VREF Hardware watchdog timer, power fail monitor VBIAS RAM 3.3V LCD COM0..3 LCD driver (up to 140 pixels) SERIAL PORTS SEG0..18 888888.88 FLASH SEG 24..31/ TX Up to 14 general purpose I/O pins AMR DIO 4..11 RX SEG 34..37/ 32kHz time base 2 COMPUTE DIO 14..17 I C or Wire RX/DIO1 SENSE ENGINE EEPROM 8KB FLASH with security IR TX/DIO2 DRIVE/MOD SEG 32,33, 38 2KB MPU XRAM COMPARATOR MPU POWER TEST PULSE V1 Two UARTs for IR and AMR FAULT TIMERS OSC/PLL V3P3D Digital I/O pins compatible with 5V inputs XIN ICE E GNDD 32 kHz ICE XOUT 64-pin LQFP 11/14/2007 Lead Free package V1.0 2005-2008 TERIDIAN Semiconductor Corporation Page: 1 of 97 71M6521BE Energy Meter IC DATA SHEET JANUARY 2008 Table of Contents GENERAL DESCRIPTION ............................................................................................................................................1 FEATURES......................................................................................................................................................1 HARDWARE DESCRIPTION.........................................................................................................................................9 Hardware Overview..........................................................................................................................................9 Analog Front End (AFE)...................................................................................................................................9 Input Multiplexer ................................................................................................................................9 A/D Converter (ADC).......................................................................................................................10 FIR Filter..........................................................................................................................................10 Voltage References .........................................................................................................................10 Temperature Sensor........................................................................................................................11 Battery Monitor ................................................................................................................................12 Functional Description .....................................................................................................................12 Digital Computation Engine (CE) ...................................................................................................................12 Meter Equations ..............................................................................................................................13 Real-Time Monitor ...........................................................................................................................13 Pulse Generator ..............................................................................................................................13 CE Functional Overview ..................................................................................................................14 80515 MPU Core ...........................................................................................................................................16 Memory Organization ......................................................................................................................16 Special Function Registers (SFRs)..................................................................................................18 Special Function Registers (Generic 80515 SFRs) .........................................................................19 Special Function Registers Specific to the 71M6521BE..................................................................21 Instruction Set..................................................................................................................................22 UART...............................................................................................................................................22 Timers and Counters .......................................................................................................................25 WD Timer (Software Watchdog Timer)............................................................................................27 Interrupts .........................................................................................................................................29 On-Chip Resources .......................................................................................................................................37 Oscillator..........................................................................................................................................37 PLL and Internal Clocks...................................................................................................................37 Temperature Sensor........................................................................................................................37 Physical Memory .............................................................................................................................37 Optical Interface ..............................................................................................................................38 Digital I/O.........................................................................................................................................39 LCD Drivers.....................................................................................................................................41 Battery Monitor ................................................................................................................................41 EEPROM Interface..........................................................................................................................41 Hardware Watchdog Timer..............................................................................................................45 Program Security.............................................................................................................................45 Page: 2 of 97 2005-2008 TERIDIAN Semiconductor Corporation V1.0