ADC, DAC, and Sensor Interfacing

Slides:



Advertisements
Similar presentations
Interfacing to the Analog World
Advertisements

Jordan Barry Victor Brzeski
Analog to Digital Conversion (ADC)
Georgia Tech Digital Back-end µHRG interface Curtis Mayberry School of Electrical and Computer Engineering Georgia Institute of Technology January 13 th,
Sistemi Elettronici Programmabili13-1 MULTI OSC + CLOCK FILTER LVD POWER SUPPLY CONTROL 8 BIT CORE ALU PROGRAM MEMORY RAM I2CI2C PORT A SPI PORT B 16-BIT.
SPI Serial Peripheral Interface. SPI Serial Peripheral Interface is communication between two devices, one bit at a time sequential one bit at time over.
ECE 265 – LECTURE 14 Analog Signal Acquisition The A/D converters 5/14/ ECE265.
Analog Value Processing
Khaled A. Al-Utaibi  Digital Vs Analog Signals  Converting an Analog Signal to a Digital One  Reading Analog Sensors with the.
5-1 Analogue Input/Output Many sensors/transducers produce voltages representing physical data.  To process transducer data in a computer requires conversion.
Explain the introduction to ADC, ADC characteristics, Programming ADC using PIC18, Introduction to DAC and DAC interfacing with PIC18.
Data Acquisition Systems ACES Presentation Brad Ellison March 11, 2003.
1 Analog-to-Digital Converter (ADC). 2 ADC Features (1/3) ADC conversion rate 1 MHz and 12-bit resolution – 1µs conversion time at 56 MHz – 1.17µs conversion.
Interfacing ADC to 8051.
Analogue Input/Output
Embedded System Design Laboratory October 11, 2002Stanford University - EE281 Lecture #4#1 Lecture #4 Outline Announcements Project Proposal AVR Processor.
Digital to Analogue Converter
Typical Microcontroller Purposes
MICROPROCESSOR AND MICRO CONTROLLER LAB
dsPIC DSC –Modul A/D Conversia A/D Registre programare
Renesas Electronics Corporation © 2010 Renesas Electronics America Inc. All rights reserved. RX 12 Bit Analog-to-Digital Converter A Rev /1/10.
Data Acquisition ET 228 Chapter 15 Subjects Covered Analog to Digital Converter Characteristics Integrating ADCs Successive Approximation ADCs Flash ADCs.
Representing Numerical Data Analog Any signal that varies continuously over time Mechanical Pneumatic Hydraulic Electrical Digital Quantities are represented.
Suleyman Demirel University CSS340 Microprocessor Systems – Lecture 2 ATMEGA328P ARCHITECTURE ANALOG INPUTS.
Alexei SemenovGeneric Digitizer Generic Digitizer 10MHZ 16 bit 6U VME Board.
The Silicon Laboratories C8051F020
March 9, 2005 HBD CDR Review 1 HBD Electronics Preamp/cable driver on the detector. –Specification –Schematics –Test result Rest of the electronics chain.
Analog Capture- Port E. Digital to Analog and Analog to Digital Conversion D/A or DAC and A/D or ADC.
By James Cockrell and Justin Loveless
Connector Differential Receiver 8 Channels 65 MHz 12 bits ADC FPGA Receive/buffer ADC data Format triggered Events Generate L1 Primitives Receive timing.
Comparators, DAC, and ADC
ECE 2799 Electrical and Computer Engineering Design ANALOG to DIGITAL CONVERSION Prof. Bitar Last Update:
High Speed Digital Systems Lab Spring/Winter 2010 Project definition Instructor: Rolf Hilgendorf Students: Elad Mor, Ilya Zavolsky Integration of an A/D.
Analog to Digital Converter (ADC)
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.
EE 319K Introduction to Embedded Systems
By: Shivanshi pandya(30) Ayushi chourasia (3) Pranavi chhikniwala(6)
Tomasz Hemperek, STATUS OF DHPT 1.0 PXD/SVD Workshop 5 th February 2013.
Ashan Perera Senior Design Project - Electronic System for Remote Water Quality Monitoring.
Chapter 7 ADC, DAC, and Sensor Interfacing 1. Microcontroller Connection to Sensor via ADC 2.
MECH 373 Instrumentation and Measurements
TI ARM I/O Programming Chapter 2
ECAL Front-end development
Analog-to-Digital Converter (ADC)
Analog Comparator An analog comparator is available on pins PE2(AIN0), PE3(AIN1) The comparator operates like any other comparator. -when (+) exceeds (-)
ADC,DAC and sensor interface
Interfacing of LCD with µP
Programming Microcontroller ADC – Analog Digital Converter
Principles & Applications
ADC, DAC, and Sensor Interfacing
SPI Protocol and DAC Interfacing
Interrupt and Exception Programming
SPI Protocol and DAC Interfacing
Chapter 7 Features and Interfacing of Programmable Devices for 8085 based systems.
Digital-to-Analog & Analog-to-Digital Conversion
SPI Protocol and DAC Interfacing
Engineering 4862 Microprocessors Lecture 25
ADC, DAC, and Sensor Interfacing
Simple ADC structures.
Simple ADC structures.
Digital Theremin with LED
ADC, DAC, and Sensor Interfacing
PIC18F458 Analog-to-Digital
ADC and DAC Programming in AVR
ADC and DAC Data Converter
MSP432™ MCUs Training Part 6: Analog Peripherals
ADC and Sensor Programming
FIGURE 1: SERIAL ADDER BLOCK DIAGRAM
I2C and DAC Interfacing and Programming
ADC and DAC Data Converter
Presentation transcript:

ADC, DAC, and Sensor Interfacing Chapter 7 ADC, DAC, and Sensor Interfacing

Microcontroller Connection to Sensor via ADC

An 8-bit ADC Block Diagram

Resolution versus Step Size for ADC (Vref = 5V) n-bit Number of steps Step size 8 256 5V /256 = 19.53 mV 10 1024 5V /1024 = 4.88 mV 12 4096 5V /4096 = 1.2 mV 16 65,536 5V /65,536 = 0.076 mV Note: Vref = 5V

Vref Relation to Vin Range for an 8-bit ADC Vref (V) Vin in Range (V) Step Size (mV) 5.00 0 to 5 5 / 256 = 19.53 4.00 0 to 4 4 / 256 = 15.62 3.00 0 to 3 3 / 256 = 11.71 2.56 0 to 2.56 2.56 / 256 = 10 2.00 0 to 2 2 / 256 = 7.81 1.28 0 to 1.28 1.28 / 256 = 5 1.00 0 to 1 1 / 256 = 3.90 Note: In an 8-bit ADC, step size is Vref/256

Vref Relation to Vin Range for an 10-bit ADC Vref (V) VinRange (V) Step Size (mV) 5.00 0 to 5 5 / 1024 = 4.88 4.96 0 to 4.096 4.096 / 1024 = 4 3.00 0 to 3 3 / 1024 = 2.93 2.56 0 to 2.56 2.56 / 1024 = 2.5 2.00 0 to 2 2 / 1024 = 2 1.28 0 to 1.28 1.28 / 1024 = 1.25 1.024 0 to 1.024 1.024 / 1024 = 1 Note: In a 10-bit ADC, step size is Vref/1024

A Simultaneous 2-bit ADC

ADC0848 Parallel ADC Block Diagram

MAX1112 Serial ADC Block Diagram

Successive Approximation ADC

Simplified Block Diagram of a TI ADC Module

ADC Run Mode Clock Gating Control (RCGCADC)

Samples and FIFO Depth of Sequencers Number of Samples Depth of FIFO SS0 8 SS1 4 SS2 SS3 1

ADC Active Sample Sequencer (ADCACTSS)

ADC Event Multiplexer Select (ADCEMUX)

ADC Processor Sample Sequence Initiate (ADCPSSI)

Analog input pin assignment in TI Tiva TMC123GH6PM Pin Name Description Pin Pin Number AIN0 ADC input 0 PE3 6 AIN1 ADC input 1 PE2 7 AIN2 ADC input 2 PE1 8 AIN3 ADC input 3 PE0 9 AIN4 ADC input 4 PD3 64 AIN5 ADC input 5 PD2 63 AIN6 ADC input 6 PD1 62 AIN7 ADC input 7 PD0 61 AIN8 ADC input 8 PE5 60 AIN9 ADC input 9 PE4 59 AIN10 ADC input 10 PB4 58 AIN11 ADC input 11 PB5 57

ADC Sample Sequence Input Multiplexer Select 3 (ADCSSMUX3)

ADC Raw Interrupt Status (ADCRIS)

ADC Sample Sequence Result FIFO 3 (ADCSSFIFO3)

ADC Interrupt Status and Clear (ADCISC)

ADC channel pairing for differential Differential Pair Analog Inputs 0 and 1 1 2 and 3 2 4 and 5 3 6 and 7 4 8 and 9 5 10 and 11

ADC Sample Sequence Control 3 (ADCSSCTL3)

ADC Interrupt Mask (ADCIM)

ADC channel pairing for differential Pin AIN0 PE3 AIN1 PE2 AIN2 PE1 AIN3 PE0 AIN4 PD3 AIN5 PD2 AIN6 PD1 AIN7 PD0 AIN8 PE5 AIN9 PE4 AIN10 PB4 AIN11 PB5

ADC Connection for Program 7-1

Thermistor Resistance vs. Temperature Temperature ('C) Tf (K ohms) 29.490 25 10.000 50 3.893 75 1.700 100 0.817

Thermistor (Copied from http://www.maximintegrated.com)

LM34 and LM35

Getting Data to the CPU

LM34/35 Connection to ARM and Its Pin Configuration

DAC Block Diagram

Microcontroller Connection to DAC0808

Saw Tooth Wave Form

Angle vs. Voltage Magnitude for Sine Wave (degrees) Sin Ɵ VOUT (Voltage Magnitude) 5V + (5V × sin Ɵ) Values Sent to DAC (decimal) (Voltage Mag. × 25.6) 5 128 30 0.5 7.5 192 60 0.866 9.33 238 90 1.0 10 255 120 150 180 210 -0.5 2.5 64 240 -0.866 0.669 17 270 -1.0 300 330 360

Angle vs. Voltage Magnitude for Sine Wave