What is ADC ? Types of ADCs HC11 & ADC Analog to Digital Converter Denis BISSIERES Ian CAMPBELL Yohan LESPERAT Mechatronics - Fall 04.

Slides:



Advertisements
Similar presentations
MC68HC11 System Overview. System block diagram (A8 version)
Advertisements

Chapter 12: Analog Converter Subsystem
Analog-to-Digital Converter (ADC) And
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
Sensors Interfacing.
Data Acquisition ET 228 Chapter
Analog to Digital Converters Byron Johns Danny Carpenter Stephanie Pohl Harry “Bo” Marr October 4, 2005.
ECE 265 – LECTURE 14 Analog Signal Acquisition The A/D converters 5/14/ ECE265.
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.
A/D and D/A. Overview Introduction oDefinitions oOp amps -- a quick review Digital-to-analog conversions Analog-to-digital conversions Reading: Text,
LSU 06/04/2007Electronics 71 Analog to Digital Converters Electronics Unit – Lecture 7 Representing a continuously varying physical quantity by a sequence.
5/4/2006BAE Analog to Digital (A/D) Conversion An overview of A/D techniques.
Analog Comparator Positive input chooses bet. PB2 and Bandgap Reference. Negative input chooses bet. PB3 and the 8 inputs of the A/D. ACME= Analog Comparator.
Lecture 9: D/A and A/D Converters
Analogue to Digital Conversion
68HC11 Analog I/O Chapter 12.
Interfacing Analog and Digital Circuits
DIGITAL SYSTEMS TCE INTERFACING WITH ANALOG DEVICES (Week 12)
Analog-to-Digital Converter (ADC)
Analog to Digital Converters (ADC)
ADC STUDENT LECTURE Andrew Brown Jonathan Warner Laura Strickland.
EET260: A/D and D/A converters
H. Huang Transparency No.11-1 The 68HC11 Microcontroller Chapter 11: 68HC11 Analog to Digital Converter The 68HC11 Microcontroller Han-Way Huang Minnesota.
PH4705/ET4305: A/D: Analogue to Digital Conversion
In presenting Order: Josh Navikonis Moiz H Mike Hochman Brian Post Analog-Digital Converters ME /29/2009.
Week #7 Data Acquisition System, Part (A)
PH4705/ET4305: A/D: Analogue to Digital Conversion Typical Devices: Data sheets are on the web site for A/D 8 bit parallel AD7819 and serial ADC0831 And.
Data Converters ELEC 330 Digital Systems Engineering Dr. Ron Hayne
1 Sensors and Measurements Penderia & Pengukuran ENT 164 Signal Processing Elements Hema C.R. School of Mechatronics Engineering Northern Malaysia University.
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
1 ATD10B8CV2 on MC9SI2C By: Yuchun Huang. 2 ADC ADC Power Supply.
ACOE2551 Microprocessors Data Converters Analog to Digital Converters (ADC) –Convert an analog quantity (voltage, current) into a digital code Digital.
Analog to Digital Converters (ADC) 1
Analog to Digital Converter
Analog to Digital conversion. Introduction  The process of converting an analog signal into an equivalent digital signal is known as Analog to Digital.
ELN5622 Embedded Systems Class 7 Spring, 2003 Aaron Itskovich
ELE2MIC Lecture 21 The AVR Sleep Modes ATMEGA128’s Analog to Digital Converter –Features –Block Diagram –Clock Source –Input Sources –Interrupts –BandGap.
SIGMA-DELTA ADC SD16_A Sigma-Delta ADC Shruthi Sujendra.
Revised: Aug 1, ECE 263 Embedded System Design Lessons HC12 Analog-to-Digital (ATD) Converter System.
Data Acquisition ET 228 Chapter 15 Subjects Covered Analog to Digital Converter Characteristics Integrating ADCs Successive Approximation ADCs Flash ADCs.
High Speed Analog to Digital Converter
Analog-to-Digital and Digital-to-Analog Conversion
1 Data-Converter Circuits A/D and D/A Chapter 9 1.
Analog Capture- Port E. Digital to Analog and Analog to Digital Conversion D/A or DAC and A/D or ADC.
PREPARED BY V.SANDHIYA LECT/ ECE UNIT- 3 APPLICATIONS OF OP-AMP 1.
Analog/Digital Conversion
Data Acquisition System
Digital to Analog Converter (DAC)
ECE 2799 Electrical and Computer Engineering Design ANALOG to DIGITAL CONVERSION Prof. Bitar Last Update:
Analog to Digital Converter (ADC)
Embedded Systems Design 1 Lecture Set C Interfacing the MCS-51 to: –D/A Converter –A/D Converter.
ECE 447: Lecture 2 Internal Input/Output Devices A/D Converter.
0808/0809 ADC. Block Diagram ADC ADC0808/ADC Bit μP Compatible A/D Converters with 8-Channel Multiplexer The 8-bit A/D converter uses successive.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Electronic instrumentation Digitization of Analog Signal in TD
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.
Analog-Digital Conversion. Analog outputs from sensors and analog front- ends (analog signal conditioning) have to be converted into digital signals.
Electronic Devices and Circuit Theory
Residential Audio & Video Systems Copyright © 2005 Heathkit Company, Inc. All Rights Reserved Presentation 15 – Digital Audio and Video.
MECH 373 Instrumentation and Measurements
Analog-Digital Conversion
Analog-to-Digital Converter
Analog to Digital Converters Electronics Unit – Lecture 7
Created by Luis Chioye Presented by Cynthia Sosa
Lesson 8: Analog Signal Conversion
Conversation between Analogue and Digital System
Chapter 7 Converters.
Presentation transcript:

What is ADC ? Types of ADCs HC11 & ADC Analog to Digital Converter Denis BISSIERES Ian CAMPBELL Yohan LESPERAT Mechatronics - Fall 04

What is ADC ? Types of ADCs HC11 & ADC Contents What is ADC ?What is ADC ? Types of ADCsTypes of ADCs HC11 & ADCHC11 & ADC

What is ADC ? Types of ADCs HC11 & ADC Definition Examples of use Conversion process Accuracy

Most signals we want to process are analog i.e.: they are continuous and can take an inifinity of values x(t) t What is ADC ? Types of ADCs HC11 & ADC Definition

Digital systems require discrete digital data ADC converts an analog information into a digital information Digital System ? Analog Digital What is ADC ? Types of ADCs HC11 & ADC Definition

Voltmeter What is ADC ? Types of ADCs HC11 & ADC Examples of use Cell phone (microphone) ΔVΔV 7.77 V Wave Voice

3 steps: Sampling Quantification Coding These operations are all performed in a same element: the A to D Converter What is ADC ? Types of ADCs HC11 & ADC Conversion process

x s (t=k*T s ) Digital system works with discrete states The signal is only defined at determined times The sampling times are proportional to the sampling period (T s ) x(t) TsTs What is ADC ? Types of ADCs HC11 & ADC Conversion process: Sampling x(t) t TsTs x s (t)

The signal can only take determined values Belonging to a range of conversion (ΔV r ) Based on number of bit combinations that the converter can output Number of possible states: N=2 n where n is number of bits Resolution: Q= ΔV r /N What is ADC ? Types of ADCs HC11 & ADC Conversion process: Quantification t TsTs x s (t) ΔVr Q x q (t)

Assigning a unique digital word to each sample Matching the digital word to the input signal What is ADC ? Types of ADCs HC11 & ADC Conversion process: Coding t TsTs ΔVr Q x q (t) N-1 N-2

The accuracy of an ADC can be improved by increasing: The sampling rate (T s ) The resolution (Q) What is ADC ? Types of ADCs HC11 & ADC Accuracy

t TsTs Q x q (t) What is ADC ? Types of ADCs HC11 & ADC Accuracy t TsTs x q (t) Higher Sampling rate t Q x q (t) Higher Resolution

What is ADC ? Types of ADCs HC11 & ADC Sampling rate Nyquist-Shannon theorem: Minimum sampling rate should be at least twice the highest data frequency of the analog signal f s >2 * f max

What is ADC ? Types of ADCs HC11 & ADC Sampling rate Analog signals are composed of an infinity of harmonics Need to limit the frequency band to its useful part Use of an analog filter ADC Analog Digital Analog Analog Filter In practice: f s ≈ (3…5) * f filter

What is ADC ? Types of ADCs HC11 & ADC Example 8 bits converter: n=8 Range of conversion: ΔVr=5V Sampling time: T s =1ms Analog Digital Number of possible states: N=2 8 =256 Resolution: Q=ΔVr/N=19.5 mV Analog Filter: f filter ≈ fs/5 = 200 Hz f Gain

Types of ADCs Flash ADC Sigma-delta ADC Dual slope converter Successive approximation converter What is ADC ? Types of ADCs HC11 & ADC

“parallel A/D” Uses a series of comparators Each comparator compares V in to a different reference voltage, starting w/ V ref = 1/2 lsb What is ADC ? Types of ADCs HC11 & ADC Flash ADC

Comparator is one use of an Op-Amp +-+- V IN V REF V OUT IfOutput V IN > V REF High V IN < V REF Low What is ADC ? Types of ADCs HC11 & ADC Flash ADC

Advantages Very fastDisadvantages Needs many parts (255 comparators for 8-bit ADC) Lower resolution Expensive Large power consumption Flash ADC What is ADC ? Types of ADCs HC11 & ADC

Oversampled input signal goes in the integrator Output of integration is compared to GND Iterates to produce a serial bitstream Output is serial bit stream with # of 1’s proportional to V in What is ADC ? Types of ADCs HC11 & ADC Sigma-Delta ADC Σ Integrator Digital low-pass filter Sample decimator V in bit DAC - Oversampler Serial output

Advantages High resolution No precision external components neededDisadvantages Slow due to oversampling What is ADC ? Types of ADCs HC11 & ADC Sigma-Delta ADC

The sampled signal charges a capacitor for a fixed amount of time By integrating over time, noise integrates out of the conversion. Then the ADC discharges the capacitor at a fixed rate while a counter counts the ADC's output bits. A longer discharge time results in a higher count. t V in t FIX t meas What is ADC ? Types of ADCs HC11 & ADC Dual Slope converter

Advantages Input signal is averaged Greater noise immunity than other ADC types High accuracyDisadvantages Slow High precision external components required to achieve accuracy What is ADC ? Types of ADCs HC11 & ADC Dual Slope converter

Sets MSB Converts MSB to analog using DAC Compares guess to input Set bit Test next bit SARDAC Out V IN - + What is ADC ? Types of ADCs HC11 & ADC Successive Approximation Is V in > ½ ADC range? If no, then test next bit

Advantages Capable of high speed Medium accuracy compared to other ADC types Good tradeoff between speed and costDisadvantages Higher resolution successive approximation ADCs will be slower Speed limited ~5Msps What is ADC ? Types of ADCs HC11 & ADC Successive Approximation

TypeSpeed (relative)Cost (relative) Dual SlopeSlowMed FlashVery FastHigh Successive AppoxMedium – FastLow Sigma-DeltaSlowLow What is ADC ? Types of ADCs HC11 & ADC ADC Types Comparison

HC11 & ADC What is ADC ? Types of ADCs HC11 & ADC Structure of the acquisition ADCTL Register Option Register Data conversion Acquistion

PE0 AN0 PE1 AN1 PE2 AN2 PE3 AN3 PE4 AN4 PE5 AN5 PE6 AN6 PE7 AN7 ANALOG MUX 8-bits CAPACITIVE DAC WITH SAMPLE AND HOLD SUCCESSIVE APPROXIMATION REGISTER AND CONTROL V RH V RL RESULT REGISTER INTERFACE ADR1ADR2ADR3ADR4 ADCTL A/D CONTROL CCF SCAN MULT CDCCCBCA INTERNAL DATA BUS P 64 M68HC11 Family Data Sheet Port E (analog input) 8 channels What is ADC ? Types of ADCs HC11 & ADC Structure of the acquisition

Port E (analog input) Analog Multiplexer A/D Converter Result Register Interface ADR1 - result 1 ADR2 - result 2 ADR3 - result 3 ADR4 - result 4 8 channel/bit input VRL = 0 volts VRH = 5 volts Digital input on P What is ADC ? Types of ADCs HC11 & ADC Structure of the acquisition

CCF CBCA ADCTL ($1030) Reset to: 00uuuuuu 0 SCANMULTCDCC MULT - Single or multiple channel 0: Sample a single channel (four times) 1: Sample four channels CD,CC,CB,CA - Channel selection If MULT is 0, then CC-CA bits specify the channel If MULT is 1, then CC specifies the group: 0: Sample AN0-AN3, 1: Sample AN4-AN7 CD is reserved for factory test use CCF - Conversion Complete Flag Set when all four conversions are complete Cleared by writing to ADCTL - starts the next conversion SCAN - Continuous scan mode 0: Take one set of four conversions and stop 1: Continually perform new conversions What is ADC ? Types of ADCs HC11 & ADC ADCTL Register

4 channels are continuously converted. ADR1- ADR4 overwritten One channel is continuously converted. ADR1- ADR4 overwritten Continuous Conversion (SCAN = 1) 4 channels converted once. The results are stored in ADR1- ADR4 One channel converted 4 times consecutively. The results are stored in ADR1-ADR4 Single Conversion (SCAN = 0) Multiple Channel (MULT = 1) Single Channel (MULT = 0) ADR# Behavior What is ADC ? Types of ADCs HC11 & ADC ADCTL Register

What is ADC ? Types of ADCs HC11 & ADC PORT E A/D Converter Result Register Interface ADR1 – Result1 ADR2 – Result2 ADR3 – Result3 ADR4 – Result4 Single Channel

0 What is ADC ? Types of ADCs HC11 & ADC PORT E A/D Converter Result Register Interface ADR1 – Result1 ADR2 – Result2 ADR3 – Result3 ADR4 – Result4 Multiple Channels

E Clock cycles: Conversion Sequence ADCTL write (1) Sample (12)Bit 7 (4)6 (2)_ (2)0 (2)End (2) Successive approximation total 1 st, ADR12 nd, ADR23 rd, ADR34 th, ADR4CCF What is ADC ? Types of ADCs HC11 & ADC ADCTL Register

A/D Result Registers (ADR1 – ADR4): ADR1 = $1031 ADR2 = $1032 ADR3 = $1033 ADR4 = $1034 What is ADC ? Types of ADCs HC11 & ADC ADCTL Register

What is ADC ? Types of ADCs HC11 & ADC A/D Channel Assignment P447 Reference Manual ADCTL Register

ADR# Behavior What is ADC ? Types of ADCs HC11 & ADC Single Channel The Channel is selected by CA, CB, (MULT = 0)CC Multiple Channel The group of Channels is selected by (MULT = A) CC only ADCTL Register

ADPUCSELIRQEDLYCMECR1CR0 Options Register ($1039) ADPU = A/D power up CSEL = Clock Select IRQE = Config. IRQ DLY = Enable start-up delay CME = Clock Monitor Bit 2 = not implemented CR1 = COP Timer Rate CR2 = COP Timer Rate Bit: What is ADC ? Types of ADCs HC11 & ADC Option Register

ADPU - A/D Charge Pump 0: Turn off the A/D 1 : Turn on the A/D (by enabling the charge pump) Note: Wait at least 100 microseconds before using the A/D (This is 200 cycles at a 2MHz E-clock) CSEL - A/D Clock select 0: Use the E-clock for the A/D 1: Use a special internal A/D clock that runs at around 2MHz Note: If the E-clock is 750KHz or higher, CSEL should be 0. Otherwise CSEL should be 1. DLY – Delay 0 = No delay is used and MCU resumes within approx. 4 cycles. 1 = 4000 E clock cycle delay imposed to allow crystal stabilization What is ADC ? Types of ADCs HC11 & ADC Option Register

*1.65 Volts (3) Volts (2) 0.39%0.78%1.56%3.12%6.25%12.5%25%50% (1) Bit Bit 7 (1) %of VRH-VRL, (2) VRH=5 VRL=0, (3) VRH=3.3 VRL=0 What is ADC ? Types of ADCs HC11 & ADC Page 41 of the programming reference guide Data conversion

MAX : =.FF 16 = = % Resolution : = = = % MIN : = 0 16 = 0 10 =0 % What is ADC ? Types of ADCs HC11 & ADC Data conversion

0V <= analog input <= 5V Charge pump allows VRH max 6-7V VRL and VRH convert to $00 and $FF Digital input of Port E pins not recommended during A/D sample time Some additional notes: What is ADC ? Types of ADCs HC11 & ADC Data conversion

What is ADC ? Types of ADCs HC11 & ADC Acquisition ADPU CR1CR2 OPTION ($1039) CSEL IREQDLYCME0 CCF CBCA ADCTL ($1030) 0 SCAN MULT CDCC OPTIONEQU$1039 ADCTLEQU$1030 ADR1EQU$1031 ORG$1040 LDAA#$80 STAAOPTION LDY#$411A NOP LOOP NOP DEY BNELOOP LDAA#$00 STAAADCTL LDX#ADCTL WAITBRCLR0,X #$80 WAIT LDAAADR1 PSHA JSR $4000 SWI END Delay for charge pump to stabilize 100µs Read and store result SCAN=0,MULT=0,CHAN GRP=00 Wait until CCF or bit 7=“1” ADPU=1,CSEL=0

What is ADC ? Types of ADCs HC11 & ADCAcquisition Subroutine output to the screen the decimal equivalence of the stack : ORG$4000 PULY PULB CLRA LDX#$000A IDIV STAB$0000 XGDX LDX#$000A IDIV STAB$0001 XGDX TBA JSR$FFB5 LDAA$0001 JSR$FFB5 LDAA$0000 JSR$FFB5 PSHY RTS Subroutines Outrhlf, convert to ASCII Number and output to screen first the hundreds number, the tens and then units number Store result to ACCA and remainder to memory of the second division Store remainder of the first division First Integer Division Second Integer Division A number between 000 and 255 will be print on the screen. If it is 255 -> 100 % 000 -> 0 % (NOTE: Remember that ACCA is the high byte of ACCD and ACCB is the low byte of ACCD. Return address used for JSR and RTS is stored in INDEX Y in the subroutine)

What is ADC ? Types of ADCs HC11 & ADC Questions ?