Current-Transformer Phase-Shift Compensation and Calibration



Similar documents
SDLS068A DECEMBER 1972 REVISED OCTOBER Copyright 2001, Texas Instruments Incorporated

Designing Gain and Offset in Thirty Seconds

Pressure Transducer to ADC Application

SN54165, SN54LS165A, SN74165, SN74LS165A PARALLEL-LOAD 8-BIT SHIFT REGISTERS

Motor Speed Measurement Considerations When Using TMS320C24x DSPs

THE RIGHT-HALF-PLANE ZERO --A SIMPLIFIED EXPLANATION

Filter Design in Thirty Seconds

August 2001 PMP Low Power SLVU051

How To Close The Loop On A Fully Differential Op Amp

Controlling TAS5026 Volume After Error Recovery

Application Report SLVA051

Application Report. 1 Description of the Problem. Jeff Falin... PMP Portable Power Applications ABSTRACT

Analysis of Filter Coefficient Precision on LMS Algorithm Performance for G.165/G.168 Echo Cancellation

Signal Conditioning Wheatstone Resistive Bridge Sensors

Wireless Subwoofer TI Design Tests

A Low-Cost, Single Coupling Capacitor Configuration for Stereo Headphone Amplifiers

Application Report. 1 Introduction. 2 Resolution of an A-D Converter. 2.1 Signal-to-Noise Ratio (SNR) Harman Grewal... ABSTRACT

Multi-Transformer LED TV Power User Guide. Anderson Hsiao

APPLICATION BULLETIN

WHAT DESIGNERS SHOULD KNOW ABOUT DATA CONVERTER DRIFT

TSL250, TSL251, TLS252 LIGHT-TO-VOLTAGE OPTICAL SENSORS

Calculating Gain for Audio Amplifiers

Audio Tone Control Using The TLC074 Operational Amplifier

Using the Texas Instruments Filter Design Database

SINGLE-SUPPLY OPERATION OF OPERATIONAL AMPLIFIERS

TSL INTEGRATED OPTO SENSOR

Texas Instruments. FB PS LLC Test Report HVPS SYSTEM AND APPLICATION TEAM REVA

SN54HC157, SN74HC157 QUADRUPLE 2-LINE TO 1-LINE DATA SELECTORS/MULTIPLEXERS

SN28838 PAL-COLOR SUBCARRIER GENERATOR

Design Note DN004. Folded Dipole Antenna for CC25xx By Audun Andersen. Keywords. 1 Introduction CC2500 CC2550 CC2510 CC2511

Data sheet acquired from Harris Semiconductor SCHS067B Revised July 2003

Signal Conditioning Piezoelectric Sensors

Application Note AN107

RETRIEVING DATA FROM THE DDC112

AMC1100: Replacement of Input Main Sensing Transformer in Inverters with Isolated Amplifier

High-Speed Gigabit Data Transmission Across Various Cable Media at Various Lengths and Data Rate

TI and ibiquity Introduce Industry s Lowest Cost Single-Chip AM/FM and HD Radio Baseband John Gardner Digital Radio Marketing Manager

APPLICATION NOTE BUILDING A QAM MODULATOR USING A GC2011 DIGITAL FILTER CHIP

Data sheet acquired from Harris Semiconductor SCHS087D Revised October 2003

CUSTOM GOOGLE SEARCH PRO. User Guide. User Guide Page 1

SN54HC191, SN74HC191 4-BIT SYNCHRONOUS UP/DOWN BINARY COUNTERS

Buffer Op Amp to ADC Circuit Collection

LM5030 LM5030 Application: DC - DC Converter Utilizing the Push-Pull Topology

Using C to Access Data Stored in Program Space Memory on the TMS320C24x DSP

Understanding the Terms and Definitions of LDO Voltage Regulators

APPLICATION BULLETIN

Data sheet acquired from Harris Semiconductor SCHS020C Revised October 2003

Standard Linear & Logic Semiconductor Marking Guidelines

µa7800 SERIES POSITIVE-VOLTAGE REGULATORS

Theory of Operation. Figure 1 illustrates a fan motor circuit used in an automobile application. The TPIC kω AREF.

How To Make A Two Series Cell Battery Pack Supervisor Module

SN54F157A, SN74F157A QUADRUPLE 2-LINE TO 1-LINE DATA SELECTORS/MULTIPLEXERS

6 Output With 1 kω in Series Between the Output and Analyzer Output With RC Low-Pass Filter (1 kω and 4.7 nf) in Series Between the Output


Optical Implementation Using IEEE-1394.b

IrDA Transceiver with Encoder/Decoder

Choosing Inductors and Capacitors for DC/DC Converters

Supply voltage Supervisor TL77xx Series. Author: Eilhard Haseloff

Using Current Transformers with the 78M661x

Wide Bandwidth, Fast Settling Difet OPERATIONAL AMPLIFIER

Using C to Access Data Stored in Program Memory on the TMS320C54x DSP

Floating Point C Compiler: Tips and Tricks Part I

Single-Stage High Power Factor Flyback for LED Lighting

Application Report SLOA024B

SN54ALS191A, SN74ALS191A SYNCHRONOUS 4-BIT UP/DOWN BINARY COUNTERS

EMC6D103S. Fan Control Device with High Frequency PWM Support and Hardware Monitoring Features PRODUCT FEATURES ORDER NUMBERS: Data Brief

More Filter Design on a Budget


Designing With the SN54/74LS123. SDLA006A March 1997

A Differential Op-Amp Circuit Collection

ORDERING INFORMATION. TOP-SIDE MARKING PDIP N Tube SN74LS07N SN74LS07N PACKAGE. SOIC D Tape and reel SN74LS07DR

LM134-LM234-LM334. Three terminal adjustable current sources. Features. Description

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

Lock - in Amplifier and Applications

AAT3520/2/4 MicroPower Microprocessor Reset Circuit

STLQ ma, ultra low quiescent current linear voltage regulator. Description. Features. Application

Binary Search Algorithm on the TMS320C5x

LM556 LM556 Dual Timer

LM135-LM235-LM335. Precision temperature sensors. Features. Description

AN48. Application Note DESIGNNOTESFORA2-POLEFILTERWITH DIFFERENTIAL INPUT. by Steven Green. 1. Introduction AIN- AIN+ C2

bq2114 NiCd or NiMH Gas Gauge Module with Charge-Control Output Features General Description Pin Descriptions

AN2604 Application note

PCIe XMC x8 Lane Adapter

TN0023 Technical note

Application Report SLOA030A

ADS1251EVM FEATURES DESCRIPTION

Implementing an In-Service, Non- Intrusive Measurement Device in Telecommunication Networks Using the TMS320C31

Chapter 20 Quasi-Resonant Converters

IMPORT/EXPORT CUSTOMER REVIEWS. User Guide. User Guide Page 1

SC Series: MIS Chip Capacitors

AN2389 Application note

MH Hybrid Subscriber Line Interface Circuit (SLIC) Preliminary Information. Features. Description. Applications. Ordering Information

Optical Encoders. K. Craig 1. Actuators & Sensors in Mechatronics. Optical Encoders

Design of op amp sine wave oscillators

POWER SYSTEM HARMONICS. A Reference Guide to Causes, Effects and Corrective Measures AN ALLEN-BRADLEY SERIES OF ISSUES AND ANSWERS

Sierra Dual 24 Volt Brushless DC Motor Controller Product Specification

Using Code Coverage and Multi-event Profiler in Code Composer Studio v2.3 for Robustness and Efficiency Analyses

Design Note DN304. Cebal CCxxxx Development Tools USB Driver Installation Guide By Åsmund B. Bø. Keywords. 1 Introduction

Lecture - 4 Diode Rectifier Circuits

Transcription:

Application Report SLAA122 February 2001 Current-Transformer Phase-Shift Compensation and Calibration Kes Tam Mixed Signal Products ABSTRACT This application report demonstrates a digital technique to compensate and calibrate the phase shift of a current (or voltage) transformer used in electric power or energy measurement. Traditional analog compensation is replaced by a digital finite impulse response (FIR) filter. A technique emulating a non-unity power factor (non-upf) load makes the calibration fully automatic. The calibration time is greatly reduced and it is more accurate and consistent. Use of emulation removes the bulky expensive non-upf load. The 16-bit RISC MSP430 mixed-signal processor from Texas Instruments is an effective means of handling the otherwise demanding computational requirements. Contents 1 Introduction... 1 2 Digital Phase Shift Compensation... 2 2.1 Problem Description... 2 2.2 FIR Filter... 3 3 CT Calibration... 3 3.1 Non-UPF Load Emulation... 4 3.2 Calculation of Error... 4 3.3 Setting Up the FIR Parameters Table...5 3.4 CT With Large Phase Shift... 5 3.5 Variation of Mains Frequency... 6 4 Summary... 6 Figures 1 CT Phase Response... 2 1 Introduction Current transformers (CTs) are commonly used in electricity meters for current measurement, and to provide isolation when direct coupling is not possible. However, all CTs include an inherent phase shift that changes the power factor of its output. Inductive and capacitive loads cause the measured ac power error to increase significantly and unacceptably as the mains power factor decreases. 1

An analog RC filter is the traditional way to overcome the phase shift problem; however, RC filters are not very satisfactory because of their cost, stability issues, and the need for time consuming manual calibration. These drawbacks are overcome with digital compensation and automated calibration. This application report consists of two parts: compensation and calibration. The section on compensation describes the design of a single zero-finite impulse response (zero-fir) filter. This filter provides a group delay to compensate for the CT s phase shift. Unfortunately, it also alters the dc gain, and this needs to be corrected. The section on calibration shows how to calculate the FIR parameters for various delays, then deals with emulating a non-upf load, determining the non-upf error, and locating the actual FIR parameters used. 2 Digital Phase Shift Compensation 2.1 Problem Description Because of inductive and capacitive loading, ac mains voltage and current are sometimes out of phase, so when a CT is used, the measured current has a phase lead (or lag) over the original current. V I (in) I (out) φ θ Figure 1. CT Phase Response In Figure 1, the input mains current, I (in), leads the voltage, V, by θ and the output current, I (out) further leads I (in) by φ. The actual power is P = V I cosθ (1) where V is the maximum ac input voltage, I is the maximum ac input current, and cosθ is the power factor. The measured power is P = K V K I cos( θ + ) (2) ( V ) (I ) φ where K (V) is the scale-down factor for voltage ( V = K(V ) V ), K (I) is the scale-down factor for current ( I = K I ), and cos(θ +φ) is the measured power factor. Thus, the measured error is ( I ) 2 Current-Transformer Phase-Shift Compensation and Calibration

E m ) ( θ φ ) SLAA122 P cos = 1 = 1 (3) P cosθ ( + The error is a nonlinear function of the power factor. For a UPF load, φ is usually small and the error can be ignored; however, as the power factor decreases, the error becomes significant. For example, with a power factor of 0.5 and a phase shift of 1, the error is an unacceptable 3%. 2.2 FIR Filter To overcome the problem of phase shift across the CT, the output current could be delayed by the same amount as the inherent phase shift so that both the actual and measured power factors were equal. However, this delay would probably not be a multiple of the sampling time, so the problem could not be solved simply by adding one or more sample delays. A simple way to provide fractional delay is to use a single zero-fir filter: y [ n] = x[ n] + β x[ n 1] Here x is input current, y is delayed output current, n is sampling sequence, and β is delay gain. The frequency response can be derived in z-transform space from which the filter s group delay, D, is the derivative of the angular response: β D = 1+ β ( β + cosω) 2 + 2β cosω where ω is the angular frequency after sampling, equal to 2π (mains frequency)/(sampling frequency) Solving equation (5) for β gives: (4) (5) β = 2 2 ( 1 2D) cos ω ± ( 1 2D) cos ω + 4D( 1 D) 2( 1 D) (6) The phase shift is actually the group delay of the angular plane. They are related by D = φ ω (7) where the phase shift, φ, is measured in radians. To compensate for the non-unity gain of the filter, the output is multiplied by the inverse of the filter gain, which is: A 1 2 2 1/ 2 [( cosω + β ) + sin ] = ω (8) For example, for an e-meter design with a sampling frequency of 995.025 Hz, an input mains frequency of 50 Hz, and a CT phase shift of 1, β = 0.0611975, and A -1 = 0.944873. 3 CT Calibration Linear calibration should be done first because it affects the CT calibration. n the other hand, CT phase shift has almost no impact on linear calibration. Current-Transformer Phase-Shift Compensation and Calibration 3

The actual CT calibration starts by internally delaying the mains input current to emulate a non- UPF load. This is the main technique used in the whole calibration process. A small CT phase shift creates a relatively big error in this case. Errors for a range of CT delays and parameters for the corresponding compensation FIR are pre-calculated and put into tables. The error produced with the emulated non-upf load is measured using a reference meter. The correct FIR coefficients can then be identified by a table lookup. 3.1 Non-UPF Load Emulation Because the CT phase shift is usually small, equation (3) shows that the error is very small under UPF load. Therefore, a large capacitor or inductor would be required in order to obtain the large errors needed for an accurate calibration. The use of internal delay to emulate this non-upf load not only removes the necessity for these expensive and bulky loads, but it also makes the calibration process automatic by requiring only a single UPF load. The delaying of current (or voltage) input is equivalent to changing the power factor so that a non-upf load can be emulated. There is no strict requirement on the value of the emulated non- UPF load it needs only to be big enough for accurate calibration (but not so large as to give a very small power factor). For ease of implementation, the delay can be chosen as a multiple of the sampling time. The phase delay, ξ, is: ξ = f ( m ) f ( s ) N (9) where f (m) and f (s) are the mains and sampling frequencies, respectively, and N is the number of delayed samples. The factor cos ξ is the emulated power factor. As an example, consider a mains frequency of 50 Hz, sampled at 995.025Hz. A three-sample delay gives a phase delay of 54.27, perfectly adequate for calibration. 3.2 Calculation of Error There are a number of ways to get a reference input from an external reference meter. The method used here is simple: the reference meter produces LED pulses with a frequency proportional to the measured energy. For example, a rate of 1600 pulses/hr for each kilowatt-hour means that 1600 pulses will be produced in one hour with a one-kilowatt load. A simple optical sensor can be used to couple the LED pulses to the meter under calibration. This method provides a very simple interface and requires only one input line. It is assumed that the meter under calibration produces LED pulses in the same manner as the reference meter. The error caused by the CT phase shift is obtained by normalizing the difference in times needed for the same number of pulses to be emitted by the reference input and the meter internal generated. This is the pulse-time error, E (P), not the error in energy or power defined by equation (3): E ( t (int) t( ref ) ( ref ) ( P ) = t (10) 4 Current-Transformer Phase-Shift Compensation and Calibration

where t (int) is the modified internal pulse time (= t (int) / cos ξ), t (int) is the measured internal pulse time, and t (ref) is the reference pulse time. Note that because the external reference does not experience the internal emulated delay, it is necessary to convert the internal time back to UPF conditions by dividing by the emulated power factor. 3.3 Setting Up the FIR Parameters Table FIR parameters for a given phase shift can be calculated using equations (6) to (8). The calculations are best done in a spreadsheet, thereby determining an entire pre-calculated table. The tolerance of the CT phase shift must be known to determine the maximum and minimum phase shift. The phase shift step is chosen so that the error due to inexact compensation remains acceptable. For example, if the step size is 0.1 and the minimum power factor is cos(60 ) = 0.5, the maximum error is 1 - [cos(60 + 0.1 ) / cos(60 )] = 0.3%. Using the second definition of the phase time error in equation (10) gives: cosξ ( = 1 (11) cos E P ) ( ξ φ ) To minimize the program code size and the search time, an implicit table for E (P) can be used. The errors, E (max) and E (min), corresponding to the maximum and minimum phase shift are calculated first. Then the phase-shift step-size is translated into the error step-size: E ( step ) E(max) E(min) = Total number of steps For each value of E (P), the actual phase shift is calculated from equation (10), and the result is used in equations (6) to (8) to give the final FIR parameters. Because E (P) can be easily calculated from E (min) and E (step), it does not need to be stored only E (max), E (min) and E (step) are retained. 3.4 CT With Large Phase Shift In some cases, there are CTs with relatively large inherent phase shifts. For example, high mains frequencies or low sampling frequencies increase the phase shift of even a CT with an inherently small phase shift. This is in conformity with equation (7). CTs with a large phase shift can still be compensated and calibrated provided they exhibit a mean phase shift with an acceptable range of deviation. This kind of CT can be compensated first with an FIR designed for a mean phase shift η under UPF calibration. If η is more than the phase delay of a single sample, then a combination of multiple and fractional sample delays can be used, the fractional delays being derived from an FIR. In that case: η ψ + ζ = N ( d ) (12) where ψ is the phase delay of a single sample (= [mains frequency]/[sampling frequency]) and N (d) is the number of delayed samples with ζ < ψ. The CT phase shift is then: φ = φ η (13) Current-Transformer Phase-Shift Compensation and Calibration 5

where φ is the original CT phase shift. Because φ is very small, it can be ignored in the UPF calibration. After the UPF calibration, calibration continues with the emulated non-upf load. However, now the equivalent phase shift, φ, is compensated instead of the original CT phase shift, φ. The equivalent emulated phase delay, ξ, for φ is: ξ = ξ η (14) where ξ is the actual emulated phase delay added and η is the mean CT phase shift. The same technique as before can now be used to calibrate φ. 3.5 Variation of Mains Frequency It is important that the actual mains frequency match the frequency of calibration. Any deviation causes a calibration error on the CT phase shift. However, once calibration is completed, the FIR compensation maintains its accuracy even under different mains frequencies. 4 Summary In general, digital techniques have an advantage over analog in terms of accuracy and consistency; however, this often comes at a higher cost. The method outlined in this application report uses digital techniques for compensating and calibrating a CT and yet is simple enough to be implemented in a low cost microcontroller. The solution has been successfully implemented in a Texas Instruments MSP430 microcontroller and has passed a national approval for class-1 electricity meters. Bibliography 1. A Low-Cost Single-Phase Electricity Meter Using MSP430C11x, Application Report, Texas Instruments Literature Number SLAA075 2. MSP430x1xx Family User s Guide, Texas Instruments Literature Number SLAU049 3. MSP430 Family Mixed-Signal Microcontroller Application Reports, Application Book, Texas Instruments Literature Number SLAA024 4. Bureau of Indian Standards, AC Static Watt-Hour Meters, Class-1 and -2 Specification, Reference Number ET13 (1379) 6 Current-Transformer Phase-Shift Compensation and Calibration

IMPRTANT NTICE Texas Instruments and its subsidiaries (TI) reserve the right to make changes to their products or to discontinue any product or service without notice, and advise customers to obtain the latest version of relevant information to verify, before placing orders, that information being relied on is current and complete. All products are sold subject to the terms and conditions of sale supplied at the time of order acknowledgment, including those pertaining to warranty, patent infringement, and limitation of liability. TI warrants performance of its products to the specifications applicable at the time of sale in accordance with TI s standard warranty. Testing and other quality control techniques are utilized to the extent TI deems necessary to support this warranty. Specific testing of all parameters of each device is not necessarily performed, except those mandated by government requirements. Customers are responsible for their applications using TI components. In order to minimize risks associated with the customer s applications, adequate design and operating safeguards must be provided by the customer to minimize inherent or procedural hazards. TI assumes no liability for applications assistance or customer product design. TI does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right of TI covering or relating to any combination, machine, or process in which such products or services might be or are used. TI s publication of information regarding any third party s products or services does not constitute TI s approval, license, warranty or endorsement thereof. Reproduction of information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations and notices. Representation or reproduction of this information with alteration voids all warranties provided for an associated TI product or service, is an unfair and deceptive business practice, and TI is not responsible nor liable for any such use. Resale of TI s products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service, is an unfair and deceptive business practice, and TI is not responsible nor liable for any such use. Also see: Standard Terms and Conditions of Sale for Semiconductor Products. www.ti.com/sc/docs/stdterms.htm Mailing Address: Texas Instruments Post ffice Box 655303 Dallas, Texas 75265 Copyright 2001, Texas Instruments Incorporated