Introduction to Embedded Microcomputer Systems Lecture Discrete digital signal. Continuous analog signal

Similar documents
The Successive Approximation Converter Concept - 8 Bit, 5 Volt Example

Analog Input & Output

Interfacing Analog to Digital Data Converters. A/D D/A Converter 1

Data Conversion and Lab (17.368) Fall Lecture Outline

Analog-to-Digital Conversion (Part 2) Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

The 9S12 A/D converter Huang Section ATD_10B8C Block User Guide

Analog to Digital Conversion

B I O E N / Biological Signals & Data Acquisition

TRAINING KITS ON DIGITAL ELECTRONIC EXPERIMENTS. Verify Truth table for TTL IC s AND, NOT, & NAND GATES

EMS DATA ACQUISITION AND MANAGEMENT (LVDAM-EMS) MODEL 9062-C

Hello and welcome to this presentation of the STM32L4 Analog-to-Digital Converter block. It will cover the main features of this block, which is used

Do the following: a. (12 points) Draw a block diagram of your circuit design, showing and labeling all essential components and connections.

Point System (for instructor and TA use only)

SigPlay User s Guide

DESIGN PHILOSOPHY We had a Dream...

SIL-2 8-Ch Analog Input Series Thermocouple, High Level, Low Level

DMC550 Technical Reference

Converting between Analog and Digital Domains

Ocean Sensor Systems, Inc. Wave Staff III, OSSI With 0-5V & RS232 Output and A Self Grounding Coaxial Staff

Converters: Analogue to Digital

Chapter 11 Sections 1 3 Dr. Iyad Jafar

MODULAR DIGITAL ELECTRONICS TRAINING SYSTEM

ELCT706 MicroLab Session #3 7-segment LEDs and Analog to Digital Conversion. Eng. Salma Hesham

Analog-to-Digital Converter

A/D and D/A convertor 0(4) 24 ma DC, 16 bits

MIE 402: WORKSHOP ON DATA ACQUISITION AND SIGNAL PROCESSING Spring 2003

Ocean Sensor Systems, Inc. Wave Staff, OSSI F, Water Level Sensor With 0-5V, RS232 & Alarm Outputs, 1 to 20 Meter Staff

EDL8 Race Dash Manual Engine Management Systems


Triple RTD. On-board Digital Signal Processor. Linearization RTDs 20 Hz averaged outputs 16-bit precision comparator function.

AC : EXPERIMENTS AND RESEARCH ACTIVITIES IN A MICROCONTROLLER LABORATORY

EET 1131 Lab #12 - Page 1 Revised 8/10/2018

Logic Analyzer Auto Run / Stop Channels / trigger / Measuring Tools Axis control panel Status Display

Working with CSWin32 Software

Table of contents 1. INTRODUCTION GENERAL CONTENTS OF PACKAGE GENERAL USE OF THE EQUFLOW 6100 D/A CONVERTER STORAGE..

LOOK AT THE NETWORK OF METAL STRIPS ON THE BACKSIDE OF THE PROTOTYPING BOARD

UNIT V 8051 Microcontroller based Systems Design

Theory and Practice of Tangible User Interfaces. Thursday Week 3: Analog Input. week. Sensor 1: Potentiometers. Analog input

Fits the Leopard Family FREQ./RPM INPUT MODULE WITH 24 V EXC.

VIRTUAL INSTRUMENTATION

Introduction to Mechatronics. Fall Instructor: Professor Charles Ume. Analog to Digital Converter

Level Accuracy and Electronic Level Settings of SMIQ

RK-2 ENVIRONMENTAL DATA CONTACTLESS MAGNETOSTRICTIVE LINEAR POSITION TRANSDUCER WITH FLANGED HEAD. Main characteristics

CPE 310L EMBEDDED SYSTEM DESIGN (CPE)

A dedicated data acquisition system for ion velocity measurements of laser produced plasmas

nc... Freescale Semiconductor, I

Dac3 White Paper. These Dac3 goals where to be achieved through the application and use of optimum solutions for:

PRELIMINARY INFORMATION. Professional Signal Generation and Monitoring Options for RIFEforLIFE Research Equipment

DT9834 Series High-Performance Multifunction USB Data Acquisition Modules

Session 1 Introduction to Data Acquisition and Real-Time Control

Workshop III: Analog and Sensors

MSO-28 Oscilloscope, Logic Analyzer, Spectrum Analyzer

Operating Instructions

INF4420 Project Spring Successive Approximation Register (SAR) Analog-to-Digital Converter (ADC)

SWITCH: Microcontroller Touch-switch Design & Test (Part 2)

Decade Counters Mod-5 counter: Decade Counter:

Synthesized Clock Generator

Published in A R DIGITECH

Since the early 80's, a step towards digital audio has been set by the introduction of the Compact Disc player.

Team Members: Erik Stegman Kevin Hoffman

o The 9S12 has a 16-bit free-running counter to determine the time and event happens, and to make an event happen at a particular time

RF4432F27 wireless transceiver module

o The 9S12 has a 16-bit free-running counter to determine the time and event happens, and to make an event happen at a particular time

MK4 S CONTACTLESS MAGNETOSTRICTIVE LINEAR POSITION TRANSDUCER (SYNCHRONOUS SERIAL OUTPUT)

1. Abstract. Mixed Signal Oscilloscope Ideal For Debugging Embedded Systems DLM2000 Series

AC : REFERENCE DESIGNS FOR SENSORS USED IN MICROCONTROL BASED DESIGN PROJECTS

WECON LX3V-2PT2DA BD Board

Data Converters and DSPs Getting Closer to Sensors

High Performance TFT LCD Driver ICs for Large-Size Displays

Introduction To LabVIEW and the DSP Board

Analogue Inputs Resolution Assignment

Data Converter Overview: DACs and ADCs. Dr. Paul Hasler and Dr. Philip Allen

AI-1616L-LPE. Features. High-precision Analog input board (Low Profile size) for PCI Express AI-1616L-LPE 1. Ver.1.02 Ver.1.01

Embedded System Hardware

LABORATORY 14: ANALOG TO DIGITAL CONVERSION USING ADC0809

Switching Circuits & Logic Design, Fall Final Examination (1/13/2012, 3:30pm~5:20pm)

ECE 4220 Real Time Embedded Systems Final Project Spectrum Analyzer

Operating Instructions

8 DIGITAL SIGNAL PROCESSOR IN OPTICAL TOMOGRAPHY SYSTEM

GFT channel Time Interval Meter

Lecture 14: Computer Peripherals

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR NPTEL ONLINE CERTIFICATION COURSE. On Industrial Automation and Control

Introduction to Digital Logic Missouri S&T University CPE 2210 Introduction and Application Areas

THE NOISE PERFORMANCE OF EVALUATION BOARDS FOR A UNIVERSAL TRANSDUCER INTERFACE WITH USB CONNECTION

Circuit Playground Express (& other ATSAMD21 Boards) DAC Hacks

DSP in Communications and Signal Processing

Research Results in Mixed Signal IC Design

Pre-processing of revolution speed data in ArtemiS SUITE 1

Laboratory Exercise 4

Log-detector. Sweeper setup using oscilloscope as XY display

Tutorial Introduction

EECS145M 2000 Midterm #1 Page 1 Derenzo

Machinery Fault Diagnosis and Signal Processing Prof. A R Mohanty Department of Mechanical Engineering Indian Institute of Technology-Kharagpur

Department of Communication Engineering Digital Communication Systems Lab CME 313-Lab

Fig. 1 Analog pins of Arduino Mega

7inch Resistive Touch LCD User Manual

LabView Exercises: Part III

MS-32 OSCILLOSCOPE MIXED SIGNAL OPTION. Add 32 Digital Channels to a 4 Channel Oscilloscope

DT9857E. Key Features: Dynamic Signal Analyzer for Sound and Vibration Analysis Expandable to 64 Channels

ECE251 Intro to Microprocessors Final Exam December 14, 2015, 2 p.m.

Transcription:

Introduction to Embedded Microcomputer Systems Lecture 22.1 Recap Output compare interrupts Metrowerks Codewarrior Overview to Convertor Transducer: mechanical, electrical Using output compare interrupts to establish sampling Range(volts) = Precision(alternatives) Resolution(volts) 32 28 24 2 16 12 8 Discrete digital signal Continuous analog signal 4 1 2 3 4 5 6 7 8 9 1 Time (s) Figure 11.1. An analog signal is represented in the digital domain as discrete samples. 1-bit to digital Converter input V in +5 output ATDDR 123 Output is about 124*V in /5 or Output is about 123*V in /5 124 896 DAC Output 768 64 zoomed in 512 384 256 128 Outputs 1 2 3 4 5 signal (volts) Figure 11.2. /output functions of a DAC and an.

Introduction to Embedded Microcomputer Systems Lecture 22.2 256 224 DAC Output 192 16 zoomed in 128 96 64 32 Outputs 1 2 3 4 5 signal (volts) 8-bit to digital Converter input V in +5 output ATDDR 255 Output is about 256*V in /5 or Output is about 255*V in /5 Find the 16 analog inputs on the 9S12DG128 ATDCTL2=$8; set bit 7 to enable ATDCTL3=$8; sequence length=1 ATDCTL4 bit 7= for 1-bit, =1 for 8-bit Bits 4- internal clock (how fast the runs) Let m be the bottom 5 bits of ATDCTL4 Internal clock is ½E/(m+1) Internal clock can be between 5kHz and 2 MHz At 24 MHz 2 MHz make ATDCTL4=$5 ; m=5 (7us) 1 MHz make ATDCTL4=$B ; m=11(14us) ATDCTL5 write channel number to start channel number $8 to $87 ATDSTAT bit 7 SCF cleared by write to ATDCTL5 set when finished ATDDR first 1-bit result precision 1-bit, 124 alternatives range to +5V resolution (5-)/124 = 5 mv (V) Output. % $.5 %1 $1 1 2.5 %1 $2 512 3.75 %11 $3 768 5. %1111111111 $3FF 123 Table 11.6. Straight binary format used. ATDDR first 8-bit result precision 8-bit, 256 alternatives range to +5V resolution (5-)/256 = 19.5 mv

Introduction to Embedded Microcomputer Systems Lecture 22.3 (V) Output. % $.2 %1 $1 1 2.5 %1 $8 128 3.75 %11 $C 192 5. %11111111 $FF 255 Table 11.6. Straight binary format used. Lab 8 is real-time data acquisition system main Lab 8: Design a position meter Hardware Software Hardware Transducer Electronics Software device Timer routines Output compare interrupts Measurement system How fast to update Fixed-point number system Algorithm to convert into position A data flow graph is one of the first design steps Position Voltage to 1.5 cm to +5V Position Sensor display A transducer converts position into resistance ASCII ATDDR to 123 Sample to 123 Fixed-point to 1.5 ISR main Mailbox to 123

Introduction to Embedded Microcomputer Systems Lecture 22.4 Solder wires to pins 1,2,3 Glue transducer to a solid Position metric ruler (for calibration and testing) Create a hair-line cursor Question: what is R 12 + R 23 at all times? Question: what are R 12 and R 23 when cursor is at 1cm? An electrical circuit converts resistance in to a voltage Question: what is V in at 1cm? Question: what is ATDDR at 1cm? Question: what do you want to display on the at 1cm? 1) run Lab 8 starter file, first main program, write 2) see device 3) show _Init Turns it on Sets it to 1-bit mode 4) show _In write channel number to ATDCTL5 wait for SCF flag in ATDSTAT read 1-bit result from ATDDR 5) show Data complexity abstraction (what we want to do) divide a complex problem into simple subcomponents functional abstraction (how we do it) divide a problem into modules grouped by function draw a data flow graph Run solution to Lab 8, show how to prove real time DAS start at a regular rate (every 1ms) measure the jitter 1ms-δt < t n t n-1 < 1ms+δt

Introduction to Embedded Microcomputer Systems Lecture 22.5 15 Calibration Distance in.1 cm 1 5 y =.1726x - 1.75 R 2 =.9999 2 4 6 8 1 input Lab 8 Sample every.1s Map (Data is to 255) into (Position is to +16) Option A) use a linear function Position = (Constant1*Sample)/Constant2 + Constant3 Position = (65536*Sample)/Constant4 + Constant3 Option B) Use a paired calibration table (S[i],P[i]) S[i] are samples measured at corresponding positions P[i] Given sample, find i such that S[i]<=sample<S[i+1] Use linear interpolation (look up etbl in TExaS help) position = P[i]+((sample-S[i])*(P[i+1]-P[i]))/(S[i+1]-S[i]) Option C) Create a 256-entry calibration table (P[ATDDR]) Fixed-Point output (using Lab 6 code) 123 is displayed a 1.23 cm The bottom line converts analog to digital Controlling time is important