COMP3221: Microprocessors and Embedded Systems Lecture 20: Analog Output Lecturer: Hui Wu Session 2, 2004.

Slides:



Advertisements
Similar presentations
Analog-to-Digital Converter (ADC) And
Advertisements

Sensors Interfacing.
Digital to Analogue Conversion
Digital to Analog and Analog to Digital Conversion
Digital Fundamentals Tenth Edition Floyd Chapter 12.
Announcements Assignment 8 posted –Due Friday Dec 2 nd. A bit longer than others. Project progress? Dates –Thursday 12/1 review lecture –Tuesday 12/6 project.
COMP3221: Microprocessors and Embedded Systems
5/4/2006BAE Analog to Digital (A/D) Conversion An overview of A/D techniques.
Analog to Digital Converters (ADC) 2 ©Paul Godin Created April 2008.
Lecture 9: D/A and A/D Converters
10/23/2003ME DAC Lecture1 DAC Sunij Chacko Pierre Emmanuel Deliou Thomas Holst Used with modification.
Analogue to Digital Conversion
Interfacing Analog and Digital Circuits
DIGITAL SYSTEMS TCE INTERFACING WITH ANALOG DEVICES (Week 12)
Interfacing with the Analog World Wen-Hung Liao, Ph.D.
EET260: A/D and D/A converters
EKT343 –Principle of Communication Engineering
SENIOR DESIGN 10/16.
PH4705/ET4305: A/D: Analogue to Digital Conversion
Digital to Analog Converters
Power Electronics DC to AC Converters
Digital to Analog and Analog to Digital Conversion
Digital Communication Techniques
Electronic Devices Ninth Edition Floyd Chapter 13.
Digital to Analog Converters
Digital-to-Analog & Analog-to- Digital Conversion Anuroop Gaddam.
FE8113 ”High Speed Data Converters”
ACOE2551 Microprocessors Data Converters Analog to Digital Converters (ADC) –Convert an analog quantity (voltage, current) into a digital code Digital.
Digital-to-Analog Analog-to-Digital Microprocessor Interface.
University of Tehran 1 Interface Design Transforms Omid Fatemi.
COMP3221: Microprocessors and Embedded Systems Lecture 18: Computer Buses and Parallel Input/Output (II) Lecturer: Hui.
Lecture 15: Digital to Analog Converters Lecturers: Professor John Devlin Mr Robert Ross.
Data Acquisition ET 228 Chapter 15 Subjects Covered Analog to Digital Converter Characteristics Integrating ADCs Successive Approximation ADCs Flash ADCs.
Design of Digital-to-Analog Converter Qin Chen Yong Wang Dept. of Electrical Engineering Feb. 6th, 2006 EE597G Presentation:
CHAPTER 19 Data Conversion. Objectives Describe and Analyze: Analog vs. Digital Signals Resolution Digital-to-Analog Conversion Analog-to Digital Conversion.
Analog-to-Digital and Digital-to-Analog Conversion
1 Data-Converter Circuits A/D and D/A Chapter 9 1.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an overview of the PWM type Digital-to-Analog.
Analog/Digital Conversion
Digital to Analog Converter (DAC)
Embedded Systems Design 1 Lecture Set C Interfacing the MCS-51 to: –D/A Converter –A/D Converter.
Digital-to-Analog Analog-to-Digital Week 10. Data Handling Systems  Both data about the physical world and control signals sent to interact with the.
DATA ACQUSITION SYSTEMS. 1.Analog Representation. In analog representation, one quantity is represented by another one, which is proportional to the first.
Basic Op-Amp Circuits Application: D/A Conversion.
Introduction to Data Conversion EE174 – SJSU Tan Nguyen.
A/D and D/A Converters. Digital-to-analogue converters The digital-to-analog converter, known as the D/A converter (read as D-to-A converter) or the DAC,
CMOS Analog Design Using All-Region MOSFET Modeling
Digital-to-Analog Analog-to-Digital
A DSP based on on-line UPS R.Padamaja G.Mamatha Reddy EEE EEE S.V.C.E S.V.C.E BY.
Lecture Notes / PPT UNIT III
Analog-Digital Conversion. Other types of ADC i. Dual Slope ADCs use a capacitor connected to a reference voltage. the capacitor voltage starts at zero.
Digital Logic & Design Dr. Waseem Ikram Lecture 45.
MICROCONTROLLER AND INTERFACING Presented by: Shefali Jethva ( ) Shivali Panchal ( ) Komal Soni ( ) Roll no. :- 14EC308.
Digital to analog converter [DAC]
MECH 373 Instrumentation and Measurements
Microprocessors Data Converters Analog to Digital Converters (ADC)
Introduction to Discrete-Time Control Systems fall
PULSE MODULATION.
Digital-to-Analog Analog-to-Digital
Analog-Digital Conversion
EI205 Lecture 13 Dianguang Ma Fall 2008.
COMP2121: Microprocessors and Interfacing
Chapter 3 Sampling.
Digital-to-Analog Analog-to-Digital
Digital Control Systems Waseem Gulsher
Digital Control Systems Waseem Gulsher
CBC Fundamentals Lecture is based on material from Robotic Explorations: A Hands-on Introduction to Engineering, Fred Martin, Prentice Hall, 2001.
Digital Control Systems Waseem Gulsher
Conversation between Analogue and Digital System
Chapter 7 Converters.
Presentation transcript:

COMP3221: Microprocessors and Embedded Systems Lecture 20: Analog Output Lecturer: Hui Wu Session 2, 2004

COMP3221/9221: Microprocessors and Embedded Systems 2 Overview Digital-to-Analog Conversion D/A Converter Types D/A Converter Specifications Pulse-Width-Modulated (PWM) Analog Output

3 Digital-to-Analog Converter Digital Digital-to- Analog Converter Signal Cond. N Latch Analog Output N Data From CPU LATCH ENABLE

4 Digital-to-Analog Converter (Cont.) A parallel output interface connects the D/A to the CPU. The latches may be part of the D/A converter or the output interface. The analog output signal from the D/a is quantized. A signal conditioning block may be used as a filter to smooth the quantized nature of the output.  The signal conditioning block also provide isolation, buffering and voltage amplification if needed.

5 Quantized D/A Output Desired sinusoid D/A output

6 D/A Converter Types Binary-weighted register D/A.  As the switches for the bits are closed, a weighted current is supplied to the summing junction of the amplifier.  For high-resolution D/A converters, the binary-weighted type must have a wide range of resistors. This may lead to temperature stability and switching problems. B0 B2 B1 B3 100K 50K 25K 12.5K 6.25K Analog Output

7 D/A Converter Types (Cont.) R-2R Ladder D/A.  As the switches for the grounded to the reference position, a binary-weighted current current is supplied to the summing junction.  For high-resolution D/A converters, a wide range of resistors are not required. However, single-pole double throw switches are. 2R Analog Output B0 2R B1B2B3 2R RRR V REF

8 D/A Converter Types (Cont.) Multiplying D/A.  The R-2R ladder D/A can be used as a multiplying D/A by using reference voltage as an input. The reference voltage can vary over the maximum voltage range of the amplifier and is multiplied by the digital code.

9 D/A Converter Specifications Resolution and linearity.  The resolution is determined by the number of bits and is given as the output voltage corresponding to the smaller digital step, i.e. 1 LSB.  The linearity show how closely the output voltage follows a straight line drawn through zero and full-scale. Settling Time.  The time taken for the output voltage to settle to within a specified error band, usually  ½ LSB.

10 D/A Converter Specifications (Cont.) Glitches.  A glitch is caused by asymmetrical switching in the D/A switches. If a switch changes from a one to a zero faster than from a zero to a one, a glitch may occur.  Consider changing the output code of a 8-bit D/A from to These code are adjacent, and we expect the output to go from one-half full-scale to one resolution value less than that. However, if the switches can switch faster from a one to a zero, the output code will go through a transitory state sequence to to This results in a short but sometimes noticeable glitch in the output signal. Glitches are especially noticeable in video displays.  D/A converter glitch can be eliminated by using a sample-and-hold. The S/H is strobed to sample the data after the glitch has occurred and after the D/A settling time.

11 D/A Output Glitch Digital Input Code Glitch Output Voltage t

12 Deglitched D/A N Digital Digital-to- Analog Converter Sample-and- Hold Deglitched Analog Output SAMPLE

13 Deglitched D/A N Digital Digital-to- Analog Converter Sample-and- Hold Deglitched Analog Output SAMPLE

14 PWM Analog Output PWM (Pulse Width Modulation) is a way of digitally encoding analog signal levels. Through the use of high- resolution counters, the duty cycle (pulse width/period) of a square wave is modulated to encode a specific analog signal level. The PWM signal is still digital because, at any given instant of time, the full DC supply is either fully on or fully off. The voltage or current source is supplied to the analog load by means of a repeating series of on and off pulses. Given a sufficient bandwidth, any analog value can be encoded with PWM.

15 PWM Analog Output (Cont.) PWM is a powerful technique for controlling analog circuits with a processor's digital outputs. It is employed in a wide variety of applications, ranging from measurement and communications to motor speed control.

16 PWM Analog Output (Cont.) T t A D/C Analog Output = A*t/T Pulse Width Modulated Output from CPU Low Pass Filter

17 PWM Analog Output (Cont.) A low-pass filtered is required to eliminate the inherent noise components in PWM signal.  PWM signals contain strong noise components at the PWM frequency and at odd harmonics of that frequency. The output voltage is directly proportional to the pulse width.  By changing the pulse width of the PWM waveform, we can control the output voltage.

18 Examples of PWM Signals Duty cycle=10% Duty cycle=50% Duty cycle=90%

COMP3221/9221: Microprocessors and Embedded Systems 19 Reading 1.Chapter 11: Analog Input and Output. Microcontrollers and Microcomputers by Fredrick M. Cady. 2.Timers/Counters. AVR Mega64 Data Sheet.