19-5370; Rev 3; 7/12
71M6521DE/DH/FE
Energy Meter ICs
DATA SHEET
GENERAL DESCRIPTION
The Teridian™ 71M6521DE/DH/FE energy meter ICs are highly integrated
systems-on-a-chip (SoCs) with an MPU core, RTC, flash, and LCD driver.
The Single Converter Technology® with a 22-bit delta-sigma ADC, four
analog inputs, digital temperature compensation, precision voltage
reference, battery voltage monitor, and 32-bit computation engine (CE)
supports a wide range of residential metering applications with very few
low-cost external components. A 32kHz crystal time base for the entire
system and internal battery-backup support for RAM and RTC further
reduce system cost. The ICs support 2-wire, 3-wire, and 4-wire single-
phase and dual-phase residential metering along with tamper-detection
mechanisms.
Maximum design flexibility is provided by multiple UARTs, I
2
C,
MICROWIRE®, up to 18 DIO pins, and in-system programmable flash
memory, which can be updated with data or application code in operation.
A complete array of ICE and development tools, programming libraries, and
reference designs enable rapid development and certification of TOU,
AMR, and prepay meters that comply with worldwide electricity metering
standards.
FEATURES
•
Up to 0.1% Wh Accuracy Over 2000:1 Current
Range
•
Exceeds IEC 62053/ANSI C 12.20 Standards
•
Voltage Reference < 40 ppm/°C (< 20ppm/°C for
71M6521DH)
•
Four Sensor Inputs—V
DD
Referenced
•
Low-Jitter Wh and VARh Pulse Test Outputs
(10kHz max)
•
Pulse Count for Pulse Outputs
•
Four-Quadrant Metering
•
Tamper Detection
Neutral Current with CT or Shunt
•
Line Frequency Count for RTC
•
Digital Temperature Compensation
•
Sag Detection for Phase A and B
•
Independent 32-Bit Compute Engine
•
46-64Hz Line Frequency Range with Same
Calibration
•
Phase Compensation (±7°)
•
Battery backup for RTC and battery monitor
•
Three Battery Modes with Wake-Up on Pushbutton
or Timer:
Brownout Mode (48µA)
LCD Mode (5.7µA)
Sleep Mode (2.9µA)
•
Energy Display on Main Power Failure
•
Wake-Up with Pushbutton
•
22-Bit Delta-Sigma ADC
•
8-Bit MPU (80515), 1 Clock Cycle per Instruction
with Integrated ICE for MPU Debug
•
RTC with Temperature Compensation
•
Auto-Calibration
•
Hardware Watchdog Timer, Power-Fail Monitor
•
LCD Driver (Up to 152 Pixels)
•
Up to 18 General-Purpose I/O Pins
•
32kHz Time Base
•
16KB (6521DE/DH) or 32KB (6521FE) Flash with
Security
•
2KB MPU XRAM
•
Two UARTs for IR and AMR
•
Digital I/O Pins Compatible with 5V Inputs
•
64-Pin LQFP or 68-Pin QFN Package
A
NEUT
B
CT/SHUNT
LOAD
LOAD
POWER SUPPLY
CONVERTER
IA
VA
IB
VB
V3.3A
TERIDIAN
71M6521
V3.3
GNDA GNDD
SYS
PWR MODE
CONTROL
WAKE-UP
REGULATOR
VBAT
V2.5
BATTERY
VOLTAGE REF
VREF
VBIAS
SERIAL PORTS
TEMP
SENSOR
DIO, PULSE
RAM
FLASH
COMPUTE
ENGINE
COM0..3
SEG0..18
SEG 24..31/
DIO 4..11
SEG 34..37/
DIO 14..17
SEG 32,33,
38/ICE
3.3V LCD
AMR
RX/DIO1
TX/DIO2
TX
RX
SENSE
DRIVE/MOD
COMPARATOR
V1
OSC/PLL
XIN
XOUT
88.88.8888
IIC or uWire
EEPROM
TEST PULSES
V3P3D
GNDD
IR
POWER
FAULT
32 kHz
RTC
TIMERS
ICE
ICE_E
07/25/2007
MPU
Teridian is a trademark and Single Converter Technology is a registered
trademark of Maxim Integrated Products Inc.
MICROWIRE is a registered trademark of National Semiconductor Corp.
•
Lead(Pb)-Free Packages
Rev 3
Page: 1 of 107
71M6521DE/DH/FE Data Sheet
Table of Contents
GENERAL DESCRIPTION ........................................................................................................................ 1
FEATURES ................................................................................................................................................ 1
HARDWARE DESCRIPTION ..................................................................................................................... 10
Hardware Overview ..................................................................................................................... 10
Analog Front End (AFE)............................................................................................................... 10
Input Multiplexer ............................................................................................................ 10
A/D Converter (ADC) ..................................................................................................... 11
FIR Filter ........................................................................................................................ 11
Voltage References ....................................................................................................... 11
Temperature Sensor ...................................................................................................... 12
Battery Monitor .............................................................................................................. 13
Functional Description ................................................................................................... 13
Digital Computation Engine (CE) ................................................................................................. 13
Meter Equations ............................................................................................................ 14
Description ................................................................................................................................... 14
Real-Time Monitor ......................................................................................................... 15
Pulse Generator ............................................................................................................ 15
CE Functional Overview ................................................................................................ 15
80515 MPU Core ........................................................................................................... 17
Memory Organization .................................................................................................... 17
Special Function Registers (SFRs)................................................................................ 19
Special Function Registers (Generic 80515 SFRs) ....................................................... 20
Special Function Registers Specific to the 71M6521DE/DH/FE .................................... 22
Instruction Set................................................................................................................ 23
UART ............................................................................................................................. 23
Timers and Counters ..................................................................................................... 25
WD Timer (Software Watchdog Timer) .......................................................................... 28
Interrupts ....................................................................................................................... 30
On-Chip Resources ..................................................................................................................... 38
Oscillator ....................................................................................................................... 38
PLL and Internal Clocks ................................................................................................ 38
Real-Time Clock (RTC) ................................................................................................. 38
Temperature Sensor ...................................................................................................... 38
Physical Memory ........................................................................................................... 39
Optical Interface ............................................................................................................ 40
Digital I/O ....................................................................................................................... 40
LCD Drivers ................................................................................................................... 42
Battery Monitor .............................................................................................................. 42
EEPROM Interface ........................................................................................................ 43
Page: 2 of 107
Rev 3
71M6521DE/DH/FE Data Sheet
Hardware Watchdog Timer ............................................................................................ 46
Program Security ........................................................................................................... 46
Test Ports ...................................................................................................................... 47
FUNCTIONAL DESCRIPTION ................................................................................................................... 48
Theory of Operation ..................................................................................................................... 48
System Timing Summary ............................................................................................................. 49
Battery Modes .............................................................................................................................. 50
MISSION...................................................................................................................................... 51
BROWNOUT Mode ....................................................................................................... 51
LCD Mode ..................................................................................................................... 52
SLEEP Mode ................................................................................................................. 52
Fault and Reset Behavior ............................................................................................................ 57
Wake Up Behavior ....................................................................................................................... 57
Wake on PB................................................................................................................... 58
Wake on Timer .............................................................................................................. 58
Data Flow..................................................................................................................................... 59
CE/MPU Communication ............................................................................................................. 59
APPLICATION INFORMATION ................................................................................................................. 60
Connection of Sensors (CT, Resistive Shunt) .............................................................................. 60
Distinction between 71M6521DE/71M6521FE and 71M6521DH Parts ....................................... 60
Temperature Measurement ......................................................................................................... 61
Temperature Compensation ........................................................................................................ 61
Temperature Compensation and Mains Frequency Stabilization for the RTC ............................. 64
Connecting 5 V Devices............................................................................................................... 65
Connecting LCDs ......................................................................................................................... 66
Connecting I
2
C EEPROMs .......................................................................................................... 68
Connecting Three-Wire EEPROMs ............................................................................................. 69
UART0 (TX/RX) ........................................................................................................................... 69
Optical Interface ........................................................................................................................... 70
Connecting V1 and Reset Pins .................................................................................................... 70
Connecting the Emulator Port Pins .............................................................................................. 71
Crystal Oscillator .......................................................................................................................... 72
Flash Programming ..................................................................................................................... 72
MPU Firmware Library ................................................................................................................. 72
Meter Calibration ......................................................................................................................... 72
FIRMWARE INTERFACE .......................................................................................................................... 73
I/O RAM MAP – In Numerical Order ............................................................................................ 73
SFR MAP (SFRs Specific to the Teridian 80515) – In Numerical Order ...................................... 74
I/O RAM DESCRIPTION – Alphabetical Order ............................................................................ 75
CE Interface Description .............................................................................................................. 82
CE Program ................................................................................................................... 82
Rev 3
Page: 3 of 107
71M6521DE/DH/FE Data Sheet
Formats ......................................................................................................................... 82
Constants ...................................................................................................................... 82
Environment .................................................................................................................. 82
CE Calculations ............................................................................................................. 83
CE STATUS .................................................................................................................. 83
CE TRANSFER VARIABLES ........................................................................................ 85
ELECTRICAL SPECIFICATIONS .............................................................................................................. 89
ABSOLUTE MAXIMUM RATINGS .............................................................................................. 89
RECOMMENDED EXTERNAL COMPONENTS ......................................................................... 90
RECOMMENDED OPERATING CONDITIONS .......................................................................... 90
PERFORMANCE SPECIFICATIONS .......................................................................................... 91
INPUT LOGIC LEVELS ................................................................................................. 91
OUTPUT LOGIC LEVELS ............................................................................................. 91
POWER-FAULT COMPARATOR .................................................................................. 91
BATTERY MONITOR .................................................................................................... 91
SUPPLY CURRENT ...................................................................................................... 92
V3P3D SWITCH ............................................................................................................ 92
2.5 V VOLTAGE REGULATOR ..................................................................................... 92
LOW POWER VOLTAGE REGULATOR ....................................................................... 92
CRYSTAL OSCILLATOR .............................................................................................. 93
VREF, VBIAS ................................................................................................................ 93
LCD DRIVERS .............................................................................................................. 94
ADC CONVERTER, V3P3A REFERENCED ................................................................. 94
TEMPERATURE SENSOR ........................................................................................... 95
TIMING SPECIFICATIONS ......................................................................................................... 96
RAM AND FLASH MEMORY ..................................................................................................................... 96
FLASH MEMORY TIMING ............................................................................................ 96
EEPROM INTERFACE .................................................................................................. 96
RESET and V1 .............................................................................................................. 96
RTC ............................................................................................................................... 96
TYPICAL PERFORMANCE DATA ................................................................................ 97
PACKAGE OUTLINE (LQFP 64) ................................................................................................. 98
PACKAGE OUTLINE (QFN 68) ................................................................................................... 99
PINOUT (LQFP-64) ..................................................................................................................... 100
PINOUT (QFN 68) ....................................................................................................................... 100
Recommended PCB Land Pattern for the QFN-68 Package ....................................................... 101
PIN DESCRIPTIONS ................................................................................................................... 102
Power/Ground Pins: ...................................................................................................... 102
Analog Pins: .................................................................................................................. 102
Digital Pins:.................................................................................................................... 103
I/O Equivalent Circuits: .................................................................................................. 104
Page: 4 of 107
Rev 3
71M6521DE/DH/FE Data Sheet
ORDERING INFORMATION ...................................................................................................................... 105
REVISION HISTORY ................................................................................................................................. 106
Rev 3
Page: 5 of 107