Find Those Elusive ADC Sparkle Codes and Metastable States. by Walt Kester

Similar documents
The Importance of Data Converter Static Specifications Don't Lose Sight of the Basics! by Walt Kester

ADC Architectures I: The Flash Converter. by Walt Kester

EE247 Lecture 20. Comparator architecture examples Flash ADC sources of error Sparkle code Meta-stability

An accurate track-and-latch comparator

MT-024: ADC Architectures V: Pipelined Subranging ADCs

A 16-GHz Ultra-High-Speed Si SiGe HBT Comparator

RESIDUE AMPLIFIER PIPELINE ADC

High-Speed Analog to Digital Converters. ELCT 1003:High Speed ADCs

A Novel ROM Architecture for Reducing Bubble and Metastability Errors in High Speed Flash ADCs

CDK bit, 1 GSPS, Flash A/D Converter

Specifying A D and D A Converters

CHAPTER. delta-sigma modulators 1.0

IN the design of the fine comparator for a CMOS two-step flash A/D converter, the main design issues are offset cancelation

AN-742 APPLICATION NOTE One Technology Way P.O. Box 9106 Norwood, MA Tel: 781/ Fax: 781/

How to Setup a Real-time Oscilloscope to Measure Jitter

Implementation of High Precision Time to Digital Converters in FPGA Devices

DACPORT Low Cost, Complete P-Compatible 8-Bit DAC AD557*

MT-025: ADC Architectures VI: Folding ADCs

Chapter 2 Analog-to-Digital Conversion...

High Speed, Precision Sample-and-Hold Amplifier AD585

Data Acquisition & Computer Control

AD9772A - Functional Block Diagram

Measuring and generating signals with ADC's and DAC's

TUTORIAL 283 INL/DNL Measurements for High-Speed Analog-to- Digital Converters (ADCs)

Tuesday, March 1st, 9:15 11:00. Snorre Aunet Nanoelectronics group Department of Informatics University of Oslo.

AD9300 SPECIFICATIONS ELECTRICAL CHARACTERISTICS ( V S = 12 V 5%; C L = 10 pf; R L = 2 k, unless otherwise noted) COMMERCIAL 0 C to +70 C Test AD9300K

Design and Implementation of a Sigma Delta ADC By: Moslem Rashidi, March 2009

NPTEL. VLSI Data Conversion Circuits - Video course. Electronics & Communication Engineering.

AD557 SPECIFICATIONS. T A = 25 C, V CC = 5 V unless otherwise noted) REV. B

A VCO-based analog-to-digital converter with secondorder sigma-delta noise shaping

Lecture #6: Analog-to-Digital Converter

9-Bit, 30 MSPS ADC AD9049 REV. 0. Figure 1. Typical Connections FUNCTIONAL BLOCK DIAGRAM

Model 305 Synchronous Countdown System

SECTION 8 ADCs FOR SIGNAL CONDITIONING Walt Kester, James Bryant, Joe Buxton

Summary of Last Lecture

10-Bit, 40 MSPS/60 MSPS A/D Converter AD9050 REV. B. Figure 1. Typical Connections FUNCTIONAL BLOCK DIAGRAM

BPSK_DEMOD. Binary-PSK Demodulator Rev Key Design Features. Block Diagram. Applications. General Description. Generic Parameters

1 A1 PROs. Ver0.1 Ai9943. Complete 10-bit, 25MHz CCD Signal Processor. Features. General Description. Applications. Functional Block Diagram

FIBER OPTICS. Prof. R.K. Shevgaonkar. Department of Electrical Engineering. Indian Institute of Technology, Bombay. Lecture: 24. Optical Receivers-

B.E. SEMESTER III (ELECTRICAL) SUBJECT CODE: X30902 Subject Name: Analog & Digital Electronics

Precision, 16 MHz CBFET Op Amp AD845

We ve looked at timing issues in combinational logic Let s now examine timing issues we must deal with in sequential circuits

Module -18 Flip flops

10. Chapter: A/D and D/A converter principles

Costas Loop. Modules: Sequence Generator, Digital Utilities, VCO, Quadrature Utilities (2), Phase Shifter, Tuneable LPF (2), Multiplier

THE TREND toward implementing systems with low

Section 4: Operational Amplifiers

Chapter 2 Signal Conditioning, Propagation, and Conversion

Administrative. No office hour on Thurs. this week Instead, office hour 3 to 4pm on Wed.

Design Of A Comparator For Pipelined A/D Converter

Analog-to-Digital Converter Survey & Analysis. Bob Walden. (310) Update: July 16,1999

CH85CH2202-0/85/ $1.00

16.2 DIGITAL-TO-ANALOG CONVERSION

Measuring and Specifying Limits on Current Transients and Understanding Their Relationship to MR Head Damage

The counterpart to a DAC is the ADC, which is generally a more complicated circuit. One of the most popular ADC circuit is the successive

LIMITATIONS IN MAKING AUDIO BANDWIDTH MEASUREMENTS IN THE PRESENCE OF SIGNIFICANT OUT-OF-BAND NOISE

Dual 8-Bit 50 MSPS A/D Converter AD9058

SECTION 4 HIGH SPEED SAMPLING AND HIGH SPEED ADCs, Walt Kester

ECEN 720 High-Speed Links: Circuits and Systems

ECE 6770 FINAL PROJECT

Analysis and Design of High Speed Low Power Comparator in ADC

Applied Electronics II

OBSOLETE. Ultrahigh Speed Window Comparator with Latch AD1317

Fig. 2. Schematic of the THA. M1 M2 M3 M4 Vbias Vdd. Fig. 1. Simple 3-Bit Flash ADC. Table1. THA Design Values ( with 0.

SPT BIT, 150 MSPS, FLASH A/D CONVERTER TECHNICAL DATA

Operational Amplifier BME 360 Lecture Notes Ying Sun

MASH 2-1 MULTI-BIT SIGMA-DELTA MODULATOR FOR WLAN L 2 ( ) ( ) 1( 1 1 1

ISSCC 2003 / SESSION 4 / CLOCK RECOVERY AND BACKPLANE TRANSCEIVERS / PAPER 4.3

Low-Power Pipelined ADC Design for Wireless LANs

Lecture 160 Examples of CDR Circuits in CMOS (09/04/03) Page 160-1

DATASHEET HI5805. Features. Applications. Ordering Information. Pinout. 12-Bit, 5MSPS A/D Converter. FN3984 Rev 7.00 Page 1 of 12.

Design of Pipeline Analog to Digital Converter

Data Conversion and Lab (17.368) Fall Lecture Outline

AD Bit, 20/40/65 MSPS 3 V Low Power A/D Converter. Preliminary Technical Data

Operational Amplifiers

Analog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016

IC Preamplifier Challenges Choppers on Drift

ECEN689: Special Topics in High-Speed Links Circuits and Systems Spring 2012

INTEGRATED CIRCUITS. AN109 Microprocessor-compatible DACs Dec

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

5 V Integrated High Speed ADC/Quad DAC System AD7339

Analog-to-Digital i Converters

Flash ADC (Part-I) Architecture & Challenges

HI Bit, 40 MSPS, High Speed D/A Converter

Copyright 2007 Year IEEE. Reprinted from ISCAS 2007 International Symposium on Circuits and Systems, May This material is posted here

Eliminate Pipeline Headaches with New 12-Bit 3Msps SAR ADC by Dave Thomas and William C. Rempfer

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Linear Integrated Circuits Applications

CHAPTER 8 PHOTOMULTIPLIER TUBE MODULES

APPLICATION NOTE 3942 Optimize the Buffer Amplifier/ADC Connection

EE301 Electronics I , Fall

A 4 GSample/s 8-bit ADC in. Ken Poulton, Robert Neff, Art Muto, Wei Liu, Andrew Burstein*, Mehrdad Heshami* Agilent Laboratories Palo Alto, California

A-D and D-A Converters

Digital Dual Mixer Time Difference for Sub-Nanosecond Time Synchronization in Ethernet

PULSE CODE MODULATION TELEMETRY Properties of Various Binary Modulation Types

ELEC3242 Communications Engineering Laboratory Frequency Shift Keying (FSK)

CMOS Digital Integrated Circuits Lec 11 Sequential CMOS Logic Circuits

A DSP IMPLEMENTED DIGITAL FM MULTIPLEXING SYSTEM

EL4089 and EL4390 DC Restored Video Amplifier

SPT BIT, 30 MSPS, TTL, A/D CONVERTER

PRODUCT OVERVIEW REF FLASH ADC S/H BUFFER 24 +5V SUPPLY +12V/+15V SUPPLY. Figure 1. ADS-917 Functional Block Diagram

Transcription:

TUTORIAL Find Those Elusive ADC Sparkle Codes and Metastable States INTRODUCTION by Walt Kester A major concern in the design of digital communications systems is the bit error rate (BER). The effect of the ADC noise on system BER can be analyzed, provided the noise is Gaussian. Unfortunately, ADCs may have non-gaussian error codes which contribute to the BER in ways that are not predictable by simple analysis. Bit error rate may also be a concern in such instrumentation applications as digital oscilloscopes, especially when operating in the "singleshot" mode or when trying to capture infrequent transient pulses. An error code can be misinterpreted as a transient pulse, thereby giving a false result. This tutorial describes the basic mechanisms within ADCs that can contribute to the error rate, ways to minimize the problem, and methods for measuring the BER. SPARKLE CODES, ERROR CODES, RABBITS, OR FLYERS Random noise, regardless of the source, creates a finite probability of errors (deviations from the expected output). Before describing the error code sources, however, it is important to define what constitutes an ADC error or "sparkle" code. Noise generated prior to, or inside the ADC can be analyzed in the traditional manner. In most cases, the ADC noise has a Gaussian distribution and is a function of the resolution of the ADC (quantization noise) and additional noise created within the ADC (input-referred noise). An ADC sparkle code is any deviation from the expected output that is not attributable to the effective Gaussian noise of the ADC. Figure 1 illustrates an exaggerated output of a low-amplitude sinewave applied to an ADC that has error codes. The figure does not show the Gaussian noise of the ADC. (SPARKLE CODES, FLYERS, RABBITS) LOW-AMPLITUDE DIGITIZED SINEWAVE Figure 1: Exaggerated Output of ADC Showing Error Codes Rev.A, 10/08, WK Page 1 of 10

The large errors are more significant than those due to the ADC Gaussian noise and are not expected. These errors are random and are usually so infrequent that an FFT-based SNR test of the ADC will rarely detect them. These types of errors plagued some of the early ADCs for video applications in the 1970s, and were given the name sparkle codes because of their appearance on a TV screen as small white dots or "sparkles" under certain test conditions. These errors have also been called rabbits or flyers. In digital communications applications, this type of error increases the overall system bit error rate (BER). However, it should be noted that most communications systems have built-in error detection and correction codes which correct some of the error codes; therefore, the analysis of the actual degradation in overall system bit error rate due to the ADC sparkle codes becomes quite difficult. On the other hand, the effect of the ADC Gaussian noise on overall system BER has been well analyzed. SPARKLE CODES IN FLASH CONVERTERS In order to understand the causes of the error codes, we will first consider the case of a simple flash converter. Comparators used as building blocks in flash ADCs need good resolution which implies high gain. This can lead to uncontrolled oscillation when the differential input approaches zero. In order to prevent this, hysteresis is often added to comparators using a small amount of positive feedback. Figure 2 shows the effects of hysteresis on the overall transfer function. Many comparators have a millivolt or two of hysteresis to encourage "snap" action and to prevent local feedback from causing instability in the transition region. Note that the resolution of the comparator can be no less than the hysteresis, so large values of hysteresis are generally not useful in ADC applications. LATCH ENABLE + DIFFERENTIAL ANALOG INPUT LOGIC OUTPUT COMPARATOR OUTPUT "1" V HYSTERESIS "0" 0 DIFFERENTIAL ANALOG INPUT Figure 2: Latched Comparator Page 2 of 10

Early comparators were designed with vacuum tubes and were often used in radio receivers where they were called discriminators, not comparators. Most modern comparators used in ADCs include a built-in latch which makes them sampling devices suitable for data converters. A typical structure is shown in Figure 3 for the AM685 ECL (emitter-coupled-logic) latched comparator introduced in 1972 by Advanced Micro Devices, Inc. (see Reference 1). LATCH ENABLE + Q PREAMP LATCH Q Figure 3: The AM685 ECL Comparator (1972) The input stage preamplifier drives a cross-coupled latch. The latch locks the output in the logic state it was in at the instant when the latch was enabled. The latch thus performs a track-and-hold functon, allowing short input signals to be detected and held for further processing. Because the latch operates directly on the input stage, the signal suffers no additional delays signals only a few nanoseconds wide can be acquired and held. The latched comparator is also less sensitive to instability caused by local feedback than an unlatched one. Where comparators are incorporated into IC ADCs, their design must consider resolution, speed, overload recovery, power dissipation, offset voltage, bias current, and the chip area occupied by the architecture which is chosen. There is another subtle but troublesome characteristic of comparators which can cause large errors (sparkle codes) in ADCs if not understood and dealt with effectively. This error mechanism is the occasional inability of a comparator to resolve a small differential input into a valid output logic level. This phenomenon is known as metastability the ability of a comparator to balance right at its threshold for an extended period of time. Page 3 of 10

The metastable state problem is illustrated in Figure 4. Three conditions of differential input voltage are illustrated: (1) large differential input voltage, (2) small differential input voltage, and (3) zero differential input voltage. v o (t) = ΔV in Ae t/τ COMPARATOR OUTPUT LARGE ΔV IN 1 2 3 VALID LOGIC "1" SMALL ΔV IN ΔV O UNDEFINED ZERO ΔV IN VALID LOGIC "0" t DATA 1 VALID DATA 2 VALID DATA 3 VALID LATCH ENABLE LATCHED MODE (HOLD) t = 0 TRANSPARENT MODE (TRACK) t Figure 4: Comparator Metastable State Errors The approximate equation which describes the output voltage, V O (t) is given by: t / τ V (t) = ΔV Ae, Eq. 1 O where ΔV IN = the differential input voltage at the time of latching, A = the gain of the preamp at the time of latching, τ = regeneration time constant of the latch, and t = the time that has elapsed after the comparator output is latched (see References 2 and 3). For small differential input voltages, the output takes longer to reach a valid logic level. If the output data is read when it lies between the "valid logic 1" and the "valid logic 0" region, the data can be in error. If the differential input voltage is exactly zero, and the comparator is perfectly balanced at the time of latching, the time required to reach a valid logic level can be quite long (theoretically infinite). However, comparator hysteresis and input noise makes this condition highly unlikely. The effects of invalid logic levels out of the comparator are different depending upon how the comparator is used in the actual ADC. From a design standpoint, comparator metastability can be minimized by making the gain (A) high, minimizing the regeneration time constant (τ) by increasing the gain-bandwidth of the latch, and allowing sufficient time (t), for the output of the comparator to settle to a valid logic level. It is not the purpose of this discussion to analyze the complex tradeoffs between speed, IN Page 4 of 10

power, and circuit complexity when optimizing comparator designs, but an excellent treatment of the subject can be found in References 2 and 3. It is easy to see how metastability in a comparator can produce sparkle codes in a flash converter. If simple binary decoding logic is used to decode the thermometer code, a metastable comparator output may result in a large output code error. Consider the case of a simple 3-bit flash converter shown in Figure 5. Assume that the input signal is exactly at the threshold of Comparator 4 and random noise is causing the comparator to toggle between a "1" and a "0" output each time a latch strobe is applied. The corresponding binary output should be interpreted as either 011 or 100. If, however, the comparator output is in a metastable state, the simple binary decoding logic shown may produce binary codes 000, 011, 100, or 111. The codes 000 and 111 represent a onehalf scale departure from the expected codes and will appear as sparkle codes. Figure 5: Metastable Comparator Output States May Cause Error Codes in Data Converters The probability of errors due to metastability increases as the sampling rate increases because less time is available for a metastable comparator to settle. Various measures have been taken in flash converter designs to minimize the metastable state problem. Initially decoding the comparator outputs in Gray code or "pseudo-gray" code (followed by conversion to binary) is one method. This and other decoding schemes described in References 2 to 6 can minimize the magnitude of these errors. Optimizing comparator designs for regenerative gain and small time constants is another way to reduce these problems usually at the expense of additional power. Page 5 of 10

Metastable state errors (and the resulting sparkle codes) may also appear in successive approximation and pipelined subranging ADCs which make use of flash converters and comparators as building blocks. The same concepts apply, although the magnitudes and locations of the error codes may be different. The test system shown in Figure 6 may be used to test for BER in an ADC. The analog input to the ADC is provided by a high stability low noise sinewave generator. The analog input level is set slightly greater than full-scale, and the frequency such that there is always slightly less than 1-LSB change between samples as shown in Figure 7. E = Number of Errors in Interval T BER = E 2 T f s Figure 6: ADC Bit Error Rate Test Setup The test set uses two series buffer registers to acquire successive codes A and B. A logic circuit determines the absolute difference between A and B. This difference is then compared to the error limit, chosen to allow for the expected random Gaussian noise spikes due to the normal ADC noise. Errors which cause the difference to be larger than the error limit will increment the counters. The number of errors, E, are counted over a period of time, T. The error rate is then calculated as BER = E/2Tf s. The factor of 2 in the denominator is required because the hardware records a second error when the output returns to the correct code after making the initial error. The error counter is therefore incremented twice for each error. It should be noted that the same function can be accomplished in software if the ADC outputs are stored in a memory and analyzed by a computer program. The input frequency must be carefully chosen such that there is at least one sample taken per code as shown in Figure 7. Assume a full-scale input sinewave having an amplitude of 2 N /2: N 2 v(t) = sin 2πft Eq. 2 2 Page 6 of 10

The maximum rate of change of this signal is dv dt max 2 N πf. Eq. 3 Letting dv = 1 LSB, dt = 1/f s, and solving for the input frequency: f f s in. Eq. 4 2 N π Choosing an input frequency less than this value will ensure that there is at least one sample per code as shown in Figure 7. f s f in 2 N π 1 f s Figure 7: ADC Analog Input Signal for Low Frequency BER Test The same test can be conducted at high frequencies by applying an input frequency slightly offset from f s /2 as shown in Figure 8. This causes the ADC to slew full-scale between conversions. Every other conversion is compared, and the "beat" frequency is chosen such that there is slightly less than 1 LSB change between alternate samples. Page 7 of 10

f in = 2 f s Δf Δf f s 2 1 1 2 2 N π 2 f s Figure 8: ADC Analog Input for High Frequency BER Test The equation for calculating the proper frequency for the high frequency BER test is derived as follows. Assume an input full-scale sinewave of amplitude 2 N /2 whose frequency is slightly less than f s /2 by a frequency equal to Δf. v(t) The maximum rate of change of this signal is N 2 f = sin 2π s Δf t. Eq. 5 2 2 dv dt max 2 N f π s 2 Δf. Eq. 6 Letting dv = 1 LSB and dt = 2/f s, and solving for the input frequency Δf: f Δ s 1 f 1. Eq. 7 2 N 2 2 π Establishing the BER of a well-behaved ADC is a difficult, time-consuming task a single converter can sometimes be tested for days without an error. For example, tests on the AD9002 Page 8 of 10

8-bit 150-MSPS flash converter operating at a sampling rate of 75 MSPS yielded a BER of approximately 3.7 10 12 (1 error per hour), with an error limit of 4 LSBs. Meaningful tests for long periods of time require special attention to EMI/RFI effects (requiring a shielded screen room), isolated power supplies, isolation from soldering irons with mechanical thermostats, isolation from other bench equipment, etc. Figure 9 shows the average time between errors as a function of BER for a sampling frequency of 75 MSPS. This illustrates the difficulty in measuring low BER because the long measurement times increase the probability of power supply transients, noise, etc. causing an error. SUMMARY Figure 9: Average Time Between Errors Versus BER when Sampling at 75 MSPS From a user standpoint the effect of comparator metastability (if it affects the ADC performance at all) is in the bit error rate (BER) which is not usually specified on most ADC data sheets. As can be seen from this tutorial, completely specifying ADC BER requires extensive characterization of devices under a variety of input conditions and error limits, resulting in a formidable task. Bit error rate should not be a problem in a properly designed ADC in most applications, however the system designer should be aware that the phenomenon can exist. An application example where it can be a problem is when the ADC is used in a digital oscilloscope to detect smallamplitude single-shot randomly occurring events. The ADC can give false indications if its BER is not sufficiently small. Excessive ADC bit error rates in communications applications can degrade the overall system bit error rate. Page 9 of 10

REFERENCES 1. James N. Giles, "High Speed Transistor Difference Amplifier," U.S. Patent 3,843,934, filed January 31 1973, issued October 22, 1974. (describes one of the first high-speed ECL comparators, the AM685). 2. Christopher W. Mangelsdorf, "A 400-MHz Input Flash Converter with Error Correction", IEEE Journal of Solid-State Circuits, Vol. 25, No. 1, February 1990, pp. 184-191. (a discussion of the AD770, an 8-bit 200 MSPS flash ADC. The paper describes the comparator metastable state problem and how to optimize the ADC design to minimize its effects). 3. Charles E. Woodward, "A Monolithic Voltage-Comparator Array for A/D Converters," IEEE Journal of Solid State Circuits, Vol. SC-10, No. 6, December 1975, pp. 392-399. (an early paper on a 3-bit flash converter optimized to minimize metastable state errors). 4. J. Peterson, "A Monolithic video A/D Converter," IEEE Journal of Solid-State Circuits, Vol. SC-14, No. 6, December 1979, pp. 932-937. 5. Yukio Akazawa et. al., "A 400MSPS 8 Bit Flash A/D Converter," 1987 ISSCC Digest of Technical Papers, pp. 98-99. (describes a monolithic flash converter using Gray decoding). 6. Matsuzawa et al., "An 8b 600MHz Flash A/D Converter with Multi-stage Duplex-gray Coding," Symposium VLSI Circuits, Digest of Technical Papers, May 1991, pp. 113-114. (describes a monolithic flash converter using Gray decoding). Copyright 2009, Analog Devices, Inc. All rights reserved. Analog Devices assumes no responsibility for customer product design or the use or application of customers products or for any infringements of patents or rights of others which may result from Analog Devices assistance. All trademarks and logos are property of their respective holders. Information furnished by Analog Devices applications and development tools engineers is believed to be accurate and reliable, however no responsibility is assumed by Analog Devices regarding technical accuracy and topicality of the content provided in Analog Devices Tutorials. Page 10 of 10