link to page 1 link to page 2 link to page 2 link to page 2 link to page 7 link to page 8 link to page 10 link to page 10 link to page 10 link to page 11 link to page 12 link to page 12 link to page 12 link to page 13 link to page 13 link to page 13 link to page 14 link to page 14 link to page 15 link to page 15 link to page 15 link to page 16 link to page 17 link to page 18 link to page 18 link to page 18 link to page 19 link to page 19 link to page 20 link to page 20 link to page 21 link to page 21 link to page 22 link to page 26 link to page 26 link to page 34 link to page 39 link to page 44 Table of ContentsFeatures... 1Application .. 2 Description .. 2 Block Diagram... 21 Pin Assignment .. 72 Pin Description ... 83 Functional Description .. 10 3.1 Dynamic Metering Range .. 10 3.2 Startup and No-Load Power .. 10 3.3 Energy Registers ... 11 3.4 N Line Metering and Anti-Tampering ... 12 3.4.1 Metering Mode and L/N Line Current Sampling Gain Configuration ... 12 3.4.2 Anti-Tampering Mode .. 12 3.5 Measurement and Zero-Crossing .. 13 3.5.1 Measurement ... 13 3.5.2 Zero-Crossing .. 13 3.6 Calibration .. 14 3.7 Reset .. 14 4 Interface .. 15 4.1 SPI Interface .. 15 4.1.1 Four-Wire Mode ... 15 4.1.2 Three-Wire Mode ... 16 4.1.3 Timeout and Protection ... 17 4.2 UART Interface .. 18 4.2.1 Byte Level Timing .. 18 4.2.2 Write Transaction .. 18 4.2.3 Read transaction ... 19 4.2.4 Checksum .. 19 4.3 WarnOut Pin for Fatal Error Warning ... 20 4.4 Low Cost Implementation in Isolation with MCU .. 20 5 Register ... 21 5.1 Register List ... 21 5.2 Status and Special Register ... 22 5.3 Metering/ Measurement Calibration and Configuration ... 26 5.3.1 Metering Calibration and Configuration Register ... 26 5.3.2 Measurement Calibration Register .. 34 5.4 Energy Register ... 39 5.5 Measurement Register ... 44 M90E26 [DATASHEET] 3 Atmel-46002B-SE-M90E26-Datasheet_110714 Document Outline Features Application Description Block Diagram 1 Pin Assignment 2 Pin Description 3 Functional Description 3.1 Dynamic Metering Range 3.2 Startup and No-Load Power 3.3 Energy Registers 3.4 N Line Metering and Anti-Tampering 3.4.1 Metering Mode and L/N Line Current Sampling Gain Configuration 3.4.2 Anti-Tampering Mode Threshold Compare Method Special Treatment at Low Power 3.5 Measurement and Zero-Crossing 3.5.1 Measurement 3.5.2 Zero-Crossing 3.6 Calibration 3.7 Reset 4 Interface 4.1 SPI Interface 4.1.1 Four-Wire Mode Read Sequence Write Sequence 4.1.2 Three-Wire Mode 4.1.3 Timeout and Protection 4.2 UART Interface 4.2.1 Byte Level Timing 4.2.2 Write Transaction 4.2.3 Read transaction 4.2.4 Checksum 4.3 WarnOut Pin for Fatal Error Warning 4.4 Low Cost Implementation in Isolation with MCU 5 Register 5.1 Register List 5.2 Status and Special Register SoftReset Software Reset SysStatus System Status FuncEn Function Enable SagTh Voltage Sag Threshold SmallPMod Small-Power Mode LastData Last Read/Write SPI/UART Value 5.3 Metering/ Measurement Calibration and Configuration 5.3.1 Metering Calibration and Configuration Register LSB RMS/Power 16-bit LSB CalStart Calibration Start Command PLconstH High Word of PL_Constant PLconstL Low Word of PL_Constant Lgain L Line Calibration Gain Lphi L Line Calibration Angle Ngain N Line Calibration Gain Nphi N Line Calibration Angle PStartTh Active Startup Power Threshold PNolTh Active No-Load Power Threshold QStartTh Reactive Startup Power Threshold QNolTh Reactive No-Load Power Threshold MMode Metering Mode Configuration CS1 Checksum 1 5.3.2 Measurement Calibration Register AdjStart Measurement Calibration Start Command Ugain Voltage rms Gain IgainL L Line Current rms Gain IgainN N Line Current rms Gain Uoffset Voltage Offset IoffsetL L Line Current Offset IoffsetN N Line Current Offset PoffsetL L Line Active Power Offset QoffsetL L Line Reactive Power Offset PoffsetN N Line Active Power Offset QoffsetN N Line Reactive Power Offset CS2 Checksum 2 5.4 Energy Register Theory of Energy Registers APenergy Forward Active Energy ANenergy Reverse Active Energy ATenergy Absolute Active Energy RPenergy Forward (Inductive) Reactive Energy RNenergy Reverse (Capacitive) Reactive Energy RTenergy Absolute Reactive Energy EnStatus Metering Status 5.5 Measurement Register Irms L Line Current rms Urms Voltage rms Pmean L Line Mean Active Power Qmean L Line Mean Reactive Power Freq Voltage Frequency PowerF L Line Power Factor Pangle Phase Angle between Voltage and L Line Current Smean L Line Mean Apparent Power Irms2 N Line Current rms Pmean2 N Line Mean Active Power Qmean2 N Line Mean Reactive Power PowerF2 N Line Power Factor Pangle2 Phase Angle between Voltage and N Line Current Smean2 N Line Mean Apparent Power 6 Electrical Specification 6.1 Electrical Specification 6.2 SPI Interface Timing 6.3 Power On Reset Timing 6.4 Zero-Crossing Timing 6.5 Voltage Sag Timing 6.6 Pulse Output 6.7 Absolute Maximum Rating Ordering Information Packaging Drawings Revision History