Enhancing Analog Signal Generation by Digital Channel Using Pulse-Width Modulation

Similar documents
The Fundamentals of Mixed Signal Testing

Technical Specifications Revision 1.20

ADC and DAC Standards Update

Testing A/D Converters A Practical Approach

MSP430 Teaching Materials

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

AD9772A - Functional Block Diagram

Accurate Harmonics Measurement by Sampler Part 2

The need for Data Converters

Analog and Telecommunication Electronics

Models 296 and 295 combine sophisticated

Reconfigurable 6 GHz Vector Signal Transceiver with I/Q Interface

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT, 250KSPS ADC

New Features of IEEE Std Digitizing Waveform Recorders

UNIVERSITY OF CALIFORNIA College of Engineering Department of Electrical Engineering And Computer Sciences MULTIFREQUENCY CELL IMPEDENCE MEASUREMENT

ADC Resolution: Myth and Reality

APPLICATION NOTE 3942 Optimize the Buffer Amplifier/ADC Connection

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

Summary Last Lecture

Analog and Telecommunication Electronics

The Case for Oversampling

Hideo Okawara s Mixed Signal Lecture Series. DSP-Based Testing Fundamentals 6 Spectrum Analysis -- FFT

1. R-2R ladder Digital-Analog Converters (DAC). Connect the DAC boards (2 channels) and Nexys 4 board according to Fig. 1.

Chapter 2: Digitization of Sound

Telecommunication Electronics

ENGINEERING FOR RURAL DEVELOPMENT Jelgava, EDUCATION METHODS OF ANALOGUE TO DIGITAL CONVERTERS TESTING AT FE CULS

Analog Arts SF990 SF880 SF830 Product Specifications

ADCS7476/ADCS7477/ADCS7478 1MSPS, 12-/10-/8-Bit A/D Converters in 6-Lead SOT-23

ADQ214. Datasheet. Features. Introduction. Applications. Software support. ADQ Development Kit. Ordering information

Digital Time-Interleaved ADC Mismatch Error Correction Embedded into High-Performance Digitizers

Analog Arts SL987 SL957 SL937 SL917 Product Specifications [1]

Analog Arts SF900 SF650 SF610 Product Specifications

National Instruments Flex II ADC Technology The Flexible Resolution Technology inside the NI PXI-5922 Digitizer

Analog Arts SG985 SG884 SG834 SG814 Product Specifications [1]

Analog and Telecommunication Electronics

SC5306B 1 MHz to 3.9 GHz RF Downconverter Core Module. Datasheet SignalCore, Inc.

Data Conversion Techniques (DAT115)

Lecture #6: Analog-to-Digital Converter

ANALOG CIRCUITS AND SIGNAL PROCESSING

Data Converters. Specifications for Data Converters. Overview. Testing and characterization. Conditions of operation

Low-IMD Two-Tone Signal Generation for ADC Testing

UCE-DSO212 DIGITAL OSCILLOSCOPE USER MANUAL. UCORE ELECTRONICS

ANALOGUE AND DIGITAL COMMUNICATION

Choosing the Best ADC Architecture for Your Application Part 3:

Tiny, 2.1mm x 1.6mm, 3Msps, Low-Power, Serial 12-Bit ADC

Analog Arts AG900 AG885 AG875 AG815 Product Specifications

FUNDAMENTALS OF ANALOG TO DIGITAL CONVERTERS: PART I.1

EE247 Lecture 14. To avoid having EE247 & EE 142 or EE290C midterms on the same day, EE247 midterm moved from Oct. 20 th to Thurs. Oct.

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

Using High Speed Differential Amplifiers to Drive Analog to Digital Converters

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

3. DAC Architectures and CMOS Circuits

Cleverscope Model CS320A - CS328A Data Sheet

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

Maxim > Design Support > Technical Documents > Tutorials > A/D and D/A Conversion/Sampling Circuits > APP 748

DAC & ADC Testing Fundamental

DG5000 Series Specifications

Lab.3. Tutorial : (draft) Introduction to CODECs

Lecture 9, ANIK. Data converters 1

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

400ksps/300ksps, Single-Supply, Low-Power, Serial 12-Bit ADCs with Internal Reference

24-Bit, 312 ksps, 109 db Sigma-Delta ADC with On-Chip Buffers and Serial Interface AD7764

Maximizing GSPS ADC SFDR Performance: Sources of Spurs and Methods of Mitigation

Working with ADCs, OAs and the MSP430

Fundamentals of Arbitrary. Waveform Generation

Workshop ESSCIRC. Low-Power Data Acquisition System For Very Small Signals At Low Frequencies With12-Bit- SAR-ADC. 17. September 2010.

Acquisition Time: Refer to Figure 1 when comparing SAR, Pipeline, and Delta-Sigma converter acquisition time. Signal Noise. Data Out Pipeline ADC

1.5 Giga Hertz Ultra High Speed ADC Testing on ATE

ELG3336 Design of Mechatronics System

SC5407A/SC5408A 100 khz to 6 GHz RF Upconverter. Datasheet. Rev SignalCore, Inc.

Digital Design Laboratory Lecture 7. A/D and D/A

DATASHEET HI1175. Features. Ordering Information. Applications. Pinout. 8-Bit, 20MSPS, Flash A/D Converter. FN3577 Rev 8.

NI Contents CALIBRATION PROCEDURE

G5100A: 50 MHz Arbitrary Function Generator

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

Multiple Reference Clock Generator

GFT bit High Speed Digitizer

Designing a Premium Audio System. Gregg Scott Senior Applications Engineer Mid Power Audio Amplifiers

High Speed ADC Analog Input Interface Considerations by the Applications Engineering Group Analog Devices, Inc.

Design Implementation Description for the Digital Frequency Oscillator

Digital Waveform Recorders

Digital AudioAmplifiers: Methods for High-Fidelity Fully Digital Class D Systems

Tiny 12-Bit ADC Delivers 2.2Msps Through 3-Wire Serial Interface by Joe Sousa Introduction

Environmental ADC Interface P Team Members

Developing a Generic Software-Defined Radar Transmitter using GNU Radio

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

Glossary of VCO terms

Improving Amplitude Accuracy with Next-Generation Signal Generators

Rigol DG1022A Function / Arbitrary Waveform Generator

System on a Chip. Prof. Dr. Michael Kraft

Sigma-Delta ADC Tutorial and Latest Development in 90 nm CMOS for SoC

WaveStation Function/Arbitrary Waveform Generators

EE 421L Digital Electronics Laboratory. Laboratory Exercise #9 ADC and DAC

WaveStation Function/Arbitrary Waveform Generators

DATA INTEGRATION MULTICARRIER REFLECTOMETRY SENSORS

Low-Cost Power Sources Meet Advanced ADC and VCO Characterization Requirements

Dual Channel Function/Arbitrary Waveform Generators 4050B Series

8-Channel, 1 MSPS, 8-/10-/12-Bit ADCs with Sequencer in 20-Lead TSSOP AD7908/AD7918/AD7928

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

8-Channel, 1 MSPS, 8-/10-/12-Bit ADCs with Sequencer in 20-Lead TSSOP AD7908/AD7918/AD7928

Transcription:

Enhancing Analog Signal Generation by Digital Channel Using Pulse-Width Modulation Angelo Zucchetti Advantest angelo.zucchetti@advantest.com Introduction Presented in this article is a technique for generating an analog signal using a digital pin driver. This technique is similar to the one presented in previous articles 1 where the delta sigma modulation approach based on pulse density modulation was introduced. The technique described in this article is based on Pulse-Width Modulation (PWM). This is widely used in many applications, like sensors and microcontrollers. The analog signal generation is obtained by modulating the duty-cycle of a digital pulse stream and filtering it with a suitable low-pass filter. In this technique sigma-delta noise-shaping is also applied, to shift the quantization noise outside the filter pass-band. With the PWM performance improvements have been obtained with respect to the previous methodology. The analog signal max amplitude is larger, linearity and signal-to-noise (SNR) performances are improved. The software support for Per Pin Signal generation based on PWM has been included in V93000 Smartest starting from release 7.2.0. Overview of Pulse Width Modulation Pulse Width Modulation is based on modulating the duty cycle of a digital pulse. The analog signal-amplitude is mapped into the duty-cycle of a pulse by a defined transfer function. The easiest transfer function is just a linear function. In Figure 1 this mapping is shown for a Sine waveform of amplitude V pp and offset V cm. 1 DSP-Based Testing - Fundamentals 44: Analog Signal Generation by Digital Pin Driver I; DSP-Based Testing - Fundamentals 45: Analog Signal Generation by Digital Pin Driver II; 1/11

Figure 1: Pulse Width Modulation Amplitude to Duty-Cycle Mapping The parameter k is called the modulation depth and represents the percentage of the pulse period used for the modulation. It can also be seen as the ratio between the analog-signal amplitude and the pulse amplitude. As the figure shows an analog waveform F(t) with common mode V cm can be sampled at a given frequencyf s and mapped into a digital-pulse stream. The sampling frequency determines the period of the digital pulses T = 1/f s, while the time-duration of n-th pulse w n is given by: w n = T 2 [1 + 2k (F(t n) V cm ) V pp ] The pulse duration w n defines the position of the falling edge of the digital pulse, while the trailing edge is always placed at the beginning of the period. The edge placement can be done with a minimum resolution given by the driver hardware capabilities. For example, with the Advantest Pin Scale 1600 digital card a pulse period is generated by a series of bits at the maximum speed of the card, which is 1600 Gbps. This leads to a minimum edge placement resolution of 625 ps. However, a better resolution can be achieved using higher-speed digital cards such as the Pin Scale 9G which has a maximum speed of 8 Gbps, which leads to a resolution of 125 ps. The finite edge placement resolution leads to a quantization of the pulse duration w n. This quantization process is equivalent to an analog-to-digital conversion performed by and ADC with a number of bits given by: N bits = log 2 ( kt r ) where r is the edge-placement resolution. For example, sampling an analog waveform at the frequency of 200 ksps, with a modulation depth 0.8 and using a Pin Scale 1600 digital card gives a resolution of the equivalent ADC equal to 12.6 bits. An estimation of the noise generated by this quantization process can be evaluated using the definition of Effective Number of Bits: SNR = (6.02N bits + 1.76)dB 2/11

which gives for the SNR a value around 77.6 db. Noise Shaping The quantization process related to the Pulse Width Modulation, leads to a flat noise floor (see Figure 3). As it has been described for the Pulse-Density Modulation, a noise shaping technique can be apply to lower the noise level for the lower frequency and push it out to the higher frequency, where it gets attenuated by the analog low-pass filter. For the noise shaping a multi-bit Delta-sigma modulator is used. In the block diagram of Figure 2 such a modulator is shown, where for simplicity a first order modulator is considered. Figure 2: Multi-bit delta-sigma modulation The sampled voltage Vin goes through a signal integrator and the integrated voltage V1 is quantized by a N-bit quantizer (Vout). The value is the output of the Pulse Width modulator and to an N-bit DAC. The DAC converts the quantized voltage into an analog voltage V2. For the next code generation the difference between a new Vin sample and V2 is calculated (delta) and fed into the integrator (sigma) to generate a new voltage V1 for the Quantizer. 3/11

Figure 3: 10 khz Sine wave spectrum with no sigma-delta modulation (gray),first order delta-sigma modulation (blue) and second order delta-sigma modulation(red). In Figure 3 the spectrum of a quantized 10 KHz sine wave sampled at 200 ksps is shown. The spectrum obtained without applying any modulation is compared with the noise-modulated spectrum obtained by running the first and second order delta-sigma modulator. As expected the noise floor is lowered by the noise-shaping, and the effect is more relevant if the modulator order is increased 2. For the PWM a higher order delta-sigma modulation is used, to increase considerably the signal to noise performance inside the pass-band of the low-pass filter. Carrier-Pulse Distortion After the noise-shaped quantization the calculated codes (Vout) are translated into pulses of different time-duration w n. Figure 4 shows an example of this stream where in the x-axis the cycle number if reported. Figure 4: PWM stream 2 DSP-Based Testing - Fundamentals 45: Analog Signal Generation by Digital Pin Driver II. 4/11

Figure 5: Pulse-stream Spectrum - no-filtering In Figure 5 the spectrum of the pulse stream captured before the analog filter is shown. This stream is designed to generate a 10 khz Sine analog waveform, with a sampling frequency of 150 ksps. The spectrum analyzer screenshot on the left size shows the spectrum of the pulse stream for a frequency up to 1 MHz. At 10 khz (marker position) the signal generated by the modulation can be seen. The peak in the middle of the spectrum located at 450 khz is the pulse-carrier frequency. For the analog signal generation the code frequency has been chosen to be 3 times the sampling frequency. This is done automatically by the per-pin signal generation software. Left and right of the carrier frequency at a distance of 10 khz from each other there are inter-modulation components. The screenshot on the right shows the spectrum of the same pulse-stream taken up to 2.5 MHz. In this screenshots the harmonics of the carrier-pulses surrounded by the corresponding intermodulation components can be seen. From the performance point of view, the carrier pulse fundamental frequency and harmonics do not pose any issue. This is due to the fact that these frequencies are multiple of the sampling frequency. The spectrum calculated from the captured samples is limited to the Nyquist frequency f s 2. The higher frequencies are folded back (aliased) inside the Nyquist interval. The frequencies which are multiple of f s gets folded into the DC component, which is not considered in the Signal-to-Noise measurements. Unfortunately this does not occur for the intermodulation components, which if not properly filtered, will be aliased into the low-frequency segment of the spectrum. For this reason it is important to design a filter which has enough attenuation for suppressing these components below the noise-floor. Usually high order Low-pass filters are designed, which allows for a proper attenuation on a wide frequency range. If the attenuation provided by the filter is not enough the data stream can be generated with a higher carrier frequency (always multiple of the sampling frequency) moving the intermodulation components to higher frequency, where the attenuation is larger. Low Pass Filter Reference Design A key element for the Per Pin Signal Generator performance is the low-pass filter. A non-properly designed filter can generate an unexpected large distortion in the output analog signal and can lead 5/11

to very poor performance. For this reason a set of pre-designed filters have been designed and measured. These filters are all available on a single daughter board, which can be used for performance evaluation and engineering prior to the production loadboard design. The Per Pin Signal Generator loadboard can be seen in Figure 6. Figure 6: Per Pin Signal Generator Reference Daughter Board Key features for a properly designed filter for the Per Pin Signal Generation should be: The pass-band should be flat, to minimize filter-induced distortion. The transition-band should be steep to assure attenuation shaped quantization noise which is increasing outside the filter Pass-Band. The stop-band should have a high attenuation factor over a long frequency range to attenuate quantization-noise and the intermodulation and spurious components. Figure 7: Ideal Low Pass Filter Per Pin Signal Generator Tool Starting with the V93000 SmarTest release 7.2.0 a tool that automatically generates the Per Pin Signal Generator Setup has been developed. This tool can be started from the Signal Analyzer Tool 6/11

and provides an easy to use Graphical User Interface (GUI), as shown in Figure 8. Figure 8: Per Pin Signal Generator GUI The GUI is divided into 4 sections. In the first section the digital channel parameters can be defined. Here the user can specify if the output signal is single ended or differential. He can also specify the name of the used digital pins and the name of the port defined for these pins. The pins used for the per-pin signal generation, run with their own period, which is near to the maximum rate of the digital card. For this reason they need to be run in a separated port, to allow for setting an independent period for the other pins of the device. The second section is dedicated to the definition of the low-pass filter. The parameters here are the filter cut-off frequency, the order of the filter and the series resistance of the filter. In the third section the analog signal is defined. The user should specify the waveform shape. Sines, Ramp-up, Ramp-down and Triangular waveforms are supported. Once this is defined the relevant parameter for the waveform definition need to be given. For example, if a Sine waveform is chosen, the user has to define the signal frequency and the initial phase. In this section the signal max and min voltage also need to be specified. In this section a pre-waveform and post-waveform duration can be optionally given. The pre and post-waveform is particularly useful for the ramp generation. For this waveform shape, the pre and post waveform is generated just by looping the first and the last code of the ramp, respectively, for the specified amount of time. This can be used as an example for charging the filter before starting the ramp. Finally the fourth section is dedicated to the DUT relevant parameters. First the number of connected input and the DUT impedance can be specified. These two parameters, together with the low-pass filter series resistance, are used by the tool to calculate the digital channel levels needed 7/11

to generate the specified analog signal. The following parameters are the number of samples and the sampling frequency and the Noise-reduced bandwidth. The last parameter is set to the Nyquist frequency per default but a different value can be specified. This parameter is the relevant bandwidth considered for the SNR calculation. Details on the input parameters and the GUI operation can be found in the Technical Documentation Center 3. Once the parameters have been set the calculation is started by pressing the ok button. The calculation result is the output of the Signal Analyzer Tool as shown in Figure 9. The tool output the bit stream for the PPSG pins and the expected waveform. The download Action of the Signal Analyzer Tool can be used to download the bit-stream. In the console run-time errors and warnings from the stream generation are displayed. Figure 9:Signal Analyzer Tool: Per Pin Signal Generator Output The tool also generates a STIL file containing all the setup information. If the V93000 SmarTest Data Link Stilreader is installed on the workstation, the STIL file is compiled and a One Test-Suite Test Program is generated. Then the setups can be merged into the existing test program manually or by using the V93000 SmarTest Test Program Manager. Performance Example In this section some performance results produced by using the Pin Scale 1600 digital channels are shown. The first example is a 0 to 6 Volts voltage ramp (Figure 10). The ramp was generated by the PWM 3 Advantest Technical Documentation Center: V93000 Smartest 7.2.0 Documentation: PPSG Operation (Topic 135617). 8/11

Per Pin Signal Generator. The sampling frequency for the generation was set to 200 ksps and the number of samples to 16384. The 1.3 khz low-pass filter of the PPSG reference loadboard was used. For the measurement the LF Digitizer of MB-AV8+ was used setting the sampling frequency at 200 ksps and the voltage offset at 3 Volts. The load impedance is 1 MOhm. Figure 10: 0 to 6V Voltage Ramp - Linearity In the first graph of Figure 10 the raw digitized ramp is shown. Below the DNL and INL in uv can be seen. The DNL is 84 uv while INL is 256 uv. This corresponds to a resolution larger than 14 bits. The second example is a 10 khz Sine wave of 6 Volts peak to peak generated at 150 ksps with 4096 samples (Figure 11). Here the 14 khz Active Low-pass filter of the PPSG reference loadboard has been used. For the measurement again the LF Digitizer of MB-AV8+ was used setting the sampling frequency at 200 ksps and the voltage offset at 3 Volts. The load impedance is 1 MOhm 9/11

Figure 11: Sine 10 khz 6V peak to peak From the measured data shown in Figure 11 the spectrum of the signal can be calculated. This shows a dynamic range of 88 dbc. The SNR is 90 db and THD is -88 dbc., which gives an equivalent resolution (ENOB) of 14 bits. The last example is a 1 MHz Sine wave of 3.3 Volts peak to peak generated at 10 Msps with 4096 samples (Figure 12). Here the 1.3 MHz Low-pass filter of the PPSG reference loadboard has been used. For the measurement the VHF Digitizer of MB-AV8+ was used setting the sampling frequency at 10 Msps and the voltage offset at 1.65 Volts. The load impedance is 10 kohm and the embedded analog 15 MHz anti-aliasing filter is used. Figure 12: Sine 1 MHz 3.3V peak-to-peak 10/11

With this example the limit of the PWM modulation is reached. The tool allows generating setups for signals of up to 50 MHz, but above 1 MHz the PWM it is not used anymore. The generated setup is just a clock pattern with a frequency defined by the signal frequency. The result shows a SFDR of about 60 dbc. The calculated SNR is 61 db, and the THD is -59 dbc. The equivalent resolution (ENOB) for this setup is 9 bits. Summary and conclusion This article is a novel technique for an analog signal generation by a digital pin driver is introduced. The principle of the Pulse width modulation and multi bit delta-sigma modulation are presented. The performance requirement for the analog low-pass filter has been discussed. The software support of this feature introduced with V93000 SmarTest 7.2.0 has been described and some examples are given to shown the performance of this technique. This technique is being applied in testing the analog block of low-cost devices, where the infrastructure-cost reduction lead by the replacement of a costly analog board with a digital channel is important. 11/11