Datasheet
Table Of Contents
- 1 Hardware Description
- 1.1 Hardware Overview
- 1.2 Analog Front End (AFE)
- 1.3 Digital Computation Engine (CE)
- 1.4 80515 MPU Core
- 1.4.1 Memory Organization and Addressing
- 1.4.2 Special Function Registers (SFRs)
- 1.4.3 Generic 80515 Special Function Registers
- 1.4.4 Special Function Registers (SFRs) Specific to the 71M6531D/F and 71M6532D/F
- 1.4.5 Instruction Set
- 1.4.6 UARTs
- 1.4.7 Timers and Counters
- 1.4.8 WD Timer (Software Watchdog Timer)
- 1.4.9 Interrupts
- 1.5 On-Chip Resources
- 1.5.1 Oscillator
- 1.5.2 Internal Clocks
- 1.5.3 Real-Time Clock (RTC)
- 1.5.4 Temperature Sensor
- 1.5.5 Physical Memory
- 1.5.6 Optical Interface
- 1.5.7 Digital I/O – 71M6531D/F
- 1.5.8 Digital I/O – 71M6532D/F
- 1.5.9 Digital IO – Common Characteristics for 71M6531D/F and 71M6532D/F
- 1.5.10 LCD Drivers – 71M6531D/F
- 1.5.11 LCD Drivers – 71M6532D/F
- 1.5.12 LCD Drivers – Common Characteristics for 71M6531D/F and 71M6532D/F
- 1.5.13 Battery Monitor
- 1.5.14 EEPROM Interface
- 1.5.15 SPI Slave Port
- 1.5.16 Hardware Watchdog Timer
- 1.5.17 Test Ports (TMUXOUT pin)
- 2 Functional Description
- 3 Application Information
- 3.1 Connection of Sensors
- 3.2 Connecting 5-V Devices
- 3.3 Temperature Measurement
- 3.4 Temperature Compensation
- 3.5 Connecting LCDs
- 3.6 Connecting I2C EEPROMs
- 3.7 Connecting Three-Wire EEPROMs
- 3.8 UART0 (TX/RX)
- 3.9 Optical Interface (UART1)
- 3.10 Connecting the V1 Pin
- 3.11 Connecting the Reset Pin
- 3.12 Connecting the Emulator Port Pins
- 3.13 Connecting a Battery
- 3.14 Flash Programming
- 3.15 MPU Firmware
- 3.16 Crystal Oscillator
- 3.17 Meter Calibration
- 4 Firmware Interface
- 4.1 I/O RAM and SFR Map – Functional Order
- 4.2 I/O RAM Description – Alphabetical Order
- 4.3 CE Interface Description
- 5 Electrical Specifications
- 5.1 Absolute Maximum Ratings
- 5.2 Recommended External Components
- 5.3 Recommended Operating Conditions
- 5.4 Performance Specifications
- 5.4.1 Input Logic Levels
- 5.4.2 Output Logic Levels
- 5.4.3 Power-Fault Comparator
- 5.4.4 Battery Monitor
- 5.4.5 Supply Current
- 5.4.6 V3P3D Switch
- 5.4.7 2.5 V Voltage Regulator
- 5.4.8 Low-Power Voltage Regulator
- 5.4.9 Crystal Oscillator
- 5.4.10 LCD DAC
- 5.4.11 LCD Drivers
- 5.4.12 Optical Interface
- 5.4.13 Temperature Sensor
- 5.4.14 VREF
- 5.4.15 ADC Converter, V3P3A Referenced
- 5.5 Timing Specifications
- 5.6 Typical Performance Data
- 5.7 71M6531D/F Package
- 5.8 71M6532D/F Package
- 5.9 Pin Descriptions
- 6 Ordering Information
- 7 Related Information
- 8 Contact Information
- Appendix A: Acronyms
- Appendix B: Revision History

Data Sheet 71M6531D/F-71M6532D/F FDS 6531/6532 005
88 Rev 2
4.3 CE Interface Description
4.3.1 CE Program
The CE performs the precision computations necessary to accurately measure energy. Different code
variations are used for EQU[2:0] = 0 and EQU[2:0] = 1 or 2. The computations include offset cancellation,
products, product smoothing, product summation, frequency detection, VAR calculation, sag detection,
peak detection and voltage phase measurement. All data computed by the CE is dependent on the
selected meter equation as given by EQU[2:0]. Although EQU[2:0] = 0 and EQU[2:0] = 2 have the same
element mapping, the MPU code can use the value of EQU[2:0] to decide if element 2 is used for tamper
detection (typically done by connecting VB to VA) or as a second independent element.
The CE program is supplied by Maxim as a data image that can be merged with the MPU operational
code for meter applications. Typically, the CE program covers most applications and does not need to be
modified. Other variations of CE code may be available from Maxim. The description in this section ap-
plies to CE code revision CE31A04 (for EQU[2:0] = 0). Deviations for code revision CE31A03 (for
EQU[2:0] = 1 or 2) are noted where applicable.
4.3.2 CE Data Format
All CE words are 4 bytes. Unless specified otherwise, they are in 32-bit two’s complement format
(-1 = 0xFFFFFFFF). Calibration parameters are defined in flash memory (or external EEPROM) and
must be copied to CE data memory by the MPU before enabling the CE. Internal variables are used in
internal CE calculations. Input variables allow the MPU to control the behavior of the CE code. Output
variables are outputs of the CE calculations. The corresponding MPU address for the most significant
byte is given by 0x0000 + 4 x CE_address and by 0x0003 + 4 x CE_address for the least significant byte.
4.3.3 Constants
Constants used in the CE Data Memory tables are:
• F
S
= 32768 Hz/13 = 2520.62 Hz.
• F
0
is the fundamental frequency.
• IMAX is the external rms current corresponding to 250 mV pk at the inputs IA and IB.
• VMAX is the external rms voltage corresponding to 250 mV pk at the VA and VB inputs.
• N
ACC, the accumulation count for energy measurements is PRE_SAMPS[1:0]*SUM_CYCLES[5:0].
• The duration of the accumulation interval for energy measurements is
PRE_SAMPS[1:0]*SUM_CYCLES[5:0]/F
S
• ln_8 is a gain constant of the current channel, n. Its value is 8 or 1 and is controlled by In_SHUNT.
• X is a gain constant of the pulse generators. Its value is determined by PULSE_FAST and PULSE_SLOW.
• Voltage LSB for sag detection = VMAX * 7.8798*10
-6
V.
The system constants IMAX and VMAX are used by the MPU to convert internal quantities (as used by
the CE) to external, i.e. metering quantities. Their values are determined by the off-chip scaling of the
voltage and current sensors used in an actual meter. The LSB values used in this document relate digital
quantities at the CE or MPU interface to external meter input quantities. For example, if a SAG threshold
of 80 V peak is desired at the meter input, the digital value that should be programmed into SAG_THR
would be 80/SAG_THR
LSB, where SAG_THRLSB is the LSB value in the description of SAG_THR.
The parameters EQU[2:0], CE_E, PRE_SAMPS[1:0] and SUM_CYCLES[5:0] essential to the function of the
CE are stored in I/O RAM (see Section 4.2 I/O RAM Description – Alphabetical Order).
4.3.4 Environment
Before starting the CE using the CE_E bit, the MPU has to establish the proper environment for the CE by
implementing the following steps (for CE31A04 code):
• Load the CE data into RAM.
• Establish the equation to be applied in EQU[2:0]. The CE code has to match the selected equation.
• Establish the accumulation period and number of samples in PRE_SAMPS[1:0] = 0 (multiplier = 42) and
SUM_CYCLES[5:0] = 0x3C (60).
• Set PLS_INTERVAL[7:0] to 81.
• Select the values for FIR_LEN[1:0] = 2 and MUX_DIV[3:0] = 4.