EE 308: Microcontrollers

Size: px
Start display at page:

Download "EE 308: Microcontrollers"

Transcription

1 EE 308: Microcontrollers Timers Aly El-Osery Electrical Engineering Department New Mexico Institute of Mining and Technology Socorro, New Mexico, USA April 2, 2018 Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

2 Analog signals One of the key uses of microcontrollers is to use input signals and perform controls tasks based on the measured value. In many cases these are analog, e.g, temperature speed sound light Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

3 Analog-to-digital converter Microcontrollers are inherently digital. Therefore we need to convert analog signals to digital Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

4 Analog-to-digital converter Microcontrollers are inherently digital. Therefore we need to convert analog signals to digital ADC Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

5 ADC overview There are three main components in dealing with analog signals on digital systems Sampling Quantization Encoding Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

6 Basic operation 1 At the desired time, input voltage is divided into 2 n parts where n is the number of bits 2 During the conversion process, a sample and hold circuit is used to prevent the value from changing 3 The conversion results into a mapping to a binary value Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

7 Key parameters Resolution number of bits n LSB represents the distinguishable voltage LSB = V REF 2 n (1) Conversion time time required to convert a number and represents the minimum sampling period Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

8 ADC conversion result ADC = V in 1024 V REF (2) Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

9 ADC conversion result Value is dependent on the reference voltage. ADC = V in 1024 V REF (2) Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

10 ADC conversion result ADC = V in 1024 V REF (2) Value is dependent on the reference voltage. If battery powered, value may change as the battery voltage drops Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

11 Shannon s sampling theorem To avoid aliasing the maximum signal frequency that can be handled is given by F max F s 2 = 1 2T s (3) where F max is the maximum frequency of the input signal, F s is the sampling frequency, and T s is the sampling period. Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

12 ADC types Flash Successive approximation Sigma delta Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

13 Error types Quantization: there are only finite levels to approximate the input signal to, resulting in ±0.5 lsb quantization max error Gain error: inconsistency in step size Differential non-linearity: non constant variation in step size Integral non-linearity: deviation of the mid point after compensation for other errors Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

14 ADC features 10-bit Resolution 0.5 LSB Integral Non-Linearity ±2 LSB Absolute Accuracy µs Conversion Time Up to 15kSPS at Maximum Resolution 8 Multiplexed Single Ended Input Channels Differential mode with selectable gain at 1x, 10x or 200x ADC Input Voltage Range 2.7V - V cc Differential ADC Voltage Range Selectable 2.56V or 1.1V ADC Reference Voltage Free Running or Single Conversion Mode Interrupt on ADC Conversion Complete Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

15 Registers ADMUX multiplexer selection register channel selection and gain ADLAR ADC left adjust REFSn reference selection ADCSRA control and status register A ADEN ADC enable ADSC start conversion ADATE auto trigger enable ADIF interrupt flag ADIE interrupt enable ADCL & ADCH low and high byte ADC value ADCSRB control and status register B ADTSn auto trigger source Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

16 Bit alignment The ATmega1284 s ADC is 10-bits, therefore needs two registers which result in 16 bits. The microcontroller offers two ways to store the 10-bit number into two registers ADCL & ADCH Left justified Right justified Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

17 Voltage reference Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

18 Conversion time Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

19 Operation modes Single conversion starts by writing 0 to power reduction adc bit in PRR0, then writing 1 to the ADC start conversion bit in the ADCSRA register Automatically triggered on positive edge of the trigger signal, the ADC prescaler is reset and conversion starts. If ADC interrupt flag is used as the trigger, a new conversion will start automatically once the current one is finished. Aly El-Osery (NMT) EE 308: Microcontrollers April 2, / 16

Microcontroller Systems. ELET 3232 Topic 21: ADC Basics

Microcontroller Systems. ELET 3232 Topic 21: ADC Basics Microcontroller Systems ELET 3232 Topic 21: ADC Basics Objectives To understand the modes and features of the Analog-to-Digital Converter on the ATmega 128 To understand how to perform an Analog-to-Digital

More information

Embedded Systems and Software. Analog to Digital Conversion

Embedded Systems and Software. Analog to Digital Conversion Embedded Systems and Software Analog to Digital Conversion Slide 1 Analog to Digital Conversion Analog or continuous signal Discrete-time or digital signal Other terms ADC, A/D Many different techniques

More information

Module 13: Interfacing ADC. Introduction ADC Programming DAC Programming Sensor Interfacing

Module 13: Interfacing ADC. Introduction ADC Programming DAC Programming Sensor Interfacing Module 13: Interfacing ADC Introduction ADC Programming DAC Programming Sensor Interfacing Introduction ADC Devices o Analog-to-digital converters (ADC) are among the most widely used devices for data

More information

Design with Microprocessors

Design with Microprocessors Design with Microprocessors Lecture 9 Year 3 CS Academic year 2017/2018 1 st Semester Lecturer: Radu Dănescu Analog Comparator AIN+ AIN- Compares the analog values from AIN+ (positive) & AIN- (negative)

More information

Analogue to Digital Conversion on an ATmega168

Analogue to Digital Conversion on an ATmega168 1800 335 330 Shopping Cart: Empty Login or Create Account About Blog Tutorials Library Contact Search... Go Home» Blog» Tutorials» Analogue to Digital Conversion on an ATmega168 Categories Boards Connectors

More information

Hardware and software resources on the AVR family for the microcontroller project

Hardware and software resources on the AVR family for the microcontroller project Hardware and software resources on the AVR family for the microcontroller project 1 1. Code Vision The C Compiler you use: CodeVisionAVR (CVAVR) Where can you find it? a (limited) version is available

More information

8-bit Microcontroller with 1K Bytes Flash. ATtiny15. Advance Information. Features. Description. Pin Configurations

8-bit Microcontroller with 1K Bytes Flash. ATtiny15. Advance Information. Features. Description. Pin Configurations Features High-performance, Low-power AVR 8-bit Microcontroller RISC Architecture 90 Powerful Instructions - Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static Operation

More information

Analog Digital Converter

Analog Digital Converter Analog Digital Converter - Overview Analog Digital Conversion - Operation Modes: Single Mode vs. Scan mode - Registers for Data, Control, Status - Using the ADC in Software - Handling of Interrupts Karl-Ragmar

More information

Outline. Analog/Digital Conversion

Outline. Analog/Digital Conversion Analog/Digital Conversion The real world is analog. Interfacing a microprocessor-based system to real-world devices often requires conversion between the microprocessor s digital representation of values

More information

University of Nairobi. Project Title A F OUR CHANNEL-D MICROCONTROLLER BASED DATA ACQUISITION SYSTEM WITH A SERIAL INTERFACE TO THE PC

University of Nairobi. Project Title A F OUR CHANNEL-D MICROCONTROLLER BASED DATA ACQUISITION SYSTEM WITH A SERIAL INTERFACE TO THE PC University of Nairobi Project Title A F OUR CHANNEL-D MICROCONTROLLER BASED DATA ACQUISITION SYSTEM WITH A SERIAL INTERFACE TO THE PC Project Index (Number): PRJ061 By Candidate Name LENNOX ABONG O OGOLA

More information

Electronics A/D and D/A converters

Electronics A/D and D/A converters Electronics A/D and D/A converters Prof. Márta Rencz, Gábor Takács, Dr. György Bognár, Dr. Péter G. Szabó BME DED December 1, 2014 1 / 26 Introduction The world is analog, signal processing nowadays is

More information

Lecture #4 Outline. Announcements Project Proposal. AVR Processor Resources

Lecture #4 Outline. Announcements Project Proposal. AVR Processor Resources October 11, 2002 Stanford University - EE281 Lecture #4 #1 Announcements Project Proposal Lecture #4 Outline AVR Processor Resources A/D Converter (Analog to Digital) Analog Comparator Real-Time clock

More information

Data Acquisition: A/D & D/A Conversion

Data Acquisition: A/D & D/A Conversion Data Acquisition: A/D & D/A Conversion Mark Colton ME 363 Spring 2011 Sampling: A Review In order to store and process measured variables in a computer, the computer must sample the variables 10 Continuous

More information

Analog to digital and digital to analog converters

Analog to digital and digital to analog converters Analog to digital and digital to analog converters A/D converter D/A converter ADC DAC ad da Number bases Decimal, base, numbers - 9 Binary, base, numbers and Oktal, base 8, numbers - 7 Hexadecimal, base

More information

AVR126: ADC of megaavr in Single-Ended Mode

AVR126: ADC of megaavr in Single-Ended Mode AVR126: ADC of megaavr in Single-Ended Mode Introduction Microchip megaavr devices have a successive approximation Analog-to-Digital Converter (ADC) capable of conversion rates up to 15 ksps with a resolution

More information

Embedded Hardware Design Lab4

Embedded Hardware Design Lab4 Embedded Hardware Design Lab4 Objective: Controlling the speed of dc motor using light sensor (LDR). In this lab, we would want to control the speed of a DC motor with the help of light sensor. This would

More information

uc Crash Course Whats is covered in this lecture Joshua Childs Joshua Hartman A. A. Arroyo 9/7/10

uc Crash Course Whats is covered in this lecture Joshua Childs Joshua Hartman A. A. Arroyo 9/7/10 uc Crash Course Joshua Childs Joshua Hartman A. A. Arroyo Whats is covered in this lecture ESD Choosing A Processor GPIO USARTS o RS232 o SPI Timers o Prescalers o OCR o ICR o PWM ADC Interupts 1 ESD KILLS!

More information

UNIT III Data Acquisition & Microcontroller System. Mr. Manoj Rajale

UNIT III Data Acquisition & Microcontroller System. Mr. Manoj Rajale UNIT III Data Acquisition & Microcontroller System Mr. Manoj Rajale Syllabus Interfacing of Sensors / Actuators to DAQ system, Bit width, Sampling theorem, Sampling Frequency, Aliasing, Sample and hold

More information

EE 109 Midterm Review

EE 109 Midterm Review EE 109 Midterm Review 1 2 Number Systems Computer use base 2 (binary) 0 and 1 Humans use base 10 (decimal) 0 to 9 Humans using computers: Base 16 (hexadecimal) 0 to 15 (0 to 9,A,B,C,D,E,F) Base 8 (octal)

More information

ATmega 16. Dariusz Chaberski

ATmega 16. Dariusz Chaberski ATmega 16 Dariusz Chaberski Obudowy 2 Schemat blokowy 3 4 5 Pamięć EEPROM The EEPROM Address Register The EEPROM Data Register 6 The EEPROM Control Register EERIE: EEPROM Ready Interrupt Enable EEMWE:

More information

Advantages of Analog Representation. Varies continuously, like the property being measured. Represents continuous values. See Figure 12.

Advantages of Analog Representation. Varies continuously, like the property being measured. Represents continuous values. See Figure 12. Analog Signals Signals that vary continuously throughout a defined range. Representative of many physical quantities, such as temperature and velocity. Usually a voltage or current level. Digital Signals

More information

MICROPROCESSORS A (17.383) Fall Lecture Outline

MICROPROCESSORS A (17.383) Fall Lecture Outline MICROPROCESSORS A (17.383) Fall 2010 Lecture Outline Class # 07 October 26, 2010 Dohn Bowden 1 Today s Lecture Syllabus review Microcontroller Hardware and/or Interface Finish Analog to Digital Conversion

More information

Real Time Embedded Systems. Lecture 1 January 17, 2012

Real Time Embedded Systems.  Lecture 1 January 17, 2012 Analog Real Time Embedded Systems www.atomicrhubarb.com/embedded Lecture 1 January 17, 2012 Topic Section Topic Where in the books Catsoulis chapter/page Simon chapter/page Zilog UM197 (ZNEO Z16F Series

More information

Digital to Analog Conversion. Data Acquisition

Digital to Analog Conversion. Data Acquisition Digital to Analog Conversion (DAC) Digital to Analog Conversion Data Acquisition DACs or D/A converters are used to convert digital signals representing binary numbers into proportional analog voltages.

More information

Roland Kammerer. 13. October 2010

Roland Kammerer. 13. October 2010 Peripherals Roland Institute of Computer Engineering Vienna University of Technology 13. October 2010 Overview 1. Analog/Digital Converter (ADC) 2. Pulse Width Modulation (PWM) 3. Serial Peripheral Interface

More information

Module 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1

Module 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1 Module 3 Embedded Systems I/O Version 2 EE IIT, Kharagpur 1 esson 19 Analog Interfacing Version 2 EE IIT, Kharagpur 2 Instructional Objectives After going through this lesson the student would be able

More information

THE PERFORMANCE TEST OF THE AD CONVERTERS EMBEDDED ON SOME MICROCONTROLLERS

THE PERFORMANCE TEST OF THE AD CONVERTERS EMBEDDED ON SOME MICROCONTROLLERS THE PERFORMANCE TEST OF THE AD CONVERTERS EMBEDDED ON SOME MICROCONTROLLERS R. Holcer Department of Electronics and Telecommunications, Technical University of Košice, Park Komenského 13, SK-04120 Košice,

More information

The University of Texas at Arlington Lecture 10 ADC and DAC

The University of Texas at Arlington Lecture 10 ADC and DAC The University of Texas at Arlington Lecture 10 ADC and DAC CSE 3442/5442 Measuring Physical Quantities (Digital) computers use discrete values, and use these to emulate continuous values if needed. In

More information

The need for Data Converters

The need for Data Converters The need for Data Converters ANALOG SIGNAL (Speech, Images, Sensors, Radar, etc.) PRE-PROCESSING (Filtering and analog to digital conversion) DIGITAL PROCESSOR (Microprocessor) POST-PROCESSING (Digital

More information

Analog to Digital Conversion

Analog to Digital Conversion Analog to Digital Conversion 02534567998 6 4 2 3 4 5 6 ANALOG to DIGITAL CONVERSION Analog variation (Continuous, smooth variation) Digitized Variation (Discrete set of points) N2 N1 Digitization applied

More information

EE 308: Microcontrollers

EE 308: Microcontrollers EE 308: Microcontrollers Introduction to Communication USART Aly El-Osery Electrical Engineering Department New Mexico Institute of Mining and Technology Socorro, New Mexico, USA February 27, 2018 Aly

More information

Microprocessors & Interfacing

Microprocessors & Interfacing Lecture overview Microprocessors & Interfacing /Output output PMW Digital-to- (D/A) Conversion input -to-digital (A/D) Conversion Lecturer : Dr. Annie Guo S2, 2008 COMP9032 Week9 1 S2, 2008 COMP9032 Week9

More information

Analog Input and Output. Lecturer: Sri Parameswaran Notes by: Annie Guo

Analog Input and Output. Lecturer: Sri Parameswaran Notes by: Annie Guo Analog Input and Output Lecturer: Sri Parameswaran Notes by: Annie Guo 1 Analog output Lecture overview PMW Digital-to-Analog (D/A) Conversion Analog input Analog-to-Digital (A/D) Conversion 2 PWM Analog

More information

DEVELOPMENT OF REAL TIME DIGITAL CONTROLLER FOR A LIQUID LEVEL SYSTEM USING ATMEGA32 MICROCONTROLLER

DEVELOPMENT OF REAL TIME DIGITAL CONTROLLER FOR A LIQUID LEVEL SYSTEM USING ATMEGA32 MICROCONTROLLER DEVELOPMENT OF REAL TIME DIGITAL CONTROLLER FOR A LIQUID LEVEL SYSTEM USING ATMEGA32 MICROCONTROLLER A REPORT SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF BACHELOR OF TECHNOLOGY

More information

A Beginners Guide to AVR

A Beginners Guide to AVR See discussions, stats, and author profiles for this publication at: http://www.researchgate.net/publication/263084656 A Beginners Guide to AVR TECHNICAL REPORT JUNE 2014 DOWNLOADS 154 VIEWS 50 1 AUTHOR:

More information

EARTH PEOPLE TECHNOLOGY, Inc. FAST ARDUINO OSCILLOSCOPE PROJECT User Manual

EARTH PEOPLE TECHNOLOGY, Inc. FAST ARDUINO OSCILLOSCOPE PROJECT User Manual EARTH PEOPLE TECHNOLOGY, Inc FAST ARDUINO OSCILLOSCOPE PROJECT User Manual The Fast Oscilloscope is designed for EPT USB CPLD Development System. It converts an analog signal to digital and displays the

More information

Analog/Digital and Sampling

Analog/Digital and Sampling Analog/Digital and Sampling Alexander Nelson October 22, 2018 University of Arkansas - Department of Computer Science and Computer Engineering Analog Signals in the real world are analog signals Process

More information

MEASUREMENT OF RELATIVE HUMIDITY USING A SIMPLE ARRANGEMENT & BY ANALOG TO DIGITAL DATA CONVERSION METHOD

MEASUREMENT OF RELATIVE HUMIDITY USING A SIMPLE ARRANGEMENT & BY ANALOG TO DIGITAL DATA CONVERSION METHOD Proceedings of the International Conference on Mechanical Engineering 2011 (ICME2011) 18-20 December 2011, Dhaka, Bangladesh MEASUREMENT OF RELATIVE HUMIDITY USING A SIMPLE ARRANGEMENT & BY ANALOG TO DIGITAL

More information

Section 22. Basic 8-bit A/D Converter

Section 22. Basic 8-bit A/D Converter M Section 22. A/D Converter HIGHLIGHTS This section of the manual contains the following major topics: 22.1 Introduction...22-2 22.2 Control Registers...22-3 22.3 A/D Acquisition Requirements...22-6 22.4

More information

Microcontroller: Timers, ADC

Microcontroller: Timers, ADC Microcontroller: Timers, ADC Amarjeet Singh February 1, 2013 Logistics Please share the JTAG and USB cables for your assignment Lecture tomorrow by Nipun 2 Revision from last class When servicing an interrupt,

More information

A-D and D-A Converters

A-D and D-A Converters Chapter 5 A-D and D-A Converters (No mathematical derivations) 04 Hours 08 Marks When digital devices are to be interfaced with analog devices (or vice a versa), Digital to Analog converter and Analog

More information

Lecture 9, ANIK. Data converters 1

Lecture 9, ANIK. Data converters 1 Lecture 9, ANIK Data converters 1 What did we do last time? Noise and distortion Understanding the simplest circuit noise Understanding some of the sources of distortion 502 of 530 What will we do today?

More information

ADC Parameters. ECE/CS 5780/6780: Embedded System Design. Common Encoding Schemes. Two-Bit Flash ADC. Sixteen-Bit Dual Slope ADC

ADC Parameters. ECE/CS 5780/6780: Embedded System Design. Common Encoding Schemes. Two-Bit Flash ADC. Sixteen-Bit Dual Slope ADC ADC Parameters ECE/CS 5780/6780: Embedded System Design Chris J. Myers Lecture 19: Analog-to-Digital Conversion Precision is number of distinguishable ADC inputs. Range is maximum and minimum ADC inputs.

More information

Data Acquisition & Computer Control

Data Acquisition & Computer Control Chapter 4 Data Acquisition & Computer Control Now that we have some tools to look at random data we need to understand the fundamental methods employed to acquire data and control experiments. The personal

More information

PHYS225 Lecture 22. Electronic Circuits

PHYS225 Lecture 22. Electronic Circuits PHYS225 Lecture 22 Electronic Circuits Last lecture Digital to Analog Conversion DAC Converts digital signal to an analog signal Computer control of everything! Various types/techniques for conversion

More information

EE 570: Location and Navigation

EE 570: Location and Navigation EE 570: Location and Navigation Gyro and Accel Noise Characteristics Aly El-Osery Electrical Engineering Department, New Mexico Tech Socorro, New Mexico, USA February 20, 2013 Aly El-Osery (NMT) EE 570:

More information

Crayfish Stretch Receptor Stimulator

Crayfish Stretch Receptor Stimulator Crayfish Stretch Receptor Stimulator Report for Cornell University ECE MEng design project By Zequn Huang Ningning Ding Jiachen Hu Project Advisor: Bruce Land Bruce Johnson 1 ABSTRACT This project aims

More information

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing

Fundamentals of Data Converters. DAVID KRESS Director of Technical Marketing Fundamentals of Data Converters DAVID KRESS Director of Technical Marketing 9/14/2016 Analog to Electronic Signal Processing Sensor (INPUT) Amp Converter Digital Processor Actuator (OUTPUT) Amp Converter

More information

Cyber-Physical Systems ADC / DAC

Cyber-Physical Systems ADC / DAC Cyber-Physical Systems ADC / DAC ICEN 553/453 Fall 2018 Prof. Dola Saha 1 Analog-to-Digital Converter (ADC) Ø ADC is important almost to all application fields Ø Converts a continuous-time voltage signal

More information

8-bit Microcontroller with 2K Bytes In-System Programmable Flash. ATtiny261A. Appendix A. Appendix A ATtiny261A Specification at 105 C

8-bit Microcontroller with 2K Bytes In-System Programmable Flash. ATtiny261A. Appendix A. Appendix A ATtiny261A Specification at 105 C Appendix A ATtiny261A Specification at 15 C This document contains information specific to devices operating at temperatures up to 15 C. Only deviations are covered in this appendix, all other information

More information

Linear Integrated Circuits

Linear Integrated Circuits Linear Integrated Circuits Single Slope ADC Comparator checks input voltage with integrated reference voltage, V REF At the same time the number of clock cycles is being counted. When the integrator output

More information

Analog to Digital Converters

Analog to Digital Converters Analog to Digital Converters By: Byron Johns, Danny Carpenter Stephanie Pohl, Harry Bo Marr http://ume.gatech.edu/mechatronics_course/fadc_f05.ppt (unless otherwise marked) Presentation Outline Introduction:

More information

MCP3550/1/3. Low-Power, Single-Channel 22-Bit Delta-Sigma ADCs. Description: Features: Applications: Package Types. Block Diagram

MCP3550/1/3. Low-Power, Single-Channel 22-Bit Delta-Sigma ADCs. Description: Features: Applications: Package Types. Block Diagram Low-Power, Single-Channel 22-Bit Delta-Sigma ADCs Features: 22-Bit ADC in Small 8-pin MSOP Package with Automatic Internal Offset and Gain Calibration Low-Output Noise of 2.5 µv RMS with Effective Resolution

More information

DSP Project. Reminder: Project proposal is due Friday, October 19, 2012 by 5pm in my office (Small 239).

DSP Project. Reminder: Project proposal is due Friday, October 19, 2012 by 5pm in my office (Small 239). DSP Project eminder: Project proposal is due Friday, October 19, 2012 by 5pm in my office (Small 239). Budget: $150 for project. Free parts: Surplus parts from previous year s project are available on

More information

Analog to Digital Conversion

Analog to Digital Conversion Analog to Digital Conversion Why It s Needed Embedded systems often need to measure values of physical parameters These parameters are usually continuous (analog) and not in a digital form which computers

More information

SmartFusion csoc: Enhancing Analog Front-End Performance Using Oversampling and Fourth- Order Sigma-Delta Modulator

SmartFusion csoc: Enhancing Analog Front-End Performance Using Oversampling and Fourth- Order Sigma-Delta Modulator Application Note AC375 SmartFusion csoc: Enhancing Analog Front-End Performance Using Oversampling and Fourth- Order Sigma-Delta Modulator Table of Contents Introduction................................................

More information

System on a Chip. Prof. Dr. Michael Kraft

System on a Chip. Prof. Dr. Michael Kraft System on a Chip Prof. Dr. Michael Kraft Lecture 5: Data Conversion ADC Background/Theory Examples Background Physical systems are typically analogue To apply digital signal processing, the analogue signal

More information

2. ADC Architectures and CMOS Circuits

2. ADC Architectures and CMOS Circuits /58 2. Architectures and CMOS Circuits Francesc Serra Graells francesc.serra.graells@uab.cat Departament de Microelectrònica i Sistemes Electrònics Universitat Autònoma de Barcelona paco.serra@imb-cnm.csic.es

More information

Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes

Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes Purpose The intent of this course is to provide you with information about the main features of the S08 Timer/PWM (TPM) interface module and how to configure and use it in common applications. Objectives

More information

Grundlagen Microcontroller Analog I/O. Günther Gridling Bettina Weiss

Grundlagen Microcontroller Analog I/O. Günther Gridling Bettina Weiss Grundlagen Microcontroller Analog I/O Günther Gridling Bettina Weiss 1 Analog I/O Lecture Overview A/D Conversion Design Issues Representation Conversion Techniques ADCs in Microcontrollers Analog Comparators

More information

Candidate: Achema Hosea Egbubu (142773) Title: Monitoring 50/60Hz Grid Coupling A Study In Conjunction with Wind-Energy Feed to Main Grids

Candidate: Achema Hosea Egbubu (142773) Title: Monitoring 50/60Hz Grid Coupling A Study In Conjunction with Wind-Energy Feed to Main Grids Master Thesis 2016 Candidate: Achema Hosea Egbubu (142773) Title: Monitoring 50/60Hz Grid Coupling A Study In Conjunction with Wind-Energy Feed to Main Grids 0 CONTENTS ii Telemark University College Faculty

More information

Data Converters. Lecture Fall2013 Page 1

Data Converters. Lecture Fall2013 Page 1 Data Converters Lecture Fall2013 Page 1 Lecture Fall2013 Page 2 Representing Real Numbers Limited # of Bits Many physically-based values are best represented with realnumbers as opposed to a discrete number

More information

Analog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016

Analog I/O. ECE 153B Sensor & Peripheral Interface Design Winter 2016 Analog I/O ECE 153B Sensor & Peripheral Interface Design Introduction Anytime we need to monitor or control analog signals with a digital system, we require analogto-digital (ADC) and digital-to-analog

More information

PC-based controller for Mechatronics System

PC-based controller for Mechatronics System Course Code: MDP 454, Course Name:, Second Semester 2014 PC-based controller for Mechatronics System Mechanical System PC Controller Controller in the Mechatronics System Configuration Actuators Power

More information

MCP3426/7/8. 16-Bit, Multi-Channel ΔΣ Analog-to-Digital Converter with I 2 C Interface and On-Board Reference. Features.

MCP3426/7/8. 16-Bit, Multi-Channel ΔΣ Analog-to-Digital Converter with I 2 C Interface and On-Board Reference. Features. 16-Bit, Multi-Channel ΔΣ Analog-to-Digital Converter with I 2 C Interface and On-Board Reference Features 16-bit ΔΣ ADC with Differential Inputs: - 2 channels: MCP3426 and MCP3427-4 channels: MCP3428 Differential

More information

Pulse Code Modulation

Pulse Code Modulation Pulse Code Modulation Modulation is the process of varying one or more parameters of a carrier signal in accordance with the instantaneous values of the message signal. The message signal is the signal

More information

Notes on using the A/D Converter on the. FFMC8L/LC Microcontrollers. Fujitsu Mikroelektronik GmbH Vers. 1.0 by E. Bendels

Notes on using the A/D Converter on the. FFMC8L/LC Microcontrollers. Fujitsu Mikroelektronik GmbH Vers. 1.0 by E. Bendels Application Note Notes on using the A/D Converter on the FFMC8L/LC Microcontrollers Fujitsu Mikroelektronik GmbH Vers. 1.0 by E. Bendels The following Application note is intended to give some hints on

More information

EEE312: Electrical measurement & instrumentation

EEE312: Electrical measurement & instrumentation University of Turkish Aeronautical Association Faculty of Engineering EEE department EEE312: Electrical measurement & instrumentation Digital Electronic meters BY Ankara March 2017 1 Introduction The digital

More information

EE 421L Digital Electronics Laboratory. Laboratory Exercise #9 ADC and DAC

EE 421L Digital Electronics Laboratory. Laboratory Exercise #9 ADC and DAC EE 421L Digital Electronics Laboratory Laboratory Exercise #9 ADC and DAC Department of Electrical and Computer Engineering University of Nevada, at Las Vegas Objective: The purpose of this laboratory

More information

CENG4480 Lecture 04: Analog/Digital Conversions

CENG4480 Lecture 04: Analog/Digital Conversions CENG4480 Lecture 04: Analog/Digital Conversions Bei Yu byu@cse.cuhk.edu.hk (Latest update: October 3, 2018) Fall 2018 1 / 31 Overview Preliminaries Comparator Digital to Analog Conversion (DAC) Analog

More information

Analogue Interfacing. What is a signal? Continuous vs. Discrete Time. Continuous time signals

Analogue Interfacing. What is a signal? Continuous vs. Discrete Time. Continuous time signals Analogue Interfacing What is a signal? Signal: Function of one or more independent variable(s) such as space or time Examples include images and speech Continuous vs. Discrete Time Continuous time signals

More information

Environmental ADC Interface P Team Members

Environmental ADC Interface P Team Members Environmental ADC Interface P14346 Team Members Caleb Stephens- Electrical Engineer Kevin Oswald- Electrical Engineer Ory Maimon- Electrical Engineer Edward Wlodarczyk- Electrical Engineer Marissa Fox-

More information

Electronics II Physics 3620 / 6620

Electronics II Physics 3620 / 6620 Electronics II Physics 3620 / 6620 Feb 09, 2009 Part 1 Analog-to-Digital Converters (ADC) 2/8/2009 1 Why ADC? Digital Signal Processing is more popular Easy to implement, modify, Low cost Data from real

More information

Theoretical 1 Bit A/D Converter

Theoretical 1 Bit A/D Converter Acquisition 16.1 Chapter 4 - Acquisition D/A converter (or DAC): Digital to Analog converters are used to map a finite number of values onto a physical output range (usually a ) A/D converter (or ADC):

More information

DATA CONVERSION AND LAB (17.368) Fall Class # 07. October 16, 2008

DATA CONVERSION AND LAB (17.368) Fall Class # 07. October 16, 2008 DATA CONVERSION AND LAB (17.368) Fall 2008 Class # 07 October 16, 2008 Dohn Bowden 1 Today s Lecture Outline Course Admin Lab #3 next week Exam in two weeks 10/30/08 Detailed Technical Discussions Digital

More information

Chapter 2 Analog-to-Digital Conversion...

Chapter 2 Analog-to-Digital Conversion... Chapter... 5 This chapter examines general considerations for analog-to-digital converter (ADC) measurements. Discussed are the four basic ADC types, providing a general description of each while comparing

More information

EE 521: Instrumentation and Measurements

EE 521: Instrumentation and Measurements Aly El-Osery Electrical Engineering Department, New Mexico Tech Socorro, New Mexico, USA September 8, 2009 1 / 17 1 Op-Amps - Handbook 2 Differential Amplifiers (DA) CMRR - Measurement Source Resistance

More information

UNIVERSITY OF CALIFORNIA College of Engineering Department of Electrical Engineering and Computer Sciences

UNIVERSITY OF CALIFORNIA College of Engineering Department of Electrical Engineering and Computer Sciences UNIVERSITY OF CALIFORNIA College of Engineering Department of Electrical Engineering and Computer Sciences Final Exam EECS 247 H. Khorramabadi Tues., Dec. 14, 2010 FALL 2010 Name: SID: Total number of

More information

Working with ADCs, OAs and the MSP430

Working with ADCs, OAs and the MSP430 Working with ADCs, OAs and the MSP430 Bonnie Baker HPA Senior Applications Engineer Texas Instruments 2006 Texas Instruments Inc, Slide 1 Agenda An Overview of the MSP430 Data Acquisition System SAR Converters

More information

2.7 V to 5.5 V, 400 ksps 8-/10-Bit Sampling ADC AD7813

2.7 V to 5.5 V, 400 ksps 8-/10-Bit Sampling ADC AD7813 a FEATURES 8-/10-Bit ADC with 2.3 s Conversion Time On-Chip Track and Hold Operating Supply Range: 2.7 V to 5.5 V Specifications at 2.7 V 3.6 V and 5 V 10% 8-Bit Parallel Interface 8-Bit + 2-Bit Read Power

More information

Design And Simulation Of First Order Sigma Delta ADC In 0.13um CMOS Technology Jaydip H. Chaudhari PG Student L. C. Institute of Technology, Bhandu

Design And Simulation Of First Order Sigma Delta ADC In 0.13um CMOS Technology Jaydip H. Chaudhari PG Student L. C. Institute of Technology, Bhandu Design And Simulation Of First Order Sigma Delta ADC In 0.13um CMOS Technology Jaydip H. Chaudhari PG Student L. C. Institute of Technology, Bhandu Gireeja D. Amin Assistant Professor L. C. Institute of

More information

ANALOG-TO-DIGITAL CONVERTERS

ANALOG-TO-DIGITAL CONVERTERS ANALOG-TO-DIGITAL CONVERTERS Definition An analog-to-digital converter is a device which converts continuous signals to discrete digital numbers. Basics An analog-to-digital converter (abbreviated ADC,

More information

Digital Acquisition of Analog Signals A Practical Guide

Digital Acquisition of Analog Signals A Practical Guide Digital Acquisition of Analog Signals A Practical Guide Nathan M. Neihart Senior Design Presentation Motivation A common task for many senior design projects is to interface an analog signal with a digital

More information

Single-Supply, Low-Power, Serial 8-Bit ADCs

Single-Supply, Low-Power, Serial 8-Bit ADCs 19-1822; Rev 1; 2/2 Single-Supply, Low-Power, Serial 8-Bit ADCs General Description The / low-power, 8-bit, analog-todigital converters (ADCs) feature an internal track/hold (T/H), voltage reference, monitor,

More information

APPLICATION NOTE. Atmel AVR127: Understanding ADC Parameters. Atmel 8-bit Microcontroller. Features. Introduction

APPLICATION NOTE. Atmel AVR127: Understanding ADC Parameters. Atmel 8-bit Microcontroller. Features. Introduction APPLICATION NOTE Atmel AVR127: Understanding ADC Parameters Atmel 8-bit Microcontroller Features Getting introduced to ADC concepts Understanding various ADC parameters Understanding the effect of ADC

More information

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2015 Lecture #5

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2015 Lecture #5 FYS3240 PC-based instrumentation and microcontrollers Signal sampling Spring 2015 Lecture #5 Bekkeng, 29.1.2015 Content Aliasing Nyquist (Sampling) ADC Filtering Oversampling Triggering Analog Signal Information

More information

FUNDAMENTALS OF ANALOG TO DIGITAL CONVERTERS: PART I.1

FUNDAMENTALS OF ANALOG TO DIGITAL CONVERTERS: PART I.1 FUNDAMENTALS OF ANALOG TO DIGITAL CONVERTERS: PART I.1 Many of these slides were provided by Dr. Sebastian Hoyos January 2019 Texas A&M University 1 Spring, 2019 Outline Fundamentals of Analog-to-Digital

More information

Analogue to Digital Conversion

Analogue to Digital Conversion Analogue to Digital Conversion Turns electrical input (voltage/current) into numeric value Parameters and requirements Resolution the granularity of the digital values Integral NonLinearity proportionality

More information

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2017 Lecture #5

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2017 Lecture #5 FYS3240 PC-based instrumentation and microcontrollers Signal sampling Spring 2017 Lecture #5 Bekkeng, 30.01.2017 Content Aliasing Sampling Analog to Digital Conversion (ADC) Filtering Oversampling Triggering

More information

Exercise 5: PWM and Control Theory

Exercise 5: PWM and Control Theory Exercise 5: PWM and Control Theory Overview In the previous sessions, we have seen how to use the input capture functionality of a microcontroller to capture external events. This functionality can also

More information

EE 451: Digital Signal Processing

EE 451: Digital Signal Processing EE 451: Digital Signal Processing Power Spectral Density Estimation Aly El-Osery Electrical Engineering Department, New Mexico Tech Socorro, New Mexico, USA December 4, 2017 Aly El-Osery (NMT) EE 451:

More information

Application Note: Using the Motor Driver on the 3pi Robot and Orangutan Robot Controllers

Application Note: Using the Motor Driver on the 3pi Robot and Orangutan Robot Controllers Application Note: Using the Motor Driver on the 3pi Robot and Orangutan Robot 1. Introduction..................................................... 2 2. Motor Driver Truth Tables.............................................

More information

Data Conversion and Lab (17.368) Fall Lecture Outline

Data Conversion and Lab (17.368) Fall Lecture Outline Data Conversion and Lab (17.368) Fall 2013 Lecture Outline Class # 07 October 17, 2013 Dohn Bowden 1 Today s Lecture Outline Administrative Detailed Technical Discussions Digital to Analog Conversion Lab

More information

Analog input/output. Textbook: Chapter 20, Analog-to-Digital Converter Chapter 21, Digital-to-Analog Converter

Analog input/output. Textbook: Chapter 20, Analog-to-Digital Converter Chapter 21, Digital-to-Analog Converter Analog input/output Textbook: Chapter 20, Analog-to-Digital Converter Chapter 21, Digital-to-Analog Converter STM32F4xx Technical Reference Manual: Chapter 11 Analog to Digital Converters Chapter 12 Digital

More information

Programming and Interfacing

Programming and Interfacing AtmelAVR Microcontroller Primer: Programming and Interfacing Second Edition f^r**t>*-**n*c contents Preface xv AtmelAVRArchitecture Overview 1 1.1 ATmegal64 Architecture Overview 1 1.1.1 Reduced Instruction

More information

28. What is meant by repetition rate of the AM envelope? (ADC,AU-2010) 29. Describe the upper and lower sidebands. (ADC, AU-2010) 30.

28. What is meant by repetition rate of the AM envelope? (ADC,AU-2010) 29. Describe the upper and lower sidebands. (ADC, AU-2010) 30. Institute of Road and Transport Technology, Erode Department of Electronics and Communication Engineering Class/Sem: 2 nd Year Information Technology-3rd Semester Subject: Principles of Communication (IT)

More information

Enhancing Analog Signal Generation by Digital Channel Using Pulse-Width Modulation

Enhancing Analog Signal Generation by Digital Channel Using Pulse-Width Modulation Enhancing Analog Signal Generation by Digital Channel Using Pulse-Width Modulation Angelo Zucchetti Advantest angelo.zucchetti@advantest.com Introduction Presented in this article is a technique for generating

More information

Development of microcontroller based over-current relay controls

Development of microcontroller based over-current relay controls Development of microcontroller based over-current relay controls A Thesis submitted in partial fulfillment of the requirements for the degree of Bachelor of Technology in Electrical Engineering By SAMBIT

More information

Serial communication inverter. Lab bench scenario. Inverter Board, A/D, D/A, PWM, Filters, Encoders. Inverter board. and Dimmer introduction

Serial communication inverter. Lab bench scenario. Inverter Board, A/D, D/A, PWM, Filters, Encoders. Inverter board. and Dimmer introduction Inverter Board, A/D, D/A, PWM, Filters, Encoders and Dimmer introduction 20181004 Gunnar Lindstedt Serial communication inverter Lund University, Sweden Lab bench scenario Inverter board PC 9pole Dsub

More information

P a g e 1. Introduction

P a g e 1. Introduction P a g e 1 Introduction 1. Signals in digital form are more convenient than analog form for processing and control operation. 2. Real world signals originated from temperature, pressure, flow rate, force

More information