Maximum Likelihood Estimation of ADC Parameters from Sine Wave Test Data. László Balogh, Balázs Fodor, Attila Sárhegyi, and István Kollár



Similar documents
Synchronization of sampling in distributed signal processing systems

The Effective Number of Bits (ENOB) of my R&S Digital Oscilloscope Technical Paper

4F7 Adaptive Filters (and Spectrum Estimation) Least Mean Square (LMS) Algorithm Sumeetpal Singh Engineering Department sss40@eng.cam.ac.

Log-Likelihood Ratio-based Relay Selection Algorithm in Wireless Network

Enhancing the SNR of the Fiber Optic Rotation Sensor using the LMS Algorithm

Implementation of Digital Signal Processing: Some Background on GFSK Modulation

Dynamic Process Modeling. Process Dynamics and Control

Lock - in Amplifier and Applications

Hideo Okawara s Mixed Signal Lecture Series. DSP-Based Testing Fundamentals 46 Per-pin Signal Generator

The QOOL Algorithm for fast Online Optimization of Multiple Degree of Freedom Robot Locomotion

ANALYZER BASICS WHAT IS AN FFT SPECTRUM ANALYZER? 2-1

Identification of Energy Distribution for Crash Deformational Processes of Road Vehicles

CHAPTER 5 PREDICTIVE MODELING STUDIES TO DETERMINE THE CONVEYING VELOCITY OF PARTS ON VIBRATORY FEEDER

A Simultaneous Solution for General Linear Equations on a Ring or Hierarchical Cluster

Mean-Shift Tracking with Random Sampling

Computer Networks and Internets, 5e Chapter 6 Information Sources and Signals. Introduction

VCO Phase noise. Characterizing Phase Noise

A Network Flow Approach in Cloud Computing

New Hash Function Construction for Textual and Geometric Data Retrieval

Open Access Research on Application of Neural Network in Computer Network Security Evaluation. Shujuan Jin *

b 1 is the most significant bit (MSB) The MSB is the bit that has the most (largest) influence on the analog output

A PC-BASED TIME INTERVAL COUNTER WITH 200 PS RESOLUTION

RF Network Analyzer Basics

Characterizing Digital Cameras with the Photon Transfer Curve

Dr. Eng. Adamo, List of publications Page 1 of 5

Portable Time Interval Counter with Picosecond Precision

ADAPTIVE ALGORITHMS FOR ACOUSTIC ECHO CANCELLATION IN SPEECH PROCESSING

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

DYNAMIC RANGE IMPROVEMENT THROUGH MULTIPLE EXPOSURES. Mark A. Robertson, Sean Borman, and Robert L. Stevenson

Improving A D Converter Performance Using Dither

Adaptive Equalization of binary encoded signals Using LMS Algorithm

Signal Detection. Outline. Detection Theory. Example Applications of Detection Theory

Chapter 1 Introduction

PHOTOGRAMMETRIC TECHNIQUES FOR MEASUREMENTS IN WOODWORKING INDUSTRY

Target Strategy: a practical application to ETFs and ETCs

QAM Demodulation. Performance Conclusion. o o o o o. (Nyquist shaping, Clock & Carrier Recovery, AGC, Adaptive Equaliser) o o. Wireless Communications

Timing Errors and Jitter

PHASE ESTIMATION ALGORITHM FOR FREQUENCY HOPPED BINARY PSK AND DPSK WAVEFORMS WITH SMALL NUMBER OF REFERENCE SYMBOLS

Fundamental to determining

Midwest Symposium On Circuits And Systems, 2004, v. 2, p. II137-II140. Creative Commons: Attribution 3.0 Hong Kong License


An Algorithm for Automatic Base Station Placement in Cellular Network Deployment

GETTING STARTED WITH LABVIEW POINT-BY-POINT VIS

Clock Jitter Definitions and Measurement Methods

Analog signals are those which are naturally occurring. Any analog signal can be converted to a digital signal.

Non-Data Aided Carrier Offset Compensation for SDR Implementation

INFERRING TRADING STRATEGIES FROM PROBABILITY DISTRIBUTION FUNCTIONS

Using Simple Calibration Load Models to Improve Accuracy of Vector Network Analyzer Measurements

The CUSUM algorithm a small review. Pierre Granjon

Analog Signal Conditioning

New Approach to Analysis of the Switching Current Data in Ferroelectric Thin Films

Section 3. Sensor to ADC Design Example

Determining optimal window size for texture feature extraction methods

TDS5000B, TDS6000B, TDS/CSA7000B Series Acquisition Modes

Kristine L. Bell and Harry L. Van Trees. Center of Excellence in C 3 I George Mason University Fairfax, VA , USA kbell@gmu.edu, hlv@gmu.

IMPEDANCE MEASURING SYSTEM BASED ON A DSPIC

(2) (3) (4) (5) 3 J. M. Whittaker, Interpolatory Function Theory, Cambridge Tracts

1 Introduction. 2 Prediction with Expert Advice. Online Learning Lecture 09

Taking the Mystery out of the Infamous Formula, "SNR = 6.02N dB," and Why You Should Care. by Walt Kester

Simple and efficient online algorithms for real world applications

Linear Threshold Units

Ericsson T18s Voice Dialing Simulator

Introduction to Digital Audio

EM Clustering Approach for Multi-Dimensional Analysis of Big Data Set

Low-resolution Character Recognition by Video-based Super-resolution

A simplified implementation of the least squares solution for pairwise comparisons matrices

Dynamic Neural Networks for Actuator Fault Diagnosis: Application to the DAMADICS Benchmark Problem

Understanding the Effect of Uncorrelated Phase Noise on Multi-channel RF Vector Signal Generators and Analysers

A 1-GSPS CMOS Flash A/D Converter for System-on-Chip Applications

Accurate and robust image superresolution by neural processing of local image representations

Less naive Bayes spam detection

Overview of Violations of the Basic Assumptions in the Classical Normal Linear Regression Model

Part II Redundant Dictionaries and Pursuit Algorithms

Seamless Congestion Control over Wired and Wireless IEEE Networks

Maximum likelihood estimation of mean reverting processes

Analog/Digital Conversion. Analog Signals. Digital Signals. Analog vs. Digital. Interfacing a microprocessor-based system to the real world.

AVR127: Understanding ADC Parameters. Introduction. Features. Atmel 8-bit and 32-bit Microcontrollers APPLICATION NOTE

Example #1: Controller for Frequency Modulated Spectroscopy

Modern Optimization Methods for Big Data Problems MATH11146 The University of Edinburgh

Voice---is analog in character and moves in the form of waves. 3-important wave-characteristics:

The Good, the Bad, and the Ugly Aspects of ADC Input Noise Is No Noise Good Noise? by Walt Kester

Performance Analysis and Comparison of JM 15.1 and Intel IPP H.264 Encoder and Decoder

PC BASED PID TEMPERATURE CONTROLLER

Extended Resolution TOA Measurement in an IFM Receiver

A WEB BASED TRAINING MODULE FOR TEACHING DIGITAL COMMUNICATIONS

The Effect of Network Cabling on Bit Error Rate Performance. By Paul Kish NORDX/CDT

Application Note Noise Frequently Asked Questions

Self-Evaluation Configuration for Remote Data Logging Systems

Operations Research and Knowledge Modeling in Data Mining

Automatic Calibration of an In-vehicle Gaze Tracking System Using Driver s Typical Gaze Behavior

1. Oscilloscope is basically a graph-displaying device-it draws a graph of an electrical signal.

DIODE CIRCUITS LABORATORY. Fig. 8.1a Fig 8.1b

Understand the effects of clock jitter and phase noise on sampled systems A s higher resolution data converters that can

How To Fix Out Of Focus And Blur Images With A Dynamic Template Matching Algorithm

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Switch Mode Power Supply Topologies

arxiv: v1 [math.pr] 5 Dec 2011

T = 1 f. Phase. Measure of relative position in time within a single period of a signal For a periodic signal f(t), phase is fractional part t p

CBS RECORDS PROFESSIONAL SERIES CBS RECORDS CD-1 STANDARD TEST DISC

K.Vijaya Bhaskar,Asst. Professor Dept. of Electrical & Electronics Engineering

Transcription:

Maximum Lielihood Estimation of ADC Parameters from Sine Wave Test Data László Balogh, Balázs Fodor, Attila Sárhegyi, and István Kollár Dept. of Measurement and Information Systems Budapest University of Technology and Economics H-5 Budapest, Magyar tudóso rt.., HUNGARY Tel: +36 463-774, fax: +36 463-4 Email: lbalogh@mit.bme.hu, balazs.fodor@web.de, sarhegyi@mit.bme.hu, ollar@mit.bme.hu Abstract Sine wave test is maybe the most important method for characterizing ADC s. By this, the data acquisition device is excited with a sinusoidal signal, and a long series of output values is measured. With the help of these observations, the parameters of the DUT can be determined. The general method to do this is the Least Squares (LS) fitting. In this paper, we present a similar method, but use Maximum Lielihood Estimation (MLE). It is more robust than the LS method, which also has nice properties only under special conditions. This maximum lielihood problem is solvable only numerically. For this, a numerical method is presented, and simulation results are given. The main message of this paper is to explain how to handle the problems of the estimation in the best way in order to extract possibly the full information from the measured data, and obtain a robust, effective algorithm. Keywords - IEEE standard 4-, ADC test, analog-to-digital converter, maximum lielihood estimation, Least Squares fit, sine wave fitting, effective number of bits, ENOB. I. Introduction Development of digital computers and signal processors is surprisingly quic, and does not seem to slow down. Due to this, companies are developing newer and newer ADCs with better resolution, precision and speed. Hence fast, efficient, and standardized test methods are essential both for producers and for users. Moreover, such test methods reduce the time needed for the buyers of ADCs to validate the performance of the circuits they bought. This is what Standard IEEE-4 is made for. Suppose that we have a -bit A/D converter. It has output codes and between them - = 495 comparison (or code transition) levels. One of the purposes of ADC testing is to determine these levels (and/or yield simple descriptions of the global error). Once code-transition levels have been measured, then all static parameters, including integral and differential nonlinearities, missing codes, gain, and offset can be computed []. Quantitatively, a code transition is the value of the converter-input signal which causes half of the digital output codes to be greater than or equal to, and half less than, a given output code. There exist some procedures to directly measure these, but they are either time-consuming (up to about hour for all levels of a -bit ADC) or they are prone to dynamic errors. In this paper a prospective statistical test method to determine all parameters of the ADC and of the input signal is analyzed, using a single sine wave as excitation. If the sine wave is of low frequency, approximations to the static parameters are determined. II. Maximum lielihood problem The general problem statement is as follows. One applies a sine wave as excitation signal. A long series of output values is measured. The input is not accessible. Therefore, the output sequence must be used to determine the most probable parameter values of the input, and then for the extraction of the ADC errors. Determination of the input signal parameters is usually executed via least squares fit []. The method fails when the tacitly applied assumptions (independent, symmetrically distributed error) are violated. This is the case when the ADC is slightly overloaded (this can easily happen when all comparison levels are to be tested, thus one applies a possibly full-scale sine wave), or when the This wor was supported by the Hungarian Scientific Fund (OTKA) TS49743

amplitude of the sine wave is only a few times (let us say, <3 times) larger than the ADC quantum size. In such cases, modifications (elimination of certain samples) can be used [4], [5]. When using the maximum lielihood estimation, these modifications are not necessary! Many times, the experimenter is also interested in the noise corrupting the samples. It would be nice to calculate this using the digital samples only. The observation is that noise causes oscillations between the neighboring output levels while the instantaneous value of the input sine is close to these. Thus, a measure of the length of these oscillations can be used to determine the noise level, and the centers of the oscillations can be used to determine the comparison levels. The paper analyses this and gives the estimates. The model is that the input is a sine wave, corrupted by Gaussian white noise, and this is quantized by an ADC. First the ADC is handled as ideal, but this is not a requirement. A typical output signal is illustrated in Figure. 4 3 Amplitude (in q) - - -3-4 3 4 5 6 Time [s] Figure. Output samples of an ADC To obtain initial values, the length is measured at each level of the oscillations, and a weighted sum is formed. The result is corrected on the basis of a nonlinear corrections table [8]. Next, numerical solution of the maximization problem is suggested. Generally, the solution of the maximum lielihood problem is the maximization of the lielihood function L(a) to estimate the unnown parameters (a): M ( a) = max ( max L P Y i a) () a a As we will see later, in our case, the lielihood function is a product of probabilities. The distribution of the process is normal. Therefore, this problem is only solvable numerically. If the maximization is done, we can get the best parameters, because of the nice properties of the MLE (consistent, including asymptotically minimum-variance). The main message of this paper is how to handle this problem in the best way in order to extract possibly the full information from the measured data, and obtain a robust, effective algorithm. The presented method is quasi-static, we suppose, that the excitation signal has low frequency, and under the test conditions no dynamical effects appear (e.g out-of-range recovery). i= III. Modeling The first step of estimation is modeling. We suppose that the ADC is monotonic, and has no missing output codes. Local nonlinearities are possible, the true position of the transition levels have to be estimated. The ideal transfer function of an ADC can be seen in Figure.

N+ output (number of the output code) N 5 4 3 3 4 5 N- N input (number of the transision level) Figure. Transfer function of an ideal ADC (N is the number of the transition levels, N = B, where B is the number of bits) When using sine wave test, the exciting signal is sinusoidal: ( tn + ϕ) + C = A cos( ωtn ) + B sin( tn ) C yn = Acos ω ω + () where y n is the n th output sample, A is the amplitude, ω is the frequency, C is the DC component, A, BB, C are the parameters of the exciting sine wave. The signal at the ADC input is corrupted by some noise. The assumed noise is additive, white, independent, zero-mean and Gaussian. One can say that the sine is the drift component of the noise. Therefore, the probability density function (pdf) of the noise is drifted in front of the transition levels of the ADC. This can be seen in Figure 3..6.4...8.6.4.,5,5,5 3 3,5 Input of the ADC (in q) Figure 3. Transition levels and the pdf of the input signal (vertical lines: transition levels, solid curve: pdf of the input signal, dotted curve: drifted pdf of the input signal, σ < q, where σ is the standard deviation of the additive noise, q is the quantum size) By the maximum lielihood estimation we should maximize the following joint probability: max L a ( a) = max P( Yi = yi ) M A, B, C, σ, q i= where L is the so-called lielihood function, a is the vector of the parameters, M is the number of the observations, Y i is the i th observed sample (random variable), y i is one of the output values (codes), σ is the standard deviation of the additive noise, q is the vector of the transition levels. The probability that the output code is the th (Y i = ) is the integral of the pdf between the comparison levels around the th output code (see Figure 3). The meaning of (3) is following: with proper setting of the model parameters, the product of the probabilities should be maximal. When we change the parameters, the Gaussian bell will be drifted, (3)

and the positions of the transition levels will also be changed. Each probability for the intermediate bins can be calculated as follows: q ( u y) σ σ π q e du (4) where q is the th comparison level, y is the model of the sine wave, and σ is the standard deviation of the additive noise. The integration limits for the overdriven bins are (-,q ] and [q N, ). Even if the data acquisition device is overdriven, the amplitude of the excitation sine wave can be calculated with help of these probabilities. Using the definition of the normal distribution function, expression (4) can be written as: q y q y Φ Φ. (5) σ σ This problem is solvable only numerically. To solve the ML problem, the lielihood function L(a) has to be maximized. Or equivalently, its logarithm logl(a) can be maximized. We can solve the maximization problem by minimizing the function -logl(a). Therefore, (3) becomes: min a M i= ( log P Y i = y i ) (6) IV. Numerical method The numerical minimization of (3) is a descent method. This repeatedly performs line search to get a minimum in the direction of the negative gradient vector. We have applied the so-called bactracing algorithm [9]. Assuming that the current parameter vector is a, a + is computed by a t a + = a + Δ (7) where t determines the step size, and the direction towards the minimum can be calculated as follows: Δa = ( L( a) ) log (8) a The method of bactracing line search is the following [9]: given a descent direction Δa for -logl(a), α (,.5), β (, ): a= a t := while -logl(a + tδa) > -logl(a) - αtδa T Δa, t := βt. The overall description of the algorithm which calls the gradient method as a subfunction is:. Calculate an initial value for a. while err(a, a - ) > ε.. Gradient method for only A, B, and C.. Gradient method for one by one the element of q.3. Gradient method for σ where err(a, a - ) is the maximal element of the absolute value of the error (minimax criterion), i.e. (, a ) = a a err a (9) and ε is a threshold for this error. A possible way to determine the initial parameters is using sine fitting, noise estimation algorithm [8] and uniform distribution of the transition levels. This can be explained as follows. Sine wave fitting [] is a good algorithm for determining the initial signal parameters. At the beginning of the test, we do not have any information about the nonlinearities of the ADC. Therefore, the best we can do is to uniformly partition of the code transition levels. To determine the initial value of the additive noise, the algorithm presented in [8] is used. This method uses the fact that the additive noise causes oscillations in the observations. The lengths of these oscillations are proportional to the standard

deviation of the additive noise. According to the algorithm, the lengths of the oscillations have to be measured. The central point of the oscillations is determined as the central of mass. In this case the mass is the probability of the oscillation between two output codes. Therefore, the center of the deviation is somewhere in the middle of the oscillation, where the oscillating probability is maximal. It is very similar to what the maximum lielihood method does: the method searches the set of the parameters so that the lielihood function (joint probability) is maximal. V. Simulation The estimation is realized in MATLAB. The true and the estimated transfer function can be seen in Figure 4. For the simulation, the true positions of the comparison levels are randomized (nonlinear behaviour), maintaining a monotonous transfer characteristic. The maximum of the relative error is about %. 7 6 5 Output [code] 4 3-3 - - 3 Input [V] Figure 4. The true (dotted line) and the estimated (solid line) transfer function of the ADC (B = 3bits, the ADC is monotonous but nonlinear) The noisy input signal and the estimated sine wave can be seen in Figure 5. One can see that the estimation wors very well. The true amplitude of the sine is, the estimated value is.93..5.5 Amplitude [V].5 -.5 - -.5 - -.5..4.6.8 Time [us]..4.6.8 x 4 Figure 5. The noisy input signal (grey curve) and the estimated sine wave (blac curve) (the standard deviation of the noise is.v) The estimated parameters have little error, except for the standard deviation of the noise. We hope that improvement of the algorithm will allow to decrease also this error, thus achieving a robust testing algorithm. We are going to investigate this for the conference presentation. VI. Conclusions

Maximum lielihood estimation has very nice properties. Our experience is that the sine wave test of the ADC s can be more robust with its help. An important question is the effectiveness. After some calculations we concluded that the Cramer-Rao bound is generally reached. References [] IEEE Standard 4-, IEEE Standard for Terminology and Test Methods for Analog-to- Digital Converters. The Institute of Electrical and Electronics Engineers. [] Press, W. H., B. P. Flannery, S. A. Teuolsy and W. T. Vetterling, Numerical Recipes: The Art of Scientific Computing. Cambridge University Press, Cambridge, 986. [3] J. J. Blair, Sine-fitting software for IEEE standards 57 and 4, in Proc. of the 6th IEEE Instrumentation and Measurement Technology Conference, IMTC/99, Venice, Italy, May 999, vol. 3, pp. 54 56. [4] Kollár and J. J. Blair, Improved Determination of the Best Fitting Sine Wave in ADC Testing IEEE Trans. on Instrumentation and Measurement, Vol. 54 No. 5, pp. 978-83, 5. [5] I. Kollár, Improved Residual Analysis in ADC Testing 3th International Symposium on Measurements for Research and Industry Applications, 9th Worshop on ADC Modeling and Testing, Athens, Greece, Sep. 9t- Oct., 4. 869-74. [6] M. Fonseca da Silva, A. Cruz Serra, Improving Convergence of Sine Fitting Algorithms, Proc. 6th European Worshop on ADC Modeling and Testing, September 3-4,, Lisbon, Portugal. pp. -4. [7] B. Widrow, and I. Kollár, Quantization Noise, Boo in preparation, to be published by Cambridge University Press. Home Page URL: http://www.mit.bme.hu/boos/quantization/, Chapter 6: Dither. [8] B. Fodor and I. Kollár, ADC Testing with Verification, Instrumentation and Measurement Technology Conference IMTC 7, Warsaw, Poland, May -3, 7. Submitted to the special issue of IEEE Trans. on Instrumentation and Measurement. [9] Stephen Boyd, Convex Optimization, Cambridge University Press, Cambridge, 4. [] A. Di Nisio, G. Cavone, N. Giaquinto, L. Fabbiano, M. Savino, Improved Static Testing of A/D Converters for DC Measurements, Instrumentation and Measurement Technology Conference IMTC 7, Warsaw, Poland, May -3, 7.