Real Time Embedded Systems. Lecture 1 January 17, 2012

Size: px
Start display at page:

Download "Real Time Embedded Systems. Lecture 1 January 17, 2012"

Transcription

1 Analog

2 Real Time Embedded Systems Lecture 1 January 17, 2012 Topic

3 Section Topic Where in the books Catsoulis chapter/page Simon chapter/page Zilog UM197 (ZNEO Z16F Series Flash Microcontroller Contest Kit User Manual) Zilog UM171 (ZiLOG Developer Studio II ZNEO User Manual) Zilog PS220 (ZNEO Z16F Series Product Specification) Zilog UM188 (ZNEO CPU Core User Manual) Assorted datasheets

4

5 Signals Analog Digital Reference voltage

6 Digital-Analog Connecting a sensor to digital circuitry is simple if the sensor provides digital output. We have seen that switches, and logic encoders are easily interfaced with gate circuits due to the nature of their signals. When analog sensors are involved the interfacing becomes more complex. We need a way to electronically translate analog signals into digital quantities, and visa-versa.

7 Analog Signals How do we input and output analog signals?

8 Signal Converters Analog to Digital signal converter on the inputs Digital to Analog signal converter on the outputs

9 Digital -> Analog A Digital to Analog converter is an electronic circuit which accepts a digital number at its input and produces a corresponding analog signal (usually a voltage) at the output

10 Digital -> Analog DAC Several Types PWM output + low pass filter Binary Weighted DAC R2R Ladder Kelvin Divider

11 Kelvin Divider DAC

12 DAC R-2R ladder network is a simple Digital-Analog converter. Only two resistance values are used anywhere in the entire circuit. Modern DACs use the R-2R ladder

13 But... We don't have a Digital to Analog converter on the ZNEO (or any of the Zilog microcontrollers).

14 Fortunately we know how to add that capability if we need it Add a DAC chip I2C, SPI, 1-wire, Or parallel digital input 1000's to choose from (really!)

15 Like this one!

16

17 Analog -> Digital An Analog to Digital converter is an electronic circuit which accepts an analog input signal (usually a voltage) and produces a corresponding digital number at the output

18 ADC Analog-to-Digital Conversion The workhorse of the test and measurement world. Providing a means for a microcontroller to measure analog signals.

19 ADC Several Types (ways to convert analog to digital) Digital Ramp Successive Approximation Subranging Tracking Slope Integration Flash Sigma Delta

20 Flash ADC Start with a voltage comparator Determines of a signal is greater than a reference signal (a 1-bit analog to digital converter). Vref Vin + Vout Vref Vin Vout

21 Flash ADC n-bit resolution requires 2 n -1 comparators 8-bit means 255 comparators 10-bit means 1023 comparators

22 A binary counter counts up from 0. The output of the counter to feed into a digital to analog converter. The generated analog signal is compared to the input signal. When the generated signal is greater than the input signal the counter stops and the binary value is the digital value for this signal Digital Ramp

23 Sigma Delta ADC High resolution and Low cost The Z16 uses Sigma-Delta ADC One of the more advanced ADC technologies

24 Why so many different ways?

25 Resolution vs Speed

26 ADC Signal Sampling Sampling can cause errors (aliasing) Nyquist rate = 2x highest frequency of interest Practically: always sample at least 5x, or higher

27 What kinds of things can you measure with an ADC?

28 Sensors Sensors with analog output Temperature Pressure Light intensity Position Velocity, RPM...

29 Analog Input Don't like the ADC on your microcontroller? Add an external one. Many to choose from Parallel data out I2C, SPI, 1-wire,...

30 MAX Million samples per second 16 bit

31

32 MAX Million samples per second 10-bit data 1 micro amp in shutdown

33

34 Why so many different ADC?

35 Why Speed (samples/second) Low Power for battery/portable applications Resolution (8,10,12,14,18 bits) Number of channels Interface Range of analog input (3v, 12v, +/- 12v,...)

36 Z16 ADC One ADC 12 Switched inputs 10-bit resolution Internal voltage reference generator Ability to supply external reference voltage.

37 Z16 ADC

38 The Pins ANA0..11 AVDD, AVSS VREF

39 ADC 10 bit conversion (needs 2 bytes for result) 12 analog input sources are multiplexed with general-purpose I/O ports Interrupt upon conversion complete Internal voltage reference generator

40 ADC Each ADC measurement consists of three phases: 1. Input sampling (programmable, minimum of 1.0 μs). 2. Sample-and-hold amplifier settling (programmable, minimum of 0.5 μs). 3. Conversion is 12 ADCLK cycles.

41

42 Z16 ADC Registers ADC0CTL Control Register ADC0DH, ADC0DL ADC data ADCSST Sample Settling Time ADCST Sample Time ADCCP Clock Prescaler ADC0MAX Max Chanel Register ADCTCAP_H,L Timer0 Capture Register

43 Z16 ADC Registers Don't forget GPIO alternate function and interrupt control registers

44 ADC0CTL

45

46 ADC0D_H,L

47 Interrupt? Why do I want to generate an interrupt on conversion?

48 Single Shot ADC Single ADC 1. Enable the alternate function of the GPIO pins that you want to use for analog inputs (PORT B & H) 2. Write to ADC0CTL to configure which input source (one source can be active at a time) 3. Set ADCCTL START0 to enable conversion. 4. Watch STAT0 bit until conversion is complete. 5. Read value from ADC0D_H, ADC0D_L

49 Example Example Analog_Photodiode

50 Photodiode Like a diode (allows current to flow in one direction and not the reverse) BUT, light changes that and allows current to flow in the reverse direction also. Dark = little current flow More light = more current flow

51 5v _ Photo diode LED < > /\/\/\----+ v GND +--> ANA0 LED for visual indicator

52 Photodiode is blocked, LED not on

53 Photodiode is illuminated, LED is on

54 Why would we want an External Reference Voltage?

55

56

57 External Reference This circuit gives us access to supply our own reference voltage (on J7) or Use a MAX6160 voltage reference (and potentiometer) to provide a variable VREF

58

59

60

61

62

63 VREF Internal VREF=3.3v 3FF 10 bits 3.3v 0FF 8 bits 0.82v 00F 4 bits 0.05v bit 0.003v With external VREF=1v 3FF 10 bits 1.0v 0FF 8 bits 0.25v 00F 4 bits v bit 0.001v

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

Infrared Communication

Infrared Communication Infrared Communication 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

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

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

EEE3410 Microcontroller Applications Department of Electrical Engineering. Lecture 10. Analogue Interfacing. Vocational Training Council, Hong Kong.

EEE3410 Microcontroller Applications Department of Electrical Engineering. Lecture 10. Analogue Interfacing. Vocational Training Council, Hong Kong. Department of Electrical Engineering Lecture 10 Analogue Interfacing 1 In this Lecture. Interface 8051 with the following Input/Output Devices Transducer/Sensors Analogue-to-Digital Conversion (ADC) Digital-to-Analogue

More information

ZNEO Z16F Series. High Performance Microcontrollers. Product Specification PS PRELIMINARY

ZNEO Z16F Series. High Performance Microcontrollers. Product Specification PS PRELIMINARY High Performance Microcontrollers ZNEO Z16F Series PS022012-1113 PRELIMINARY Copyright 2013 Zilog, Inc. All rights reserved. www.zilog.com ZNEO Z16F Series ZNEO ii Warning: DO NOT USE THIS PRODUCT IN LIFE

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

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

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

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

CHAPTER ELEVEN - Interfacing With the Analog World

CHAPTER ELEVEN - Interfacing With the Analog World CHAPTER ELEVEN - Interfacing With the Analog World 11.1 (a) Analog output = (K) x (digital input) (b) Smallest change that can occur in the analog output as a result of a change in the digital input. (c)

More information

Project Final Report: Directional Remote Control

Project Final Report: Directional Remote Control Project Final Report: by Luca Zappaterra xxxx@gwu.edu CS 297 Embedded Systems The George Washington University April 25, 2010 Project Abstract In the project, a prototype of TV remote control which reacts

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 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

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

Implementation of Multiquadrant D.C. Drive Using Microcontroller

Implementation of Multiquadrant D.C. Drive Using Microcontroller Implementation of Multiquadrant D.C. Drive Using Microcontroller Author Seema Telang M.Tech. (IV Sem.) Department of Electrical Engineering Shri Ramdeobaba College of Engineering and Management Abstract

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

Ch 8. Analog Interface

Ch 8. Analog Interface EE414 Embedded Systems Ch 8. Analog Interface Part 1/2 Byung Kook Kim School of Electrical Engineering Korea Advanced Institute of Science and Technology Overview 8.1 Introduction 8.2 A/D Conversion 8.3

More information

Dedan Kimathi University of technology. Department of Electrical and Electronic Engineering. EEE2406: Instrumentation. Lab 2

Dedan Kimathi University of technology. Department of Electrical and Electronic Engineering. EEE2406: Instrumentation. Lab 2 Dedan Kimathi University of technology Department of Electrical and Electronic Engineering EEE2406: Instrumentation Lab 2 Title: Analogue to Digital Conversion October 2, 2015 1 Analogue to Digital Conversion

More information

Analog-to-Digital Converter (ADC) And Digital-to-Analog Converter (DAC)

Analog-to-Digital Converter (ADC) And Digital-to-Analog Converter (DAC) 1 Analog-to-Digital Converter (ADC) And Digital-to-Analog Converter (DAC) 2 1. DAC In an electronic circuit, a combination of high voltage (+5V) and low voltage (0V) is usually used to represent a binary

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

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

Hello, and welcome to this presentation of the STM32L4 comparators. It covers the main features of the ultra-lowpower comparators and some

Hello, and welcome to this presentation of the STM32L4 comparators. It covers the main features of the ultra-lowpower comparators and some Hello, and welcome to this presentation of the STM32L4 comparators. It covers the main features of the ultra-lowpower comparators and some application examples. 1 The two comparators inside STM32 microcontroller

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

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

Microcomputers. Digital Signal Processing

Microcomputers. Digital Signal Processing Microcomputers Analog-to-Digital and Digital-to-Analog Conversion Lecture 7-1 Digital Signal Processing Analog-to-Digital Converter (ADC) converts an input analog value to an output digital representation.

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

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

ELG4139: Converters Analog to Digital Converters (ADCs) Digital to Analog Converters (DACs) ELG4139: 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 FS 4 V 8 ref 7 V 8 ref Analog Input V

More information

Hello, and welcome to this presentation of the STM32G0 digital-to-analog converter. This block is used to convert digital signals to analog voltages

Hello, and welcome to this presentation of the STM32G0 digital-to-analog converter. This block is used to convert digital signals to analog voltages Hello, and welcome to this presentation of the STM32G0 digital-to-analog converter. This block is used to convert digital signals to analog voltages which can interface with the external world. 1 The STM32G0

More information

Using Z8 Encore! XP MCU for RMS Calculation

Using Z8 Encore! XP MCU for RMS Calculation Application te Using Z8 Encore! XP MCU for RMS Calculation Abstract This application note discusses an algorithm for computing the Root Mean Square (RMS) value of a sinusoidal AC input signal using the

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

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

A Unipolar Stepper Motor Drive Using the Z8 Encore! MCU

A Unipolar Stepper Motor Drive Using the Z8 Encore! MCU Application Note A Unipolar Stepper Motor Drive Using the Z8 Encore! MCU Abstract Stepper motors that feature unipolar drives are widely used in applications that require high torque loads and fast position

More information

A radiation tolerant, low-power cryogenic capable CCD readout system:

A radiation tolerant, low-power cryogenic capable CCD readout system: A radiation tolerant, low-power cryogenic capable CCD readout system: Enabling focal-plane mounted CCD read-out for ground or space applications with a pair of ASICs. Overview What do we want to read out

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

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

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

The simplest DAC can be constructed using a number of resistors with binary weighted values. X[3:0] is the 4-bit digital value to be converter to an

The simplest DAC can be constructed using a number of resistors with binary weighted values. X[3:0] is the 4-bit digital value to be converter to an 1 Although digital technology dominates modern electronic systems, the physical world remains mostly analogue in nature. The most important components that link the analogue world to digital systems are

More information

Lecture 6: Digital/Analog Techniques

Lecture 6: Digital/Analog Techniques Lecture 6: Digital/Analog Techniques The electronics signals that we ve looked at so far have been analog that means the information is continuous. A voltage of 5.3V represents different information that

More information

32-bit ARM Cortex-M0, Cortex-M3 and Cortex-M4F microcontrollers

32-bit ARM Cortex-M0, Cortex-M3 and Cortex-M4F microcontrollers -bit ARM Cortex-, Cortex- and Cortex-MF microcontrollers Energy, gas, water and smart metering Alarm and security systems Health and fitness applications Industrial and home automation Smart accessories

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

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

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

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

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

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

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

Lab 2 Revisited Exercise

Lab 2 Revisited Exercise Lab 2 Revisited Exercise +15V 100k 1K 2N2222 Wire up led display Note the ground leads LED orientation 6.091 IAP 2008 Lecture 3 1 Comparator, Oscillator +5 +15 1k 2 V- 7 6 Vin 3 V+ 4 V o Notice that power

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

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

Introduction. Theory of Operation

Introduction. Theory of Operation Mohan Rokkam Page 1 12/15/2004 Introduction The goal of our project is to design and build an automated shopping cart that follows a shopper around. Ultrasonic waves are used due to the slower speed of

More information

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU Application Note Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU AN026002-0608 Abstract This application note describes a controller for a 200 W, 24 V Brushless DC (BLDC) motor used to power

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

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

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

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

EE 308 Lab Spring 2009

EE 308 Lab Spring 2009 9S12 Subsystems: Pulse Width Modulation, A/D Converter, and Synchronous Serial Interface In this sequence of three labs you will learn to use three of the MC9S12's hardware subsystems. WEEK 1 Pulse Width

More information

Hardware Platforms and Sensors

Hardware Platforms and Sensors Hardware Platforms and Sensors Tom Spink Including material adapted from Bjoern Franke and Michael O Boyle Hardware Platform A hardware platform describes the physical components that go to make up a particular

More information

I hope you have completed Part 2 of the Experiment and is ready for Part 3.

I hope you have completed Part 2 of the Experiment and is ready for Part 3. I hope you have completed Part 2 of the Experiment and is ready for Part 3. In part 3, you are going to use the FPGA to interface with the external world through a DAC and a ADC on the add-on card. You

More information

Lecture 4: Basic Electronics. Lecture 4 Brief Introduction to Electronics and the Arduino

Lecture 4: Basic Electronics. Lecture 4 Brief Introduction to Electronics and the Arduino Lecture 4: Basic Electronics Lecture 4 Page: 1 Brief Introduction to Electronics and the Arduino colintan@nus.edu.sg Lecture 4: Basic Electronics Page: 2 Objectives of this Lecture By the end of today

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

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 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

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

Four Quadrant Speed Control of DC Motor with the Help of AT89S52 Microcontroller

Four Quadrant Speed Control of DC Motor with the Help of AT89S52 Microcontroller Four Quadrant Speed Control of DC Motor with the Help of AT89S52 Microcontroller Rahul Baranwal 1, Omama Aftab 2, Mrs. Deepti Ojha 3 1,2, B.Tech Final Year (Electronics and Communication Engineering),

More information

Generating DTMF Tones Using Z8 Encore! MCU

Generating DTMF Tones Using Z8 Encore! MCU Application Note Generating DTMF Tones Using Z8 Encore! MCU AN024802-0608 Abstract This Application Note describes how Zilog s Z8 Encore! MCU is used as a Dual-Tone Multi- (DTMF) signal encoder to generate

More information

Mapping Peripheral Capabilities When Migrating From 8-bit to 16-bit PIC MCUs

Mapping Peripheral Capabilities When Migrating From 8-bit to 16-bit PIC MCUs Mapping Peripheral Capabilities When Migrating From 8-bit to 16-bit PIC MCUs Peripherals Summary When migrating from one PIC microcontroller (MCU) family to another, you get to stay within the same MPLAB

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

EECS 140/240A Final Project spec, version 1 Spring 17. FINAL DESIGN due Monday, 5/1/2017 9am

EECS 140/240A Final Project spec, version 1 Spring 17. FINAL DESIGN due Monday, 5/1/2017 9am EECS 140/240A Final Project spec, version 1 Spring 17 FINAL DESIGN due Monday, 5/1/2017 9am 1 1.2 no layout? XC? Golden Bear Circuits is working on its next exciting circuit product. This is a mixedsignal

More information

PRACTICAL DESIGN TECHNIQUES FOR SENSOR SIGNAL CONDITIONING

PRACTICAL DESIGN TECHNIQUES FOR SENSOR SIGNAL CONDITIONING 7 PRACTICAL DESIGN TECHNIQUES FOR SENSOR SIGNAL CONDITIONING 1 Introduction 2 Bridge Circuits 3 Amplifiers for Signal Conditioning 4 Strain, Force, Pressure, and Flow Measurements 5 High Impedance Sensors

More information

AVR42778: Core Independent Brushless DC Fan Control Using Configurable Custom Logic on ATtiny817. Features. Introduction. AVR 8-bit Microcontroller

AVR42778: Core Independent Brushless DC Fan Control Using Configurable Custom Logic on ATtiny817. Features. Introduction. AVR 8-bit Microcontroller AVR 8-bit Microcontroller AVR42778: Core Independent Brushless DC Fan Control Using Configurable Custom Logic on ATtiny817 APPLICATION NOTE Features Base setup for performing core independent brushless

More information

dspic Analogue to Digital Converter

dspic Analogue to Digital Converter dspic Analogue to Digital Converter The dspic30f4012 has a 10-bit successive approximation architecture ADC on board and provides maximum sampling rate of 1 Msps. The ADC module has 6 analogue inputs which

More information

ELCT 912: Advanced Embedded Systems

ELCT 912: Advanced Embedded Systems ELCT 912: Advanced Embedded Systems Lecture 5: PIC Peripherals on Chip Dr. Mohamed Abd El Ghany, Department of Electronics and Electrical Engineering The PIC Family: Peripherals Different PICs have different

More information

Digital Design Laboratory Lecture 7. A/D and D/A

Digital Design Laboratory Lecture 7. A/D and D/A ECE 280 / CSE 280 Digital Design Laboratory Lecture 7 A/D and D/A Analog/Digital Conversion A/D conversion is the process of sampling a continuous signal Two significant implications 1. The information

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

CSI021 4 Channel High Voltage Programmable Current Sink/Source

CSI021 4 Channel High Voltage Programmable Current Sink/Source CSI021 4 Channel High Voltage Programmable Current Sink/Source CSI021 NeuroStim ASSP Datasheet Rev 1.3 FEATURES 4 Output Channels per IC Independent 8 Bit DAC Programmability SPI Programmable Output Current

More information

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE 9S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE In this sequence of three labs you will learn to use the 9S12 S hardware sybsystem. WEEK 1 PULSE WIDTH MODULATION

More information

CMOS Today & Tomorrow

CMOS Today & Tomorrow CMOS Today & Tomorrow Uwe Pulsfort TDALSA Product & Application Support Overview Image Sensor Technology Today Typical Architectures Pixel, ADCs & Data Path Image Quality Image Sensor Technology Tomorrow

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

SNIOT702 Specification. Version number:v 1.0.1

SNIOT702 Specification. Version number:v 1.0.1 Version number:v 1.0.1 Catelog 1 Product introduction... 1 1.1 Product introduction... 1 1.2 Product application... 1 1.3 Main characteristics... 2 1.4 Product advantage... 3 2 Technical specifications...

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

Texas Instruments Sensing Technologies

Texas Instruments Sensing Technologies Ambient Broad Spectrum IC Sensors AFEs Current & Power Texas Instruments Sensing Technologies Imaging & Light Current & Power System Protection & Monitoring Op Amp Current Shunt Amp Instrumentation Amp

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

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

Microprocessor & Interfacing Lecture Programmable Interval Timer

Microprocessor & Interfacing Lecture Programmable Interval Timer Microprocessor & Interfacing Lecture 30 8254 Programmable Interval Timer P A R U L B A N S A L A S S T P R O F E S S O R E C S D E P A R T M E N T D R O N A C H A R Y A C O L L E G E O F E N G I N E E

More information

New Current-Sense Amplifiers Aid Measurement and Control

New Current-Sense Amplifiers Aid Measurement and Control AMPLIFIER AND COMPARATOR CIRCUITS BATTERY MANAGEMENT CIRCUIT PROTECTION Mar 13, 2000 New Current-Sense Amplifiers Aid Measurement and Control This application note details the use of high-side current

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

4 x 10 bit Free Run A/D 4 x Hi Comparator 4 x Low Comparator IRQ on Compare MX839. C-BUS Interface & Control Logic

4 x 10 bit Free Run A/D 4 x Hi Comparator 4 x Low Comparator IRQ on Compare MX839. C-BUS Interface & Control Logic DATA BULLETIN MX839 Digitally Controlled Analog I/O Processor PRELIMINARY INFORMATION Features x 4 input intelligent 10 bit A/D monitoring subsystem 4 High and 4 Low Comparators External IRQ Generator

More information

Figure 1.1 Mechatronic system components (p. 3)

Figure 1.1 Mechatronic system components (p. 3) Figure 1.1 Mechatronic system components (p. 3) Example 1.2 Measurement System Digital Thermometer (p. 5) Figure 2.2 Electric circuit terminology (p. 13) Table 2.2 Resistor color band codes (p. 18) Figure

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

Section 34. Comparator

Section 34. Comparator Section 34. HIGHLIGHTS This section of the manual contains the following major topics: 34.1 Introduction... 34-2 34.2 Registers... 34-3 34.3 Operation... 34-6 34.4 Configuration... 34-7 34.5 Interrupts...

More information

Implementing a 5-bit Folding and Interpolating Analog to Digital Converter

Implementing a 5-bit Folding and Interpolating Analog to Digital Converter Implementing a 5-bit Folding and Interpolating Analog to Digital Converter Zachary A Pfeffer (pfefferz@colorado.edu) Department of Electrical and Computer Engineering University of Colorado, Boulder CO

More information

CONTENTS Sl. No. Experiment Page No

CONTENTS Sl. No. Experiment Page No CONTENTS Sl. No. Experiment Page No 1a Given a 4-variable logic expression, simplify it using Entered Variable Map and realize the simplified logic expression using 8:1 multiplexer IC. 2a 3a 4a 5a 6a 1b

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

ADC Resolution: Myth and Reality

ADC Resolution: Myth and Reality ADC Resolution: Myth and Reality Mitch Ferguson, Applications Engineering Manager Class ID: CC19I Renesas Electronics America Inc. Mr. Mitch Ferguson Applications Engineering Manager Specializes support

More information

Iowa State University Electrical and Computer Engineering. E E 452. Electric Machines and Power Electronic Drives

Iowa State University Electrical and Computer Engineering. E E 452. Electric Machines and Power Electronic Drives Electrical and Computer Engineering E E 452. Electric Machines and Power Electronic Drives Laboratory #5 Buck Converter Embedded Code Generation Summary In this lab, you will design the control application

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

Lecture #19 Digital To Analog, PWM, Stepper Motors Embedded System Engineering Philip Koopman Monday, 28-March-2016

Lecture #19 Digital To Analog, PWM, Stepper Motors Embedded System Engineering Philip Koopman Monday, 28-March-2016 Lecture #19 Digital To Analog, PWM, Stepper Motors 18-348 Embedded System Engineering Philip Koopman Monday, 28-March-2016 Electrical& Computer ENGINEERING Copyright 2006-2016, Philip Koopman, All Rights

More information

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) Subject Code : SUMMER 15 EXAMINATION Model Answer

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) Subject Code : SUMMER 15 EXAMINATION Model Answer 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 answer and the answer written by candidate

More information

Page 1. Midterm #2. OpAmp Review. Inverting & Non-inverting Circuits CS/ECE 6780/5780. Al Davis. Almost ubiquitous analog circuit element since ~1968

Page 1. Midterm #2. OpAmp Review. Inverting & Non-inverting Circuits CS/ECE 6780/5780. Al Davis. Almost ubiquitous analog circuit element since ~1968 Midterm #2 Midterm 2 hints CS/ECE 6780/5780 Al Davis Today s topics: no practice midterm since it didn t help last time ADC s and DAC s chapter 11 of your text your kit has an A/D (Port D w/ DDR set to

More information