9-5359; Rev 11/10 71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 GENERAL DESCRIPTION FEATURES The 71M6511 is a highly integrated SOC with an MPU core, RTC, flash, and LCD driver.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Table of Contents GENERAL DESCRIPTION..................................................................................................................................... 1 FEATURES ............................................................................................................................................. 1 HARDWARE DESCRIPTION ..........................................................
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 FUNCTIONAL DESCRIPTION ............................................................................................................................... 47 Theory of Operation ................................................................................................................................. 47 System Timing Summary..............................................................................
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 RESETZ..................................................................................................................................... 90 COMPARATORS ....................................................................................................................... 90 RAM AND FLASH MEMORY ......................................................................................................
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Tables Table 1: Inputs Selected in Regular and Alternate Multiplexer Cycles .............................................................................. 8 Table 2: Channel control based on MUX_DIV and FIR_LEN ........................................................................................ 9 Table 3: CE DRAM Locations for ADC Results.............................................................
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Table 49: Priority Levels ............................................................................................................................................ 34 Table 50: Interrupt Polling Sequence .......................................................................................................................... 35 Table 51: Interrupt Vectors .............................................
1M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 VREF VBIAS IA VA IB V3P3A GNDA GNDA ∆Σ ADC CONVERTER VBIAS VOLTAGE BOOST MUX VDRV - V3P3A FIR FILTER + LCD_IBST LCD_BSTEN VREF TEMP VREF CHOP_EN VREF_DIS MUX GNDD FIR_LEN MUX CTRL CK32 VOLT REG EQU MUX_ALT MUX_DIV V3P3D VBAT XIN XOUT 0.1V MCK PLL RTCLK (32KHz) OSC (32KHz) GNDD OSC_DIS V2P5 CK_EN CKTEST 4.9MHz V2P5 2.5V to logic CKFIR 4.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 HARDWARE DESCRIPTION Hardware Overview The TERIDIAN 71M6511 single chip single-phase meter integrates all primary functional blocks required to implement a solidstate electricity meter.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 The MUX_ALT bit requests an alternate multiplexer cycle. The bit may be asserted on any MPU cycle and may be subsequently de-asserted on any cycle including the next one. A rising edge on MUX_ALT will cause the Control Circuit to wait until the next multiplexer cycle and implement a single alternate cycle.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 A Vinp B Voutp B G A Vinn A + A - B Voutn B CROSS Figure 2: General Topology of a Chopped Amplifier It is assumed that an offset voltage Voff appears at the positive amplifier input.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Figure 3: AFE Block Diagram Computation Engine (CE) The CE, a dedicated 32-bit RISC processor, performs the precision computations necessary to accurately measure energy. The CE calculations and processes include: • Multiplication of each current sample with its associated voltage sample to obtain the energy per sample (when multiplied with the constant sample time).
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Address (hex) Name Description 0x00 IA 0x01 VA Phase A voltage 0x02 IB Phase B current 0x03 - Reserved 0x04 - Reserved 0x05 - Reserved 0x06 TEMP 0x07 -- Phase A current Temperature Reserved Table 3: CE DRAM Locations for ADC Results Meter Equations The Compute Engine (CE) program for residential meter configurations implements the equations in Table 4.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Real-Time Monitor The CE contains a Real Time Monitor (RTM), which can be programmed to monitor four selectable CE RAM locations at full sample rate.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 There is no correlation between the line signal frequency and the choice of PRE_SAMPS or SUM_CYCLES (even though when SUM_CYCLES = 42 one set of SUM_CYCLES happens to sample a period of 16.6ms). Furthermore, sampling does not have to start when the line voltage crosses the zero line. Delay Compensation When measuring the energy of a phase (i.e.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 80515 MPU Core 80515 Overview The 71M6511/6511H includes an 80515 MPU (8-bit, 8051-compatible) that processes most instructions in one clock cycle. Using a 5MHz clock results in a processing throughput of 5 MIPS. The 80515 architecture eliminates redundant bus states and implements parallel execution of fetch and execution phases.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 when the MPU executes a MOVX @Ri,A or MOVX @DPTR,A instruction. The MPU reads external data memory by executing a MOVX A,@Ri or MOVX A,@DPTR instruction (SFR USR2 provides the upper 8 bytes for the MOVX A,@Ri instruction). Clock Stretching: MOVX instructions can access fast or slow external RAM and external peripherals. The three low ordered bits of the CKCON register define the stretch memory cycles.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Internal Data Memory: The Internal data memory provides 256 bytes (0x00 to 0xFF) of data memory. The internal data memory address is always 1 byte wide and can be accessed by either direct or indirect addressing. The Special Function Registers occupy the upper 128 bytes. This SFR area is available only by direct addressing. Indirect addressing accesses the upper 128 bytes of Internal RAM.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Special Function Registers (Generic 80515 SFRs) Table 8 shows the location of the SFRs and the value they assume at reset or power-up.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Accumulator (ACC, A): ACC is the accumulator register. Most instructions use the accumulator to hold the operand. The mnemonics for accumulator-specific instructions refer to accumulator as “A”, not ACC. B Register: The B register is used during multiply and divide instructions. It can also be used as a scratch-pad register to hold temporary data.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Port Registers: The I/O ports are controlled by Special Function Registers P0, P1, and P2. The contents of the SFR can be observed on corresponding pins on the chip. Writing a ‘1’ to any of the ports (see Table 11) causes the corresponding pin to be at high level (V3P3), and writing a ‘0’ causes the corresponding pin to be held at low level (GND).
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 0xB2 FLSHCRL R/W W R/W R 0xE8 WDI R/W R/W W INTBITS INT0…INT6 0xF8 R Bit 0 (FLSH_PWE): Program Write Enable: 0 – MOVX commands refer to XRAM Space, normal operation (default). 1 – MOVX @DPTR,A moves A to Program Space (flash) @ DPTR. This bit is automatically reset after each byte written to flash. Writes to this bit are inhibited when interrupts are enabled.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 A single SFR register serves as both the transmit buffer and receive buffer (S0BUF, SFR 0x99 for UART0 and S1BUF, SFR 0x9C for UART1). When written by the MPU, SxBUF acts as the transmit buffer, and when read by the MPU, it acts as the receive buffer. Writing data to the transmit buffer starts the transmission by the associated UART. Received data are available by reading from the receive buffer.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Serial Interface 1 Control Register (S1CON). The function of the serial port depends on the setting of the Serial Port Control Register S1CON. MSB LSB SM - SM21 REN1 TB81 RB81 TI1 RI1 Table 16: The S1CON register Bit Symbol S0CON.7 S0CON.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Bit Symbol S1CON.7 SM Function Sets the baud rate for UART1 SM Mode Description Baud Rate 0 A 9-bit UART variable 1 B 8-bit UART variable S1CON.5 SM21 Enables the inter-processor communication feature. S1CON.4 REN1 If set, enables serial reception. Cleared by software to disable reception. S1CON.3 TB81 The 9th transmitted data bit in Mode A.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Bit Symbol Function TMOD.7 TMOD.3 Gate If set, enables external gate control (pin int0 or int1 for Counter 0 or 1, respectively). When int0 or int1 is high, and TRX bit is set (see TCON register), a counter is incremented every falling edge on t0 or t1 input pin TMOD.6 TMOD.2 C/T Selects Timer or Counter operation. When set to 1, a Counter operation is performed.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Bit Symbol Function TCON.7 TF1 The Timer 1 overflow flag is set by hardware when Timer 1 overflows. This flag can be cleared by software and is automatically cleared when an interrupt is processed. TCON.6 TR1 Timer 1 Run control bit. If cleared, Timer 1 stops. TCON.5 TF0 Timer 0 overflow flag set by hardware when Timer 0 overflows.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Refreshing the WD Timer: The watchdog timer must be refreshed regularly to prevent the reset request signal from becoming active. This requirement imposes an obligation on the programmer to issue two instructions. The first instruction sets WDT and the second instruction sets SWDT. The maximum delay allowed between setting WDT and SWDT is 12 clock cycles.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Interrupt Priority 0 Register (IP0): MSB LSB -- WDTS IP0.5 IP0.4 IP0.3 IP0.2 IP0.1 IP0.0 Table 30: The IP0 Register (see also Table 46) Bit Symbol IP0.6 WDTS Function Watchdog timer status flag. Set when the watchdog timer was started. Can be read by software.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Interrupts The 80515 provides 11 interrupt sources with four priority levels. Each source has its own request flag(s) located in a special function register (TCON, IRCON, and SCON). Each interrupt requested by the corresponding flag can be individually enabled or disabled by the enable bits in SFRs IEN0, IEN1, and IEN2. External interrupts are the interrupts external to the 80515 core, i.e.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 ET1=0 – disable timer 1 overflow interrupt EX1=0 – disable external interrupt 1 ET0=0 – disable timer 0 overflow interrupt EX0=0 – disable external interrupt 0 Table 35: The IEN0 Bit Functions Page: 30 of 98 © 2005–2010 Teridian Semiconductor Corporation V2.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Interrupt Enable 1 Register (IEN1) MSB LSB SWDT EX6 EX5 EX4 EX3 EX2 Table 36: The IEN1 Register Bit Symbol Function IEN1.7 - IEN1.6 SWDT Not used for interrupt control IEN1.5 EX6 EX6=0 – disable external interrupt 6 IEN1.4 EX5 EX5=0 – disable external interrupt 5 IEN1.3 EX4 EX4=0 – disable external interrupt 4 IEN1.2 EX3 EX3=0 – disable external interrupt 3 IEN1.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Timer/Counter Control Register (TCON) MSB LSB TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0 Table 40: The TCON Register Bit Symbol Function TCON.7 TF1 Timer 1 overflow flag TCON.6 TR1 Not used for interrupt control TCON.5 TF0 Timer 0 overflow flag TCON.4 TR0 Not used for interrupt control TCON.3 IE1 External interrupt 1 flag TCON.2 IT1 External interrupt 1 type control bit TCON.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 XFER_BUSY and RTC_1SEC, which are OR-ed together, have their own enable and flag bits in addition to the interrupt 6 enable and flag bits (see Table 45), and these interrupts must be cleared by the MPU software.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Interrupt Priority Level Structure All interrupt sources are combined in groups, as shown in Table 46: Group 0 External interrupt 0 Serial channel 1 interrupt 1 Timer 0 interrupt - External interrupt 2 2 External interrupt 1 - External interrupt 3 3 Timer 1 interrupt - External interrupt 4 4 Serial channel 0 interrupt - External interrupt 5 5 - - External interrupt 6 Table 46: Pr
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 External interrupt 0 Serial channel 1 interrupt External interrupt 2 External interrupt 1 External interrupt 3 Timer 1 interrupt External interrupt 4 Polling sequence Timer 0 interrupt Serial channel 0 interrupt External interrupt 5 External interrupt 6 Table 50: Interrupt Polling Sequence Interrupt Sources and Vectors Table 51 shows the interrupts with their associated flags and vector addresses.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 DIO External Interrupt Flags Logic and Polarity Selection Internal Interrupt Flags Interrupt Control Re g i s t e r Interrupt Enable IEN0.7 IEN0.0 Priority Assignment IE0 IEN2.0 RI1 UART1 (optical) IP1.0/ IP0.0 Polling Se quen ce Source >=1 TI1 IEN0.1 TF0 Timer 0 IEN1.1 I2FR Comparators INT2 DIO IE1 IP1.1/ IP0.1 Interrupt Vector IRCON.1 IEN0.2 I3FR CE_BUSY IEN1.2 INT3 IP1.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 On-Chip Resources DIO Ports The 71M6511/6511H includes up to 12 pins of general purpose digital I/O. These pins are dual function and can alternatively be used as LCD drivers. Figure 8 shows a block diagram of the DIO section. On reset or power-up, all DIO pins are inputs until they are configured for the desired direction.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 DIO_DIR bit 0 1 DIO Pin Function input output Table 53: DIO_DIR Control Bit Values read from and written into the DIO ports use the data registers P0, P1 and P2.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 The I/O RAM bit register FLASH66Z defines the pulse width for accessing flash memory. To minimize supply current draw, this bit should be set to 1. Flash erasure is initiated by writing a specific data pattern to specific SFR registers in the proper sequence. These special pattern/sequence requirements prevent inadvertent erasure of the flash memory. The mass erase sequence is: 1. 2.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 71M651X XIN crystal XOUT Figure 9: Oscillator Circuit The oscillator should be placed as close as possible to the IC, and vias should be avoided. An external resistor across the crystal must not be added. Real-Time Clock (RTC) The RTC is driven directly by the crystal oscillator. In the absence of the 3.3V supply, the RTC is powered by the external battery (VBAT pin).
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Dedicated Segment Pins Shared w/ DIO4-DIO11 Shared w/ DIO14-DIO17 SEG0 SEG1 … SEG19 SEG24 … SEG31 SEG34 … SEG37 COM0 P0 P4 … P76 P80 … P108 P112 … P124 COM1 P1 P5 … P77 P81 … P109 P113 ...
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Hardware Reset Mechanisms Several conditions will cause a hardware reset of the 71M6511/6511H: • • • • • Voltage at the RESETZ pin low Voltage at the E_RST pin low Voltage at the V1 pin below reset threshold (VBIAS) The crystal frequency monitor detected a crystal malfunction Hardware Watchdog timer Reset Pin (RESETZ) When the RESETZ pin is pulled low (or when V1 < VBIAS), all digital activity in the
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 V1 V3P3 V3P3-10mV WDT disabled V3P3 400mV Normal operation, WDT enabled when (V1 < VBIAS) the battery is enabled VBIAS Battery or reset mode 0V Figure 11: Voltage Range for V1 I2C Interface (EEPROM) A dedicated 2-pin serial interface implements an I2C driver that can be used to communicate with external EEPROM devices.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Status Bit Name Read/ Write Reset State Polarity Description 7 ERROR R 0 Positive 1 when an illegal command is received. 6 BUSY R 0 Positive 1 when serial data bus is busy. 5 RX_ACK R 1 Negative 0 indicates that the EEPROM sent an ACK bit.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 TMUXOUT Pin: One out of 16 digital or 4 analog signals can be selected to be output on the TMUXOUT pin. The function of the multiplexer is controlled with the I/O RAM register TMUX (0x2000[3:0]), as shown in Table 58. TMUX[3:0] Mode Function 0 analog DGND 1 analog IBIAS 2 analog PLL_2.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 SSI Signal LCD Segment Output Pin SCLK SEG3 SSDATA SEG4 SFR SEG5 SRDY SEG6 Table 59: SSI Pin Assignment SRDY is an optional handshake input that indicates that the DSP or data-logging device is ready to receive data. SRDY must be high to enable SFR to rise and initiate the transfer of the next field. It is expected that SRDY changes state on the rising edges of SCLK.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 FUNCTIONAL DESCRIPTION Theory of Operation The energy delivered by a power source into a load can be expressed as: t E = ∫ V (t ) I (t )dt 0 Assuming phase angles are constant, the following formulae apply: P = Real Energy [Wh] = V * A * cos φ* t Q = Reactive Energy [VARh] = V * A * sin φ * t S = Apparent Energy [VAh] = P2 + Q2 For a practical meter, not only voltage and current amplit
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Figure 13 summarizes the timing relationships between the input MUX states, the CE_BUSY signal, and the two serial output streams. In this example, MUX_DIV = 1 (four mux states) and FIR_LEN = 1 (3 CK32 cycles).
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 CK32 MUX_SYNC CKTEST 0 31 FLAG 1 30 31 0 FLAG 1 30 31 SIG N 30 LSB FLAG 1 SIG N 0 LSB 31 SIG N RTM DATA0 (32 bits) RTM DATA1 (32 bits) RTM DATA2 (32 bits) RTM DATA3 (32 bits) 30 LSB FLAG 1 LSB 0 SIG N TMUXOUT/RTM Figure 14: RTM Output Format If SSI_CKGATE =1 If 16bit fields If SSI_CKGATE =1 If 32bit fields SFR (Output) SRDY (Input) SCLK (Output) 31 SSDATA (Output) 3
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Data Flow The data flow between CE and MPU is shown in Figure 17. In a typical application, the 32-bit compute engine (CE) sequentially processes the samples from the voltage inputs on pins IA, VA, and IB, performing calculations to measure active 2 2 power (Wh), reactive power (VARh), A h, and V h for four-quadrant metering.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 PULSES W (DIO6) WSUM VARSUM VAR (DIO7) DISPLAY (memory-mapped LCD segments) APULSEW SERIAL (UART0/1) APULSER EXT_PULSE DATA ADC MPU EEPROM (I2C) SAMPLES CE_BUSY CE Mux Ctrl. DIO XFER_BUSY INTERRUPTS I/O RAM (CONFIGURATION RAM) Figure 18: MPU/CE Communication (Functional) The MPU will wait for the CE to signal that fresh data is ready (the XFER interrupt).
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Power-Up: After power-up, the 71M6511/6511H is in reset as long as V1 < VBIAS. As soon as V1 exceeds VBIAS, the reset timer is started which takes the MPU out of reset after 4100 oscillator cycles (see Figure 20). The MPU then initiates its preboot phase lasting 32 cycles. The supply current will be low but not zero during power-up.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Temperature Compensation Internal Compensation: The internal voltage reference is calibrated during device manufacture. Trim data is stored in on-chip fuses. For the 71M6511, the temperature coefficients TC1 and TC2 are given as constants that represent typical component behavior.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 MUX cycle 2 MUX cycle 1 MUX cycle 3 Accumulation Interval m+2 Accumulation Interval m+1 Accumulation Interval m MUX cycle n MUX cycle 1 Reversed Positive MUX cycle n MUX cycle 1 Reversed Positive Chop Polarity Reversed Positive Positive Reversed Positive Reversed Positive CE_BUSY interrupt (falling edge) XFER_BUSY interrupt (falling edge) Figure 21: Chop Polarity w/ Automatic Chop
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 XFER_BUSY interrupt. After these first two cycles, CHOP_EN returns to 11 (automatic toggle). The value of CHOP_EN, when set after the XFER_BUSY interrupt, is in force for the entire following multiplexer cycle. When using this sequence, the alternate multiplexer cycle is toggled between positive and reversed connection resulting in accurate temperature measurement.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Program Security When enabled, the security feature limits the ICE to global flash erase operations only. All other ICE operations are blocked. This guarantees the security of the user’s MPU and CE program code. Security is enabled by MPU code that is executed in a 32 cycle preboot interval before the primary boot sequence begins.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 FIRMWARE INTERFACE I/O RAM MAP – In Numerical Order ‘Not Used’ bits are blacked out and contain no memory and are read by the MPU as zero. RESERVED bits are in use and should not be changed.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 LCD38 LCD39 LCD40 LCD41 2056 2057 2058 2059 RTM0 RTM1 RTM2 RTM3 2060 2061 2062 2063 RESERVED RESERVED RESERVED RESERVED RTM Probes: RTM0[7:0] RTM1[7:0] RTM2[7:0] RTM3[7:0] Synchronous Serial Interface: SSI 2070 S S I _ B E G 2071 SSI_END 2072 SSI_EN SSI_10M SSI_CKGATE SSI_FSIZE[1:0] SSI_BEG[7:0] SSI_END[7:0] SSI_FPOL SSI_RDYEN SSI_RDYPOL Fuse Selection Registers: TRIMSEL 20FD TRIM 20FF TR
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 I/O RAM (Configuration RAM) – Alphabetical Order Many functions of the chip can be controlled via the I/O RAM (Configuration RAM). The CE will also take some of its parameters from the I/O RAM. Bits with a W (write) direction are written by the MPU into I/O RAM. Typically, they are initially stored in flash memory and copied to the I/O RAM by the MPU.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 DIO_DIR1[7:6] DIO_DIR1[3:0] SFR91 R/W Programs the direction of DIO pins 15, 14 and 11 through 8. 1 indicates output. Ignored if the pin is not configured as I/O. Note: Bit 4 and Bit 5 must be set to 1. DIO_DIR2[1:0] SFRA1[5:0] R/W Programs the direction of DIO pins 17 and 16. 1 indicates output. Ignored if the pin is not configured as I/O. Note: Bit 2, Bit 3, Bit 4 and Bit 5 must be set to 1.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 FLSH_ERASE SFR 94 W Flash Erase Initiate FLSH_ERASE is used to initiate either the Flash Mass Erase cycle or the Flash Page Erase cycle. Specific patterns are expected for FLSH_ERASE in order to initiate the appropriate Erase cycle. (default = 0x00). 0x55 – Initiate Flash Page Erase cycle. Must be proceeded by a write to FLSH_PGADR @ SFR 0xB7. 0xAA – Initiate Flash Mass Erase cycle.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 LCD_MODE[2:0 ] 2021[4:2] R/ W The LCD bias mode. 000: 4 states, 1/3 bias 001: 3 states, 1/3 bias 010: 2 states, ½ bias 011: 3 states, ½ bias 100: static display LCD_NUM[4:0] 2020[4:0] R/ W Controls the number of dual-purpose LCD/DIO pins to be configured as LCD. LCD_NUM will be between 0 and 18. The first dual-purpose pin to be allocated as LCD is SEG37/DIO17.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 W output. OPT_TXDIS 2008[5] R/ W Tristates the OPT_TX output. PREBOOT SFR B2[7] R Indicates that the preboot sequence is active. PRE_SAMPS[1:0] 2001[7:6] R/ W Together w/ SUM_CYCLES, this value determines the number of samples in one sum cycle between XFER interrupts for the CE. Number of samples = PRE_SAMPS*SUM_CYCLES.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 SSI_RDYEN 2070[1] R/W SRDY enable. If SSI_RDYEN and SSI_EN are high, the SEG6 pin is configured as SRDY. Otherwise, it is an LCD driver. SSI_RDYPOL 2070[0] R/W SRDY polarity: 0: positive, 1: negative SSI_BEG[7:0] SSI_END[7:0] 2071[7:0] 2072[7:0] R/W The beginning and ending address of the transfer region of the CE data memory.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 CE Program and Environment CE Program The CE program is supplied by TERIDIAN 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. The description in this section applies to CE code revision CE11B05. Formats All CE words are 4 bytes.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Environment Before starting the CE using the CE_EN bit, the MPU has to establish the proper environment for the CE by implementing the following steps: • Loading the image for the CE code into CE PRAM. • Loading the CE data into CE DRAM. • Establishing the equation to be applied in EQU. • Establishing the accumulation period and number of samples in PRE_SAMPS and SUM_CYCLES.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 CE RAM Locations CE Front End Data (Raw Data) Access to the raw data provided by the AFE is possible by reading addresses 0 through 7, as listed below. Address (HEX) Name Description 00 01 02 03 04 05 06 07 IA VA IB TEMP -- Phase A current Phase A voltage Phase B current Reserved Reserved Reserved Temperature Reserved CE Status Word Since the CE_BUSY interrupt occurs at 2520.6Hz (or at 3276.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 For generating proper status information, the CE is initialized by the MPU using SAG_THR (default of 80V RMS at the meter input if VMAX=600V) and SAG_CNT (default 80 samples). Using the default value for SAG_CNT, the peak-to-peak signal has to be below SAG_THR value for 32 milliseconds to activate the SAG_X status bits.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Instantaneous Power Measurement Variables The FREQSEL Register selects the input phase used for frequency measurement and for the MAIN_EDGE counter. The frequency measurement is implemented using the frequency locked loop of the CE for the selected phase. IxSQSUM_X and VxSQSUM are the squared current and voltage samples acquired during the last accumulation interval.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Temperature Measurement and Temperature Compensation Input variables: TEMP_NOM is the reference value for temperature measurement, i.e. when this value is set with TEMP_RAW_X at known temperature. The 71M6511/6511H measures temperature with reference to this value. DEGSCALE is the slope or rate of temperature increase or decrease from the TEMP_NOM for TEMP_X measurement.
M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 GAIN_ADJ is a scaling factor for power measurements based on temperature (when in internal temperature compensation mode). In general, for higher temperatures it is lower than 16384 and higher than 16384 for lower temperatures. GAIN_ADJ is mainly dependent on the PPMC, PPMC2 and TEMP_X register values. This parameter is automatically computed by the CE and is used by the CE for temperature compensation.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 CE Address 0x28 0x29 Name PULSE_SLOW PULSE_FAST Default 1 1 Description When PULSE_SLOW > 0, the pulse generator input is reduced 64x. When PULSE_FAST > 0, the pulse generator input is increased 16x. These two parameters control the pulse gain factor X (see table below). Allowed values are either 1 or –1. X PULSE_SLOW PULSE_FAST 1.5 * 22 = 6 -1 -1 6 -1 1 -4 1.5 * 2 = 0.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Current Shunt Variables Input variables: IA_SHUNT and IB_SHUNT can configure the current inputs to accept shunt resistor sensors. In this case the CE provides an additional gain of 8 to the current inputs. This will enable the pulse rate to change by 8 times. In order to maintain a normal pulse rate WRATE may have to be decreased by 8 times.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Other CE Parameters The table below shows CE parameters used for suppression of noise due to scaling and truncation effects as well as scaling factors. CE Address Name Default 2F 22 QUANTA QUANTB 0 0 These parameters are added to the Watt calculation to compensate for input noise and truncation. -10 LSB=(VMAX*IMAX / IA_8) *7.4162*10 W for phase A, and -10 LSB=(VMAX*IMAX / IB_8) *7.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 TYPICAL PERFORMANCE DATA Wh Accuracy at Room Temperature Figure 24: Wh Accuracy, 0.3A - 200A/240V VARh Accuracy at Room Temperature Figure 25: VARh Accuracy for 0.3A to 200A/240V Performance Page: 75 of 98 © 2005–2010 Teridian Semiconductor Corporation V2.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Harmonic Performance 2 1 0 Error [%] -1 -2 -3 50Hz Harmonic Data 60Hz Harmonic Data -4 -5 -6 -7 -8 1 3 5 7 9 11 13 15 17 19 21 23 25 Harmonic Test performed at current distortion amplitude of 40% and voltage distortion amplitude of 10% as per IEC 62053, part 22.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 APPLICATION INFORMATION Connection of Sensors (CT, Resistive Shunt, Rogowski Coil) Figure 27 and Figure 28 show how resistive dividers, current transformers, restive shunts, and Rogowski coils are connected to the voltage and current inputs of the 71M6511. The analog input pins of the 71M6511 are designed for sensors with low source impedance.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Temperature Compensation and Mains Frequency Stabilization for the RTC The accuracy of the RTC depends on the stability of the external crystal. Crystals vary in terms of initial accuracy as well as in terms of behavior over temperature. The flexibility provided by the MPU allows for compensation of the RTC using the substrate temperature.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 When applying the inverted coefficients, a curve (see Figure 30) will result that effectively neutralizes the original crystal characteristics. The frequencies were calculated using the fit coefficients as follows: a b c f = f nom ⋅ 1 + 6 + T 6 + T 2 6 10 10 10 32768.5 32768.4 32768.3 32768.2 32768.1 32768 32767.9 32767.8 crystal 32767.7 curve fit 32767.6 inverse curve 32767.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Crystal Oscillator The oscillator drives a standard 32.768 kHz watch crystal. The oscillator has been designed specifically to handle these crystals and is compatible with their high impedance and limited power handling capability. The oscillator power dissipation is very low to maximize the lifetime of any battery backup device attached to VBAT.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 V3P3 71M6511 LCD_BSTEN VDRV V3P3 5VDC VLCD Contrast LCD_FS ON/OFF LCD_EN LCD type LCD_MODE 5V LCD segments commons Figure 32: LCD Boost Circuit Page: 81 of 98 © 2005–2010 Teridian Semiconductor Corporation V2.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Connecting I2C EEPROMs I2C EEPROMs or other I2C compatible devices should be connected to the DIO pins DIO4 and DIO5, as shown in Figure 33. Pull-up resistors of roughly 3kΩ to V3P3 should be used for both SCL and SDA signals. The DIO_EEX register in I/O RAM must be set to 1 in order to convert the DIO pins DIO4 and DIO5 to I2C pins SCL and SDA.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Optical Interface The pins OPT_TX and OPT_RX can be used for a regular serial interface, e.g. by connecting a RS_232 transceiver, or they can be used to directly operate optical components, e.g. an infrared diode and phototransistor implementing a FLAG interface. Figure 35 shows the basic connections. The OPT_TX pin becomes active when the I/O RAM register OPT_TXDIS is set to 0.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 71M6511 V3P3 V3P3 10Ω R1 200Ω RESETZ R2 Pushbutton C1 1nF DGND Figure 37: External Components for RESETZ Flash Programming Operational or test code can be programmed into the flash memory using either an in-circuit emulator or the Flash Download Board Module (FDBM) available from TERIDIAN. The flash programming procedure uses the E_RTS, E_RXTX, and E_TCLK pins.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 SPECIFICATIONS Electrical Specifications ABSOLUTE MAXIMUM RATINGS Supplies and Ground Pins: −0.5V to 4.6V 0V to 0.5V -0.5V to 7V -0.5V to 4.6V -0.5V to +0.5V V3P3D, V3P3A | V3P3D - V3P3A | VLCD VBAT GNDD Analog Output Pins: -1mA to 1mA, -0.5 to V3P3A+0.5V -1mA to 1mA, -0.5V to 3.0V VREF, VBIAS V2P5 Analog Input Pins: IA, VA, IB XIN, XOUT RX -0.5V to V3P3A+0.5V -0.5V to 3.0V -0.5V to 3.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 RECOMMENDED OPERATING CONDITIONS PARAMETER CONDITION MIN TYP MAX UNIT 3.3V Supply Voltage † (V3P3A, V3P3D) Normal Operation 3.0 3.3 3.6 V 0 3.45 V 2.9 5.5 V Battery Backup VLCD No Battery VBAT Battery Backup Operating Temperature † Externally Connect to V3P3D 2.0 3.8 V -40 85 ºC V3P3A and V3P3D should be shorted together on the circuit board.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 SUPPLY CURRENT PARAMETER CONDITION V3P3A + V3P3D + VLCD current Normal Operation, V3P3A=V3P3D=VLCD=3.3V CKMPU=614kHz VBAT=3.6V No flash memory write V3P3A current V3P3D current VLCD current VBAT current V3P3D current V3P3A + V3P3D current 1 MIN TYP MAX UNIT 6.4 9.5 mA 3.7 4.3 mA 2.5 4.8 mA 0.2 0.4 mA 300 nA -300 Normal Operation, V3P3A=V3P3D=VLCD=3.3V VBAT=3.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 VREF, VBIAS Unless otherwise specified, VREF_DIS=0 PARAMETER VREF output voltage, VNOM(25) VREF chop step VREF output impedance A VNOM definition CONDITION Ta = 22ºC MIN 1.193 TYP 1.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 ADC CONVERTER, VDD REFERENCED FIR_LEN=0, VREF_DIS=0, VDDREFZ=0 PARAMETER Recommended Input Range (Vin-V3P3A) Voltage to Current Crosstalk: CONDITION MIN TYP -250 Vin = 200mV peak, 65Hz, on VA 10 6 *Vcrosstalk cos(∠Vin − ∠Vcrosstalk ) Vcrosstalk = largest Vin MAX 250 1 10 μV/V 90 dB dB kΩ 1 -10 UNIT mV peak measurement on IA or IB THD (First 10 harmonics) 250mV- peak 20mV- peak Input Impe
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 LCD BOOST PARAMETER VDRV Frequency VDRV Sink Current VDRV Source Current VLCD Target Voltage VLCD Input Current CONDITION Vol=1.5V Voh=1.5V MIN TYP OSC/2 1.2 1.2 4.5 VLCD=5.0V, LCD_FS=1F, LCD_MODE=0,1,2,3 LCD_BSTEN=1 MAX 2.75 2.6 5.5 UNIT Hz mA mA V 450 μA MAX 0 0.2 UNIT V V +10 +10 % % +15 +10 30 % % kΩ LCD DRIVERS Applies to all COM and SEG pins. Unless otherwise stated, VLCD=5.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 RAM AND FLASH MEMORY PARAMETER CONDITION CKMPU = 4.9MHz CKMPU = 1.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Packaging Information 64-Pin LQFP PACKAGE OUTLINE (Bottom View). NOTE: Controlling dimensions are in mm. 11.7 12.3 11.7 + 12.3 PIN No. 1 Indicator 9.8 10.2 0.50 Typ. 0.60 Typ. Page: 92 of 98 0.00 0.20 0.14 0.28 1.40 1.60 © 2005–2010 Teridian Semiconductor Corporation V2.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 VBIAS VA V3P3A GNDA 51 50 49 53 52 IA IB 54 OPT_RX 57 V1 GNDA 58 VREF XIN 59 55 TEST 60 56 VLCD XOUT 61 E_RST GNDD 1 48 RESETZ E_RXTX 2 47 V2P5 OPT_TX 3 46 VBAT TMUXOUT 4 45 RX TX 5 44 SEG31/DIO11 SEG3/SCLK 6 43 SEG30/DIO10 VDRV 7 42 SEG29/DIO9 CKTEST 8 41 SEG28/DIO8 V3P3D 9 40 SEG27/DIO7 TERIDIAN 71M6511-IGT 30 31 SEG13 SEG14 SEG15 29 S
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Pin Descriptions Power/Ground Pins Name Pin # Type GNDA 49, 58 P Description Analog ground: This pin should be connected directly to the ground plane. GNDD 1 P Digital ground: This pin should be connected directly to the ground plane. V3P3A 50 P Analog power supply: A 3.3V power supply should be connected to this pin. V3P3D 9 P VBAT 46 P V2P5 47 O Digital power supply: A 3.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 Digital Pins: Name COM3, COM2, COM1, COM0 SEG19…SEG8, SEG2…SEG0 SEG24/DIO4… SEG31/DIO11, SEG34/DIO14… SEG37/DIO17 SEG7/ MUX_SYNC Pin # 16 15 14 13 See pinout Type Circuit O 5 LCD Common Outputs: These 4 pins provide the select signals for the LCD display. O 5 Dedicated LCD Segment Output pins.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 I/O Equivalent Circuits: V3P3D V3P3D V3P3A 110K Digital Input Pin CMOS Input LCD SEG Output Pin LCD Driver from internal reference VREF Pin GNDD GNDD Digital Input Equivalent Circuit Type 1: Standard Digital Input or pin configured as DIO Input with Internal Pull-Up GNDA LCD Output Equivalent Circuit Type 5: LCD SEG or pin configured as LCD SEG VREF Equivalent Circuit Type 9: VREF V3P3D V3P3A
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 ORDERING INFORMATION ORDERING NUMBER PACKAGE MARKING 71M6511-IGT 71M6511-IGT 71M6511 64-pin Lead-Free LQFP, 0.5% accuracy 71M6511-IGT/F 71M6511-IGT 71M6511 64-pin LQFP, 0.5% accuracy, T&R 71M6511-IGTR 71M6511-IGT 71M6511-IGTR/F 71M6511-IGT 71M6511H-IGT 71M6511H-IGT 71M6511H 64-pin Lead-Free LQFP, 0.1% accuracy 71M6511H-IGT/F 71M6511H-IGT 71M6511H 64-pin LQFP, 0.
71M6511/71M6511H Single-Phase Energy Meter IC A Maxim Integrated Products Brand DATA SHEET NOVEMBER 2010 REVISION HISTORY Revision Date Description 2.7 11/10 Added guaranteed by design specifications to the electrical specifications Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are implied. Maxim reserves the right to change the circuitry and specifications without notice at any time.