EE251: Thursday October 18

Size: px
Start display at page:

Download "EE251: Thursday October 18"

Transcription

1 EE251: Thursday October 18 Analog to Digital Conversion Continued Successive Approximation Method Continued Computations TM4C A/D Capability and Programming Homework #4 due today 4 p.m. Lab #6 (A/D Converter) one week lab next week Partner with another in this and future labs Don t Fall Behind on Labs! Lecture #18 1

2 Successive Approximation Example Choose a voltage between 0 and 4 volts: 2.1 Voltage A/D Output = 2_ = 0x21 = 33 Vmin-max = 4*(33+½)/0x40 = volts Approximation Number Lecture #18 2

3 Successive Approximation Example Approximations at Each Step VRH = 4.0 VRL=0.0 Vmeas = 2.1 Approx # Vlow Vhigh Vmid Vmeas-Vmid Next Bit Bit Estimate = = 0x86 = 134 Vmin-max = 4*134.5/256 = Error = Vmin-max - Vmeas => 0.074% Lecture #18 3

4 Live Successive Approximation Example Choose a voltage between 0 and 4 volts: Voltage Approximation Number Lecture #18 4

5 A/D Conversion Process Example 12-bit A/D Converter 1 to 5 volt A/D Converter Temperature T Transducer voltage voltage Signal A/D Conditioner Converter Digital Value 0 to 80 deg. F -0.5 to +1.0 v. 1 to 5 v. 0x000 to 0xFFF Choose a temperature T: What is digital value out? Try it backwards: From digital value to voltages. Lecture #18 5

6 TM4C A/D Converter Two A/D Converter Modules, each having 12 Analog Input Channels 12-bit precision A/D Single-ended and differential input configurations Up to 1 million samples per second Flexible trigger control: software, Timers, GPIO, etc. Hardware averaging of up to 64 samples Separate power and ground circuitry to converter itself, not used by its registers. (Why do that?) Internal temperature sensor And much more than you ll probably ever want to know! These are Really Good A/D Converter Systems! Lecture #18 6

7 TM4C A/D Block Diagram Lecture #18 7

8 A/D Input Uses these GPIO Pins (Both Converter Modules Share the Same Pins) GPIO PIN A/D In PB4 10 PB5 11 PD0 7 PD1 6 PD2 5 PD3 4 PE0 3 PE1 2 PE2 1 PE3 0 PE4 9 PE5 8 Twelve different pins can be used to do 12 independent analog conversions. Lecture #18 8

9 Some Key TM4C A/D Registers (ADC0) Address Name $400F.E638 ADC1 ADC0 SYSCTL_RCGCADC_R $ SS3 SS2 SS1 SS0 ADC0_SSPRI_R $ EM3 EM2 EM1 EM0 ADC0_EMUX_R $ ASEN3 ASEN2 ASEN1 ASEN0 ADC0_ACTSS_R $ A0 MUX0 ADC0_SSMUX3_R $ A4 TS0 IE0 END0 D0 ADC0_SSCTL3_R $ SS3 SS2 SS1 SS0 ADC0_PSSI_R $ INR3 INR2 INR1 INR0 ADC0_RIS_R $ MASK3 MASK2 MASK1 MASK0 ADC0_IM_R $4003.8FC4 Speed ADC0_PC_R $ A8 DATA ADC0_SSFIFO3_R Register Memory Address Important Bits Register Name Lecture #18 9

10 TM4C A/D Configuration TM4C ADC Operation select rate Value 0x7 0x5 0x3 0x1 Description 1M samples/second 500K samples/second 250K samples/second 125K samples/second Speed bits in ADC0_PC_R select sequencer (activate at end) Sequencer # of Samples Depth of FIFO SS3 1 1 SS2 4 4 SS1 4 4 SS0 8 8 Activate with ADC_ACTSS select trigger EM3, EM2, EM1, and EM0 bits in ADC_EMUX_R Lecture #18 10

11 TM4C A/D Configuration TM4C ADC Operation continued select channel: bits 3-0 in ADC0_SSMUX3 = 0 This field specifies which analog input (in this case AIN0) is sampled select sample mode: bits 3-0 in ADC0_SSCTL3 = 6 TS0=0 (temperature sensor not read) IE0=1 (interrupt sent to controller) END0=1 (end of sequence) D0=0 (not differential) Lecture #18 11

12 TM4C A/D Initialization Initialization PLL (Phase Locked Loop) must be enabled for A/D Operation. Enable ADC clock: set bit 0 to 1 in SYSCTL_RCGCADC_R Set 125kHz ADC conversion speed: write 0x01 to ADC0_PC_R Set sequencer priority: 0,1,2,3 in ADC0_SSPRI_R Disable selected sequence 3: zero bit 3 of ADC0_ACTSS_R Set software start trigger event: zero bits of ADC0_EMUX_R Set input source (0-11): write channel number in bits 3-0 of ADC0_SSMUX3_R Set sample control bits: write 0110 in bits 3-0 ADC0_SSCTL3_R to disable temp measurement, notify on sample complete, indicate single sample in sequence, and denote single-ended signal mode Disable interrupts: zero bit 3 of ADC0_IM_R Enable selected sequencer 3: set bit 3 of ADC0_ACTSS_R Lecture #18 12

13 A/D on TM4C (see file ATD.s) ; Setup and run ATD sampling on ADC0 (AIN0 = PE3) Stores results in R5 ; ADC Registers RCGCADC EQU 0x400FE638; ADC clock register ;ADC0 base address EQU 0x ADC0_ACTSS EQU 0x ; Sample sequencer (ADC0 base address) ADC0_RIS EQU 0x ; Interrupt status ADC0_IM EQU 0x ; Interrupt select ADC0_EMUX EQU 0x ; Trigger select ADC0_PSSI EQU 0x ; Initiate sample ADC0_SSMUX3 EQU 0x400380A0; Input channel select ADC0_SSCTL3 EQU 0x400380A4; Sample sequence control ADC0_SSFIFO3 EQU 0x400380A8; Channel 3 results ADC0_PC EQU 0x40038FC4; Sample rate ; GPIO Registers RCGCGPIO ;PORT E base address PORTE_DEN PORTE_PCTL PORTE_AFSEL PORTE_AMSEL EQU 0x400FE608; GPIO clock register EQU 0x EQU 0x C; Digital Enable EQU 0x C; Alternate function select EQU 0x ; Enable Alt functions EQU 0x ; Enable analog Lecture #18 13

14 A/D on TM4C ; Start clocks for features to be used LDR R1, =RCGCADC ; Turn on ADC clock LDR R0, [R1] ; set bit 0 to enable ADC0 clock STR R0, [R1] NOPs ; Let clock stabilize LDR R1, =RCGCGPIO ; Turn on GPIO clock LDR R0, [R1] ORR R0, R0, #0x10 ; set bit 4 to enable port E clock STR R0, [R1] NOPs ; Let clock stabilize Lecture #18 14

15 A/D on TM4C ; Setup GPIO to make PE3 input for ADC0 ; Enable alternate functions LDR R1, =PORTE_AFSEL LDR R0, [R1] ; set bit 3 to enable alt functions on PE3 STR R0, [R1] ; PCTL does not have to be configured since ADC0 is automatically selected when port pin is set to analog. ; Disable digital on PE3 LDR R1, =PORTE_DEN LDR R0, [R1] STR R0, [R1] ; clear bit 3 to disable analog on PE3 ; Eanable analog on PE3 LDR R1, =PORTE_AMSEL LDR R0, [R1] STR R0, [R1] ; set bit 3 to enable analog on PE3 Lecture #18 15

16 Setup A/D on TM4C ; Disable sequencer while ADC setup LDR R1, =ADC0_ACTSS LDR R0, [R1] ; clear bit 3 to disable seq'r 3 STR R0, [R1] ; Select trigger source LDR R1, =ADC0_EMUX LDR R0, [R1] ; clear bits 15:12 to select SOFTWARE STR R0, [R1] ; trigger ; Select input channel LDR R1, =ADC0_SSMUX3 LDR R0, [R1] BIC R0, R0, #0x000F ; clear bits 3:0 to select AIN0 Lecture #18 16

17 Finish Setup, Enable Sequencer ; Config sample sequence LDR R1, =ADC0_SSCTL3 LDR R0, [R1] STR R0, [R1] ; set bits 2:1 (IE0, END0) ; Set sample rate LDR R1, =ADC0_PC LDR R0, [R1] STR R0, [R1] ; set bits 3:0 to 1 for 125k sps ; Done with setup, enable sequencer LDR R1, =ADC0_ACTSS LDR R0, [R1] ; set bit 3 to enable seq'r 3 STR R0, [R1] ; sampling enabled but not initiated yet Lecture #18 17

18 Sampling Subroutine ATD_Sample PUSH {R0-R4} ; start sampling routine LDR R3, =ADC0_RIS ; interrupt address LDR R4, =ADC0_SSFIFO3 ; result address LDR R2, =ADC0_PSSI ; sample sequence initiate address ; initiate sampling by enabling sequencer 3 in ADC0_PSSI ; wait 3 instructions ; check for sample complete (bit 3 of ADC0_RIS set) ; when complete, read results in ADC0_SSFIFO3 register ; reset the sample complete bit by setting bit IN3 of ADC0_ISC ; restore registers R0-R4 and return to caller Lecture #18 18

19 A/D Code Summary The previous code is from our lab code: ATDonline.s Modified slightly for lecture purposes Leaves a little (but not a lot) for you to do Has been tested! The basis for your Lab #6 work, but you ll need to do more: turn the binary data into several ASCII digits representing the voltage, and then displaying these ASCII digits on Termite. Look through this code! Be sure you understand it. For example, Practical #2 could ask you to do a slightly changed version of something from this lab Note: There are several very complex capabilities in the TM4C A/D System. You need to understand only those that have been a part of this lecture and of Lab #6. Lecture #18 20

20 A/D Converter Formulas for any Successive Approximation Converter Let V d be binary integer in data_register (12 bits) Let n be number of bits of conversion (12 in our case) Let V analog be the analog voltage corresponding to V d then V d = truncate(2 n (V analog -V RL )/(V RH -V RL )) with V d in range of [0 to 2 n -1] and V analog-low = V RL + (V RH -V RL ) V d /2 n V analog-high = V RL + (V RH -V RL ) (V d +1) /2 n Minimize max error: V min-max = V RL + (V RH -V RL ) (V d +½) /2 n For the TM4C, V RH = 3.3 v. and V RL = 0 v. Lecture #18 21

21 A/D Result Example 12-bit A/D converter. V RL = 0 v. and V RH = 3.3 v. We have requested a conversion on AIN0, and find the following register value: 0xC94 What voltage does this represent? Solution: V analog-low = (3.3) 0xC94/2 12 v. V analog-hi = /4096 = v. = /4096 = v. V min-max = /4096 = v. V RANGE = ( to ) v. Note: V RES-12 bit = 3.3/4096 = v. = 806 µv. Lecture #18 22

22 A/D Result Example Reversed Given the same conversion system of the previous slide, what if the analog voltage were v.? What digital measurement does this represent? Solution: V d = truncate(2 n (V analog -V RL )/(V RH -V RL )) = truncate(2 n (1.9550)/(3.3)) = truncate(4096 (1.955)/(3.3)) = 2426 V d = 0x97A What lower and upper voltage bounds does this conversion fall into? What is the best (smallest max error) estimate of V analog from this measurement? Lecture #18 23

23 Calculations Needed for Lab The A/D Converter gives a 12 bit result Vd, 0x000 to 0xFFF, corresponding to 0 v. to 3.3- v. (0x1000 would correspond to exactly 3.3 v.) To get the numerical value for the voltage Vn corresponding to the digital reading you could use: Vn/3.3 = Vd/4096 or Vn = Vd (3.3/4096) But this would give us only the integer component part of the answer. Is there any simple way to get the answer to include p digits of precision? What is the appropriate value of p for our D/A Converter? Think about it. Choosing p is easy; there s a simple method to get Vn; it s YOUR job to find it. Lecture #18 24

24 Last Steps with Data Suppose you had a solution that had the integer volts component: X, the tenth volt component: Y, the hundreth volt component stored as the integer 100X+10Y+Z. E.g volts stored as 237. You would then need to build an ASCII string with the X digit followed by a decimal point followed by the Y digit followed by the Z digit. So you simply need to extract X, Y and Z (or the appropriate number digits, p, requested in the lab and then send their ASCII representation to a string in the correct positions. Lecture #18 25

25 Summary Successive Approximation: Good compromise for A/D Conversion speed and accuracy Method for A/D conversion and with TM4C and sending to a string has been explained and will be used in Lab #6 The TM4C capability is extensive and exhaustive (and can be exhausting if you use all of it) Next Lecture: SysTick Real Time Clock- Section 11.4 in text (same as our SysTick subsystem) Lecture #18 27

CprE 288 Introduction to Embedded Systems (Analog-to-Digital Converter)

CprE 288 Introduction to Embedded Systems (Analog-to-Digital Converter) CprE 288 Introduction to Embedded Systems (Analog-to-Digital Converter) Dr. Phillip Jones http://class.ece.iastate.edu/cpre288 1 Announcements HW6: Due Sunday 10/15 (midnight) Exam 2: In class Thursday

More information

ECE251: Tuesday October 3 0

ECE251: Tuesday October 3 0 ECE251: Tuesday October 3 0 Timer Module Continued Review Pulse Input Characterization Output Pulses Pulse Count Capture Homework #6 due Thursday Lab 7 (Maskable Interrupts/ SysTick Timer) this week. Significant

More information

ECE251 Intro to Microprocessors Final Exam July 6 th, 2017

ECE251 Intro to Microprocessors Final Exam July 6 th, 2017 ECE251 Intro to Microprocessors Final Exam July 6 th, 2017 Name: Solution Instructions: Two sides of single page handwritten study sheet OK. Arithmetic-only calculator OK. No books, other notes, etc. Do

More information

ECE251 Intro to Microprocessors Final Exam July 6 th, 2017

ECE251 Intro to Microprocessors Final Exam July 6 th, 2017 ECE251 Intro to Microprocessors Final Exam July 6 th, 2017 Name: Instructions: Open note, open book. Use a calculator. No internet or discussion with your neighbor. Work all problems and show ALL intermediate

More information

EE251: Thursday October 25

EE251: Thursday October 25 EE251: Thursday October 25 Review SysTick (if needed) General-Purpose Timers A Major Topic in ECE251 An entire section (11) of the TM4C Data Sheet Basis for Lab #8, starting week after next Homework #5

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

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

EE445L Fall 2014 Quiz 2A Page 1 of 5

EE445L Fall 2014 Quiz 2A Page 1 of 5 EE445L Fall 2014 Quiz 2A Page 1 of 5 Jonathan W. Valvano First: Last: November 21, 2014, 10:00-10:50am. Open book, open notes, calculator (no laptops, phones, devices with screens larger than a TI-89 calculator,

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

EE445L Fall 2014 Quiz 2A Page 1 of 5

EE445L Fall 2014 Quiz 2A Page 1 of 5 EE445L Fall 2014 Quiz 2A Page 1 of 5 Jonathan W. Valvano First: Last: November 21, 2014, 10:00-10:50am. Open book, open notes, calculator (no laptops, phones, devices with screens larger than a TI-89 calculator,

More information

EE445L Fall 2011 Quiz 2A Page 1 of 6

EE445L Fall 2011 Quiz 2A Page 1 of 6 EE445L Fall 2011 Quiz 2A Page 1 of 6 Jonathan W. Valvano First: Last: November 18, 2011, 2:00pm-2:50pm. Open book, open notes, calculator (no laptops, phones, devices with screens larger than a TI-89 calculator,

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

Review for Final Exam

Review for Final Exam Review for Final Exam Numbers Decimal to Hex (signed and unsigned) Hex to Decimal (signed and unsigned) Binary to Hex Hex to Binary Addition and subtraction of fixed-length hex numbers Overflow, Carry,

More information

EE445L Fall 2014 Quiz 2B Page 1 of 5

EE445L Fall 2014 Quiz 2B Page 1 of 5 EE445L Fall 2014 Quiz 2B Page 1 of 5 Jonathan W. Valvano First: Last: November 21, 2014, 10:00-10:50am. Open book, open notes, calculator (no laptops, phones, devices with screens larger than a TI-89 calculator,

More information

EE445L Spring 2018 Final EID: Page 1 of 7

EE445L Spring 2018 Final EID: Page 1 of 7 EE445L Spring 2018 Final EID: Page 1 of 7 Jonathan W. Valvano First: Last: This is the closed book section. Calculator is allowed (no laptops, phones, devices with wireless communication). You must put

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

EE445L Fall 2012 Final Version B Page 1 of 7

EE445L Fall 2012 Final Version B Page 1 of 7 EE445L Fall 2012 Final Version B Page 1 of 7 Jonathan W. Valvano First: Last: This is the closed book section. You must put your answers in the boxes on this answer page. When you are done, you turn in

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

ROTRONIC HygroClip Digital Input / Output

ROTRONIC HygroClip Digital Input / Output ROTRONIC HygroClip Digital Input / Output OEM customers that use the HygroClip have the choice of using either the analog humidity and temperature output signals or the digital signal input / output (DIO).

More information

Analog-to-Digital Converter. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name

Analog-to-Digital Converter. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name MPSD A/D Lab Exercise Analog-to-Digital Converter Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name Notes: You must work on this assignment with your partner. Hand in a

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

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

EE445L Fall 2015 Final Version B Page 1 of 7

EE445L Fall 2015 Final Version B Page 1 of 7 EE445L Fall 2015 Final Version B Page 1 of 7 Jonathan W. Valvano First: Last: This is the closed book section. You must put your answers in the boxes. When you are done, you turn in the closed-book part

More information

Microprocessors & Interfacing

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

More information

Chapter 12: Analog-to-Digital Converter. EE383: Introduction to Embedded Systems University of Kentucky. Samir Rawashdeh

Chapter 12: Analog-to-Digital Converter. EE383: Introduction to Embedded Systems University of Kentucky. Samir Rawashdeh Chapter 12: Analog-to-Digital Converter EE383: Introduction to Embedded Systems University of Kentucky Samir Rawashdeh With slides based on material by H. Huang Delmar Cengage Learning Basics of A/D Conversion

More information

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

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

More information

The Temperature Controlled Window Matt Aldeman and Chase Brill ME 224 June 2003

The Temperature Controlled Window Matt Aldeman and Chase Brill ME 224 June 2003 The Temperature Controlled Window Matt Aldeman and Chase Brill ME 224 June 2003 Design Objectives The purpose of our device is to control a window based on the temperature of a specified area. The goal

More information

In this lab, you ll build and program a meter that measures voltage, current, power, and energy at DC and AC.

In this lab, you ll build and program a meter that measures voltage, current, power, and energy at DC and AC. EE 155/255 Lab #2 Revision 1, October 5, 2017 Lab2: Energy Meter In this lab, you ll build and program a meter that measures voltage, current, power, and energy at DC and AC. Assigned: October 2, 2017

More information

JDVBS COMTECH TECHNOLOGY CO., LTD. SPECIFICATION

JDVBS COMTECH TECHNOLOGY CO., LTD. SPECIFICATION 1.SCOPE Jdvbs-90502 series is RF unit for Japan digital Bs/cs satellite broadcast reception. Built OFDM demodulator IC. CH VS. IF ISDB-S DVB-S CH IF CH IF BS-1 1049.48 JD1 1308.00 BS-3 1087.84 JD3 1338.00

More information

STELLARIS ERRATA. Stellaris LM3S8962 RevA2 Errata

STELLARIS ERRATA. Stellaris LM3S8962 RevA2 Errata STELLARIS ERRATA Stellaris LM3S8962 RevA2 Errata This document contains known errata at the time of publication for the Stellaris LM3S8962 microcontroller. The table below summarizes the errata and lists

More information

Select the single most appropriate response for each question.

Select the single most appropriate response for each question. ECE 362 Final Lab Practical - 1 - Practice Exam / Solution PART 1: Multiple Choice Select the single most appropriate response for each question. Note that none of the above MAY be a VALID ANSWER. (Solution

More information

EE 314 Spring 2003 Microprocessor Systems

EE 314 Spring 2003 Microprocessor Systems EE 314 Spring 2003 Microprocessor Systems Laboratory Project #9 Closed Loop Control Overview and Introduction This project will bring together several pieces of software and draw on knowledge gained in

More information

EXERCISE 4: A Simple Hi-Fi

EXERCISE 4: A Simple Hi-Fi EXERCISE 4: A Simple Hi-Fi EXERCISE OBJECTIVE When you have completed this exercise, you will be able to summarize the features of types of sensors that can be used with electronic control systems. You

More information

HC08 SCI Operation with Various Input Clocks INTRODUCTION

HC08 SCI Operation with Various Input Clocks INTRODUCTION Order this document by /D HC08 SCI Operation with Various Input Clocks By Rick Cramer CSIC MCU Product Engineering Austin, Texas INTRODUCTION This application note describes the operation of the serial

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

Application Circuits 3. 3V R2. C4 100n G PI O. 0 G PI O S e t u p d a ta G PI O. 5 G PI O M o t i o n I n t G PI O. 4 G PI O.

Application Circuits 3. 3V R2. C4 100n G PI O. 0 G PI O S e t u p d a ta G PI O. 5 G PI O M o t i o n I n t G PI O. 4 G PI O. General Description The is an ultra-low power motion detector controller integrated circuit. The device is ideally suited for battery operated wireless motion sensors that make use of an MCU for handling

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

MICROPROCESSORS AND MICROCONTROLLER 1

MICROPROCESSORS AND MICROCONTROLLER 1 MICROPROCESSORS AND MICROCONTROLLER 1 Microprocessor Applications Data Acquisition System Data acquisition is the process of sampling signals that measure real world physical conditions ( such as temperature,

More information

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

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

More information

ADC Description. ECE/CS 5780/6780: Embedded System Design. External Input Pin Descriptions. ADC Block Diagram

ADC Description. ECE/CS 5780/6780: Embedded System Design. External Input Pin Descriptions. ADC Block Diagram ADC Description ECE/CS 578/678: Embedded System Design Scott. Little Lecture 23: Integrated ADC Configuration 8/-bit resolution. 7 µs, -bit single conversion time. Programmable sample time. External trigger

More information

Computerized Data Acquisition Systems. Chapter 4

Computerized Data Acquisition Systems. Chapter 4 Computerized Data Acquisition Systems Chapter 4 Data Acquisition - Objectives State and discuss in terms a bright high school student would understand the following definitions related to data acquisition

More information

Lab 8 D/A Conversion and Waveform Generation Lab Time: 9-12pm Wednesday Lab Partner: Chih-Chieh Wang (Dennis) EE145M Station 13

Lab 8 D/A Conversion and Waveform Generation Lab Time: 9-12pm Wednesday Lab Partner: Chih-Chieh Wang (Dennis) EE145M Station 13 Lab 8 D/A Conversion and Waveform Generation Bill Hung Lab Time: 9-12pm Wednesday 17508938 Lab Partner: Chih-Chieh Wang (Dennis) EE145M Station 13 Aim Interface with a digital-to-analog (D/A) converter

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

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

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

More information

EE 308 Apr. 24, 2002 Review for Final Exam

EE 308 Apr. 24, 2002 Review for Final Exam Review for Final Exam Numbers Decimal to Hex (signed and unsigned) Hex to Decimal (signed and unsigned) Binary to Hex Hex to Binary Addition and subtraction of fixed-length hex numbers Overflow, Carry,

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

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

Stensat Transmitter Module

Stensat Transmitter Module Stensat Transmitter Module Stensat Group LLC Introduction The Stensat Transmitter Module is an RF subsystem designed for applications where a low-cost low-power radio link is required. The Transmitter

More information

Using a PIC for Analog to Digital Conversion

Using a PIC for Analog to Digital Conversion Using a PIC for Analog to Digital Conversion Luke LaPointe November 12, 2009 Executive Summary: Analog to Digital Conversion or ADC is mandatory when dealing with analog signals that must be stored and

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

Universal laser controller and testunit for SPI Laser Systems and laser units enabled by PWM or analog control

Universal laser controller and testunit for SPI Laser Systems and laser units enabled by PWM or analog control Universal laser controller and testunit for SPI Laser Systems and laser units enabled by PWM or analog control LCT3001 is a universal laser controller / testunit for laser systems controlled by pulse width

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

Quiz 2A EID Page 1. First: Last: (5) Question 1. Put your answer A, B, C, D, E, or F in the box. (7) Question 2. Design a circuit

Quiz 2A EID Page 1. First: Last: (5) Question 1. Put your answer A, B, C, D, E, or F in the box. (7) Question 2. Design a circuit Quiz 2A EID Page 1 First: Last: (5) Question 1. Put your answer A, B, C, D, E, or F in the box. (7) Question 2. Design a circuit (7) Question 3. Show your equations and the final calculation. (5) Question

More information

LAB #10: Analog Interfacing

LAB #10: Analog Interfacing CS/EE 3720 Handout #10 Spring 2004 Myers LAB #10: Analog Interfacing You must checkoff this lab during your lab section of the week of April 19th. Lab writeup is due in class on April 27th. NO LATE CHECKOFFS

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

ADAM-4022T Serial Base Dual Loops PID Controller User s Manual

ADAM-4022T Serial Base Dual Loops PID Controller User s Manual ADAM-422T Serial Base Dual Loops PID Controller User s Manual Warning Message : The ADAM-422T is recommended to be used in general purposed air conditioning application. When using this product in applications

More information

MS2711B Hand-Held Spectrum Analyzer

MS2711B Hand-Held Spectrum Analyzer MS2711B Hand-Held Spectrum Analyzer Programming Manual Hand-Held Spectrum Analyzer, for Measuring, Monitoring and Analyzing Signal Environments WARRANTY The Anritsu product(s) listed on the title page

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

Serial Servo Controller

Serial Servo Controller Document : Datasheet Model # : ROB - 1185 Date : 16-Mar -07 Serial Servo Controller - USART/I 2 C with ADC Rhydo Technologies (P) Ltd. (An ISO 9001:2008 Certified R&D Company) Golden Plaza, Chitoor Road,

More information

Utilizing the Trigger Routing Unit for System Level Synchronization

Utilizing the Trigger Routing Unit for System Level Synchronization Engineer-to-Engineer Note EE-360 Technical notes on using Analog Devices DSPs, processors and development tools Visit our Web resources http://www.analog.com/ee-notes and http://www.analog.com/processors

More information

8-bit Microcontroller with 512/1024 Bytes In-System Programmable Flash. ATtiny4/5/9/10

8-bit Microcontroller with 512/1024 Bytes In-System Programmable Flash. ATtiny4/5/9/10 Features High Performance, Low Power AVR 8-Bit Microcontroller Advanced RISC Architecture 54 Powerful Instructions Most Single Clock Cycle Execution 16 x 8 General Purpose Working Registers Fully Static

More information

Review for Final Exam

Review for Final Exam Review for Final Exam Numbers Decimal to Hex (signed and unsigned) Hex to Decimal (signed and unsigned) Binary to Hex Hex to Binary Addition and subtraction of fixed-length hex numbers Overflow, Carry,

More information

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

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

More information

EE 330 Final Design Projects Fall 2016

EE 330 Final Design Projects Fall 2016 EE 330 Final Design Projects Fall 2016 Students may work individually or in groups of 2 on the final design project. Partners need not be in the same laboratory section. A WEB site from which projects

More information

EE445L Fall 2015 Quiz 2 Page 1 of 5

EE445L Fall 2015 Quiz 2 Page 1 of 5 EE445L Fall 2015 Quiz 2 Page 1 of 5 Jonathan W. Valvano First: Last: November 20, 2015, 10:00-10:50am. Open book, open notes, calculator (no laptops, phones, devices with screens larger than a TI-89 calculator,

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

Lab 5: Control and Feedback. Lab 5: Controls and feedback. Lab 5: Controls and Feedback

Lab 5: Control and Feedback. Lab 5: Controls and feedback. Lab 5: Controls and Feedback Lab : Control and Feedback Lab : Controls and feedback K K You may need a resistor other than exactly K for better sensitivity This embedded system uses the Photo sensor to detect the light intensity of

More information

ANLAN203. KSZ84xx GPIO Pin Output Functionality. Introduction. Overview of GPIO and TOU

ANLAN203. KSZ84xx GPIO Pin Output Functionality. Introduction. Overview of GPIO and TOU ANLAN203 KSZ84xx GPIO Pin Output Functionality Introduction Devices in Micrel s ETHERSYNCH family have several GPIO pins that are linked to the internal IEEE 1588 precision time protocol (PTP) clock. These

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

Parameter Value Unit Notes

Parameter Value Unit Notes Features Single axis measurement from ±5 to ±60 High resolution and accuracy. Low temperature drift, with optional temperature compensation to further improve temperature performance. RS232 and RS485 output

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

Interfacing to Analog World Sensor Interfacing

Interfacing to Analog World Sensor Interfacing Interfacing to Analog World Sensor Interfacing Introduction to Analog to digital Conversion Why Analog to Digital? Basics of A/D Conversion. A/D converter inside PIC16F887 Related Problems Prepared By-

More information

MTS2500 Synthesizer Pinout and Functions

MTS2500 Synthesizer Pinout and Functions MTS2500 Synthesizer Pinout and Functions This document describes the operating features, software interface information and pin-out of the high performance MTS2500 series of frequency synthesizers, from

More information

MICROPROCESSOR TECHNICS II

MICROPROCESSOR TECHNICS II AGH University of Science and Technology Faculty of Computer Science, Electronics and Telecommunication Department of Electronics MICROPROCESSOR TECHNICS II Tutorial 5 Combining ADC & PWM Mariusz Sokołowski

More information

Brian Hanna Meteor IP 2007 Microcontroller

Brian Hanna Meteor IP 2007 Microcontroller MSP430 Overview: The purpose of the microcontroller is to execute a series of commands in a loop while waiting for commands from ground control to do otherwise. While it has not received a command it populates

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

4I36 QUADRATURE COUNTER MANUAL

4I36 QUADRATURE COUNTER MANUAL 4I36 QUADRATURE COUNTER MANUAL 1.3 for Firmware Rev AA05,BB05 or > This page intentionally not blank - Table of Contents GENERAL.......................................................... 1 DESCRIPTION.................................................

More information

Unit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION

Unit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION M i c r o p r o c e s s o r s a n d M i c r o c o n t r o l l e r s P a g e 1 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION Microcomputer system design requires

More information

Asynchronous Serial Interfacing (UART)

Asynchronous Serial Interfacing (UART) Experiment 10 Asynchronous Serial Interfacing (UART) Objective Chapter 5 The objective of this lab is to utilize the Universal Asynchronous Receiver/Transmitter (UART) Asynchronous Serial Communication

More information

The rangefinder can be configured using an I2C machine interface. Settings control the

The rangefinder can be configured using an I2C machine interface. Settings control the Detailed Register Definitions The rangefinder can be configured using an I2C machine interface. Settings control the acquisition and processing of ranging data. The I2C interface supports a transfer rate

More information

Today s Menu. Near Infrared Sensors

Today s Menu. Near Infrared Sensors Today s Menu Near Infrared Sensors CdS Cells Programming Simple Behaviors 1 Near-Infrared Sensors Infrared (IR) Sensors > Near-infrared proximity sensors are called IRs for short. These devices are insensitive

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

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

EE 330 Spring 2012 Project List

EE 330 Spring 2012 Project List EE 330 Spring 2012 Project List The project is to be worked upon in groups of no more than two people. Select a project from the following options. The projects are available on a first come first serve

More information

Mechatronics Laboratory Assignment 3 Introduction to I/O with the F28335 Motor Control Processor

Mechatronics Laboratory Assignment 3 Introduction to I/O with the F28335 Motor Control Processor Mechatronics Laboratory Assignment 3 Introduction to I/O with the F28335 Motor Control Processor Recommended Due Date: By your lab time the week of February 12 th Possible Points: If checked off before

More information

Channels that are not occupied by temperature sensors, can take over alternative functions:

Channels that are not occupied by temperature sensors, can take over alternative functions: Firmware /TEMP12 The /TEMP12 firmware allows you to connect up to twelve digital temperature sensors (type Dallas DS18B20). Data from twelve channels is transferred to your PC via USB. ONE temperature

More information

EE445L Spring 2017 Final Page 1 of 7

EE445L Spring 2017 Final Page 1 of 7 EE445L Spring 2017 Final Page 1 of 7 Jonathan W. Valvano First: Last: EID: This is the closed book section. Calculator is allowed (no laptops, phones, devices with wireless communication). You must put

More information

F4-04ADS 4-Channel Isolated Analog Input

F4-04ADS 4-Channel Isolated Analog Input F4-4ADS 4-hannel Isolated Analog 4 F4-4ADS 4-hannel Isolated Analog Module Specifications The F4-4ADS 4-hannel Isolated Analog module provides several features and benefits. It accepts four differential

More information

EE 308 Spring 2015 The MC9S12 A/D Converter

EE 308 Spring 2015 The MC9S12 A/D Converter The MC9S12 A/D Converter o Introduction to A/D Converters o Single Channel vs Multiple Channels o Singe Conversion vs Multiple Conversions o MC9S12 A/C Registers o Using the MC9S12 A/D Converter o A C

More information

ECE2049: Embedded Computing in Engineering Design C Term Spring Lecture #14: Using the ADC12 Analog-to-Digital Converter

ECE2049: Embedded Computing in Engineering Design C Term Spring Lecture #14: Using the ADC12 Analog-to-Digital Converter ECE2049: Embedded Computing in Engineering Design C Term Spring 2018 Lecture #14: Using the ADC12 Analog-to-Digital Converter Reading for Today: Davies 9.2-3, 9.7, MSP430 User's Guide Ch 28 Reading for

More information

Mercury technical manual

Mercury technical manual v.1 Mercury technical manual September 2017 1 Mercury technical manual v.1 Mercury technical manual 1. Introduction 2. Connection details 2.1 Pin assignments 2.2 Connecting multiple units 2.3 Mercury Link

More information

Instructor: Dr. Phillip Jones

Instructor: Dr. Phillip Jones CprE 288 Introduction to Embedded Systems Exam 2 Review Instructor: Dr. Phillip Jones http://class.ece.iastate.edu/cpre288 1 Announcements http://class.ece.iastate.edu/cpre288 2 EXAM http://class.ece.iastate.edu/cpre288

More information

PRODUCT OVERVIEW OVERVIEW OTP

PRODUCT OVERVIEW OVERVIEW OTP PRODUCT OVERVIEW 1 PRODUCT OVERVIEW OVERVIEW The S3C7324 single-chip CMOS microcontroller has been designed for high performance using Samsung's newest 4-bit CPU core, SAM47 (Samsung Arrangeable Microcontrollers).

More information

TAPR TICC Timestamping Counter Operation Manual. Introduction

TAPR TICC Timestamping Counter Operation Manual. Introduction TAPR TICC Timestamping Counter Operation Manual Revised: 23 November 2016 2016 Tucson Amateur Packet Radio Corporation Introduction The TAPR TICC is a two-channel timestamping counter ("TSC") implemented

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

Mate Serial Communications Guide This guide is only relevant to Mate Code Revs. of 4.00 and greater

Mate Serial Communications Guide This guide is only relevant to Mate Code Revs. of 4.00 and greater Mate Serial Communications Guide This guide is only relevant to Mate Code Revs. of 4.00 and greater For additional information contact matedev@outbackpower.com Page 1 of 20 Revision History Revision 2.0:

More information

COMP 4550 Servo Motors

COMP 4550 Servo Motors COMP 4550 Servo Motors Autonomous Agents Lab, University of Manitoba jacky@cs.umanitoba.ca http://www.cs.umanitoba.ca/~jacky http://aalab.cs.umanitoba.ca Servo Motors A servo motor consists of three components

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

Manual IF2008A IF2008E

Manual IF2008A IF2008E Manual IF2008A IF2008E PCI Basis Board Expansion Board Table of Content 1 Technical Data... 4 1.1 IF2008A Basic Printed Circuit Board... 4 1.2 IF2008E Expansion Board... 5 2 Hardware... 6 2.1 View IF2008A...

More information

CPU 221, CPU 222, CPU 224, CPU 224 XP, CPU 224 XPsi, CPU 226

CPU 221, CPU 222, CPU 224, CPU 224 XP, CPU 224 XPsi, CPU 226 Siemens AG 2008 SIMATIC S7-200 Overview CPU 226 The high-performance package for complex technical tasks With additional PPI port for added flexibility and communication options With 40 inputs/outputs

More information