LABORATORY 14: ANALOG TO DIGITAL CONVERSION USING ADC0809

Similar documents
ELEC 204 Digital System Design LABORATORY MANUAL

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

Laboratory 11. Required Components: Objectives. Introduction. Digital Displays and Logic (modified from lab text by Alciatore)

Decade Counters Mod-5 counter: Decade Counter:

Data Converter Overview: DACs and ADCs. Dr. Paul Hasler and Dr. Philip Allen

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

Laboratory 8. Digital Circuits - Counter and LED Display

EECS 140 Laboratory Exercise 7 PLD Programming

Adding Analog and Mixed Signal Concerns to a Digital VLSI Course

ASYNCHRONOUS COUNTER CIRCUITS

PHYS 3322 Modern Laboratory Methods I Digital Devices

WINTER 15 EXAMINATION Model Answer

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

Analog to Digital Conversion

Digital Fundamentals. Introduction to Digital Signal Processing

TRAINING KITS ON DIGITAL ELECTRONIC EXPERIMENTS. Verify Truth table for TTL IC s AND, NOT, & NAND GATES

Fig. 1. The Front Panel (Graphical User Interface)

Experiment: FPGA Design with Verilog (Part 4)

INF4420 Project Spring Successive Approximation Register (SAR) Analog-to-Digital Converter (ADC)

successive approximation register (SAR) Q digital estimate

ECE Lab 5. MSI Circuits - Four-Bit Adder/Subtractor with Decimal Output

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

Lab #6: Combinational Circuits Design

CPE 310L EMBEDDED SYSTEM DESIGN (CPE)

THE KENYA POLYTECHNIC

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

Note 5. Digital Electronic Devices

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

Digital Electronics Lab #4 February 12, 2008

Jawaharlal Nehru Engineering College

Lab #10 Hexadecimal-to-Seven-Segment Decoder, 4-bit Adder-Subtractor and Shift Register. Fall 2017

Digital Signal Processing Laboratory 7: IIR Notch Filters Using the TMS320C6711

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

CHAPTER 4 RESULTS & DISCUSSION

Table of Contents Introduction

Lab #11: Register Files

-SQA-SCOTTISH QUALIFICATIONS AUTHORITY HIGHER NATIONAL UNIT SPECIFICATION GENERAL INFORMATION

Digital Audio Design Validation and Debugging Using PGY-I2C

Discussion of New Equipment

EXPERIMENT #6 DIGITAL BASICS

Reaction Game Kit MitchElectronics 2019

Digital Logic. ECE 206, Fall 2001: Lab 1. Learning Objectives. The Logic Simulator

Fundamentals of Digital Electronics

BISHOP ANSTEY HIGH SCHOOL & TRINITY COLLEGE EAST SIXTH FORM CXC CAPE PHYSICS, UNIT 2 Ms. S. S. CALBIO NOTES lesson #39

Analog input and output

Lab #11: Building a 1-Bit Input I/O Controller

Light Emitting Diodes and Digital Circuits I

Session 1 Introduction to Data Acquisition and Real-Time Control

Lab #11: Register Files

LABORATORY # 1 LAB MANUAL. Digital Signals

Introduction to Digital Logic Missouri S&T University CPE 2210 Introduction and Application Areas

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

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

Video 3 Input/Output Boards Users Manual And Troubleshooting Guide

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Introduction: Overview. EECE 2510 Circuits and Signals: Biomedical Applications. ECG Circuit 2 Analog Filtering and A/D Conversion

Lab 1 Introduction to the Software Development Environment and Signal Sampling

Lab #12: 4-Bit Arithmetic Logic Unit (ALU)

Digital Networks and Systems Laboratory 2 Basic Digital Building Blocks Time 4 hours

LabView Exercises: Part II

EE 210. LOGIC DESIGN LAB.

NORTHWESTERN UNIVERSITY TECHNOLOGICAL INSTITUTE

Operating Manual Ver.1.1

Exercise 2: D-Type Flip-Flop

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

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

Lab #10: Building Output Ports with the 6811

Digital Systems Principles and Applications. Chapter 1 Objectives

Introduction to Mechatronics. Fall Instructor: Professor Charles Ume. Analog to Digital Converter

Lab 2: Hardware/Software Co-design with the Wimp51

Combinational Logic Design

Digital Circuits I and II Nov. 17, 1999

Inside Digital Design Accompany Lab Manual

University of Pennsylvania Department of Electrical and Systems Engineering. Digital Design Laboratory. Lab8 Calculator

Engineering College. Electrical Engineering Department. Digital Electronics Lab

The Micropython Microcontroller

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

AD9884A Evaluation Kit Documentation

Product Specifications

Analog-to-Digital Conversion

Ryerson University Department of Electrical and Computer Engineering COE/BME 328 Digital Systems

10-Channel 16-Bit Analog Board Set User s Manual And Troubleshooting Guide

Delta-Sigma ADC

Chapter 4: Table of Contents. Decoders

Computer Systems Architecture

MODULAR DIGITAL ELECTRONICS TRAINING SYSTEM

ADC0804C, ADC BIT ANALOG-TO-DIGITAL CONVERTERS WITH DIFFERENTIAL INPUTS

LAB 3 Verilog for Combinatorial Circuits

COMP2611: Computer Organization Building Sequential Logics with Logisim

DMC550 Technical Reference

MT8812 ISO-CMOS. 8 x 12 Analog Switch Array. Features. Description. Applications

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

Point System (for instructor and TA use only)

Full-custom design of split-set data weighted averaging with output register for jitter suppression

LAB 3 Verilog for Combinational Circuits

Today 3/8/11 Lecture 8 Sequential Logic, Clocks, and Displays

AIM: To study and verify the truth table of logic gates

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous)

Data Conversion and Lab (17.368) Fall Lecture Outline

MT8814AP. ISO-CMOS 8 x 12 Analog Switch Array. Features. -40 to 85 C. Description. Applications

Transcription:

LABORATORY 14: ANALOG TO DIGITAL CONVERSION USING ADC0809 NAME: STUDENT ID#: Objectives To understand how the ADC0809 works for analog-to-digital signal conversion. To program loop tests for analog-to-digital signal conversion. Part 1: Understanding how the ADC0809 works The complement to the digital-to-analog (D/A) converter is the analog-to-digital (A/D) converter. An A/D converter converts analog voltages to digital information that can be used by a computer. It is useful to note that the digital data produced by an A/D converter is only approximately proportional to the analog input. This is because a perfect conversion is impossible due to the fact that digital information changes in steps, whereas analog is virtually continuous. A good example of the limitation is the 8-bit A/D converter that provides 8-bit numbers ranging from 0 to 255 to represent 256 different analog values. The situation improves as the number of bits increases. A 20-bit converter gets a lot closer to real world with 1,048,575 steps. However, it's important to remember that there are infinitely more analog values possible between a single step of any A/D converter. One important element in analog to digital converters such as the ADC0809 is the analog comparator. The analog comparator accepts analog inputs but produces a digital output. Another important component in the ADC0809 is a digital to analog converter (DAC) similar to the one discussed in LAB13. The digital representation of the input can be determined by connecting the analog voltage input to be converted to the - input of the comparator, and the output of the DAC to the + input. Figure L14.1 shows the block diagram of ADC0809. LAB14-1

Figure L14.1 The block diagram of ADC0809. The DAC is initialized by storing only the high-order bit (bit 7 of the 8-bit converter) in it. If the comparator output is low indicating the test analog level from the DAC is still lower than the input, the bit is kept. If the comparator output is high indicating the test analog level from the DAC is too high, then the bit is dropped. The other bits are tested in the same manner and either kept or dropped according to the status of the comparator. The process is called successive approximation is illustrated in Figure L14.2. Set MSB Compare High Reset Bit Set succeeding bit Low Keep the Bit No LSB Yes End Figure L14.2 The functional flow chart of ADC0809. LAB14-2

Now consider the task of providing a digital number for an analog input of 3.21 volts. It will be assumed that the D/A converter provides a voltage and that the comparator compares voltages. The flow chart says to start with bit 7 which has a weight of 128, then keep or drop bits according to the output of the comparator. The process used to convert 3.21 volts to a number is shown in the Table L14.1: Table L14.1 Test loop of an input of 3.21volts. Test Bit DAC Binary Value Decimal (5 DACvalue)/256 Comparison Result 10000000 10000000 128 2.5 low - keep bit 01000000 11000000 192 3.75 high - drop bit 00100000 10100000 160 3.125 low - keep bit 00010000 10110000 176 3.4375 high - drop bit 00001000 10101000 168 3.28125 high - drop bit 00000100 10100100 164 3.203125 low - keep bit 00000010 10100110 166 3.2421875 high - drop bit 00000001 10100101 165 3.22265625 high - drop bit Three bits were kept, leaving 10100100 in the DAC converter. The analog to digital converter will provide 164 as its numerical representation for 3.21 volts. Figure L14.3 shows the ADC0809 decoder circuit. With this information we can design assembly instructions to test the ADC0809. Figure L14.3 The ADC0809 decoder circuit LAB14-3

Part 2: Programming the ADC for an Analog Input Here we will begin our practice of converting analog voltage by ADC0809 with a simple program. We will analyze, run, and modify the program. Check off each step as it is completed. Check Step Procedure 1. Examine the data segment and constant definitions in the program L14P1.ASM. a. Make sure DIP SW3 switched to INT4-INT7. b. Wire CON1 to POWER SUPPLY (+). c. Wire common ground. d. Describe the reason why we need to do step1.a to step1.c for this lab? 2. Examine the part of the program in L14P1.ASM. If the address of ADC0809 INT0 is 3FCAH. (Hint: Refer to Figure L14.3), a. What is the address of ADC0809 INT1? b. What is the address of ADC0809 INT2? c. What is the address of ADC0809 INT3? d. What is the address of ADC0809 INT4? 3. Examine the following part of the program in L14P1.ASM. MOV DX, OFFSET MSG MOV AH, 9 INT 21H J1: MOV AX, 0 MOV DX, ADC1 OUT DX, AL MOV CX, 20H LOOP $ IN AL, DX MOV OUT DX, BPORT3 DX, AL LAB14-4

MOV DH, 4 INT 10H MOV CX, 0 LOOP $ MOV DX, OFFSET BACK MOV AH, 9 INT 21H JMP J1 a. What is the purpose of the instructions MOV AH, 9 and INT 21H? b. What is the purpose of the instructions MOV DH, 4 and INT 10H? c. What is the purpose of the following instruction sequence? MOV AX, 0 MOV DX, ADC1 OUT DX, AL d. What is the purpose of the following instruction sequence? MOV CX, 20H LOOP $ 4. Swing POWER SUPLLY (+) from +5V to 0V, and describe what you see. (Notice: don t exceed +5.3V) LAB14-5

5. Modify the program L14P1.ASM to L14P1A.ASM to convert your voice from microphone and show the converted digital number on your screen. Reassemble, relink, and generate L14P1A.EXE. Use the DEBUG program and describe what you see. Download the new program to MTS-86C and verify the program that it works correctly. (Hint: INT3 is used for microphone). Hand in your program listing with this lab report. Describe briefly what you have done in modifying L14P1.ASM to L14P1A.ASM. LAB14-6