71M6531D/F, 71M6532D/F
Energy Meter IC
Simplifying System Integration
TM
DATA SHEET
19-5374; Rev 1; 4/13
GENERAL DESCRIPTION
The 71M6531D/F and 71M6532D/F are highly
integrated SOCs with an MPU core, RTC, FLASH and LCD
driver. The patented Single Converter Technology® with a
22-bit delta-sigma ADC, four analog inputs, digital tempera-
ture 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 32-kHz crystal time base for the entire system and internal
battery backup support for RAM and RTC further reduce system
cost. The IC supports 2-wire, and 3-wire single-phase and
dual-phase residential metering along with tamper-detection
mechanisms. The 71M6531D/F offers single-ended inputs for
two current channels and two single-ended voltage inputs.
The 71M6532D/F has two differential current inputs and three
single-ended voltage inputs.
Maximum design flexibility is provided by multiple UARTs, I C,
μWire, up to 21 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.
CT/SHUNT
NEUTRAL
B
CT
LOAD
LOAD
POWER SUPPLY
FEATURES
•
Wh accuracy < 0.1% over 2000:1 current
range
•
Exceeds IEC62053/ANSI C12.20 standards
•
Four sensor inputs
•
Low-jitter Wh and VARh plus two additional
pulse test outputs (4 total, 10 kHz maximum)
with pulse count
•
Four-quadrant metering
•
Tamper detection (Neutral current with CT,
Rogowski or shunt, magnetic tamper input)
•
Line frequency count for RTC
•
Digital temperature compensation
•
Sag detection for phase A and B
•
Independent 32-bit compute engine
•
46-64 Hz line frequency range with same
calibration. Phase compensation (± 7°)
•
Three battery modes with wake-up on timer
or push-button:
BROWNOUT Mode (52 µA typ.)
LCD Mode (21 µA typ., DAC active)
SLEEP Mode (0.7 µA typ.)
•
Energy display during mains power failure
•
39 mW typical consumption @ 3.3 V, MPU
clock frequency 614 kHz
•
22-bit delta-sigma ADC with 3360 Hz or
2520 Hz sample rate
•
8-bit MPU (80515),1 clock cycle per instruction,
10 MHz maximum, with integrated ICE for
debug
•
RTC for TOU functions with clock-rate adjust
register
•
Hardware watchdog timer, power fail monitor
•
LCD driver with 4 common segment drivers:
Up to 156 (71M6531D/F) or 268 pixels
(71M6532D/F)
•
Up to 22 (71M6531D/F) or 43 (71M6532D/F)
general-purpose I/O pins. Digital I/O pins
compatible with 5 V inputs
•
32 kHz time base
•
High-speed slave SPI interface to data RAM
•
Two UARTs for IR and AMR, IR driver with
modulation
•
FLASH memory with security and in-system
program update:
128 KB (71M6531D/32D)
256 KB (71M6531F/32F)
•
4 KB MPU XRAM
•
Industrial temperature range
•
68-pin QFN package for 71M6531D/F pin-
compatible with 71M6521, 100-pin LQFP
package for 71M6532D/F, lead free
1
2
A
IAP*
IAN*
VA
IBP*
IBN*
VB
ADC
V3.3A
V3.3
SYS
GNDA GNDD
PWR MODE
CONTROL
WAKE-UP
REGULATOR
VBAT
V2.5
BATTERY
71M6531
71M6532
TEMP
SENSOR
VOLTAGE REF
VREF
VBIAS
SERIAL PORTS
LCD & DIO
COM0..3
LCD SEG
SEG/DIO
RAM
FLASH
MEMORY
COMPUTE
ENGINE
88.88.8888
I2C or µWire
EEPROM
TEST PULSES
AMR
RX/DIO1
TX/DIO2
TX
RX
SENSE
DRIVE/MOD
COMPARATOR
V1
OSC/PLL
XIN
XOUT
*
IR
POWER
FAULT
32 kHz
TIMERS
RTC
ICE I/F
MPU
SPI
SPI HOST
V3P3D
GNDD
ICE_E
02/18/2009
Differential pins only on 6532D/F
Rev 2
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
FDS 6531/6532 005
2
Data Sheet 71M6531D/F-71M6532D/F
3
4
Functional Description ..................................................................................................................... 54
2.1 Theory of Operation ................................................................................................................... 54
2.2 System Timing Summary ........................................................................................................... 55
2.3 Battery Modes ............................................................................................................................ 56
2.3.1 BROWNOUT Mode ....................................................................................................... 57
2.3.2 LCD Mode ...................................................................................................................... 58
2.3.3 SLEEP Mode ................................................................................................................. 58
2.4 Fault and Reset Behavior .......................................................................................................... 60
2.4.1 Reset Mode.................................................................................................................... 60
2.4.2 Power Fault Circuit ........................................................................................................ 60
2.5 Wake-Up Behavior ..................................................................................................................... 61
2.5.1 Wake on PB ................................................................................................................... 61
2.5.2 Wake on Timer............................................................................................................... 61
2.6 Data Flow ................................................................................................................................... 61
2.7 CE/MPU Communication ........................................................................................................... 62
Application Information .................................................................................................................... 63
3.1 Connection of Sensors............................................................................................................... 63
3.2 Connecting 5-V Devices ............................................................................................................ 63
3.3 Temperature Measurement ....................................................................................................... 64
3.4 Temperature Compensation ...................................................................................................... 64
3.4.1 Temperature Coefficients: ............................................................................................. 64
3.4.2 Temperature Compensation for VREF .......................................................................... 65
3.4.3 System Temperature Compensation ............................................................................. 65
3.4.4 Temperature Compensation for the RTC ...................................................................... 65
3.5 Connecting LCDs ....................................................................................................................... 66
2
3.6 Connecting I C EEPROMs ........................................................................................................ 66
3.7 Connecting Three-Wire EEPROMs ........................................................................................... 67
3.8 UART0 (TX/RX) ......................................................................................................................... 67
3.9 Optical Interface (UART1).......................................................................................................... 67
3.10 Connecting the V1 Pin ............................................................................................................... 68
3.11 Connecting the Reset Pin .......................................................................................................... 69
3.12 Connecting the Emulator Port Pins ............................................................................................ 69
3.13 Connecting a Battery ................................................................................................................. 69
3.14 Flash Programming.................................................................................................................... 70
3.15 MPU Firmware ........................................................................................................................... 70
3.16 Crystal Oscillator ........................................................................................................................ 70
3.17 Meter Calibration ........................................................................................................................ 71
Firmware Interface ............................................................................................................................ 72
4.1 I/O RAM and SFR Map – Functional Order ............................................................................... 72
4.2 I/O RAM Description – Alphabetical Order ................................................................................ 77
4.3 CE Interface Description ............................................................................................................ 88
4.3.1 CE Program ................................................................................................................... 88
4.3.2 CE Data Format ............................................................................................................. 88
4.3.3 Constants ....................................................................................................................... 88
4.3.4 Environment ................................................................................................................... 88
4.3.5 CE Calculations ............................................................................................................. 89
4.3.6 CE Status and Control ................................................................................................... 89
4.3.7 CE Transfer Variables ................................................................................................... 92
4.3.8 Pulse Generation ........................................................................................................... 93
4.3.9 CE Calibration Parameters ............................................................................................ 94
3
Rev 2
Data Sheet 71M6531D/F-71M6532D/F
FDS 6531/6532 005
4.3.10 Other CE Parameters .................................................................................................... 95
4.3.11 CE Flow Diagrams ......................................................................................................... 95
5
Electrical Specifications................................................................................................................... 98
5.1 Absolute Maximum Ratings ....................................................................................................... 98
5.2 Recommended External Components ....................................................................................... 99
5.3 Recommended Operating Conditions ........................................................................................ 99
5.4 Performance Specifications ..................................................................................................... 100
5.4.1 Input Logic Levels ........................................................................................................ 100
5.4.2 Output Logic Levels ..................................................................................................... 100
5.4.3 Power-Fault Comparator ............................................................................................. 100
5.4.4 Battery Monitor............................................................................................................. 100
5.4.5 Supply Current ............................................................................................................. 101
5.4.6 V3P3D Switch .............................................................................................................. 101
5.4.7 2.5 V Voltage Regulator ............................................................................................... 101
5.4.8 Low-Power Voltage Regulator ..................................................................................... 101
5.4.9 Crystal Oscillator .......................................................................................................... 102
5.4.10 LCD DAC ..................................................................................................................... 102
5.4.11 LCD Drivers ................................................................................................................. 102
5.4.12 Optical Interface ........................................................................................................... 102
5.4.13 Temperature Sensor .................................................................................................... 103
5.4.14 VREF ........................................................................................................................... 103
5.4.15 ADC Converter, V3P3A Referenced............................................................................ 104
5.5 Timing Specifications ............................................................................................................... 106
5.5.1 Flash Memory .............................................................................................................. 106
5.5.2 EEPROM Interface ...................................................................................................... 106
5.5.3 RESET ......................................................................................................................... 106
5.5.4 RTC.............................................................................................................................. 106
5.5.5 SPI Slave Port (MISSION Mode) ................................................................................. 107
5.6 Typical Performance Data ....................................................................................................... 108
5.6.1 Accuracy over Current ................................................................................................. 108
5.6.2 Accuracy over Temperature ........................................................................................ 108
5.7 71M6531D/F Package ............................................................................................................. 109
5.7.1 Package Outline .......................................................................................................... 109
5.7.2 71M6531D/F Pinout (QFN-68)..................................................................................... 110
5.7.3 Recommended PCB Land Pattern for the QFN-68 Package ...................................... 111
5.8 71M6532D/F Package ............................................................................................................. 112
5.8.1 71M6532D/F Pinout (LQFP-100) ................................................................................. 112
5.8.2 LQFP-100 Mechanical Drawing ................................................................................... 113
5.9 Pin Descriptions ....................................................................................................................... 114
5.9.1 Power and Ground Pins ............................................................................................... 114
5.9.2 Analog Pins .................................................................................................................. 114
5.9.3 Digital Pins ................................................................................................................... 115
5.9.4 I/O Equivalent Circuits ................................................................................................. 116
6
Ordering Information ...................................................................................................................... 117
7
Related Information ........................................................................................................................ 117
8
Contact Information ........................................................................................................................ 117
Appendix A: Acronyms .......................................................................................................................... 118
Appendix B: Revision History................................................................................................................ 119
4
Rev 2
FDS 6531/6532 005
Data Sheet 71M6531D/F-71M6532D/F
Figures
Figure 1: 71M6531D/F IC Functional Block Diagram ................................................................................... 8
Figure 2: 71M6532D/F IC Functional Block Diagram ................................................................................... 9
Figure 3: General Topology of a Chopped Amplifier .................................................................................. 13
Figure 4: CROSS Signal with
CHOP_E[1:0]
= 00 ....................................................................................... 13
Figure 5: AFE Block Diagram (Shown for the 71M6532D/F) ...................................................................... 14
Figure 6: Samples from Multiplexer Cycle .................................................................................................. 18
Figure 7: Accumulation Interval................................................................................................................... 18
Figure 8: Interrupt Structure ........................................................................................................................ 35
Figure 9: Optical Interface ........................................................................................................................... 41
Figure 10: Connecting an External Load to DIO Pins ................................................................................. 45
Figure 11: 3-Wire Interface. Write Command, HiZ=0 ................................................................................ 48
Figure 12: 3-Wire Interface. Write Command, HiZ=1 ................................................................................ 48
Figure 13: 3-Wire Interface. Read Command. ........................................................................................... 49
Figure 14: 3-Wire Interface. Write Command when CNT=0 ...................................................................... 49
Figure 15: 3-Wire Interface. Write Command when HiZ=1 and WFR=1 ................................................... 49
Figure 16: SPI Slave Port: Typical Read and Write operations .................................................................. 51
Figure 17: Functions defined by V1 ............................................................................................................ 52
Figure 18: Voltage, Current, Momentary and Accumulated Energy ........................................................... 54
Figure 19: Timing Relationship between ADC MUX, Compute Engine ...................................................... 55
Figure 20: RTM Output Format ................................................................................................................... 55
Figure 21: Operation Modes State Diagram ............................................................................................... 56
Figure 22: Transition from BROWNOUT to MISSION Mode when System Power Returns ...................... 59
Figure 23: Power-Up Timing with V3P3SYS and VBAT tied together ........................................................ 59
Figure 24: Power-Up Timing with VBAT only.............................................................................................. 60
Figure 25: Wake Up Timing ........................................................................................................................ 61
Figure 26: MPU/CE Data Flow .................................................................................................................... 62
Figure 27: MPU/CE Communication ........................................................................................................... 62
Figure 28: Resistive Voltage Divider ........................................................................................................... 63
Figure 29: CT with Single Ended (Left) and Differential Input (Right) Connection ..................................... 63
Figure 30: Resistive Shunt (Left) and Rogowski Sensor (Right) Connection ............................................. 63
Figure 31: Connecting LCDs ....................................................................................................................... 66
2
Figure 32: I C EEPROM Connection .......................................................................................................... 66
Figure 33: Three-Wire EEPROM Connection ............................................................................................. 67
Figure 34: Connections for UART0 ............................................................................................................. 67
Figure 35: Connection for Optical Components .......................................................................................... 68
Figure 36: Voltage Divider for V1 ................................................................................................................ 68
Figure 37: External Components for the RESET Pin: Push-button (Left), Production Circuit (Right) ........ 69
Figure 38: External Components for the Emulator Interface ...................................................................... 69
Figure 39: Connecting a Battery ................................................................................................................. 70
Figure 40: CE Data Flow: Multiplexer and ADC.......................................................................................... 96
Figure 41: CE Data Flow: Scaling, Gain Control, Intermediate Variables .................................................. 96
Figure 42: CE Data Flow: Squaring and Summation Stages ...................................................................... 97
Figure 43: SPI Slave Port (MISSION Mode) Timing ................................................................................. 107
Figure 44: Wh Accuracy, 0.1 A to 200 A at 240 V/50 Hz and Room Temperature .................................. 108
Figure 45: QFN-68 Package Outline, Top and Side View ........................................................................ 109
Figure 46: QFN-68 Package Outline, Bottom View .................................................................................. 109
Figure 47: Pinout for QFN-68 Package..................................................................................................... 110
Figure 48: PCB Land Pattern for QFN 68 Package .................................................................................. 111
Figure 49: PCB Land Pattern for LQFP-100 Package .............................................................................. 112
Figure 50: LQFP-100 Package, Mechanical Drawing ............................................................................... 113
Figure 51: I/O Equivalent Circuits ............................................................................................................. 116
Rev 2
5