![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
april 2014 docid026176 rev 1 1/20 AN4470 application note the stpm3x application calibration introduction the stpm3x is an assp family designed for high accuracy measurement of power and energy in power line systems using the rogowski coil, current transformer or shunt current sensors. the stpm3x devices embed a full set of calibration and compensation parameters which allow the meter to fit tight accuracy standards (en 50470x, iec 62053-2x, ansi12.2x for ac watt meters) using low cost components, after a fast calibration procedure explained in this document. according to energy meter measurements, the customer has to pay for energy consumption. the correct operation of the meter, as well as its accuracy and reliability are very important features both for the customer and the electricity company. that?s why the quality control of meter is so important and strict. special care has to be given both to the design stage and the calibration procedure. the former allows the right dimensioning of analog front-end components so to fit the current dynamics and the meter constant pulse. the latter impacts on many meter key ratings directly. www.st.com
contents AN4470 2/20 docid026176 rev 1 contents 1 calibration principles and underlying theory . . . . . . . . . . . . . . . . . . . . . 3 1.1 principles of digital energy measurement system . . . . . . . . . . . . . . . . . . . 3 1.2 accuracy and stability influence factors . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 measuring system design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.1 design example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3 system calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.1 amplitude calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.1.1 step-by-step amplitude calibration procedure . . . . . . . . . . . . . . . . . . . . 13 3.2 phase-shift calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.2.1 step-by-step phase-shift calibration procedure . . . . . . . . . . . . . . . . . . . 16 3.2.2 example: phase-shift compensation . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.3 offset calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.3.1 step-by-step offset calibration procedure . . . . . . . . . . . . . . . . . . . . . . . 18 4 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 docid026176 rev 1 3/20 AN4470 calibration principles and underlying theory 20 1 calibration principles and underlying theory 1.1 principles of digital energy measurement system digital energy measuring system, based on the stpm3x, is composed of: ? analog section with high-resolution sigma-delta analog/digital converters (adcs) ? digital section with powerful digital signal processor (dsp) to perform power and energy measurement, as well as other secondary parameters the main scheme of this system is indicated in figure 1 . figure 1. digital power and energy measurement system voltage and current paths include the following blocks: ? sensors for voltage and current ? signal conditioning (to optimize signals to match the required adc input level) ? adcs common section consists of the following elements: ? system dc reference voltage ? system time base, provided by a quartz crystal oscillator or by an external (mcu) clock a/d converters collect samples of phase current and phase-to-neutral voltage synchronized to the sample clock. outputs of the analog section are samples of voltage and current in digital form with an exact time relationship. the digital section consists of dsp providing real time calculation based on the voltage and current sampled values to calculate power, energy, rms values and other parameters through standard mathematical formulas. a correction algorithm hardwired in dsp corrects amplitude and phase-angle errors of the measured samples, while correction parameters are calculated during the calibration phase. v( ? u ) voltage transducer ? modulator afe analog section ? modulator digital section afe vref clk voltage reference time base current transducer decimation compensation dsp decimation compensation chc chv phc phv ofa ofr ofaf ofs stpm3x output data i(t) v(t) i( ? i ) i?( ? i ?) + i off v?( ? u ) + v off i off (t) v off (t) gipg0304141248lm calibration principles and underlying theory AN4470 4/20 docid026176 rev 1 from the same set of corrected samples, power, energy and all other parameters are calculated in real time through standard mathematical formulas. calculated values are stored in 32-bit registers, from which output pulses are generated with frequency proportional to the measured power. basic definitions and formulas are given below: active power equation 1 apparent power equation 2 reactive power equation 3 power factor equation 4 where: v, i = effective values of voltage and current = v - i current-to-voltage phase-angles v i voltage and current to common reference phase-angles measured active power equation 5 where: v' = v (1 + v ) i' = i (1 + i ) ' = + v = voltage amplitude error i = current amplitude error = current-to-voltage phase-angle error p off = power offset (due to v off , i off residual signals) pvi ? cos ?? = svi ? = qs 2 p 2 ? vi ? sin ?? == pf ? cos p s --- - == p ' v ' i ' ? ' cos p off + ?? = docid026176 rev 1 5/20 AN4470 calibration principles and underlying theory 20 neglecting term v* i, the measured active power is equation 6 1.2 accuracy and stability influence factors all components, which have some influence on system accuracy and stability, can be found in the input analog section. only a limited number of internal components determines system accuracy: ? voltage and current sensors ? signal conditioning section ? oscillator frequency ? internal reference voltage source ? analog-to-digital converter gain to reach the desired stability and linearity, high quality components have to be used. moreover, the circuit has to be carefully designed to minimize some issues such as: short- time repeatability, linearity or immunity degrade. besides, external influences can affect meter accuracy, such as: ? capacitive and inductive coupling to inputs and between phases (crosstalk) ? high frequency electrical and magnetic fields (emc) ? common-mode voltage between inputs and to earth ? low frequency magnetic fields ? measuring setup (wiring, earth connection ground loop) ? source (stability of v, i, , signal quality) ? long-time drift ? humidity undesired external influences should be reduced to minimum through the shielding of the analog part or compensated in hardware or software. if system is not immune to external influences, it can only work under very special conditions and results cannot be reproduced in other locations, where there may be a different measuring setup. in this case, also statistical effects, due to noise, have higher impact on short-time repeatability. external influences on total system accuracy can be more important than the basic specified error. note: the stpm3x does not introduce any crosstalk error neither between voltage and current inputs nor among different phases. however, the voltage front-end handles considerable amplitude voltages, which make it a potential source of noise. disturbances could be readily emitted into current measurement circuitry, interfering with the signal to be measured. typically, this shows a non-linear error at small signal amplitudes and non-unity power factors. at unity power factor, voltage and current signals are in phase, and crosstalk between voltage and current channels appears as a gain error, which can be calibrated. p ' vi 1 v i ++ ()? + () cos ? p off + ?? = measuring system design AN4470 6/20 docid026176 rev 1 when voltage and current are not in phase, crosstalk has a non-linear effect on measurements, which cannot be calibrated. crosstalk is minimized by a well-planned pcb and the correct use of filter components. 2 measuring system design the maximum voltage and current measurement, the number of pulses per kwh (indicated as c p , constant pulses) and the measurement accuracy are the main ratings of the meter. a correct analog front-end component choice allows the line signal to fit the device input dynamics; selectable gain of internal current amplifier scales the input signal according to sensor sensitivity. a typical application example is shown in figure 2 . figure 2. application example the choice of external components in the transduction section of the application is a crucial point of the application design, affecting the precision and the resolution of the whole system. a compromise has to be found among the following needs: 1. maximizing signal-to-noise ratio in the voltage and current channel 2. choosing k s current-to-voltage conversion ratio and the voltage divider ratio, to achieve calibration for a given c p 3. choosing k s to take advantage of the whole current dynamic range according to the desired maximum current and resolution rules for a good application design are described in this section. after the design phase, any tolerance of the real components respect to these values or the device internal load ln stpm3x vip vin r1 r2 iip iin ct spi/uart mcu led c p pulses 230 v rms 80 a rms 300 mv 35 mv 300 mv 300 mv input sensors afe gain converted data 230 v rms 80 a rms output c p pulses gipg0304141257lm docid026176 rev 1 7/20 AN4470 measuring system design 20 parameter drift can be compensated by calibration. this stage is necessary to get the desired c p after calibration. to reach c p target output constant pulse, the analog front-end component dimensioning can be carried out in two ways: ? choosing the value of r 1 voltage divider resistor, given r 2 and k s current sensor sensitivity ? choosing k s given r 1 and r 2 voltage divider resistors calculations for these two methods are developed below: ? first method: constant k s given r 2 (smaller voltage divider resistor), k s (current sensor sensitivity) and c p, target meter constant pulse (pulses/kwh), as calculation inputs, r 1 voltage divider resistor value derives from the following formula: equation 7 ? second method: constant r 1 given r 1 , r 2 (voltage divider resistors) and c p target meter constant pulse (pulses/kwh) as calculation inputs, k s current sensor value derives from the following formula: equation 8 c p value can be scaled by a division factor through lpwx[3:0] bits in dsp_cr1, dsp_cr2 for the two channels according to the device p/n. note: the resistor (in the first method) or the current channel sensor (in the second method) has to be chosen as closer as possible to the target value; small tolerance is compensated by calibration. 2.1 design example this example shows the correct dimensioning of a meter using a current transformer with the following specifications: r 1 r 2 1800 k s a v a i cal v cal i dclk ?? ?? ? ? v 2 ref c p ? ---------------------------------------------------------------------------------------------- - 1 ? ?? ?? ?? [] = k s v 2 ref c p 1r 1 r 2 ? + () ?? 1800 a v a i cal v cal i dclk ??? ? ? ----------------------------------------------------------------------------------- - mv () a ? [] = table 1. example 1 design data parameter value v n nominal voltage 230 v rms i n nominal current 5 a rms i max maximum current 40 a rms c p constant pulses 1000 imp/kwh measuring system design AN4470 8/20 docid026176 rev 1 the values of voltage divider resistors are 770 k and 470 . setting c p = 64000 pulses/kwh (at led_pwm = 1, the device default value) and according to the previous calculation, the following values are obtained: to set the desired led pulse output, a division factor can be set through lpwx[3:0] bits in dsp_cr1 and dsp_cr2 configuration registers. any tolerance, producing c p small variation respect to 1000 imp/kwh, is compensated by calibration. table 2. example 1 calculated data parameter value current sensor sensitivity v max i max k s v 2 ref c p 1r 1 r 2 ? + () ?? 1800 a v a i cal v cal i dclk ??? ? ? ----------------------------------------------------------------------------------- - 3.508 mv a ? = = v max 1 2 -- - v ref a v 2 ? ------------------ - r 1 r 2 + r 2 -------------------- ?? 347.8 v == i max 1 2 -- - v ref a i 2 ? ----------------- 1 k s ----- - ?? 60.5 a == docid026176 rev 1 9/20 AN4470 system calibration 20 3 system calibration the calibration procedure is a key feature among main meter requirements. in fact, it impacts directly on accuracy, cost, manufacturing and reliability of the meter. after the final assembly phase, an energy meter requires a calibration procedure due to unknown tolerances respect to nominal values of the following analog blocks: ? voltage and current sensors ? oscillator frequency ? internal or external reference voltage source ? analog-to-digital converter gain the stpm3x device is composed of independent channels for line voltage and current respectively. each channel includes its own 12-bit digital calibrator to adjust the signal amplitude, digital filter to remove any signal dc component; moreover the device embeds phase calibration registers for each line and power offset compensation registers. calibration is carried out in three steps: ? amplitude calibration is mandatory for class accuracy higher than class 2 ? phase-shift calibration is mandatory for ct-based meters ? power offset calibration (optional for class accuracy higher than 0.2) to calibrate, the following equipment has to be interfaced: ? precision current and voltage source (gen) ? meter under calibration (muc) ? higher class precision energy meter (hpm) (optional) ? calibration process controller (cpc) ? uart/spi interface to the stpm3x device please, see figure 3 : figure 3. meter calibration setup hpm* muc calibration process controller i n v n i rms m2* v rms m1* interface spi / uart pulses error v rms i rms (*) optional equipment optional signal gen gipg0304141302lm system calibration AN4470 10/20 docid026176 rev 1 gen equipment generates voltage and current line signals at the same frequency and a phase-shift between them. hpm and muc equipment measures the same signals, and hpm computes the error by comparing led frequency output. if hpm is not available, amplitude calibration can be performed having either a precise voltage/current generator or a voltage/current rms meter. calibration process controller is an automated system which runs calibration process routines to configure the stpm3x device on muc before calibration, controls gen, monitors hpm equipment, reads from the device, calculates the correction parameters and writes them into the device. since the stpm3x hasn?t any non-volatile memory, cpc should take into account the permanent storage of calculated calibrators. cpc can be interfaced to the stpm3x through its spi/uart peripherals. if an stpm3x evaluation board is used, the following interfaces are available: ? the stpm3x parallel programmer ? the steval-ipe023v1 usb isolated interface ? rs232 interface (as the one embedded in the stpm3x evaluation board) the stpm3x evaluation software, running automatic calibration procedure, can be found on www.st.com; it can be used with all above listed interfaces. further information is available in the um1719. for all available tools and software please visit www.st.com. 3.1 amplitude calibration any energy measure performed by the device (active wideband and active fundamental, reactive or apparent power and energy) is calculated digitally (without error) from current and voltage signals. this means that every measure is automatically calibrated if current and voltage channels are calibrated. c p (power sensitivity constant pulse) target value is achieved by amplitude calibration of these signals. independent and precise line signal generators could be used for this calibration, because line frequency and phase between line signals have not a significant impact, observing rms values. if the line generator is precise and stable enough, theoretically, the additional precision energy meter (hpm) is not necessary to perform the calibration; in fact signal amplitudes (voltage and current rms value) are calibrated and dc offset is rejected, thanks to the almost ideal linearity of the stpm3x. this may simplify the generation of reference line signals of accurate output values. if accuracy is not guaranteed, reference values of line signals can be obtained by rms meters. meter calibration is achieved by calibrating the device, just one measuring point, at nominal values, such as: 230 v rms , 5 a rms , 50 hz. calibrating voltage and current in a single operating point leads to a very short (one second in an automated environment) calibration time. each voltage and current channel of the device (according to the p/n) have to be compensated following the same procedure. docid026176 rev 1 11/20 AN4470 system calibration 20 given the device internal parameters in ta ble 3 , and having one between r 1 or k s calculated as stated in equation 7 and equation 8 , voltage and current rms register target values, x v and x i respectively, are calculated by dsp as follows: voltage register value at v n nominal voltage equation 9 current register value at i n nominal voltage equation 10 a v voltage adc gain is constant, while a i current adc gain is chosen according to the sensor used and to the desired current input dynamics. the calibration procedure has as final result k v and k i correction parameters which, applied to the stpm3x voltage and current, introduce signal path attenuation or amplification compensating small tolerances of analog components. k v and k i calibration parameters are the decimal representation of the corresponding voltage and current 12-bit calibrators: chvx[11:0], chcx[11:0] (where x = 1 or 2 respectively for primary and secondary channel according to the device p/n) from dsp_cr5 to dsp_cr8 registers. through hardwired formulas, k v and k i fine-tune measured values from 0,75 to 1 in 4096 steps, according to chv and chc values. for example: chv = 0 generates a correction factor -12.5% (k v = 0.75) and chv = 4065 determines a correction factor +12.5% (k v = 1) following below equations: table 3. stpm3x internal parameters parameter value voltage reference v ref =1.20 [v] decimation clock dclk =7812.5 [hz] integrator gain (for rogowski coil only) k int = 1 if roc bit = 0 in dsp_cr1,2 k int = 0.8155773 if roc bit = 1 in dsp_cr1,2 rms block gain k rms = 0.6184 voltage channel gain a v = 2 current channel gain a i = 2/16 x v v n 2a v k rms 2 15 ?? ?? v ref 1r + 1 r 2 ? () ? --------------------------------------------------------------- = x v i n 2a i k rms k int k s 2 15 ???? ?? v ref ----------------------------------------------------------------------------------- = system calibration AN4470 12/20 docid026176 rev 1 voltage correction factor equation 11 current correction factor equation 12 when system is connected and powered on, having the applied v n and i n nominal values, a certain number of readings has to be performed to average voltage and current rms values. after rms register samples have been read and averaged, obtaining v av and i av values, voltage and current channel calibrators are calculated as follows: voltage calibrator equation 13 current calibrator equation 14 where x v and x i are those calculated in equation 9 and equation 10 . k i and k v correction parameters can fine-tune measured values only within the calibration range of 12.5% of voltage or current channel. if after the calibration, chv or chc calculated values are out of range (less than 0 or more than 4095), the application cannot reach the target value of c p power sensitivity. in this case, design and calibration phase should be repeated choosing a smaller c p value. if one or more calibrator values are out of range, energy meter board could be not able to perform these measurements, maybe because component tolerance is too big, or due to some issues during the layout phase, so the application has to be redesigned. otherwise, calibrator values can be written into the stpm3x, the average rms readings are very close to x i and x v target values and led output frequency is very close to hpm frequency output. k v 0.125 chv 2048 ------------ - 0.75 + ? = k i 0.125 chv 2048 ------------ - 0.75 + ? = chc 14336 x v v av ---------- 12288 ? ? = chc 14336 x i i av ------- - 12288 ? ? = docid026176 rev 1 13/20 AN4470 system calibration 20 3.1.1 step-by-step amplitude calibration procedure the following steps summarize the calibration procedure explained above: 1. design the application as stated in section 3.1 so that the relationship among r 1 , r 2 , k s an c p is coherent with equation 7 and equation 8 2. reset the stpm3x to have registers in the default state 3. configure the device through cpc according to the chosen application. the following registers have to be configured (one or both primary and secondary channels, according to the application and to the device p/n): ? rocx (in dsp_cr1 or dsp_cr2) ? 0: for ct or shunt ? 1: for rogowski coil ? gainx (in dfe_cr1 or dfe_cr2) to set the correct current gain channel ? chvx and chcx (in dsp_cr5 and dsp_cr8) have to be set to default (0x800) obtaining a calibration range of 12.5% of voltage or current channel 4. apply stable and accurate nominal values of v n and i n voltage and current signals, with pf =1 to one or both primary and secondary channels. for the stability of the source please refer to the equipment documentation; add 0.5 seconds to the maximum so that the stpm3x rms values are stable 5. perform rms register sample acquisition (dsp_reg14 and/or dsp_reg15) through cpc; average the values to obtain v av and i av ; minimum suggested values are 20 samples in 5 line cycles 6. calculate chvx and chcx calibrators using equation 13 and equation 14 7. write calibration values to the device and store them in a non-volatile memory the whole procedure requires one second in an automated environment. 3.2 phase-shift calibration the stpm3x does not introduce any phase-shift between voltage and current channels. however, voltage and current signals come from transducers, which could have inherent phase errors. for example, a phase error from 0.1 to 0.3 is common for a current transformer (ct). these phase errors can vary from part-to-part, and have to be corrected in order to perform accurate power calculations. errors associated with phase mismatch are particularly evident at low power factors. the phase compensation block provides a digital correction of the phase-shift for primary and secondary channel independently. this block introduces a delay between current and voltage samples which is fine-tuned by phcx[9:0] and phvx[1:0] phase calibration bits in dsp_cr4. the delay (in degree) introduced by these registers on the waveforms is given below: current shift equation 15 voltage shift ? c f line sclk ---------------- phcx 9:0 [] 360 ?? = system calibration AN4470 14/20 docid026176 rev 1 equation 16 global phase-shift equation 17 where sclk = 4 mhz and f line is voltage and current signal frequency. phvx influences the calculation of power and energies related to both current channels. as shown in figure 4 , capacitive behavior is determined by the current leading the voltage waveform to a certain angle. in this case, the compensation is given, delaying the current waveform, by the same angle through phcx register. an inductive behavior has the opposite effect, so that current lags the voltage waveform. in this case, the compensation occurs using phvx register to delay the voltage waveform to invert the behavior to capacitive and then, acting on phcx register, to fine-tune the current waveform. figure 4. phase-shift error ? v f line sclk ---------------- phvx 1:0 [] 2 9 ? 360 ?? = ? f line sclk ---------------- phvx 1:0 [] 2 9 ? phcx 9:0 [] ? () 360 ?? = voltage current capacitive current inductive docid026176 rev 1 15/20 AN4470 system calibration 20 from equation 17 the following correction range is calculated for 50 and 60 hz line signals: to compensate phase-shift, stable nominal values of voltage and current signals (v n and i n ) shifted by = 60 angle, have to be applied to muc. given e, the error on active power (averaged over a certain number of samples through hpm), the phase-shift angle ( ) between voltage and current can be measured as shown below. without any phase-shift error, the ideal active power at = 60 is equation 18 since voltage and current are shifted by angle , the measured power is equation 19 leading to an error, at pf = 0.5, equal to equation 20 by measuring the error, the phase-shift derives from the above formula as follows equation 21 to compensate this error, phcx and phvx bits have to be set as below, to introduce a correction factor = - , according to the following table: table 4. phase error correction range line frequency minimum value maximum value step 50 hz -4.608 6.9504 0.0045 60 hz -5.5296 8.2944 0.0054 p i vi 60 () cos ?? = p m vi 60 + () cos ?? = e p i p m ? p i ------------------- vi 60 () cos v i 60 + () cos ?? ? ?? vi 60 () cos ?? ---------------------------------------------------------------------------------------- 12 60 + () cos ? == = cos 1 ? 1e ? 2 ------------ ?? ?? 60 ? = system calibration AN4470 16/20 docid026176 rev 1 3.2.1 step-by-step phase-shift calibration procedure the following steps summarize the calibration procedure explained above: 1. perform muc amplitude calibration following steps listed in section 3.1.1 2. configure the device through cpc. all registers should be in default state; the following registers have to be configured (according to the channel under calibration and to the device p/n): ? rocx (in dsp_cr1 or dsp_cr2) ? 0: for ct, shunt ? 1: for rogowski coil ? gainx (in dfe_cr1 or dfe_cr2) to set the correct current gain channel ? chvx and chcx (in dsp_cr5 or dsp_cr8) have to be set as calculated in section 3.1.1 ? phvx and phcx (in dsp_cr4) are preset to default (0x0) ? lcsx (in dsp_cr1 and dsp_cr2) is set to 0 or 1 to output on ledx the desired channel ? lpsx is set to zero (to output on ledx the active power signal) 3. apply stable and accurate nominal values of v n and i n voltage and current signals shifted by = 60 angle 4. read from hpm the e error on the active power from led frequency 5. calculate phase-shift error from equation 21 and correction factor from table 5 6. write phvx, phcx to the device and store them in a non-volatile memory table 5. phase compensation parameter value ? 0 < = phcx ? sclk ? 360 f line ? ------------------------ = 0 ? f line sckl ---------------- 2 10 360 ?? << = phcx phvx 2 9 ? sclk ? 360 f line ? ------------------------ ? ? = f line sckl ---------------- 2 10 360 ?? ? f line sckl ---------------- 32 9 360 ?? ? << = phcx 9 [] 0x0 = phcx 8:0 [] phvx 2 9 ? sclk ? 360 f line ? ------------------------ ? ? = docid026176 rev 1 17/20 AN4470 system calibration 20 3.2.2 example: phase-shift compensation in a 50 hz line, after amplitude calibration, the error on active power at pf = 0,5 is measured as: e = 0.038 = 3.8%. from equation 21 , the current waveform is leading the voltage to =1.25 , so the value to introduce is = - through phcx[9:0] = 0x116 ( c =1.251 ). if the voltage is leading current to the same angle, values to introduce are phv[1:0]=0x1 ( v = 2.304 ) and phcx[9:0]=0xea ( c =1.053 ) the current shift, respect to the voltage, is: v - c = 1.251 . 3.3 offset calibration the stpm3x has power offset compensation register for all measured powers to compensate, for each channel, the amount of power measured due to noise capture in the application. power offset compensation registers: ofax[9:0], ofrx[9:0], ofafx[9:0], ofsx[9:0], compensating active, reactive, active fundamental and apparent power for each channel (according to the p/n) are located in registers from dsp_cr9 to dsp_cr12. when no power is applied to the meter, if one or more average values of power registers are not null, the error is due to external influences, then an opposite value in the power offset register is needed to compensate them. power registers are signed values, (msb is the sign, and negative values are two's complemented); power offset registers are signed registers as well, and lsb value is equal to 4 times power lsb. power register lsb equation 22 lsb power offset register equation 23 lsb value of power and power offset registers is equal in all power types (reactive, apparent, fundamental). lsb p led_pwm v ref 2 1r 1 r 2 ? + () ?? k int a v a i k s cal v cal i 2 28 ???? ? ? ------------------------------------------------------------------------------------- w lsb ----------- - = lsb po lsb p 2 2 ? led_pwm v ref 2 1r 1 r 2 ? + () ?? k int a v a i k s cal v cal i 2 28 ???? ? ? ------------------------------------------------------------------------------------- 2 2 ? w lsb ----------- - == system calibration AN4470 18/20 docid026176 rev 1 3.3.1 step-by-step offset calibration procedure the following steps summarize the calibration procedure explained above: 1. perform muc amplitude and phase calibration following steps listed in section 3.1.1 and section 3.2.1 2. configure the device through cpc. all registers should be in default state; the following registers have to be configured (according to the channel under calibration and to the device p/n): ? rocx (in dsp_cr1 or dsp_cr2) ? 0: for ct, shunt ? 1: for rogowski coil ? gainx (in dfe_cr1 or dfe_cr2) to set the correct current gain channel ? chvx and chcx (in dsp_cr5 or dsp_cr8) have to be set as calculated in section 3.1.1 ? phvx and phcx (in dsp_cr4) have to be set as calculated in section 3.2.1 ? ofax[9:0], ofrx[9:0], ofafx[9:0], ofsx[9:0] power offset compensation registers from dsp_cr9 to dsp_cr12 are set to zero 3. apply stable and accurate nominal values of v n voltage signal while i n = 0 4. perform acquisition of samples of power registers (phx_reg4 to phx_reg9) through cpc and average the values; minimum suggested values are 40 samples in 5 line cycles 5. calculate the compensation value like the average values with changed sign 6. write ofax, ofrx, ofafx, ofsx to the device and store them in a non-volatile memory docid026176 rev 1 19/20 AN4470 revision history 20 4 revision history table 6. document revision history date revision changes 08-apr-2014 1 initial release. AN4470 20/20 docid026176 rev 1 please read carefully: information in this document is provided solely in connection with st products. stmicroelectronics nv and its subsidiaries (?st ?) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described he rein at any time, without notice. all st products are sold pursuant to st?s terms and conditions of sale. purchasers are solely responsible for the choice, selection and use of the st products and services described herein, and st as sumes no liability whatsoever relating to the choice, selection or use of the st products and services described herein. no license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. i f any part of this document refers to any third party products or services it shall not be deemed a license grant by st for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoev er of such third party products or services or any intellectual property contained therein. unless otherwise set forth in st?s terms and conditions of sale st disclaims any express or implied warranty with respect to the use and/or sale of st products including without limitation implied warranties of merchantability, fitness for a particular purpose (and their equivalents under the laws of any jurisdiction), or infringement of any patent, copyright or other intellectual property right. st products are not designed or authorized for use in: (a) safety critical applications such as life supporting, active implanted devices or systems with product functional safety requirements; (b) aeronautic applications; (c) automotive applications or environments, and/or (d) aerospace applications or environments. where st products are not designed for such use, the purchaser shall use products at purchaser?s sole risk, even if st has been informed in writing of such usage, unless a product is expressly designated by st as being intended for ?automotive, automotive safety or medical? industry domains according to st product design specifications. products formally escc, qml or jan qualified are deemed suitable for use in aerospace by the corresponding governmental agency. resale of st products with provisions different from the statem ents and/or technical features set forth in this document shall immediately void any warranty granted by st for the st product or service described herein and shall not create or extend in any manner whatsoev er, any liability of st. st and the st logo are trademarks or register ed trademarks of st in various countries. information in this document supersedes and replaces all information previously supplied. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners. ? 2014 stmicroelectronics - all rights reserved stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - philippines - singapore - spain - swed en - switzerland - united kingdom - united states of america www.st.com |
Price & Availability of AN4470
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |