|
| 1 | + |
| 2 | + |
| 3 | +#* STATUS REGISTERS *# |
| 4 | +MeterEn = 0x00 # Metering Enable |
| 5 | +ChannelMapI = 0x01 # Current Channel Mapping Configuration |
| 6 | +ChannelMapU = 0x02 # Voltage Channel Mapping Configuration |
| 7 | +SagPeakDetCfg = 0x05 # Sag and Peak Detector Period Configuration |
| 8 | +OVth = 0x06 # Over Voltage Threshold |
| 9 | +ZXConfig = 0x07 # Zero-Crossing Config |
| 10 | +SagTh = 0x08 # Voltage Sag Th |
| 11 | +PhaseLossTh = 0x09 # Voltage Phase Losing Th |
| 12 | +INWarnTh = 0x0A # Neutral Current (Calculated) Warning Threshold |
| 13 | +OIth = 0x0B # Over Current Threshold |
| 14 | +FreqLoTh = 0x0C # Low Threshold for Frequency Detection |
| 15 | +FreqHiTh = 0x0D # High Threshold for Frequency Detection |
| 16 | +PMPwrCtrl = 0x0E # Partial Measurement Mode Power Control |
| 17 | +IRQ0MergeCfg = 0x0F # IRQ0 Merge Configuration |
| 18 | + |
| 19 | +#* EMM STATUS REGISTERS *# |
| 20 | +SoftReset = 0x70 # Software Reset |
| 21 | +EMMState0 = 0x71 # EMM State 0 |
| 22 | +EMMState1 = 0x72 # EMM State 1 |
| 23 | +EMMIntState0 = 0x73 # EMM Interrupt Status 0 |
| 24 | +EMMIntState1 = 0x74 # EMM Interrupt Status 1 |
| 25 | +EMMIntEn0 = 0x75 # EMM Interrupt Enable 0 |
| 26 | +EMMIntEn1 = 0x76 # EMM Interrupt Enable 1 |
| 27 | +LastSPIData = 0x78 # Last Read/Write SPI Value |
| 28 | +CRCErrStatus = 0x79 # CRC Error Status |
| 29 | +CRCDigest = 0x7A # CRC Digest |
| 30 | +CfgRegAccEn = 0x7F # Configure Register Access Enable |
| 31 | + |
| 32 | +#* LOW POWER MODE REGISTERS - NOT USED *# |
| 33 | +DetectCtrl = 0x10 |
| 34 | +DetectTh1 = 0x11 |
| 35 | +DetectTh2 = 0x12 |
| 36 | +DetectTh3 = 0x13 |
| 37 | +PMOffsetA = 0x14 |
| 38 | +PMOffsetB = 0x15 |
| 39 | +PMOffsetC = 0x16 |
| 40 | +PMPGA = 0x17 |
| 41 | +PMIrmsA = 0x18 |
| 42 | +PMIrmsB = 0x19 |
| 43 | +PMIrmsC = 0x1A |
| 44 | +PMConfig = 0x10B |
| 45 | +PMAvgSamples = 0x1C |
| 46 | +PMIrmsLSB = 0x1D |
| 47 | + |
| 48 | +#* CONFIGURATION REGISTERS *# |
| 49 | +PLconstH = 0x31 # High Word of PL_Constant |
| 50 | +PLconstL = 0x32 # Low Word of PL_Constant |
| 51 | +MMode0 = 0x33 # Metering Mode Config |
| 52 | +MMode1 = 0x34 # PGA Gain Configuration for Current Channels |
| 53 | +PStartTh = 0x35 # Startup Power Th (P) |
| 54 | +QStartTh = 0x36 # Startup Power Th (Q) |
| 55 | +SStartTh = 0x37 # Startup Power Th (S) |
| 56 | +PPhaseTh = 0x38 # Startup Power Accum Th (P) |
| 57 | +QPhaseTh = 0x39 # Startup Power Accum Th (Q) |
| 58 | +SPhaseTh = 0x3A # Startup Power Accum Th (S) |
| 59 | + |
| 60 | +#* CALIBRATION REGISTERS *# |
| 61 | +PoffsetA = 0x41 # A Line Power Offset (P) |
| 62 | +QoffsetA = 0x42 # A Line Power Offset (Q) |
| 63 | +PoffsetB = 0x43 # B Line Power Offset (P) |
| 64 | +QoffsetB = 0x44 # B Line Power Offset (Q) |
| 65 | +PoffsetC = 0x45 # C Line Power Offset (P) |
| 66 | +QoffsetC = 0x46 # C Line Power Offset (Q) |
| 67 | +PQGainA = 0x47 # A Line Calibration Gain |
| 68 | +PhiA = 0x48 # A Line Calibration Angle |
| 69 | +PQGainB = 0x49 # B Line Calibration Gain |
| 70 | +PhiB = 0x4A # B Line Calibration Angle |
| 71 | +PQGainC = 0x4B # C Line Calibration Gain |
| 72 | +PhiC = 0x4C # C Line Calibration Angle |
| 73 | + |
| 74 | +#* FUNDAMENTAL#HARMONIC ENERGY CALIBRATION REGISTERS *# |
| 75 | +POffsetAF = 0x51 # A Fund Power Offset (P) |
| 76 | +POffsetBF = 0x52 # B Fund Power Offset (P) |
| 77 | +POffsetCF = 0x53 # C Fund Power Offset (P) |
| 78 | +PGainAF = 0x54 # A Fund Power Gain (P) |
| 79 | +PGainBF = 0x55 # B Fund Power Gain (P) |
| 80 | +PGainCF = 0x56 # C Fund Power Gain (P) |
| 81 | + |
| 82 | +#* MEASUREMENT CALIBRATION REGISTERS *# |
| 83 | +UgainA = 0x61 # A Voltage RMS Gain |
| 84 | +IgainA = 0x62 # A Current RMS Gain |
| 85 | +UoffsetA = 0x63 # A Voltage Offset |
| 86 | +IoffsetA = 0x64 # A Current Offset |
| 87 | +UgainB = 0x65 # B Voltage RMS Gain |
| 88 | +IgainB = 0x66 # B Current RMS Gain |
| 89 | +UoffsetB = 0x67 # B Voltage Offset |
| 90 | +IoffsetB = 0x68 # B Current Offset |
| 91 | +UgainC = 0x69 # C Voltage RMS Gain |
| 92 | +IgainC = 0x6A # C Current RMS Gain |
| 93 | +UoffsetC = 0x6B # C Voltage Offset |
| 94 | +IoffsetC = 0x6C # C Current Offset |
| 95 | +IoffsetN = 0x6E # N Current Offset |
| 96 | + |
| 97 | +#* ENERGY REGISTERS *# |
| 98 | +APenergyT = 0x80 # Total Forward Active |
| 99 | +APenergyA = 0x81 # A Forward Active |
| 100 | +APenergyB = 0x82 # B Forward Active |
| 101 | +APenergyC = 0x83 # C Forward Active |
| 102 | +ANenergyT = 0x84 # Total Reverse Active |
| 103 | +ANenergyA = 0x85 # A Reverse Active |
| 104 | +ANenergyB = 0x86 # B Reverse Active |
| 105 | +ANenergyC = 0x87 # C Reverse Active |
| 106 | +RPenergyT = 0x88 # Total Forward Reactive |
| 107 | +RPenergyA = 0x89 # A Forward Reactive |
| 108 | +RPenergyB = 0x8A # B Forward Reactive |
| 109 | +RPenergyC = 0x8B # C Forward Reactive |
| 110 | +RNenergyT = 0x8C # Total Reverse Reactive |
| 111 | +RNenergyA = 0x8D # A Reverse Reactive |
| 112 | +RNenergyB = 0x8E # B Reverse Reactive |
| 113 | +RNenergyC = 0x8F # C Reverse Reactive |
| 114 | + |
| 115 | +SAenergyT = 0x90 # Total Apparent Energy |
| 116 | +SenergyA = 0x91 # A Apparent Energy |
| 117 | +SenergyB = 0x92 # B Apparent Energy |
| 118 | +SenergyC = 0x93 # C Apparent Energy |
| 119 | + |
| 120 | + |
| 121 | +#* FUNDAMENTAL # HARMONIC ENERGY REGISTERS *# |
| 122 | +APenergyTF = 0xA0 # Total Forward Fund. Energy |
| 123 | +APenergyAF = 0xA1 # A Forward Fund. Energy |
| 124 | +APenergyBF = 0xA2 # B Forward Fund. Energy |
| 125 | +APenergyCF = 0xA3 # C Forward Fund. Energy |
| 126 | +ANenergyTF = 0xA4 # Total Reverse Fund Energy |
| 127 | +ANenergyAF = 0xA5 # A Reverse Fund. Energy |
| 128 | +ANenergyBF = 0xA6 # B Reverse Fund. Energy |
| 129 | +ANenergyCF = 0xA7 # C Reverse Fund. Energy |
| 130 | +APenergyTH = 0xA8 # Total Forward Harm. Energy |
| 131 | +APenergyAH = 0xA9 # A Forward Harm. Energy |
| 132 | +APenergyBH = 0xAA # B Forward Harm. Energy |
| 133 | +APenergyCH = 0xAB # C Forward Harm. Energy |
| 134 | +ANenergyTH = 0xAC # Total Reverse Harm. Energy |
| 135 | +ANenergyAH = 0xAD # A Reverse Harm. Energy |
| 136 | +ANenergyBH = 0xAE # B Reverse Harm. Energy |
| 137 | +ANenergyCH = 0xAF # C Reverse Harm. Energy |
| 138 | + |
| 139 | +#* POWER & P.F. REGISTERS *# |
| 140 | +PmeanT = 0xB0 # Total Mean Power (P) |
| 141 | +PmeanA = 0xB1 # A Mean Power (P) |
| 142 | +PmeanB = 0xB2 # B Mean Power (P) |
| 143 | +PmeanC = 0xB3 # C Mean Power (P) |
| 144 | +QmeanT = 0xB4 # Total Mean Power (Q) |
| 145 | +QmeanA = 0xB5 # A Mean Power (Q) |
| 146 | +QmeanB = 0xB6 # B Mean Power (Q) |
| 147 | +QmeanC = 0xB7 # C Mean Power (Q) |
| 148 | +SmeanT = 0xB8 # Total Mean Power (S) |
| 149 | +SmeanA = 0xB9 # A Mean Power (S) |
| 150 | +SmeanB = 0xBA # B Mean Power (S) |
| 151 | +SmeanC = 0xBB # C Mean Power (S) |
| 152 | +PFmeanT = 0xBC # Mean Power Factor |
| 153 | +PFmeanA = 0xBD # A Power Factor |
| 154 | +PFmeanB = 0xBE # B Power Factor |
| 155 | +PFmeanC = 0xBF # C Power Factor |
| 156 | + |
| 157 | +PmeanTLSB = 0xC0 # Lower Word (Tot. Act. Power) |
| 158 | +PmeanALSB = 0xC1 # Lower Word (A Act. Power) |
| 159 | +PmeanBLSB = 0xC2 # Lower Word (B Act. Power) |
| 160 | +PmeanCLSB = 0xC3 # Lower Word (C Act. Power) |
| 161 | +QmeanTLSB = 0xC4 # Lower Word (Tot. React. Power) |
| 162 | +QmeanALSB = 0xC5 # Lower Word (A React. Power) |
| 163 | +QmeanBLSB = 0xC6 # Lower Word (B React. Power) |
| 164 | +QmeanCLSB = 0xC7 # Lower Word (C React. Power) |
| 165 | +SAmeanTLSB = 0xC8 # Lower Word (Tot. App. Power) |
| 166 | +SmeanALSB = 0xC9 # Lower Word (A App. Power) |
| 167 | +SmeanBLSB = 0xCA # Lower Word (B App. Power) |
| 168 | +SmeanCLSB = 0xCB # Lower Word (C App. Power) |
| 169 | + |
| 170 | +#* FUND#HARM POWER & V#I RMS REGISTERS *# |
| 171 | +PmeanTF = 0xD0 # Total Active Fund. Power |
| 172 | +PmeanAF = 0xD1 # A Active Fund. Power |
| 173 | +PmeanBF = 0xD2 # B Active Fund. Power |
| 174 | +PmeanCF = 0xD3 # C Active Fund. Power |
| 175 | +PmeanTH = 0xD4 # Total Active Harm. Power |
| 176 | +PmeanAH = 0xD5 # A Active Harm. Power |
| 177 | +PmeanBH = 0xD6 # B Active Harm. Power |
| 178 | +PmeanCH = 0xD7 # C Active Harm. Power |
| 179 | +UrmsA = 0xD9 # A RMS Voltage |
| 180 | +UrmsB = 0xDA # B RMS Voltage |
| 181 | +UrmsC = 0xDB # C RMS Voltage |
| 182 | +IrmsA = 0xDD # A RMS Current |
| 183 | +IrmsB = 0xDE # B RMS Current |
| 184 | +IrmsC = 0xDF # C RMS Current |
| 185 | +IrmsN = 0xD8 # Calculated N RMS Current |
| 186 | + |
| 187 | +PmeanTFLSB = 0xE0 # Lower Word (Tot. Act. Fund. Power) |
| 188 | +PmeanAFLSB = 0xE1 # Lower Word (A Act. Fund. Power) |
| 189 | +PmeanBFLSB = 0xE2 # Lower Word (B Act. Fund. Power) |
| 190 | +PmeanCFLSB = 0xE3 # Lower Word (C Act. Fund. Power) |
| 191 | +PmeanTHLSB = 0xE4 # Lower Word (Tot. Act. Harm. Power) |
| 192 | +PmeanAHLSB = 0xE5 # Lower Word (A Act. Harm. Power) |
| 193 | +PmeanBHLSB = 0xE6 # Lower Word (B Act. Harm. Power) |
| 194 | +PmeanCHLSB = 0xE7 # Lower Word (C Act. Harm. Power) |
| 195 | +# 0xE8 ## Reserved Register |
| 196 | +UrmsALSB = 0xE9 # Lower Word (A RMS Voltage) |
| 197 | +UrmsBLSB = 0xEA # Lower Word (B RMS Voltage) |
| 198 | +UrmsCLSB = 0xEB # Lower Word (C RMS Voltage) |
| 199 | +# 0xEC ## Reserved Register |
| 200 | +IrmsALSB = 0xED # Lower Word (A RMS Current) |
| 201 | +IrmsBLSB = 0xEE # Lower Word (B RMS Current) |
| 202 | +IrmsCLSB = 0xEF # Lower Word (C RMS Current) |
| 203 | + |
| 204 | +#* THD, FREQUENCY, ANGLE & TEMPTEMP REGISTERS*# |
| 205 | +THDNUA = 0xF1 # A Voltage THD+N |
| 206 | +THDNUB = 0xF2 # B Voltage THD+N |
| 207 | +THDNUC = 0xF3 # C Voltage THD+N |
| 208 | +# 0xF4 ## Reserved Register |
| 209 | +THDNIA = 0xF5 # A Current THD+N |
| 210 | +THDNIB = 0xF6 # B Current THD+N |
| 211 | +THDNIC = 0xF7 # C Current THD+N |
| 212 | +Freq = 0xF8 # Frequency |
| 213 | +PAngleA = 0xF9 # A Mean Phase Angle |
| 214 | +PAngleB = 0xFA # B Mean Phase Angle |
| 215 | +PAngleC = 0xFB # C Mean Phase Angle |
| 216 | +Temp = 0xFC # Measured Temperature |
| 217 | +UangleA = 0xFD # A Voltage Phase Angle |
| 218 | +UangleB = 0xFE # B Voltage Phase Angle |
| 219 | +UangleC = 0xFF # C Voltage Phase Angle |
0 commit comments