successive approximation register (SAR) Q digital estimate

Similar documents
Digital Circuits I and II Nov. 17, 1999

16 Stage Bi-Directional LED Sequencer

PHYS 3322 Modern Laboratory Methods I Digital Devices

The University of Texas at Dallas Department of Computer Science CS 4141: Digital Systems Lab

EE 367 Lab Part 1: Sequential Logic

University of Victoria. Department of Electrical and Computer Engineering. CENG 290 Digital Design I Lab Manual

Physics 120 Lab 10 (2018): Flip-flops and Registers

Experiment # 4 Counters and Logic Analyzer

NEW MEXICO STATE UNIVERSITY Electrical and Computer Engineering Department. EE162 Digital Circuit Design Fall Lab 5: Latches & Flip-Flops

Chapter 3: Sequential Logic Systems

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

Laboratory 7. Lab 7. Digital Circuits - Logic and Latching

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Laboratory 1 - Introduction to Digital Electronics and Lab Equipment (Logic Analyzers, Digital Oscilloscope, and FPGA-based Labkit)

CSE 352 Laboratory Assignment 3

Name: Date: Suggested Reading Chapter 7, Digital Systems, Principals and Applications; Tocci

Physics 323. Experiment # 10 - Digital Circuits

Chapter 5 Flip-Flops and Related Devices

WINTER 15 EXAMINATION Model Answer

Part (A) Controlling 7-Segment Displays with Pushbuttons. Part (B) Controlling 7-Segment Displays with the PIC

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

Laboratory 10. Required Components: Objectives. Introduction. Digital Circuits - Logic and Latching (modified from lab text by Alciatore)

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Introductory Digital Systems Laboratory

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

2 The Essentials of Binary Arithmetic

University of Illinois at Urbana-Champaign

Fundamentals of Computer Systems

OFC & VLSI SIMULATION LAB MANUAL

EXPERIMENT #6 DIGITAL BASICS

Microcontrollers and Interfacing week 7 exercises

PGT104 Digital Electronics. PGT104 Digital Electronics

Sequential Logic Basics

Flip-flops, like logic gates are defined by their truth table. Flip-flops are controlled by an external clock pulse. C

Fundamentals of Computer Systems

ECE 2274 Pre-Lab for Experiment Timer Chip

LAB #6 State Machine, Decoder, Buffer/Driver and Seven Segment Display

Chapter 9 Introduction to Sequential Logic

EET 1131 Lab #12 - Page 1 Revised 8/10/2018

Part IA Computer Science Tripos. Hardware Practical Classes

Digital Circuits. Innovation Fellows Program

EET 1131 Lab #10 Latches and Flip-Flops

CPE 200L LABORATORY 3: SEQUENTIAL LOGIC CIRCUITS UNIVERSITY OF NEVADA, LAS VEGAS GOALS: BACKGROUND: SR FLIP-FLOP/LATCH

INTRODUCTION (EE2499_Introduction.doc revised 1/1/18)

Mission. Lab Project B

Review of digital electronics. Storage units Sequential circuits Counters Shifters

Digital Fundamentals. Lab 5 Latches & Flip-Flops CETT Name: Date:

Do the following: a. (12 points) Draw a block diagram of your circuit design, showing and labeling all essential components and connections.

Part IA Computer Science Tripos. Hardware Practical Classes

Physics 217A LAB 4 Spring 2016 Shift Registers Tri-State Bus. Part I

ELECTRICAL ENGINEERING DEPARTMENT California Polytechnic State University

12/31/2010. Overview. 12-Latches and Flip Flops Text: Unit 11. Sequential Circuits. Sequential Circuits. Feedback. Feedback

DIGITAL ELECTRONICS: LOGIC AND CLOCKS

EECS 140 Laboratory Exercise 7 PLD Programming

Department of Communication Engineering Digital Communication Systems Lab CME 313-Lab

PESIT Bangalore South Campus

1 Watt, MHz, SMT Tunable Band Pass Filter (MINI-ERF ) 1.75 x 2.40 x 0.387

Table of Contents Introduction

Digital Fundamentals

GS1881, GS4881, GS4981 Monolithic Video Sync Separators

Operating Manual Ver.1.1

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

Chapter 4: One-Shots, Counters, and Clocks

7 SEGMENT LED DISPLAY KIT

Decade Counters Mod-5 counter: Decade Counter:

Experiment 9 Analog/Digital Conversion

BER MEASUREMENT IN THE NOISY CHANNEL

ECE 5765 Modern Communication Fall 2005, UMD Experiment 10: PRBS Messages, Eye Patterns & Noise Simulation using PRBS

Interfacing Analog to Digital Data Converters. A/D D/A Converter 1

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Digital Circuits 4: Sequential Circuits

MSCI 222C Fall 2018 Introduction to Electronics

EECS 373 Design of Microprocessor-Based Systems

Laboratory 9 Digital Circuits: Flip Flops, One-Shot, Shift Register, Ripple Counter

Lab #6: Combinational Circuits Design

ADC Peripheral in Microcontrollers. Petr Cesak, Jan Fischer, Jaroslav Roztocil

B. Sc. III Semester (Electronics) - ( ) Digital Electronics-II) BE-301 MODEL ANSWER (AS-2791)

Using an oscilloscope - The Hameg 203-6

Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop. Course project for ECE533

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

SMPTE-259M/DVB-ASI Scrambler/Controller

Rensselaer Polytechnic Institute Computer Hardware Design ECSE Report. Lab Three Xilinx Richards Controller and Logic Analyzer Laboratory

Analog Input & Output

PHY 351/651 LABORATORY 9 Digital Electronics The Basics

PCM ENCODING PREPARATION... 2 PCM the PCM ENCODER module... 4

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

3-Channel 8-Bit D/A Converter

MSCI 222C Class Readings Schedule. MSCI 222C - Electronics 11/27/18. Copyright 2018 C.P.Rubenstein Class Seating Chart Mondays

Design and Simulation of a Digital CMOS Synchronous 4-bit Up-Counter with Set and Reset

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

Why do we need to debounce the clock input on counter or state machine design? What happens if we don t?

Flip-Flops A) Synchronization: Clocks and Latches B) Two Stage Latch C) Memory Requires Feedback D) Simple Flip-Flop Gate

Physics 123 Hints and Tips

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Point System (for instructor and TA use only)

Combinational vs Sequential

IT T35 Digital system desigm y - ii /s - iii

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

Jawaharlal Nehru Engineering College

DO NOT COPY DO NOT COPY

Transcription:

Physics 5 Lab 4 Analog / igital Conversion The goal of this lab is to construct a successive approximation analog-to-digital converter (AC). The block diagram of such a converter is shown below. CLK comparator successive approximation register (SAR) Q Conversion done V analog estimate bit digital estimate Q bit reg. Note the idea: on the analog input is compared to the output V of a digital-to-analog converter (). If is greater than V, then the input to the successive approximation register is set HIGH. On the first cycle, this sets the MSB to. Then the reads this value, and outputs a new value of V. On the next cycle, the comparator compares this new value with, and sets (or not) the next significant bit. The cycle repeats until all bits are determined. This is a binary search tree, and represents a relatively rapid way to converge on the closest digital number to since at each clock cycle, it simply decides whether the input is greater than or less than half of the previous set of possible values. In this experiment, you will first wire up the and study its properties. Then you will connect the SAR and the comparator so that the is in the feedback loop and watch the conversion process. Finally, if you have time, you can capture the output on a latch and display it Use only the Volt fixed supplies for this lab. You should tie the negative side of the supply to the ground terminal on the supply if it is not already so. This will ensure that you have Volts above ground throughout the lab. As usual, a 0. µ F capacitor between V and ground on the breadboard will help ensure you have a nice clean supply voltage 4-. /A Converter The /A converter () is an Analog evices A55. It has, on one chip, an bit stage (that uses an R/R ladder and switches to create the analog signal) an output amplifier with userselectable gain, and an input latch. We will set the latch into transparent mode, so that the analog output immediately follows a change on the digital input (following the delay determined by the settling time of about 000 ns).

igital IN LSB 6 0 5 40k 4 bit 4k 4 k 5 4 400mV GN 6 full scale 5 output +Vcc 7 0 6 control 9 MSB 7 (NC) analog out (0 to. V) 0. uf Wire up the A55 as shown in the diagram above. The bypass capacitor (0. µf) should be placed close to the chip, right across the non-standard location power supply pins, and. To check out the s operation, first connect all data lines high (), and measure the output voltage on pin 6 using your MM. The hex value for this input is FF 6. For your report. Based on this input and output, predict what the output voltage should be for an input of 0 6 and 0 6. Then connect the appropriate lines HIGH or LOW and check your predictions. You should record both your predictions and measurements in your report. 4-. Comparator and SAR: Completing the A/ Loop You may have a 74LS50 or a 74LS50 in your parts cabinet. You can use either, but if you have a 50, it is necessary to ground pin of the it to operate correctly in this exercise. (If you have a 50, leave pin unconnected.) Add the comparator (one-half of a TLC7 CMOS comparator) and the LS50 (or LS50; see note above) successive approximation register (SAR) to your breadboard containing the A55. START CLK (deb. sw. / TTL out) 0k 4.7M TLC 7 4 k 9 7 0 CLK START Vcc CC 74 LS 50 (SAR) Q7 Q6 Q5 Q4 Q Q GN Q Q0 4 6 5 4 6 90 V (analog out) 6 A55

Note that the comparator has a k pullup resistor on its output (pin ) as well as the V and ground to pins and 4, respectively. Wire the clock input on the SAR (pin 9) to the output of one debounced switch and the START* input (pin0) to the output of another debounced switch. Wire each of the data outputs, Q 0 Q 7 on the SAR to the corresponding data inputs 0 7 on the A55. Remember that the / on a line in a diagram means that parallel wires are represented by that single line in the diagram. Add the LE to the CC* ( conversion complete ) pin through a pullup resistor (90Ω) to V, as shown. Remember that the flat side of the LE housing is the cathode (more negative) side, so this side will face CC*. To check out the circuit, first tie to ground and connect a MM to the analog output of the A55 (pin 6). Then do the following:. Assert START* (pull it LOW).. CLOCK once (positive edge, LOW to HIGH).. Look at (and record) the state of the data lines Q 0 Q 7. Use your logic probe. Also record the voltage on the output of the. 4. isassert START* (pull it HIGH). If you don t do this, the conversion will stop at the first digit. 5. CLOCK again, and note and record the data lines and voltage. 6. Repeat the above step until you see the LE on CC* turn on. You should see the data lines turn off in succession as the SAR homes in on the correct input voltage (0 V), and at the same time, the output of the should get closer to zero. (There may be a small offset voltage at the end.) For your report. How many clock cycles does one conversion take, from start to finish? 4-. Operation at Normal Speed Now make three changes to your circuit:. isconnect START* (pin 0 on the SAR) from your debounced switch and instead connect Conversion Complete CC* (pin ) to START*. You may leave the LE attached (or not).. Connect a k potentiometer between V and ground, and feed the wiper pin into as shown below. This will allow you to see the AC circuit convert a range of input voltages.. Clock the SAR with the TTL output of your function generator. Use a clock frequency of around khz.

Add k Pot k Scope connections TTL out, khz or greater 0k 4.7M TLC 7 4 k Hook CLK to TTL output Hook START* to CC* 0 6 9 CLK START Vcc CC 74 LS 50 (SAR) 7 GN Q7 Q6 Q5 Q4 Q Q Q Q0 4 6 5 4 90 CH CH EXT TRIG V 6 (analog out) A55 Then hook up your scope as follows: Connect the EXT TRIG input to CC*, and set the level to the typical TTL threshold of around.4 volts. This will synchronize your scope to the beginning of the conversion cycle. Then, using scope probes, connect CH to V and CH to. You should see something like the screenshots shown below. Watch what happens when you vary the setting of the k pot. Notice how the search tree finds its way to your value of. To see the digital number being produced, connect CH to the input of the SAR (pin 7) and show it on the scope above (or below) the output. Notice how the sequence of high and low parts of the waveform correspond to the up or down branches of the search tree. With a little effort, you can read the binary number corresponding to. isplaying the Full Search Tree On your scope, press ISPLAY and then press the PERSIST softkey repeatedly until is shows Infinity. This will store all traces indefinitely. Then slowly turn the pot, varying and see what happens. Pretty neat, huh? Notice how one particular branch is highlighted against a background of the whole search tree. You should see something like the picture below. 4

For your report. emonstrate your circuit and search tree scope pictures to the TA or instructor and obtain their initials verifying that it works. 4-4. A/ Speed Limit The A/ circuit completes one conversion for every 9 clock cycles. The faster you run the clock, the faster it will convert, up to a point. The speed limit of the A/ determines the highest frequency that can be digitized. According to the Nyquist theorem, to accurately digitize a signal of frequency f, one must sample the waveform at a little over f. To predict the highest frequency available to this A/, you need to add up all of the delays through each part of the circuit. In looking at the diagram, between two clock edges there must be the following time-related events: The propagation of the output state on all Q n of the SAR following the clock edge: the SAR propagation delay. The creation of an analog voltage on the output of the A55 after the data are presented on the inputs: the settle time. The creation of a HIGH or LOW bit on the output of the comparator following a change in levels on the comparator inputs: the comparator delay. The establishment of a stable level on the input of the SAR: the SAR setup time. This adds up to a minimum time of about 00 ns. What maximum clock frequency does this imply? Given this, what would be the highest frequency signal that could be digitized? (Think about all of the information presented above.) Test the speed limit. Set the knob on the k pot to feed a C level somehere in the middle of the search-tree s range into and watch the scope display as you increase the clock frequency. A some point you will see a breakdown: the final estimate will change because the clock will no longer give enough time for all levels to settle. For your report. Include your calculations showing your prediction and your results in your report. 5

4-5 Latching and isplaying the A/ signal This section is optional, but should be attempted if there is time. Through most of this lab, you have been looking at the analog output of the A55 to study the conversion process. However the goal of an A/ is to get the the number that corresponds to the voltage in. To capture this byte binary number, you can use an -bit register, the HCT574 (TTL compatible CMOS). To display it, you may use the pair of HP hex displays. The latching circuit requires a positive edge happening just after the final conversion. Unfortunately you cannot use CC* alone to create this edge because it comes too late when CC* is disasserted, the next conversion cycle has already started and the number on the lines is the first guess : 7F 6. An edge that happens at the proper time can be made by combining the clock signal with CC* through a NOR gate (one of four on an 74HC0 chip). Wire up the HCT574 to the data lines 0 7 as shown below. Note that V will go to pin 0 and ground to pin 0. Also ground the register s enable line, pin. Connect up the displays as you did in the counter lab: to pin 7, ground to pins 4, 5 and 6, and the data lines to pins (A), (B), (C), and (). Connect up the lower 4 bits Q 0 Q to one display and the upper four bits Q 4 Q 7 to the other display. 7 6 4 5 7 6 BL EN 4 5 BL EN CLK V analog estimate comparator bit successive approximation register (SAR) Q digital estimate CC HP ISPLAY HP ISPLAY C B A C B A 4 5 6 7 9 /4 74HCT0 Q7 Q6 Q5 Q4 Q Q Q Q0 0 Vcc HCT574 bit register OE 0 GN 7 6 5 4 0 9 7 6 5 4 Added latch & displays Set the clock frequency on the SAR to about 0 Hz. Slowly vary the knob on the k pot. You should see the displays change at a rate of about Hz as you vary. Please disassemble your circuit, gently prying out any chips from underneath with a pair of angled forceps, and return all parts to the SAR LAB parts bin at your lab stations so they re there for the next people! Prepared by. B. Pengra and J. Alferness Parts adapted from The Student Manual for the Art of Electronics by Thomas C, Hayes and Paul Horowitz (Cambridge University, 99) AC_Lab4_5.tex -- Updated 7 April 05 6