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

Size: px
Start display at page:

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

Transcription

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

2 Analog I/O Lecture Overview A/D Conversion Design Issues Representation Conversion Techniques ADCs in Microcontrollers Analog Comparators 2

3 Analog Digital Conversion (ADC) In this part, we will give a very basic introduction to analog to digital converters (assuming no prior knowledge) we will briefly describe three ADC variants hardware details will be ignored (aperture delay and jitter, filters, etc.) for more detail, refer to the lecture script 3

4 I/O: Analog Digital Conversion Problem: The point of a microcontroller is to control processes, but microcontrollers are digital logic devices, they use discrete (digital) values to represent data however, real world processes are continuous (analog) How to connect a (digital) microcontroller to the (analog) world? 4

5 ADC: Basic Design Issues Sensor Controller Actuator?? 0 / 1 5

6 ADC: Basic Design Issues Using a position weighed system (binary numbers), a MC can already perform computations on numbers beyond zero and one > solution: assign plain and simple numbers to represent the current value of a continuous variable, like 'low' analog value < > small number 'high' analog value < > big number 6

7 ADC: Basic Design Issues Sensor Controller Actuator 0 / 1 65 = = 12 7

8 ADC: Basic Design Issues Note carefully, however: the transformation from analog values to numbers is application specific the range of expected analog values must be carefully examined the number range must be chosen accordingly the particular value is still meaningless to the MC; it is just a number 8

9 Example value range: how to represent, e.g., a temperature? Depends on application: human body temperature > C might suffice ambient temperature > more like C foundry (iron) > up to ~ 1500 C and more... ADC Value Representation 9

10 ADC Value Representation Let's assume our application is an ordinary clinical thermometer for home use. below 35 C hypothermia: user is probably long past bothering with home thermometers above 42 C: user is probably dead we want some safety margin. (always remember: a safety margin is good for you and the user) > C might be a reasonable range 10

11 ADC Value Representation What range of numbers to use for our C? floating point numbers are A Bad Thing, since MCs usually do not come with big fat FPUs ignoring the actual value range is very inefficient contrary to most desktop applications, efficiency is still pivotal in embedded systems 11

12 ADC Value Representation Our range of values is = 12 C: try a common desktop CPU's 32 bit: 12 / 2 32 = ~ 2,8 x C > probably overkill being cheap, we try 4 bit: 12 / 2 4 = ~ 0,75 C > might be a tad too coarse 12

13 ADC Value Representation Let's just try it properly, why don't we: do we need extra high accuracy? > probably not for a 1 EUR home thermometer (might be different for hospital appliances) what type of display do we need? > could be, e.g., 2.1 digits, meaning 2 digits to the left and one to the right of the decimal point > we use a resolution of 0,1 C or slightly better 13

14 ADC Value Representation And now, finally, for the point of the whole thing we compute our number range: 12 C / 0,1 C = 120 > we need 121 different numbers MC uses binary values, so a power of 2 might be prudent nearest power of two is 128 = 2 7 > >= 7 bit can be used to represent our temp. 14

15 ADC Value Representation This is oversimplified, of course: economic facts (availability, cost) override engineering arguments usually, the software guy/gal has to work with whatever the hardware engineers fancied to build But: embedded software developers must have a basic grasp of hardware design issues if only to properly argue with the hardware developers. 15

16 ADC Value Representation There are some common pitfalls: mind the datasheets: don't waste time and/or resources enforcing 16 bit resolution ('the more, the better') when the actual temperature sensor may only provide a +/ 5 % accuracy but: don't set unnecessary limits: if 16 bit is economically just as viable as 7 bit, implement it you never know where this particular code might be used in the future 16

17 ADC Technology Analog digital conversion principles: flash (Parallelverfahren) tracking (Zählverfahren) successive approximation (Wägeverfahren)... and more (including various hybrids) 17

18 ADC Technology Example: hardware of a flash a/d converter What's it to me, you ask? Well, you need some idea of hardware to decide: how many bits can you trust? how fast can you expect the conversion to be? are there any special considerations involved? 18

19 ADC Flash Converter Simple idea: just compare the input voltage to an appropriate number of equidistant reference voltages. We need a so called 'comparator': U 1 > U 2 => U out = V+ U 1 < U 2 => U out = 0 V 19

20 ADC Flash Converter Example: Assume our input voltage maximum is U, and we want to convert with 2 bit resolution (four different values). We could use the circuit to the right: (Quiz: Why three converters, when we need four states = two bits)? 20

21 ADC Flash Converter Answer: because 'no active comparator output' is a valid state, too. Thus, with three comparator outputs, we get four states for our two bits worth. 21

22 In this example (U = 4.0 V), the converter claims the input voltage to be about 2.0 V, but it actually is much closer to 3.0 V. What to do? ADC Flash Converter Choice of reference voltages is critical: 22

23 ADC Flash Converter => We could achieve a 'round to nearest' by shifting the reference voltages down one half step (adding a half step to the input voltage is more difficult). Now the converter produces the expected result.... but we introduced a new problem. 23

24 ADC Flash Converter Now, the voltage range assigned to the top comparator is too wide: 3U/8 versus U/4 for the middle comparators and U/8 for the bottom one. What now? 24

25 ADC Flash Converter We change the voltage assigned to the LSB from U/4 to U/3 like this: 25

26 ADC Flash Converter We still need to convert the four output lines to two data bits. This is accomplished by a so called 'priority encoder': this gadget gives the 1 based number of the highest active input in binary (or 0 if no input is active) 26

27 ADC Flash Converter Yet another problem: how to provide the reference voltages? => use voltage divider: R 1 : R 2 = U 1 : U 2 27

28 ADC Flash Converter Now, we can derive all necessary reference voltages from of a single one: 28

29 Still one problem: ADC Flash Converter the priority encoder does not sample all inputs at the same time input voltage can change at any time => MC might receive invalid states solution: edge triggered D flip flop, where Q is sampled at an edge on C 29

30 ADC Flash Converter Finally, our 'flash' analog to digital converter is complete. 30

31 Advantages: ADC Flash Converter extremely fast (up to GHz sample rates) digital sample & hold via D flipflop (analog sample & hold is much harder to implement) Disadvantages: very complex: a flash converter with a measly eight bits precision already needs 255 comparators 31

32 ADC Tracking Converter Analog digital conversion principles: flash (Parallelverfahren) tracking (Zählverfahren) successive approximation (Wägeverfahren)... and more (including various hybrids) 32

33 ADC Tracking Converter counter starts at 0 d/a conv. counter value is fed back to comp. as long as U in is > conv. value, counter goes up when U in becomes < conv. value, counter goes down 33

34 ADC Tracking Converter A tracking analog to digital converter in action: 34

35 ADC Tracking Converter A tracking analog to digital converter in panic: 35

36 ADC Tracking Converter Advantages: simple hardware high resolutions (20 bit and more) achievable Disadvantages: very slow 36

37 ADC Successive Approximation Analog digital conversion principles: flash (Parallelverfahren) tracking (Zählverfahren) successive approximation (Wägeverfahren)... and more (including various hybrids) 37

38 ADC Successive Approximation Quite similar to tracking converter: The SAR instead of a simple up/down counter makes all the difference... 38

39 ADC Successive Approximation Successive approximation register: 1) start with msb 2) set bit to one 3) if d=0, reset bit 4) repeat from 2) with next bit 39

40 ADC Successive Approximation A successive approximation register in action: 40

41 ADC Successive Approximation A successive approximation register going astray: 41

42 ADC Comparison A successive approximation and a tracking ADC in action SA ADC achieves higher sample rates (but much slower than flash ADC) for slow signals, tracking ADC may perform better 42

43 ADC Successive Approximation The SA ADC is a good compromise: quite fast moderately complex SA ADCs are common in MCs 43

44 Analog I/O not every controller has a/d converters controller typically has 8 16 analog channels ADC resolution is typically 8 12 bits controller normally also has a comparator analog I/O is controlled through registers (control register, data registers) 44

45 Using the ADC: Analog I/O set up ADC (select channel, select mode) start conversion > ADC converts (some cycles), sets ready flag when done either poll ready flag or set up interrupt when ready flag set > read result 45

46 ADC Features: Analog I/O conversion mode (single cycle, continuous) automatic channel increment user sets initial channel after each conversion, channel is incremented reading value triggers next conversion conversion trigger modes on timer event ( > periodic measurements) on external event,... 46

47 ADC Features: Analog I/O channels normally single ended possibly differential channels channels grouped pairwise possibly programmable gain (1x, 10x,...) 47

48 Analog Comparator: Analog I/O two analog inputs AIN0 and AIN1 comparator output is high if AIN0 > AIN1 interrupt sources on comparator output rising edge falling edge toggle may trigger input capture (see Timer) 48

49 Things to consider: Analog I/O conversion speed (succ. approx. takes several cycles) noise (variation of the input voltage can make huge difference!) high switching frequency of neighboring digital lines causes noise do not use digital I/O on an analog port use high quality (filtered) reference voltage use noise cancellation (turn off unused parts of MC) 49

50 Analog I/O Summary several ADC variants; tracking ADC is most simple, successive approximation ADC is common in MCs, flash ADC is fastest finding the right ADC is an involved task (resolution, precision, speed, cost) when programming ADCs, always keep hardware constraints in mind once again: a basic understanding of the particular target hardware is essential 50

51 Lecture Summary controller has 8 16 analog channels analog comparator some interrupt sources (conversion complete, comp.) different conversion modes, channel increment problem of noise, accuracy 51

Grundlagen Microcontroller Counter/Timer. Günther Gridling Bettina Weiss

Grundlagen Microcontroller Counter/Timer. Günther Gridling Bettina Weiss Grundlagen Microcontroller Counter/Timer Günther Gridling Bettina Weiss 1 Counter/Timer Lecture Overview Counter Timer Prescaler Input Capture Output Compare PWM 2 important feature of microcontroller

More information

Hardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Hardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff Hardware Flags and the RTI system 1 Need for hardware flag Often a microcontroller needs to test whether some event has occurred, and then take an action For example A sensor outputs a pulse when a model

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

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

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

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

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

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

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

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

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

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

F4 08DA 2 8-Channel Analog Voltage Output

F4 08DA 2 8-Channel Analog Voltage Output 8-Channel Analog Voltage In This Chapter.... Module Specifications Setting the Module Jumper Connecting the Field Wiring Module Operation Writing the Control Program 92 8-Ch. Analog Voltage Module Specifications

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

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

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

F4 16DA 2 16-Channel Analog Voltage Output

F4 16DA 2 16-Channel Analog Voltage Output F46DA2 6-Channel Analog Voltage In This Chapter.... Module Specifications Setting Module Jumpers Connecting the Field Wiring Module Operation Writing the Control Program 22 F46DA2 6-Ch. Analog Voltage

More information

Data Converters. Dr.Trushit Upadhyaya EC Department, CSPIT, CHARUSAT

Data Converters. Dr.Trushit Upadhyaya EC Department, CSPIT, CHARUSAT Data Converters Dr.Trushit Upadhyaya EC Department, CSPIT, CHARUSAT Purpose To convert digital values to analog voltages V OUT Digital Value Reference Voltage Digital Value DAC Analog Voltage Analog Quantity:

More information

F4-04DA-1 4-Channel Analog Current Output

F4-04DA-1 4-Channel Analog Current Output F4-4DA- 4-Channel Analog Current 32 Analog Current Module Specifications The Analog Current Module provides several features and benefits. ANALOG PUT 4-Ch. Analog It is a direct replacement for the popular

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

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

ANALOG TO DIGITAL (ADC) and DIGITAL TO ANALOG CONVERTERS (DAC)

ANALOG TO DIGITAL (ADC) and DIGITAL TO ANALOG CONVERTERS (DAC) COURSE / CODE DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) ANALOG TO DIGITAL (ADC) and DIGITAL TO ANALOG CONVERTERS (DAC) Connecting digital circuitry to sensor devices

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

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

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

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ θωερτψυιοπασδφγηϕκλζξχϖβνµθωερτψ υιοπασδφγηϕκλζξχϖβνµθωερτψυιοπασδ φγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκλζ ξχϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµ EE 331 Design Project Final Report θωερτψυιοπασδφγηϕκλζξχϖβνµθωερτψ

More information

USB4. Encoder Data Acquisition USB Device Page 1 of 8. Description. Features

USB4. Encoder Data Acquisition USB Device Page 1 of 8. Description. Features USB4 Page 1 of 8 The USB4 is a data acquisition device designed to record data from 4 incremental encoders, 8 digital inputs and 4 analog input channels. In addition, the USB4 provides 8 digital outputs

More information

GE423 Laboratory Assignment 6 Robot Sensors and Wall-Following

GE423 Laboratory Assignment 6 Robot Sensors and Wall-Following GE423 Laboratory Assignment 6 Robot Sensors and Wall-Following Goals for this Lab Assignment: 1. Learn about the sensors available on the robot for environment sensing. 2. Learn about classical wall-following

More information

EE251: Tuesday October 10

EE251: Tuesday October 10 EE251: Tuesday October 10 Analog to Digital Conversion Text Chapter 20 through section 20.2 TM4C Data Sheet Chapter 13 Lab #5 Writeup Lab Practical #1 this week Homework #4 is due on Thursday at 4:30 p.m.

More information

Embedded Control. Week 3 (7/13/11)

Embedded Control. Week 3 (7/13/11) Embedded Control Week 3 (7/13/11) Week 3 15:00 Lecture Overview of analog signals Digital-to-analog conversion Analog-to-digital conversion 16:00 Lab NXT analog IO Overview of Analog Signals Continuous

More information

F4 04DAS 1 4-Channel Isolated 4 20mA Output

F4 04DAS 1 4-Channel Isolated 4 20mA Output F44DAS 4-Channel Isolated 4mA F44DAS 4-Channel Isolated 4mA Module Specifications The F44DAS 4-channel Isolated Analog module provides several features and benefits. ANALOG 4 CHANNELS PUT F44DAS 4-Ch.

More information

EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER

EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER A Thesis Submitted in partial Fulfillment Of the Requirements of the Degree of Bachelor of Technology In Electronics

More information

Tel: Fax:

Tel: Fax: B Tel: 78.39.4700 Fax: 78.46.33 SPECIFICATIONS (T A = +5 C, V+ = +5 V, V = V or 5 V, all voltages measured with respect to digital common, unless otherwise noted) AD57J AD57K AD57S Model Min Typ Max Min

More information

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which

Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which behaves like ADC with external analog part and configurable

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

Analog Inputs and Outputs

Analog Inputs and Outputs Analog Inputs and Outputs PLCs must also work with continuous or analog signals. Typical analog signals are 0-10 VDC or 4-20 ma. Analog signals are used to represent changing values such as speed, temperature,

More information

Fan in: The number of inputs of a logic gate can handle.

Fan in: The number of inputs of a logic gate can handle. Subject Code: 17333 Model Answer Page 1/ 29 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model

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

ENGR 210 Lab 12: Analog to Digital Conversion

ENGR 210 Lab 12: Analog to Digital Conversion ENGR 210 Lab 12: Analog to Digital Conversion In this lab you will investigate the operation and quantization effects of an A/D and D/A converter. A. BACKGROUND 1. LED Displays We have been using LEDs

More information

Lecture #20 Analog Inputs Embedded System Engineering Philip Koopman Wednesday, 30-March-2016

Lecture #20 Analog Inputs Embedded System Engineering Philip Koopman Wednesday, 30-March-2016 Lecture #20 Analog Inputs 18-348 Embedded System Engineering Philip Koopman Wednesday, 30-March-2016 Electrical& Computer ENGINEEING Copyright 2006-2016, Philip Koopman, All ights eserved Commercial HVAC

More information

AN1711 APPLICATION NOTE

AN1711 APPLICATION NOTE AN1711 APPLICATION NOTE SOFTWARE TECHNIQUES FOR COMPENSATING ST7 ADC ERRORS INTRODUCTION The purpose of this document is to explain in detail some software techniques which you can apply to compensate

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

Product Family: 05, 06, 105, 205, 405, WinPLC, Number: AN-MISC-021 Terminator IO Subject: High speed input/output device

Product Family: 05, 06, 105, 205, 405, WinPLC, Number: AN-MISC-021 Terminator IO Subject: High speed input/output device APPLICATION NOTE THIS INFORMATION PROVIDED BY AUTOMATIONDIRECT.COM TECHNICAL SUPPORT These documents are provided by our technical support department to assist others. We do not guarantee that the data

More information

Lab Exercise 6: Digital/Analog conversion

Lab Exercise 6: Digital/Analog conversion Lab Exercise 6: Digital/Analog conversion Introduction In this lab exercise, you will study circuits for analog-to-digital and digital-to-analog conversion Preparation Before arriving at the lab, you should

More information

UNIVERSITY of PENNSYLVANIA DEPARTMENT OF ELECTRICAL AND SYSTEMS ENGINEERING ESE Undergraduate Labs Electrical Circuits and Systems II Laboratory

UNIVERSITY of PENNSYLVANIA DEPARTMENT OF ELECTRICAL AND SYSTEMS ENGINEERING ESE Undergraduate Labs Electrical Circuits and Systems II Laboratory UNIVERSITY of PENNSYLVANIA DEPARTMENT OF ELECTRICAL AND SYSTEMS ENGINEERING ESE Undergraduate Labs Electrical Circuits and Systems II Laboratory Overview Analog-to-Digital (ADC) and Digital-to-Analog (DAC)

More information

Introduction. These two operations are performed by data converters : Analogue-to-digital converter (ADC) Digital-to-analogue converter (DAC)

Introduction. These two operations are performed by data converters : Analogue-to-digital converter (ADC) Digital-to-analogue converter (DAC) Lezione 7 Conversione analogico digitale Introduzione Campionamento di segnali analogici e Aliasing Porte di campionamento e di mantenimento Quantizzazione segnali analogici Ricostruzione del segnale analogico

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

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

EE 308: Microcontrollers

EE 308: Microcontrollers 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

More information

Lab 10. Speed Control of a D.C. motor

Lab 10. Speed Control of a D.C. motor Lab 10. Speed Control of a D.C. motor Speed Measurement: Tach Amplitude Method References: STM32L100 Data Sheet (pin definitions) STM32L100 Ref. Manual (ADC, GPIO, Clocks) Motor Speed Control Project 1.

More information

Chapter 7. Introduction. Analog Signal and Discrete Time Series. Sampling, Digital Devices, and Data Acquisition

Chapter 7. Introduction. Analog Signal and Discrete Time Series. Sampling, Digital Devices, and Data Acquisition Chapter 7 Sampling, Digital Devices, and Data Acquisition Material from Theory and Design for Mechanical Measurements; Figliola, Third Edition Introduction Integrating analog electrical transducers with

More information

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232 PIC Functionality General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232 General I/O Logic Output light LEDs Trigger solenoids Transfer data Logic Input Monitor

More information

16.2 DIGITAL-TO-ANALOG CONVERSION

16.2 DIGITAL-TO-ANALOG CONVERSION 240 16. DC MEASUREMENTS In the context of contemporary instrumentation systems, a digital meter measures a voltage or current by performing an analog-to-digital (A/D) conversion. A/D converters produce

More information

ELG3336: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs)

ELG3336: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs) ELG3336: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs) Digital Output Dout 111 110 101 100 011 010 001 000 ΔV, V LSB V ref 8 V FSR 4 V 8 ref 7 V 8 ref Analog Input

More information

Mixed-Signal-Electronics

Mixed-Signal-Electronics 1 Mixed-Signal-Electronics PD Dr.-Ing. Stephan Henzler 2 Chapter 6 Nyquist Rate Analog-to-Digital Converters 3 Analog-to-Digital Converter Families Architecture Variant Speed Precision Counting Operation

More information

KNX manual 1-channel flush-mounted switch actuator SU 1

KNX manual 1-channel flush-mounted switch actuator SU 1 KNX manual 1-channel flush-mounted switch actuator SU 1 4942520 2018-10-04 Contents 1 Function description 3 2 Operation 4 3 Technical data 5 4 The SU 1 application programme 7 4.1 Selection in the product

More information

Chapter 2 Signal Conditioning, Propagation, and Conversion

Chapter 2 Signal Conditioning, Propagation, and Conversion 09/0 PHY 4330 Instrumentation I Chapter Signal Conditioning, Propagation, and Conversion. Amplification (Review of Op-amps) Reference: D. A. Bell, Operational Amplifiers Applications, Troubleshooting,

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

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

Monitoring of Intravenous Drip Rate

Monitoring of Intravenous Drip Rate Monitoring of Intravenous Drip Rate Vidyadhar V. Kamble, Prem C. Pandey, Chandrashekar P. Gadgil, and Dinesh S. Choudhary Abstract A drip rate meter, for monitoring intravenous infusion, is developed using

More information

University of Pittsburgh

University of Pittsburgh University of Pittsburgh Experiment #7 Lab Report Analog-Digital Applications Submission Date: 08/01/2018 Instructors: Dr. Ahmed Dallal Shangqian Gao Submitted By: Nick Haver & Alex Williams Station #2

More information

Exercise 3: Sound volume robot

Exercise 3: Sound volume robot ETH Course 40-048-00L: Electronics for Physicists II (Digital) 1: Setup uc tools, introduction : Solder SMD Arduino Nano board 3: Build application around ATmega38P 4: Design your own PCB schematic 5:

More information

AN3137 Application note

AN3137 Application note Application note Analog-to-digital converter on STM8L and STM8AL devices: description and precision improvement techniques Introduction This application note describes the 12-bit analog-to-digital converter

More information

Designing with STM32F3x

Designing with STM32F3x Designing with STM32F3x Course Description Designing with STM32F3x is a 3 days ST official course. The course provides all necessary theoretical and practical know-how for start developing platforms based

More information

Analog to Digital Conversion

Analog to Digital Conversion Analog to Digital Conversion The MSP in the name of our microcontroller MSP430G2554 is abbreviation for Mixed Signal Processor. This means that our microcontroller can be used to handle both analog and

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

PWM System. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

PWM System. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff PWM System 1 Pulse Width Modulation (PWM) Pulses are continuously generated which have different widths but the same period between leading edges Duty cycle (% high) controls the average analog voltage

More information

DI-1100 USB Data Acquisition (DAQ) System Communication Protocol

DI-1100 USB Data Acquisition (DAQ) System Communication Protocol DI-1100 USB Data Acquisition (DAQ) System Communication Protocol DATAQ Instruments Although DATAQ Instruments provides ready-to-run WinDaq software with its DI-1100 Data Acquisition Starter Kits, programmers

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

Temperature Monitoring and Fan Control with Platform Manager 2

Temperature Monitoring and Fan Control with Platform Manager 2 August 2013 Introduction Technical Note TN1278 The Platform Manager 2 is a fast-reacting, programmable logic based hardware management controller. Platform Manager 2 is an integrated solution combining

More information

GSM BASED PATIENT MONITORING SYSTEM

GSM BASED PATIENT MONITORING SYSTEM GSM BASED PATIENT MONITORING SYSTEM ABSTRACT This project deals with the monitoring of the patient parameters such as humidity, temperature and heartbeat. Here we have designed a microcontroller based

More information

Lecture 7: Analog Signals and Conversion

Lecture 7: Analog Signals and Conversion ECE342 Introduction to Embedded Systems Lecture 7: Analog Signals and Conversion Ying Tang Electrical and Computer Engineering Rowan University 1 Analog Signals Everywhere Everything is an analogy in the

More information

Introduction. BME208 Logic Circuits Yalçın İŞLER

Introduction. BME208 Logic Circuits Yalçın İŞLER Introduction BME208 Logic Circuits Yalçın İŞLER islerya@yahoo.com http://me.islerya.com 1 Lecture Three hours a week (three credits) No other sections, please register this section Tuesday: 09:30 12:15

More information

University of California at Berkeley Donald A. Glaser Physics 111A Instrumentation Laboratory

University of California at Berkeley Donald A. Glaser Physics 111A Instrumentation Laboratory Published on Instrumentation LAB (http://instrumentationlab.berkeley.edu) Home > Lab Assignments > Digital Labs > Digital Circuits II Digital Circuits II Submitted by Nate.Physics on Tue, 07/08/2014-13:57

More information

logic system Outputs The addition of feedback means that the state of the circuit may change with time; it is sequential. logic system Outputs

logic system Outputs The addition of feedback means that the state of the circuit may change with time; it is sequential. logic system Outputs Sequential Logic The combinational logic circuits we ve looked at so far, whether they be simple gates or more complex circuits have clearly separated inputs and outputs. A change in the input produces

More information

CHAPTER III THE FPGA IMPLEMENTATION OF PULSE WIDTH MODULATION

CHAPTER III THE FPGA IMPLEMENTATION OF PULSE WIDTH MODULATION 34 CHAPTER III THE FPGA IMPLEMENTATION OF PULSE WIDTH MODULATION 3.1 Introduction A number of PWM schemes are used to obtain variable voltage and frequency supply. The Pulse width of PWM pulsevaries with

More information

Sequential Logic Circuits

Sequential Logic Circuits Exercise 2 Sequential Logic Circuits 1 - Introduction Goal of the exercise The goals of this exercise are: - verify the behavior of simple sequential logic circuits; - measure the dynamic parameters of

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

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

Spartan Tetris. Sources. Concept. Design. Plan. Jeff Heckey ECE /12/13.

Spartan Tetris. Sources. Concept. Design. Plan. Jeff Heckey ECE /12/13. Jeff Heckey ECE 253 12/12/13 Spartan Tetris Sources https://github.com/jheckey/spartan_tetris Concept Implement Tetris on a Spartan 1600E Starter Kit. This involves developing a new VGA Pcore for integrating

More information

Tuesday, March 1st, 9:15 11:00. Snorre Aunet Nanoelectronics group Department of Informatics University of Oslo.

Tuesday, March 1st, 9:15 11:00. Snorre Aunet Nanoelectronics group Department of Informatics University of Oslo. Nyquist Analog to Digital it Converters Tuesday, March 1st, 9:15 11:00 Snorre Aunet (sa@ifi.uio.no) Nanoelectronics group Department of Informatics University of Oslo 3.1 Introduction 3.1.1 DAC applications

More information

Using the Z8 Encore! XP Timer

Using the Z8 Encore! XP Timer Application Note Using the Z8 Encore! XP Timer AN013104-1207 Abstract Zilog s Z8 Encore! XP microcontroller consists of four 16-bit reloadable timers that can be used for timing, event counting or for

More information

D3 04AD 4-Channel Analog Input

D3 04AD 4-Channel Analog Input 4-Channel Analog Input 22 Module Specifications The following table provides the specifications for the Analog Input Module. Review these specifications to make sure the module meets your application requirements.

More information

LM4: The timer unit of the MC9S12DP256B/C

LM4: The timer unit of the MC9S12DP256B/C Objectives - To explore the Enhanced Capture Timer unit (ECT) of the MC9S12DP256B/C - To program a real-time clock signal with a fixed period and display it using the onboard LEDs (flashing light) - To

More information

Gomoku Player Design

Gomoku Player Design Gomoku Player Design CE126 Advanced Logic Design, winter 2002 University of California, Santa Cruz Max Baker (max@warped.org) Saar Drimer (saardrimer@hotmail.com) 0. Introduction... 3 0.0 The Problem...

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

Design IV. E232 Fall 07

Design IV. E232 Fall 07 Design IV Fall 07 Class 7 Bruce McNair bmcnair@stevens.edu 7-1/27 Example Low-Pass Filter Design (like HW2 Problem 3.18) A(f) db f Cutoff (corner) frequency 7-2/27 Transmission Systems Analog signal transmission

More information

DS1720. Econo Digital Thermometer and Thermostat PRELIMINARY FEATURES PIN ASSIGNMENT

DS1720. Econo Digital Thermometer and Thermostat PRELIMINARY FEATURES PIN ASSIGNMENT PRELIMINARY DS1720 Econo Digital Thermometer and Thermostat FEATURES Requires no external components Supply voltage range covers from 2.7V to 5.5V Measures temperatures from 55 C to +125 C in 0.5 C increments.

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

6.111 Lecture # 19. Controlling Position. Some General Features of Servos: Servomechanisms are of this form:

6.111 Lecture # 19. Controlling Position. Some General Features of Servos: Servomechanisms are of this form: 6.111 Lecture # 19 Controlling Position Servomechanisms are of this form: Some General Features of Servos: They are feedback circuits Natural frequencies are 'zeros' of 1+G(s)H(s) System is unstable if

More information

ME 461 Laboratory #3 Analog-to-Digital Conversion

ME 461 Laboratory #3 Analog-to-Digital Conversion ME 461 Laboratory #3 Analog-to-Digital Conversion Goals: 1. Learn how to configure and use the MSP430 s 10-bit SAR ADC. 2. Measure the output voltage of your home-made DAC and compare it to the expected

More information

Last Time. P and N type semiconductors Diode internals Transistors NPN PNP

Last Time. P and N type semiconductors Diode internals Transistors NPN PNP Last Time P and N type semiconductors Diode internals Transistors NPN PNP Device of the Day... Piezo microphone Device of the Day... Transistor Recap Transistors operate as current amplifiers With the

More information

Lab 5: Inverted Pendulum PID Control

Lab 5: Inverted Pendulum PID Control Lab 5: Inverted Pendulum PID Control In this lab we will be learning about PID (Proportional Integral Derivative) control and using it to keep an inverted pendulum system upright. We chose an inverted

More information

Houngninou 2. Abstract

Houngninou 2. Abstract Houngninou 2 Abstract The project consists of designing and building a system that monitors the phase of two pulses A and B. Three colored LEDs are used to identify the phase comparison. When the rising

More information

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones 1 Announcements HW8: Due Sunday 10/29 (midnight) Exam 2: In class Thursday 11/9 This object detection lab

More information

1) Fixed point [15 points] a) What are the primary reasons we might use fixed point rather than floating point? [2]

1) Fixed point [15 points] a) What are the primary reasons we might use fixed point rather than floating point? [2] 473 Fall 2018 Homework 2 Answers Due on Gradescope by 5pm on December 11 th. 165 points. Notice that the last problem is a group assignment (groups of 2 or 3). Digital Signal Processing and other specialized

More information

BMS BMU Vehicle Communications Protocol

BMS BMU Vehicle Communications Protocol BMS Communications Protocol 2013 Tritium Pty Ltd Brisbane, Australia http://www.tritium.com.au 1 of 11 TABLE OF CONTENTS 1 Introduction...3 2 Overview...3 3 allocations...4 4 Data Format...4 5 CAN packet

More information

CS302 - Digital Logic Design Glossary By

CS302 - Digital Logic Design Glossary By CS302 - Digital Logic Design Glossary By ABEL : Advanced Boolean Expression Language; a software compiler language for SPLD programming; a type of hardware description language (HDL) Adder : A digital

More information

TIP500. Optically Isolated 16 Channel 12 Bit ADC. Version 1.1. User Manual. Issue January 2010

TIP500. Optically Isolated 16 Channel 12 Bit ADC. Version 1.1. User Manual. Issue January 2010 The Embedded I/O Company TIP500 Optically Isolated 16 Channel 12 Bit ADC Version 1.1 User Manual Issue 1.1.9 January 2010 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 25469 Halstenbek, Germany Phone: +49 (0) 4101

More information