Analog to Digital Converter

Slides:



Advertisements
Similar presentations
Analog to digital converter
Advertisements

The Industry’s Smallest 16 Bit ADC’s
14장 DAC and ADC Slide 1 (of 13).
Mark Neil - Microprocessor Course 1 Device Drivers – Digital Voltmeter.
Analog to Digital Conversion
Digital-to-Analog & Analog-to-Digital Conversion BJ Furman 17APR2014.
Kuliah Mikrokontroler AVR Comparator AVR Eru©September 2009 PENS.
Analog/Digital Subsystem
Analog to Digital Convertor MTT48 V1.0 ADC - 1 ANALOG TO DIGITAL CONVERTOR (ADC)
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.
-Done By Haresh Miriyala
Lecture 12 Analog to Digital Converters. 2  What is an ADC?  Output vs. input  Input range  Single-ended vs. differential inputs  Output coding:
1 Lab2: A/D Converter. 2 This circuit connects a variable voltage to an A/D port on the AVR mcu. Your software running on the AVR mcu will read the digital.
5-1 Analogue Input/Output Many sensors/transducers produce voltages representing physical data.  To process transducer data in a computer requires conversion.
PIC16F bit 8-channel Analog-to-Digital Converter.
Kuliah Mikrokontroler AVR ADC AVR Eru©September 2009 PENS.
Microprocessor based Design for Biomedical Applications MBE 3 – MDBA IV : The ATmega8 Basic Features (3)
Data acquisition and manipulation
전자의료시스템 및 실습 ADC 구 환 경희대학교 전자정보대학 동서의료공학과. Analog-to-Digital Converter(ADC) Description - 아날로그 신호를 디지털 신호로 변경 - 중요한 요소 1. Sampling time 아날로그 신호의 시간 축으로.
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.
Lecture 10 A/D and D/A converter for Digital Filter Prof. C.M Kyung.
ECE 371 – Unit 15 Data Acquisition Systems A/Ds in MC9S12DPS56B Microcontroller.
Interfacing ADC to 8051.
Analog to Digital Converters (ADC)
SPI on the ATmega SS’ line only used in Slave mode SPDR
Analogue Input/Output
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
KyungHee Univ. 2-0 Parallel Port LCD Interface with the HD44780 Controller.
Embedded System Design Laboratory October 11, 2002Stanford University - EE281 Lecture #4#1 Lecture #4 Outline Announcements Project Proposal AVR Processor.
Digital to Analogue Converter
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.
dsPIC DSC –Modul A/D Conversia A/D Registre programare
Advanced uC Session Speaker : Chiraag Juvekar Jan 13, 2011 Speaker : Chiraag Juvekar Jan 13, 2011.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
Renesas Electronics Corporation © 2010 Renesas Electronics America Inc. All rights reserved. RX 12 Bit Analog-to-Digital Converter A Rev /1/10.
Suleyman Demirel University CSS340 Microprocessor Systems – Lecture 2 ATMEGA328P ARCHITECTURE ANALOG INPUTS.
The Silicon Laboratories C8051F020
Analog to Digital Converter (ADC). Analog to Digital Converters  Microcontroller understands only digital language.  To convert the analog output from.
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
Lab 3: ADC.
ECE 2799 Electrical and Computer Engineering Design ANALOG to DIGITAL CONVERSION Prof. Bitar Last Update:
Analog to Digital Converter (ADC)
Analog to Digital Conversion - ADC Mark Neil - Microprocessor Course 1 Device Drivers – Measuring Voltages.
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.
ADC 1 Analog to Digital Converter. ADC 2 ADC Features n General Features -Supports 8 or 10-bit resolution Modes, -Track period fully programmable up to.
Sensing Algorithm using IR Sensor and ADC Soong-sil University. Robotics 기 정 두 원.
By: Shivanshi pandya(30) Ayushi chourasia (3) Pranavi chhikniwala(6)
 Mini-Computer ◦ Microprocessor  The Brains  Arithmetic Logic Unit (ALU)  Control Unit  Program/ Data Storage  Peripherals (Input/Output)  Low-Cost.
Servos Elementary Robotics with Servos
AVR ATMEGA 8 MICRO-CONTROLLER
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
Programming Microcontroller ADC – Analog Digital Converter
Sound Sensor TYWu.
ADC, DAC, and Sensor Interfacing
ADC, DAC, and Sensor Interfacing
Digital-to-Analog & Analog-to-Digital Conversion
ADC, DAC, and Sensor Interfacing
ADC, DAC, and Sensor Interfacing
Digital Control Systems Waseem Gulsher
PIC18F458 Analog-to-Digital
ADC and DAC Programming in AVR
ADC and DAC Data Converter
MSP432™ MCUs Training Part 6: Analog Peripherals
AVR – ATmega103(ATMEL) Architecture & Summary
ANALOG TO DIGITAL CONVERTER (ATD).
Device Drivers – Digital Voltmeter
ADC and DAC Data Converter
PIC Microcontroller ADC interfacing Prof. Ashvini Kulkarni
Presentation transcript:

Analog to Digital Converter(Atmega128) KyungHee Univ.

Analog to Digital Converter Features 10-bit Resolution 13 - 260 μs Conversion Time 8 Multiplexed Single Ended Input Channels 7 Differential Input Channels 2 Differential Input Channels with Optional Gain of 10x and 200x Optional Left Adjustment for ADC Result Readout 0 - VCC ADC Input Voltage Range Selectable 2.56 V ADC Reference Voltage Free Running or Single Conversion Mode Interrupt on ADC Conversion Complete KyungHee Univ.

ATmega128 ADC 8채널 아날로그 입력은 PORT F를 통해 입력되며, Analog Multiplexer에 의해 A/D 변환기에 연결된다. 변환 기간 동안 아날로그 입력전압을 일정하게 하는 Sample/Hold회로를 내장 하고 있다. 기준전압 VREF는 A/D 변환되는 전압의 범위를 나타내며, 단 극성 모드에서 VREF는 0x3FF로 변환된다. VREF는 AVCC, 내부 2.56V, 외부 AREF 단자에 공급되는 전압 중에서 선택 한다. 단 극성인 경우 0~ VREF의 입력전압이 공급되어 x000~0x3FF(0~1023)의 디지털 값으로 변환되며, 차동입력의 경우 차동 입력전압이 2의 보수 0x200~0x1FF(-512~511)로 변환된다. 변환결과는 16비트 A/D변환기 데이터 레지스터에 좌측 또는 우측으로 정렬되어 저장 KyungHee Univ.

Analog to Digital Converter Block Schematic KyungHee Univ.

ADC Prescaler KyungHee Univ.

ADC Conversion Time ADC Conversion Result Single Ended Conversion ADC = (Vin *1024) / VREF Differential Channel Conversion ADC = ((Vpos – VNEG) * Gain * 512) / VREF KyungHee Univ.

ADCMUX (ADC Multiplexer Selection Register) ATmega128 ADC 레지스터 ADCMUX (ADC Multiplexer Selection Register) ADC 기준전압(reference voltage) 선택 ADC 변환 값 정렬 방법 지정 ADC 입력채널 지정 (ADCSRA)ADC Control and Status Register ADC Enable/Disable ADC Start Conversion ADC Free Running Select ADC Interrupt Flag ADC Interrupt Enable/Disable ADC Clock Division Factor ADCL, ADCH ( ADC Data Register) KyungHee Univ.

Register Description ADMUX - ADC Multiplexer Selection Register A/D 변환기의 아날로그 입력채널 선택, A/D 변환의 기준 전압을 설정하거나 변환결과의 저장 형식을 지정 Bit 7:6 – REFS1:0: Reference Selection Bits ADC 기준 전압을 설정하는 비트, 만약 이 Bit(7:6) 값들이 ADC 변환 도중에 변경된다면, 그 변환이 끝난 이후부터 변경된 값이 적용된다. KyungHee Univ.

Register Description Bit 5 – ADLAR: ADC Left Adjust Result A/D 변환결과를 ADCH:ADCL에 저장하는 형식을 지정 0:하위부터 10비트를 사용, 1: 상위부터 10비트를 사용 Bits 4:0 – MUX4:0: Analog Channel and Gain Selection Bits KyungHee Univ.

Bits 4:0 – MUX4:0: Analog Channel and Gain Selection Bits KyungHee Univ.

Bits 4:0 – MUX4:0: Analog Channel and Gain Selection Bits (1)은 offset calibration에 사용 한다. KyungHee Univ.

ADC Control and Status Register A Bit 7 – ADEN: ADC Enable ADEN = 1 ; ADC Enables ADEN = 0 ; ADC Disables Bit 6 – ADSC: ADC Start Conversion Single Conversion mode 일 경우 ADSC에 1을 Write ; A/D 변환이 시작,변환완료 시 0로 Reset ADSC에 0을 Write ; No effect Free Running mode 일 경우 ADSC에 1을 Write ; Start the first conversion KyungHee Univ.

ADC Control and Status Register A Bit 5 – ADFR: ADC Free Running Select Bit 4 – ADIF: ADC Interrupt Flag Bit 3 - ADIE: ADC Interrupt Enable Bits 2:0 – ADPS2:0: ADC Prescaler Select Bits XTAL frequency 과 ADC Input clock의 division factor KyungHee Univ.

ADC Control and Status Register A Bit 4 – ADIF: ADC Interrupt Flag Bit 3 - ADIE: ADC Interrupt Enable Bits 2:0 – ADPS2:0: ADC Prescaler Select Bits XTAL frequency 과 ADC Input clock의 division factor KyungHee Univ.

ADC Register Right Adjusted Mode: ADLAR = 0 Left Adjusted Mode: ADLAR = 1 KyungHee Univ.

ATmega128 ADC 프로그램 예 cho_adc_basic_lcd 참고 요 KyungHee Univ.