Integrated ADC for Altera Cyclone-IV Devices. Technical Brief from Missing Link Electronics:

Similar documents
LEVERAGING FPGA AND CPLD DIGITAL LOGIC TO IMPLEMENT ANALOG TO DIGITAL CONVERTERS

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

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

Digital to Analog Converter. Raghu Tumati

Non-Data Aided Carrier Offset Compensation for SDR Implementation

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

DEVELOPMENT OF DEVICES AND METHODS FOR PHASE AND AC LINEARITY MEASUREMENTS IN DIGITIZERS

Analog Representations of Sound

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

Conversion Between Analog and Digital Signals

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

AND9035/D. BELASIGNA 250 and 300 for Low-Bandwidth Applications APPLICATION NOTE

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Spring 2007

Class D Audio Amplifier

ABCs of ADCs. Analog-to-Digital Converter Basics. Nicholas Gray Data Conversion Systems Staff Applications Engineer

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

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

CHAPTER 11: Flip Flops

Reading: HH Sections , (pgs , )

Basics of Simulation Technology (SPICE), Virtual Instrumentation and Implications on Circuit and System Design

Measuring Temperature withthermistors a Tutorial David Potter

Timing Errors and Jitter


US-SPI New generation of High performances Ultrasonic device

Spike-Based Sensing and Processing: What are spikes good for? John G. Harris Electrical and Computer Engineering Dept

Sampling Theorem Notes. Recall: That a time sampled signal is like taking a snap shot or picture of signal periodically.

Automotive. Aerospace. bout Us. Defense. Energy. Maritime. Education. Electronics. and more

DATA SHEET. TDA1543 Dual 16-bit DAC (economy version) (I 2 S input format) INTEGRATED CIRCUITS

1995 Mixed-Signal Products SLAA013

Section 3. Sensor to ADC Design Example

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

Tire pressure monitoring

Dithering in Analog-to-digital Conversion

Combining the ADS1202 with an FPGA Digital Filter for Current Measurement in Motor Control Applications

Analog Filters. A common instrumentation filter application is the attenuation of high frequencies to avoid frequency aliasing in the sampled data.

AM/FM/ϕM Measurement Demodulator FS-K7

Isolated AC Sine Wave Input 3B42 / 3B43 / 3B44 FEATURES APPLICATIONS PRODUCT OVERVIEW FUNCTIONAL BLOCK DIAGRAM

DDS. 16-bit Direct Digital Synthesizer / Periodic waveform generator Rev Key Design Features. Block Diagram. Generic Parameters.

AC : PRACTICAL DESIGN PROJECTS UTILIZING COMPLEX PROGRAMMABLE LOGIC DEVICES (CPLD)

FREQUENCY RESPONSE ANALYZERS

PCM Encoding and Decoding:

Electronics. Discrete assembly of an operational amplifier as a transistor circuit. LD Physics Leaflets P

Constructing a precision SWR meter and antenna analyzer. Mike Brink HNF, Design Technologist.

ECONseries Low Cost USB DAQ

US-Key New generation of High performances Ultrasonic device

Frequency Response of Filters

RF Measurements Using a Modular Digitizer

Op-Amp Simulation EE/CS 5720/6720. Read Chapter 5 in Johns & Martin before you begin this assignment.

Lock - in Amplifier and Applications

Analog Sound From A Digital Delay

A PC-BASED TIME INTERVAL COUNTER WITH 200 PS RESOLUTION

MICROPHONE SPECIFICATIONS EXPLAINED

Optimizing IP3 and ACPR Measurements

PLL frequency synthesizer

Laboratory 4: Feedback and Compensation

LAB 12: ACTIVE FILTERS

MCP3901. Two Channel Analog Front End. Description. Features. Package Type. Applications

12-Bit, 4-Channel Parallel Output Sampling ANALOG-TO-DIGITAL CONVERTER

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

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

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

Making Accurate Voltage Noise and Current Noise Measurements on Operational Amplifiers Down to 0.1Hz

PowerAmp Design. PowerAmp Design PAD135 COMPACT HIGH VOLATGE OP AMP

POCKET SCOPE 2. The idea 2. Design criteria 3

Improving A D Converter Performance Using Dither

LLRF. Digital RF Stabilization System

24-Bit Analog-to-Digital Converter (ADC) for Weigh Scales FEATURES S8550 VFB. Analog Supply Regulator. Input MUX. 24-bit Σ ADC. PGA Gain = 32, 64, 128

Continuous-Time Converter Architectures for Integrated Audio Processors: By Brian Trotter, Cirrus Logic, Inc. September 2008

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

MCP3901. Two-Channel Analog Front End. Description. Features. Package Type. Applications

AVR125: ADC of tinyavr in Single Ended Mode. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Chapter 12: The Operational Amplifier

Simplifying System Design Using the CS4350 PLL DAC

LC 2 MOS Signal Conditioning ADC with RTD Excitation Currents AD7711

AVX EMI SOLUTIONS Ron Demcko, Fellow of AVX Corporation Chris Mello, Principal Engineer, AVX Corporation Brian Ward, Business Manager, AVX Corporation

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

Nutaq. PicoDigitizer 125-Series 16 or 32 Channels, 125 MSPS, FPGA-Based DAQ Solution PRODUCT SHEET. nutaq.com MONTREAL QUEBEC

Digital Transmission of Analog Data: PCM and Delta Modulation

Loop Bandwidth and Clock Data Recovery (CDR) in Oscilloscope Measurements. Application Note

AMS Verification at SoC Level: A practical approach for using VAMS vs SPICE views

Buffer Op Amp to ADC Circuit Collection

Harmonics and Noise in Photovoltaic (PV) Inverter and the Mitigation Strategies

Teaching the Importance of Data Correlation in Engineering Technology

DS1104 R&D Controller Board

A/D Converter based on Binary Search Algorithm

Experiment # (4) AM Demodulator

Simple SDR Receiver. Looking for some hardware to learn about SDR? This project may be just what you need to explore this hot topic!

AN2834 Application note

Interfacing Analog to Digital Data Converters

Kit Watt Audio Amplifier

Physics 120 Lab 6: Field Effect Transistors - Ohmic region

Analog Signal Conditioning

Implementation of Digital Signal Processing: Some Background on GFSK Modulation

DRM compatible RF Tuner Unit DRT1

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the

FFT Frequency Detection on the dspic

H Op Amp History 1 Op Amp Basics 2 Specialty Amplifiers 3 Using Op Amps with Data Converters

Introduction to Digital Audio

Transcription:

Technical Brief 20110419 from Missing Link Electronics: Integrated ADC for Altera Cyclone-IV Devices This Technical Brief describes how to use Delta Sigma Modulation to implement resourceefficient Analog-to-Digital Converters (ADC) in Altera FPGA devices. Starting with an introduction into the technology of Delta Sigma Modulation, we will cover the relevant technical aspects for implementing and applying this as a flexible and cost-efficient means for ADC. We will provide the results of diligent testing using Altera Cyclone-IV FPGA devices which led to our technical specifications (Signal-to-Noise Ratios, Linearity, Spurious-Free Dynamic Range values). Copyright 2011 Missing Link Electronics, Inc. All rights reserved. Missing Link Electronics, the stylized Missing Link Electronics MLE logo are the service mark and/or trademark of Missing Link Electronics, Inc. All other product or service names and trademarks are the property of their respective owners. Technical Brief 20110419 www.mlecorp.com Page 1

Technical Brief 20110419 Field-Programmable Gate-Arrays (FPGA) are well established for implementing programmable logic. A lesser known feature is their programmable digital I/O capabilities. Supporting Low-Voltage Differential Signaling (LVDS) at frequencies of many hundred MHz, FPGA pins have become a viable option for quality analog I/O. This Technical Briehows how to implement Delta Sigma Analog-to-Digital Converters (ADC) inside Altera FPGA devices plus some additional passive components. The result is a flexible integrated solution with smaller PCB footprint, field-upgradability and reduced risk of device obsolescence. Key Features SNR 60 db (compares to 10 bits effective resolution) Sample-rate up to 500 k samples per second Input range 0 to 3.3 V with high linearity, other input ranges are parameterizable. Cost-efficient for multi-channel-systems: 8 ADC channels use 801 LEs and 16400 memory cells. Resources < 121 LEs for Altera Cyclone-IV for the first instance. Futher instances use 68-72 LEs. Areas of Applicability Flexible data acquisition systems Solution for one more IO -problems Integrated voltage monitoring system Instrumentation and control systems Sensor input in ambient intelligence Integrated microcontrollers with reduced risk of parts obsolescence Support of AM protocols like IRIG The integrated ADC technology presented in this Technical Brief has undergone extensive testing and diligent analysis and has demonstrated to be robust and of high quality. When combined with the appropriate design methodology it is considered application-ready. Technical Brief 20110419 www.mlecorp.com Page 2

Concept The basic theory behind the Delta Sigma Modulation is shown in Fig. 1. The time-continuous signal x(t) is the input signal and the resulting output is the time-discrete digital y(z). A First-Order Delta Sigma Modulator comprises a feedback loop which subtracts the feedback signal from the input signal (delta). These differences are then summed up in the integrator (sigma). Figure 1: First Order Delta Sigma Modulator This feedback loop leads to the transfer functions of the First-Order Delta Sigma Modulator: H(z) signal = 1; H(z) noise = 1 z 1 As these functions underline, the noise is high-pass filtered which is convenient looking at the other aspect of the Delta Sigma Modulation, the oversampling. With oversampling, we sample the analog input signal with a much higher frequency than the Shannon-Nyquist theorem demands. The result, in combination with the high-filtering effect of the Delta Sigma Modulator is, that the noise is distributed to the higher frequencies. This is called Noise Shaping. The possible signal-to-noise (SNR) ratio gain using oversampling is 3dB per octave. Using first order Delta Sigma Modulation, this SNR gain rises to 9dB per octave. These effects can be seen in Fig. 2 a, b and c. Amplitude Noise Filter Amplitude Filter Noise with oversampling Amplitude Filter Noise with noiseshaping 2 (a) Nyquist rate 2 (b) Oversampling k 2 2 k 2 (c) Noise shaping Figure 2: Noise distribution principles Fig. 2a shows the Nyquist Sampling converter. All quantizing noise is in the desired signal band. A first improvement comes from Oversampling and is shown ins Fig. 2b. It distributes the noise equally over the sample spectrum. A second improvement is Noise Shaping which is shown in Figure 2c. Noise-shaping acts as a high pass for the noise and is Technical Brief 20110419 www.mlecorp.com Page 3

the enabling piece which allows us to build high quality ADC inside purely digital FPGA devices. However, the drawback of Noise Shaping is that one must come up with appropriate parameter sets to operate the inherently instable Delta Sigma Modulator. Parameter Setting To obtain suitable parameters for the Delta Sigma Modulator, a Matlab simulation was created. The design flow for the parameter creation can be seen in Fig. 3: Requirements Samplerate Resolution Linearity Mlab MLE Mlab Model Parameters RC Parameters Synthesize.bit Figure 3: Design Flow for a Delta Sigma ADC Parameterization When running this parameter search, a parameter space is being searched to find the most suitable parameter set for the desired application. The parameter space addresses the integrator time-constant which is in this case a low-pass time-constant and the sample frequency which determines the oversampling frequency. An exemplary heat map of one of these simulations can be seen in Fig. 4. The heat-map is plotted by drawing the two different parameters over the resulting SNR value and shows two things. At first, it shows a good parameter set for the desired input frequency. It also shows that just using a higher sample frequency won t automatically give better results unless you consider the other parameters such as the integrator timeconstant. So when actually parameterizing the hardware part of the Delta Sigma Modulator, on has to first decide for the desired ENOB or SNR. After that a suitable spot with enough reserve is chosen and results in a parameterisation of the Delta Sigma Modulator when the actual values for the resistors and the capacitor are calculated from the lowpass cutoff frequency.. Technical Brief 20110419 www.mlecorp.com Page 4

0.2 0.40.77 Heatmap of the SPICE Simulation 25 Sample Clock in MHz 12.5 6.25 3.125 1.6 0.78 1.55 3.16.2 12.4 2550 80 13 100 200400 800 1600 60 40 20 0 SNR (db) 10 7 3 0 ENOB (bit) Figure 4: Heatmap of Delta Sigma Modulator Parameterization Run Implementation The basic components are shown in Fig. 5. The external components are the two resistors and one capacitor. In combination with the Low Voltage Differential Signaling (LVDS) receiver and a Flip-Flop a Delta Sigma Modulator is built. Other components of the Delta Sigma Modulator ADC input are the Filters used to get the desired signal. There is the Moving Average Lowpass Filter with typically 1024 taps but can have whatever size required. The Decimation Filter samples the Data down to the desired sample-rate which is typically 48 KHz. After this there can optionally be a Calibration Filters for offset and gain compensation and Filters to remove AC components. Analog FPGA Vref Analog Input D Clk Q Moving Average Filter 1024 Taps Decimation Filter 48 KHz Digital Output Calibration Figure 5: Principle of the Delta Sigma Modulator including the filtering The Delta Sigma ADC was implemented using VHDL to support a wide range of target FPGA devices. It consists oeveral modules, namely the Delta Sigma Modulator which generates the bit-stream, a low-pass filter which cuts of the high band noise and prevents aliasing. The last module is a decimator filter which converts the signal to the desired sample rate and bit width. Technical Brief 20110419 www.mlecorp.com Page 5

Testing To validate the simulation results, diligent analysis was done. In particular we tested and measured the quality of results for Altera Cyclone-IV FPGA devices namely the EP4CE115, which is located on the Terasic Industrial Networking Kit (INK) DE2-115 board. For example, values for the resistors and the capacitor were picked from simulation, and were determined to be 100 pf for the capacitor and 10 kohm for the resistors which are values from the parameterization for a 100 Mhz bitstream sample rate. During our tests we found out that the quality of the passive components has little effects on the overall quality of the ADC. For example, the resistors can be wired metalloxide resistors and the capacitor can be a styroflex capacitor. The voltage reference was created by a voltage divider from the 3.3 V Voltage source using two additional 10 kohm resistors. Crosstalk Crosstalk is the influence of other ADC channels on the ADC. During our testing we found very little effects of crosstalk: For example, we implemented two Delta Sigma ADC on the same FPGA voltage bank. The measured channel had no input signal, and the other channel had a full scale 1 khz input signal. The resulting signal on the channel with no input was measured and the resulting SNR was 2.3 db. Temperature Drift For the influence of the temperature drift, we cooled the FPGA as well as the external circuitry down to a temperature of -40 C and then back to room temperature. We could not detect any effects caused by temperature drift. Linearity For linearity analysis an input signal was sampled and the resulting digitized bit stream was recorded using the Altera Signaltap integrated logic analyzer. The measured sample depth was 65536 Samples. The clock speed of the Delta Sigma Modulator was 100 MHz. The example schematic can be seen in Fig. 6. To analyze the linearity, voltages from 0 to 3.3 Volts were generated using an Agilent E3642A power supply. These voltages were verified using an Agilent 33410A high performance multimeter. The whole measurement was controlled by a Linux PC using the GPIB interfaces of the Voltage Source and the Multimeter. The results of the linearity measurement can be seen in Fig. 7. The integrated nonlinearity (INL) plot demonstrates linearity over the entire voltage input range, as well as a strongly monotonic behavior. It also shows that the whole range from 0V to 3.3 V can be measured. Technical Brief 20110419 www.mlecorp.com Page 6

Analog R 3 3.3 V R 4 Input R 1 R 2 C 1 Figure 6: Schematic Linearity for Bitstream 140000 measured Delta Sigma ideal Delta Sigma INL 120000 100000 Digital Value 80000 60000 40000 20000 0 0 500 1000 1500 2000 2500 3000 Voltage (mv) Figure 7: Plot of Linearity Voltage over digital Value Technical Brief 20110419 www.mlecorp.com Page 7

Quality of Results Other important parameters of an ADC are the Signal to Noise Ratio (SNR), the Spurious Free Dynamic Range (SFDR) and the Total Harmonic Distortion (THD). These values were measured using the same resistor / capacitor values (10 kohm and 100 pf, resp.) as during the measurement of the linearity. These parameters have been measured using different input signal frequencies from 500Hz to 15 khz and a sample frequency of 50 khz with an oversampling ratio of 1024. The calculation of the SNR, the SFDR and the THD was done using Matlab. Frequency (Hz) SNR (db) THD (%) SFDR (db) 500 59 0.02 38 1000 56 0.025 39 5000 57 0.015 44 10000 54 0.01 47 15000 53 0.01 53 Fig. 8 shows a Fourier spectrum with a good parameter set for the Delta Sigma Modulator. In this Fourier spectrum the 60dB SFDR can be easily seen. Figure 8: Example Fourier spectrum of a 1kHz sine tone Resource Requirements The resource usage of the particular Altera Cyclone-IV design used in the analysis was 801 LEs plus two M9K elements for 8 separate ADC channels. The main resources are needed by the filtering stage, the actual Delta Sigma Modulator just uses 1 LE. The standard input voltage range is from 0V to the full feedback pin voltage. Technical Brief 20110419 www.mlecorp.com Page 8

It can be extended by using an op-amp to scale the input signal, or by changing the input resistor to a higher value. Of course, when a higher input voltage is applied, measures should be taken to protect the FPGA input pin from over-voltage. One can achieve high quality of ADC results without high quality passive components for the Delta Sigma Modulator. This is an additional benefit of this method. The only requirements are that the integrator time-constant is matching the values calculated in the simulation. Mixed Signal FPGA Development Kit for Altera Cyclone IV FPGAs This kit allows easy and efficient evaluation of MLE s soft ADC and DAC technology. The following components are included: Two boards, the Terasic DE0-Nano FPGA Development board featuring the Altera Cyclone-IV FPGA and the MLE passive-only Connector board. The MLE Evaluation FPGA reference design for the Altera Cyclone-IV FPGA. Figure 9: Mixed Signal FPGA Development Kit for Altera Cyclone IV FPGAs The Evaluation Git comes pre-assembled and pre-configured, ready to start evaluation. Please visit http://mlecorp.com/softadc for the official Evaluation Guide or to apply for free evaluation. Technical Brief 20110419 www.mlecorp.com Page 9

Brief features summary: Altera Cyclone IV FPGA device 8 independent ADC channels, sampling at 48kSamples per second at 16 bits 2 ADC channels with 12V input 2 ADC channels with 5V input 4 ADC channels with 3.3V input 2 independent DAC channels 2 DAC channels with 3.3V output Pre-configured with 750Hz sine wave generators 1 DAC-to-ADC loop-back Optional: Altera NIOS II based System-on-Chip from MLE (not utilized in this evaluation) Figure 10: Block Diagram Altera Cyclone IV FPGA Technical Brief 20110419 www.mlecorp.com Page 10

References [1] F. Sousa, V. Mauer, N. Duarte, R. P. Jasinski, and V. A. Pedroni, Taking advantage of LVDS input buffers to implement sigma-delta A/D converters in FPGAs. IEEE, 2004. [2] M. Ortmanns, Personal Communication. 2010. [3] E. Schubert, H. Zekel, C. Grumbein, and A. Zimmermann, FPGA can do analog! 2011. [4] C. Grumbein, FPGA-Based first order Delta Sigma ADC. 2010. Technical Brief 20110419 www.mlecorp.com Page 11