Signals-From-Noise Single-Bit ADCs in a Nutshell - Part II by Dave Van Ess, Principal Application Engineer, Cypress Semiconductor

Similar documents
Signals-From-Noise Single-Bit ADCs in a Nutshell - Part III by Dave Van Ess, Principal Application Engineer, Cypress Semiconductor

Lab 7: DELTA AND SIGMA-DELTA A/D CONVERTERS

Lecture 6: Digital/Analog Techniques

d. Can you find intrinsic gain more easily by examining the equation for current? Explain.

MiniProg Users Guide and Example Projects

Electronics A/D and D/A converters

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

Linear Integrated Circuits

CHAPTER IV DESIGN AND ANALYSIS OF VARIOUS PWM TECHNIQUES FOR BUCK BOOST CONVERTER

ADC Resolution: Myth and Reality

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

For the op amp circuit above, how is the output voltage related to the input voltage? = 20 k R 2

Cyber-Physical Systems ADC / DAC

AC : PERSONAL LAB HARDWARE: A SINE WAVE GENERATOR, LOGIC PULSE SIGNAL, AND PROGRAMMABLE SYNCHRONOUS SERIAL INTERFACE FOR ENHANCING EDUCATION

HART Modem DS8500. Features

CENG4480 Lecture 04: Analog/Digital Conversions

ELG3336: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs)

University of California at Berkeley Donald A. Glaser Physics 111A Instrumentation Laboratory

1 Analog and Digital Communication Lab

Low Cost Screening Audiometer

Capacitive Touch Sensing Tone Generator. Corey Cleveland and Eric Ponce

Amplitude modulator trainer kit diagram

ELG4139: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs)

HIGH LOW Astable multivibrators HIGH LOW 1:1

LINEAR IC APPLICATIONS

EK307 Active Filters and Steady State Frequency Response

BINARY AMPLITUDE SHIFT KEYING

Sampling and Quantization

ELC224 Final Review (12/10/2009) Name:

Design of Bandpass Delta-Sigma Modulators: Avoiding Common Mistakes

LABORATORY EXPERIMENT. Infrared Transmitter/Receiver

Chapter 13: Comparators

EE 368 Electronics Lab. Experiment 10 Operational Amplifier Applications (2)

Application Note. Programmable Bipolar Analog Current Source. PSoC Style

Dual-Channel Modulator ADM0D79*

EE 435 Switched Capacitor Amplifiers and Filters. Lab 7 Spring 2014 R 2 V OUT V IN. (a) (b)

ADVANCES in VLSI technology result in manufacturing

Bipolar Emitter-Follower: Output Pin Compensation

Op-Amp Simulation Part II

Converter IC for Cellular Phone. Mode Digitally-Controlled Buck. A 4 µa-quiescent-current Dual- Applications. Jianhui Zhang Prof.

PHYS225 Lecture 22. Electronic Circuits

Dedan Kimathi University of technology. Department of Electrical and Electronic Engineering. EEE2406: Instrumentation. Lab 2

Choosing the Best ADC Architecture for Your Application Part 3:

Simple Sigma-Delta ADC Reference Design

ADC Bit A/D Converter

AD9772A - Functional Block Diagram

UNIVERSITI MALAYSIA PERLIS

A 4 µa-quiescent-current Dual- Mode Digitally-Controlled Buck Converter IC for Cellular Phone Applications

555 Timer and Its Application

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

Physics 309 Lab 3 Bipolar junction transistor

Verification of competency for ELTR courses

Delta-Sigma Modulation For Sensing

Advantages of Analog Representation. Varies continuously, like the property being measured. Represents continuous values. See Figure 12.

Class #6: Experiment The 555-Timer & Pulse Width Modulation

LABORATORY 6 v3 TIME DOMAIN

arxiv:physics/ v1 [physics.ed-ph] 19 Oct 2004

OBJECTIVE The purpose of this exercise is to design and build a pulse generator.

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

Analog to Digital Conversion

Comparison between Analog and Digital Current To PWM Converter for Optical Readout Systems

Integrated Microsystems Laboratory. Franco Maloberti

ASTABLE MULTIVIBRATOR

Design and Fabrication of High Frequency Linear Function Generator with Digital Frequency Counter using MAX038 and a PIC microcontroller

CD4541BC Programmable Timer

LABORATORY EXPERIMENTS DIGITAL COMMUNICATION

Electronics. RC Filter, DC Supply, and 555

Multiplexer Options, Voltage Reference, and Track/Hold Function

Department of Electronics & Communication Engineering LAB MANUAL SUBJECT: DIGITAL COMMUNICATION LABORATORY [ECE324] (Branch: ECE)

9 Feedback and Control

ECE4902 C Lab 5 MOSFET Common Source Amplifier with Active Load Bandwidth of MOSFET Common Source Amplifier: Resistive Load / Active Load

12/31/11 Analog to Digital Converter Noise Testing Final Report Page 1 of 10

Multirate DSP, part 3: ADC oversampling

When you have completed this exercise, you will be able to relate the gain and bandwidth of an op amp

Electronic Noise. Analog Dynamic Range

Application Note #5 Direct Digital Synthesis Impact on Function Generator Design

MCP3909. Energy Metering IC with SPI Interface and Active Power Pulse Output. Features. Description. Package Type

Energy Metering IC with SPI Interface and Active Power Pulse Output. 24-Lead SSOP HPF HPF1. Serial Control And Output Buffers HPF1

CHAPTER 6 DIGITAL INSTRUMENTS

In-Class Exercises for Lab 2: Input and Output Impedance

Dual CMOS - Modulators AD7724

Software Programmable Gain Amplifier AD526

Data Conversion and Lab Lab 4 Fall Digital to Analog Conversions

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

Fan in: The number of inputs of a logic gate can handle.

). The THRESHOLD works in exactly the opposite way; whenever the THRESHOLD input is above 2/3V CC

Op-amp characteristics Operational amplifiers have several very important characteristics that make them so useful:

Question Paper Code: 21398

Lab 6: Instrumentation Amplifier

Digital Applications of the Operational Amplifier

STATION NUMBER: LAB SECTION: RC Oscillators. LAB 5: RC Oscillators ELECTRICAL ENGINEERING 43/100. University Of California, Berkeley

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

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

FIRSTRANKER. 1. (a) What are the advantages of the adjustable voltage regulators over the fixed

DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE, MASSACHUSETTS 02139

Second-Order Sigma-Delta Modulator in Standard CMOS Technology


Table of Contents Lesson One Lesson Two Lesson Three Lesson Four Lesson Five PREVIEW COPY

Project 3 Build a 555-Timer

University of Utah Electrical Engineering Department ECE 2100 Experiment No. 2 Linear Operational Amplifier Circuits II

Transcription:

Signals-From-Noise Single-Bit ADCs in a Nutshell - Part II by Dave Van Ess, Principal Application Engineer, Cypress Semiconductor Last month in Part 1, http://www.analogzone.com/iot_0101.htm I introduced the concept of single-bit ADCs and gave examples of a single-bit DAC generated ADC and triangle waveform single-bit ADC. I also introduced the concept of density, the digital stream produced by a single bit DAC that can be converted to an analog value for use as a comparison voltage within an ADC. (If you still find density little tricky to grasp, see my previous column Single-Bit DACs in a Nutshell http://www.analogzone.com/iot_0904.pdf for a quick refresher.) In this column, we ll put these two concepts together and use them as building blocks for self-modulating ADC circuits. Self-Modulation The two previously ADC methods discussed required some hardware to generate an analog compare value. The circuits shown below are self-modulating. Fig. 1: Self-Modulating Single Bit ADCs (With References And Ratiometric) The one on the right uses the supply voltage (V dd ) as the reference. Again, this is called ratiometric. This will be the topology discussed because it can easily be fabricated with components lying around your bench. (If you are a software guy and don t have components lying around your bench or don t even have a bench, this can easily be fabricated with components found on some hardware guy s bench. He either gets in later than you or leaves earlier than you, if you get my drift. If he complains, remind how many times you have helped him debug his god-awful code.) If the input voltage is greater than the generated DAC voltage, then the comparator s output is high. The flip-flop samples this output and generates a logic high output that causes the capacitor to charge. This capacitor continues to be charged for as many cycles as its voltage is less than the input voltage. When its voltage becomes greater than the

input voltage, the comparator output goes low, causing the capacitor to discharge. This charging and discharging causes the DAC voltage to hover around the input voltage. The amount of hover depends on the severity of the filtering. Given a sample frequency of 1 MHz, a supply voltage of 5 V and an input voltage of 2.5 V, the comparator toggles high then low for a 50% density value. The frequency is 1 MHz 2, or 500 khz. For a 4 V input the comparator is high four cycles then low one cycle for an output frequency of 1 MHz 5, or 200kHz. The farther the input signal is from the middle of the range, the lower the output frequency becomes. At the limits of ground and the supply voltage, the frequency is zero. As the filter s roll-off frequency is lowered, the amount of hover is reduced, resulting in better accuracy. However, this lower frequency requires a longer time for the DAC to settle out to a large change of the input voltage. A good rule of thumb for this type of topology is to set the roll-off frequency to 1/1000 to 1/10,000 of the sample frequency. For a sample frequency of 1 MHz this works out to a filter roll off somewhere in the neighborhood of 100 Hz to 1 khz. These low roll-off frequencies result in delays of tens of milliseconds to sudden changes of the input voltage. A spreadsheet simulation of this circuit has been included: SelfModulationExample.xls http://www.analogzone.com/iot_0205.xls Given the input voltage, supply voltage, sample frequency and roll-off frequency of the RC filter, it plots 1024 cycles of the generated DAC voltage and error term. Digital hardware can be used to time a specific number of operation cycles and to count the number of times the compactor output was high. Given these two values it is possible to calculate the digital density. With this density value it is possible to calculate what the input value must have been. This type of single-bit ADC is slow, but it can be built with very few components. If your microcontroller has a spare comparator, timer, and counter, it is possible to construct an ADC with just a single external RC filter. This topology uses the average of the quantized difference as feedback. This quantized output is either +Ref or -Ref no matter how small the difference. The negative feedback attempts to make the DAC voltage match the input voltage so, by definition, their difference is small. This saddles the filter with the chore of removing a lot of harmonics.

Delta-Sigma Modulation (DSM) Suppose instead of averaging the quantized difference, the averaged difference is quantized. The left side of the figure below shows that a low-pass filter can be built by integrating the difference of the input and the output. The left side shows the integrated difference to be quantized. (A signal is said to be quantized when it is digitized and then restored back to an analog value. Some resolution is lost.) Fig. 2: Low-Pass Filter Block And Quantized Output Of The Averaged Difference This topology is called delta-sigma ( -Σ). Delta is for the difference circuit. Sigma is for the integrator. Because of the feedback, the average of the input will equal the average of the quantized output. Digital hardware can be used to time a specific number of operation cycles and to count the number of times the comparator output was high. Given these two values it is possible to calculate the digital density. With this density value it is possible to calculate what the input value must have been. The figure below shows how they can be implemented with op amps. Fig. 3: Delta-Sigma Modulator (With References and Ratiometric) Again, the ratiometric is the easier to implement with the analog ground defined as ½V dd and reference voltages ±½V dd. The resister and capacitor value must be selected to keep the integrator in range; that is, it can move no more than ±Ref in one period of the sample clock with the full range input (±Ref). The RC product is determined by the equation: Ref < Ref RC > 1 f RC s f s

Applying a safety factor of two, the equation becomes: 2 RC = f s Given a sample frequency of 1 MHz. the RC value is 2 µs. One solution is to set C to 470 pf and R to 4.22 kω. If the sample frequency is changed to 2 MHz, then the RC value must be changed. Most likely R would be set to 2.10 kω. For this example I have decided to implement a switched-capacitor delta-sigma modulator. The topology is shown in the figure below. Fig. 4: Switched-Capacitor Delta-Sigma Modulator I implemented it using a switched capacitor block in a Cypress CY8C27443-24PXI programmable system on a chip PSoC. I did so because the PSoC DSM is self-contained so it can be built with no external components. The selection of the RC values for a standard DSM depends directly on the sample frequency. With the effective resistance of a switched-capacitor input being 1/f s C i, the recommended RC value translates to the equations: 2 RC f = fs 1 R fsci C = 2C f i These values are independent of the sample frequency. They do not have to be changed if the sample frequency changes.

I used a switched capacitor block to construct a ratiometric (AGND = ½V dd, Ref = ±½V dd ) delta-sigma modulator with a 1 MHz sample clock. The plot below is of a 4 Vpp, 7 khz sine wave input and the generated density output. Fig. 5: Density Output For A 4 Vpp, 7 khz Input Note that the density is roughly 90% at the peak of the sinusoid and 10% at its lowest point. The mind boggles at the potential applications for such a versatile little circuit! In fact, we ll devote most of the next installment of Signals-From-Noise to expanding on these concepts, and using them as building blocks for self-modulating ADC circuits. Until then, feel free to write me with any ideas you might have at dwv@cypress.com. Postscript I received an e-mail from a reader. It isn t important why, but what snagged my interest was that he mentioned being a 64-year-old engineer. I have the utmost respect for any engineer that can stay technical their whole career. Tracy Kidder, author of The Soul of a New Machine, used the analogy that engineering is like pinball. If you play pinball very well your reward is that you get to play again. The same is true with engineering. If you do it well, your reward is that they let you do it again. You keep playing until either you do not want to, or they won t let you play anymore. You may become a spectator or you may just leave, but either way you don t play anymore. I think all any of us really ask is to leave this profession on our own terms, at the time of our choosing. My father was a NASA engineer and I can remember him working so hard to stay in the profession. At 55 he became eligible for retirement and could now leave on his own terms. When I called him to wish him a happy birthday, I could feel the load had lifted off him. He had made it. He stayed around a couple more years and then left on his own terms. Every 10 years it s great to be an engineer. Five years later it sucks. I have been through two layoffs, countless downsizing, rightsizing, and corporate mergers but I manage to keep playing. The alternative is a real job.

About The Author Dave Van Ess is a Principal Application Engineer at Cypress Semiconductor. He is an electrical engineer with experience in hardware, software, and analog design. Dave joined Cypress in 2000. He has nine patents for medical systems, signal processing design, and PSoC digital block enhancements. He has written numerous User Modules, application notes, and articles. He graduated sigma cum barely with his BSEE from the University of California, Berkeley, 1977. An engineer by training, a poet by temperament, an outlaw in Nebraska, and a heck of a nice guy, Dave has worked in many different industries. His work experience includes test and measurement equipment, measurement and control systems for high energy physics research, and underwater acoustic transmitters and receivers deployed in open sea and artic ice fields. Electrons fear him! Women revere him! Dave can be reached at dwv@cypress.com