ECE2049: Embedded Computing in Engineering Design C Term Spring 2018 Lecture #15: More ADC Examples
|
|
- Melanie Welch
- 6 years ago
- Views:
Transcription
1 ECE2049: Embedded Computing in Engineering Design C Term Spring 2018 Lecture #15: More ADC Examples Reading for Today: TI example code Reading for Next Class: Users Guide 6.2, Davies Ch HW #4 (on web): Due MONDAY 2/12 (in class) Lab #2 (on web): Bonus sign-off 2/9. Report due TUE 2/13 (in class) Exam #2 TUESDAY 2/13/2018 at 9 am in AK-116 Last Class: Basic settings for the ADC12 registers for a simple single channel, single conversion measurement >> Use code examples >> Add new requirements as needed starting from working code Let's stand back and take stock... >> All of the interfacing to and programming of peripherals is just IO! --> In general purpose computing this is automagically handled by OS... but the embedded systems programmer has to implement it all A Key Part is using code examples to help figure out those peripheral control registers! >> Last class we set up the ADC12 for to take a single measurement from our example current measurement circuit This involved specific settings for ADC12CTL0, ADC12CTL1 and ADC12MCTL0 registers MSP430F5529 Analog-to-Digital Converter (ADC12_A) 16 channel, 12-bit sample and hold ADC (200k samples per second max) 12 External Analog Inputs A0-A7, A12-15 use same pins as Ports 6 & 7 4 internal Analog Inputs A8-A11 Configure and use by setting values in various control registers ADC12CTL0 controls the following options (BOLD = we'll need to set) -- Sample and Hold time (ADC12SHT1x and ADC12SHT0x) -- Multiple sample conversion method (ADC12MSC) -- Reference Voltages (ADC12REF2_5V and ADC12REF_ON) -- ADC12ON bit -- Enable and start conversion (ADC12ENC and ADC12SC) -- Overflow/Conversion time int. enables (ADC120VIE, ADC12TVIE)
2 ADC12CTL1 controls the following options -- Conversion start address (ADC12CSTARTADDx ) -- Sample and hold source select (ADC12SHSx) -- Sample and Hold pulse mode selectable (ADC12SHP) -- Invert signal sample and hold (ADC12ISSH) -- ADC12 clock divider (ADC12DIVx) -- ADC12 clock source select(adc12sselx) -- Conversion mode select (ADC12CONSEQx) -- ADC12 busy/conversion not complete bit (ADC12BSY) >> Results from each channel are stored in the low 12 bits of one of 16 Conversion Memory Registers (ADC12MEMx) x x x x d 11 d 10 d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 >> Each memory register has a corresponding Conversion Memory Control Register (ADC12MCTLx) Each ADC12MCTLx controls the following options for its Memory Register -- **End of Sequence (EOS) = Is this channel the end on a sequence of channels that are to be converted. Needed when converting a sequence of channel** -- Select Reference Voltages (ADC12SREFx) = We'll use ADC12SREF_0 = Vcc and GND or ADC12SREF_1 = Internal Vref+ (either 2.5V or 1.5V) and GND -- Analog input channel selection (ADC12INCHx) = ADC12INCH_0 to ADC12INCH_15 So what does the programmer need to do to use ADC12_A? 1) Select ADC Core Behavior: Using ADC12CTL0 and ADC12CTL1 registers -- Set Clock Source (4 options) and Divider (8 options) We use defaults: ADC12SSELx = 00 = ADC clock ADC12OSC (~5 MHz) ADC12DIVx = 000= divide ADC12CLK by 1 -- Set Sample & Hold behavior Here we'll use a middle of the road setting ADC12SHT0x = ADC12SHT0_9 = 1001b = 9h (384 clk cycles)
3 -- Reference Voltages = This will depend on Application!! (Must clear REFMSTR bit to use internal ref voltages: REFCTL0 &= ~REFMSTR;) --> Turn on Internal Reference Voltages: ADCREFON = 1 --> Select V ref+ as 1.5V or 2.5V: ADC12REF2_5V = 1 (2.5V), = 0 (1.5V) 2) Select Conversion Mode required: ADC12CONSEQx bits in ADC12CTL1 reg -- Single channel or a sequence of channels -- Also single conversion or repeated conversions 3) Select input channel(s): ADC12INCHx bits in ADCMCTLx registers >> ADC12 has 12 (external) analog input signals and 4 internal inputs --> **ADC12's External Analog Inputs A0 A7 and A12-A15 are multiplexed with Port 6 and 7 pins so MUST set PxSEL register! IMPORTANT: Assume input channels A6 and A7 are to be used with ADC12_A. The Port Selection bits for those pins should be set to 1 = Function Select. A6 and A7 are multiplex with digital IO pins P6.6 and P6.7. P6SEL = (BIT6 BIT7); // Set pins to function mode (not IO!) >> Internal input channels 8, 9 & 11 (ADC12INCHx = 1000, 1001, 1011) are connected to different chip reference voltages Could be used to do health monitoring >> Internal input channel 10 (ADC12INCH_10 = 1010b) is connected to an internal Temperature Sensor (WE WILL USE IN LAB 3). 4) Enable appropriate interrupts -- ADC12IE register -- Do not have to use interrupts, but useful for repeated measurements -- Write ISR (should handle all possible ADC interrupts with some default behavior... a switch statement) 5) Enable and Start Conversion(s) -- ADC1CTL0 register //Enable and start (single) conversion (not using ADC int) ADC12CTL0 = ADC12SC + ADC12ENC;
4 // Some code to implement the current sensor example from last // class. Input voltage range 0 to 2.5V corresponds to 0 to 1A. unsigned int in_value; // Reset REFMSTR to hand over control of internal reference // voltages to ADC12_A control registers REFCTL0 &= ~REFMSTR; // Initialize control register ADC12CTL0 = // SHT0x = 9h (384 clk cycles), MCS = 0 = no burst mode // REF2_5V = 1 (2.5V), REFON = 1 = use internal reference volt // and ADC12ON = 1 = turn ADC on ADC12CTL0 = ADC12SHT0_9 ADC12REFON ADC12REF2_5V ADC12ON; // Initialize control register ADC12CTL1 = // ADC12CSTART ADDx = 0000 = start conversion with ADC12MEM0, // ADC12SHSx = 00 = use SW conversion trigger, ADC12SC bits // ADC12SHP = 1 = SAMPCON signal sourced from sampling timer, // ADC12ISSH = 0 = sample input signal not inverted, // ADC12DIVx = 000= divide ADC12CLK by 1, // ADC12SSEL=00= ADC clock ADC12OSC (~5 MHz), // ADC12CONSEQx = 00 single channel, single conversion, // ADC12BUSY = 0 = no ADC operation active ADC12CTL1 = ADC12SHP; // Set conversion mem control register ADC12MCTL0 = // EOS = 0, SREF =001 -->Voltage refs = GND to (Vref+) // INCHx = 0000 = analog input from A0 ADC12MCTL0 = ADC12SREF_1 + ADC12INCH_0; P6SEL = BIT0; // Set Port 6 Pin 0 to FUNCTION mode for ADC ADC12CTL0 &= ~ADC12SC; // clear the start bit //Enable and start (single) conversion (not using ADC int) ADC12CTL0 = ADC12SC + ADC12ENC; // Poll busy bit waiting for conversion to complete while (ADC12CTL1 & ADC12BUSY) no_operation(); in_value = ADC12MEM0 & 0x0FFF; // keep only low 12 bits >>Now what do we do with in_value?
5 Ex: Starting with the code from that example how should we configure the ADC12 registers to take a single measurement from the Internal Temperature Sensor.
6 #include <msp430.h> // Temperature Sensor Calibration Reading at 30 deg C is stored // at addr 1A1Ah. See end of datasheet for TLV table mapping #define CALADC12_15V_30C *((unsigned int *)0x1A1A) // Temperature Sensor Calibration Reading at 85 deg C is stored // at addr 1A1Ch See device datasheet for TLV table mapping #define CALADC12_15V_85C *((unsigned int *)0x1A1C) unsigned int in_temp; int main(void) { volatile float temperaturedegc, temperaturedegf, degc_per_bit; WDTCTL = WDTPW + WDTHOLD; // Stop WDT degc_per_bit = ((float)( ))/ ((float)(caladc12_15v_85c-caladc12_15v_30c)); // Reset REFMSTR to hand over control of internal reference // voltages to ADC12_A control registers REFCTL0 &= ~REFMSTR; // Internal ref is on and set to 1.5V ADC12CTL0 = ADC12SHT0_9 ADC12REFON ADC12ON; ADC12CTL1 = ADC12SHP; // Enable sample timer ADC12MCTL0 = ADC12SREF_1 + ADC12INCH_10; delay_cycles(100); // delay to allow Ref to settle ADC12CTL0 = ADC12ENC; // Enable conversion while(1) { ADC12CTL0 &= ~ADC12SC; ADC12CTL0 = ADC12SC; // clear the start bit // Sampling and conversion start // Single conversion (single channel) // Poll busy bit waiting for conversion to complete while (ADC12CTL1 & ADC12BUSY) no_operation(); in_temp = ADC12MEM0; // Read results from conversion temperaturedegc=(float)(((long)in_temp-caladc12_15v_30c) *degc_per_bit ; // Temperature in Fahrenheit = (9/5)*Tc + 32 temperaturedegf = temperaturedegc * 9.0/ ; } } no_operation(); // SET BREAKPOINT HERE
7 Ex: Now, what if you wanted to monitor both the current through the sensing resistor and the internal temperature of the chip at the same time? How should we set up the ADC registers to do that? >> This is a multiple channel, single conversion problem >> What setting are changed from the single channel problem?
8 #define MA_PER_BIT // =1.0A/4096 // Temperature Sensor Calibration readings for 2.5V from TLV #define CALADC12_25V_30C *((unsigned int *)0x1A22) #define CALADC12_25V_85C *((unsigned int *)0x1A24) unsigned int in_current,in_temp; float milliamps, tempc; // Reset REFMSTR to hand over control of internal reference // voltages to ADC12_A control registers REFCTL0 &= ~REFMSTR; // Initialize control register ADC12CTL0 = // SHT0x=9h (384 clk cycles), MCS=1=burst thru selected chans., // REF2_5V = 1 (2.5V), REFON = 1 = use internal reference volts // and ADC12ON = 1 = turn ADC on ADC12CTL0=ADC12SHT0_9 ADC12REFON ADC12REF2_5V ADC12ON ADC12MSC; // Initialize control register ADC12CTL1 = // ADC12CSTART ADDx = 0000 = start conversion with ADC12MEM0, // ADC12SHSx = 00 = use SW conversion trigger, ADC12SC bits // ADC12SHP = 1 = SAMPCON signal sourced from sampling timer, // ADC12ISSH = 0 = sample input signal not inverted, // ADC12DIVx = 000= divide ADC12CLK by 1, // ADC12SSEL=00= ADC clock ADC12OSC (~5 MHz), // ADC12CONSEQx = 01 = sequence of channels converted once // ADC12BUSY = 0 = no ADC operation active ADC12CTL1 = ADC12SHP+ADC12CONSEQ_1; // Set conversion memory control registers for the 2 channels // ADC12MCTL0: EOS = 0, SREF =001 = voltage refs = GND to Vref+ // INCHx = 0000 ADC12MCTL0 = ADC12SREF_1 + ADC12INCH_0; // ADC12MCTL1: EOS = 1, SREF =001 = voltage refs = GND to Vref+ // INCHx = 1010 ADC12MCTL1 = ADC12SREF_1 + ADC12INCH_10 + ADC12EOS; // Set Port 6 Pins 0 to FUNCTION mode (=1) for ADC12 P6SEL = P6SEL BIT0; // Forever loop to take measurements while (1) { //Enable and start single burst conversion ADC12CTL0 = ADC12SC + ADC12ENC; while (ADC12CTL1 & ADC12BUSY) // poll busy bit no_operation(); in_current = ADC12MEM0 & 0x0FFF; // keep only low 12 bits in_temp = ADC12MEM1 & 0x0FFF; // keep only low 12 bits } milliamps = (float)in_current * MA_PER_BIT; tempc = (float)(((long)in_temp-caladc12_25v_30c)*(85-30))/ (CALADC12_25V_85C - CALADC12_25V_30C) ;
ECE2049: Embedded Computing in Engineering Design A Term Fall 2017 Lecture #16: Interrupts and Event Driven Code
ECE2049: Embedded Computing in Engineering Design A Term Fall 2017 Lecture #16: Interrupts and Event Driven Code Reading for Today: Example code Reading for Next Class: Review all since exam 1 HW #4 (on
More informationECE2049 Homework #4 Analog-to-Digital Conversion and the ADC12 (Due Thursday 2/15/2018 to box outside AK-011 by 9 am)
ECE2049 Homework #4 Analog-to-Digital Conversion and the ADC12 (Due Thursday 2/15/2018 to box outside AK-011 by 9 am) PLEASE (NEATLY) SHOW ALL WORK! Comment all code well. Do not make the grader guess
More informationTAxCTL Register
Timer_A Registers 17.3.1 TAxCTL Register Timer_Ax Control Register Figure 17-16. TAxCTL Register Reserved TASSEL ID MC Reserved TACLR TAIE TAIFG rw-(0) rw-(0) rw-(0) rw-(0) rw-(0) w-(0) rw-(0) rw-(0) 15-10
More informationECE 492 WINTER 2015 GROUP 2. Texas Instruments MSP430-FR Bit ADC Setup Guide
APPLICATION NOTE MIKE PAPPAS ECE 492 WINTER 2015 GROUP 2 Texas Instruments MSP430-FR5969 12-Bit ADC Setup Guide March 2015 Table of Contents Preface... 3 Pin Assignments... 4 Configuring the ADC... 4 Sampling
More informationUC Berkeley EE40/100 Lab Lab 6: Microcontroller Input/Output B. Boser, etc.
UCBerkeleyEE40/100Lab Lab6:MicrocontrollerInput/Output B.Boser,etc. NAME1: NAME2: SID: SID: Microcontrollersareverymuchslimmeddowncomputers.Nodisks,novirtualmemory,nooperatingsystem.Thinkofthem justlikeothercircuitcomponentswiththeaddedbenefitofbeingconfigurablewithaprogram.becauseofthis,
More informationC Language Programming through the ADC and the MSP430 (ESCAPE)
OpenStax-CNX module: m46087 1 C Language Programming through the ADC and the MSP430 (ESCAPE) Matthew Johnson Based on C Language Programming through the ADC and the MSP430 by Matthew Johnson This work
More informationCPE 323 Introduction to Embedded Computer Systems: ADC12 and DAC12. Instructor: Dr Aleksandar Milenkovic Lecture Notes
CPE 323 Introduction to Embedded Computer Systems: ADC12 and DAC12 Instructor: Dr Aleksandar Milenkovic Lecture Notes Outline MSP430: System Architecture ADC12 Module DAC12 Module CPE 323 2 ADC12 Introduction
More informationECE 492 WINTER 2015 GROUP 2. Texas Instruments MSP430-FR Bit ADC Setup Guide
APPLICATION NOTE MIKE PAPPAS ECE 492 WINTER 2015 GROUP 2 Texas Instruments MSP430-FR5969 12-Bit ADC Setup Guide March 2015 Table of Contents Preface... 3 Pin Assignments... 4 Configuring the ADC... 4 Sampling
More informationCONTENTS: Program 1 in C:
CONTENTS: 1) Program 1 in C (Blink) 2) Program 2 in C (Interrupt ) 3) ADC example 4) Addressing Modes 5) Selected Assembly instructions 6) ADC10 register descriptions Program 1 in C: /* * PHYS319 Lab3
More information// Conditions for 9600/4=2400 Baud SW UART, SMCLK = 1MHz #define Bitime_5 0x05*4 // ~ 0.5 bit length + small adjustment #define Bitime 13*4//0x0D
/****************************************************************************** * * * 1. Device starts up in LPM3 + blinking LED to indicate device is alive * + Upon first button press, device transitions
More informationUsing peripherals on the MSP430 (if time)
Today's Plan: Announcements Review Activities 1&2 Programming in C Using peripherals on the MSP430 (if time) Activity 3 Announcements: Midterm coming on Feb 9. Will need to write simple programs in C and/or
More informationCPE/EE 323 Introduction to Embedded Computer Systems Homework V
CPE/EE 323 Introduction to Embedded Computer Systems Homework V 1(15) 2(15) 3(25) 4(25) 5(20) Total Problem #1 (15 points) Power, Low power systems A sensor platform features a microcontroller, a sensor,
More informationCPE 325: Embedded Systems Laboratory Laboratory #11 Tutorial Analog-to-Digital Converter and Digital-to-Analog Converter
CPE 325: Embedded Systems Laboratory Laboratory #11 Tutorial Analog-to-Digital Converter and Digital-to-Analog Converter Aleksandar Milenković Email: milenka@uah.edu Web: http://www.ece.uah.edu/~milenka
More informationECE2049: Embedded Computing in Engineering Design C Term Spring Lecture #7: More Digital IO
ECE2049: Embedded Computing in Engineering Design C Term Spring 2018 Lecture #7: More Digital IO Reading for Today: Davies 7.5-7.9, Users Guide Ch 12 Reading for Next Class: Davies 7.5-7.9, Users Guide
More informationAnalog Peripherals. Introduction. Objectives
Analog Peripherals Introduction In this section we ll take a look at the MSP430 analog peripherals. It s not possible in this limited amount of time to give you a complete overview of the possible analog
More information2.996/6.971 Biomedical Devices Design Laboratory Lecture 6: Microprocessors II
2.996/6.971 Biomedical Devices Design Laboratory Lecture 6: Microprocessors II Instructor: Dr. Hong Ma Oct. 1, 2007 Structure of MSP430 Program 1. Declarations 2. main() 1. Watch-dog timer servicing 2.
More informationECE2049: Embedded Computing in Engineering Design A Term Fall Lecture #8: Making it work: LEDs, Buttons & Keypad
ECE2049: Embedded Computing in Engineering Design A Term Fall 2018 Lecture #8: Making it work: LEDs, Buttons & Keypad Reading for Today: Users Guide Ch 12 Reading for Next Class: Review all reading, notes,
More informationECE2049: Embedded Computing in Engineering Design C Term Spring 2018 Lecture #20: Using SPI The DAC
ECE2049: Embedded Computing in Engineering Design C Term Spring 2018 Lecture #20: Using SPI The DAC Reading for Today: Users Guide Ch 35, MCP4921, data sheet, on-line articles Reading for Next Class: Users
More informationUniversity of Texas at El Paso Electrical and Computer Engineering Department. EE 3176 Laboratory for Microprocessors I.
University of Texas at El Paso Electrical and Computer Engineering Department EE 3176 Laboratory for Microprocessors I Fall 2016 LAB 06 Analog to Digital Conversion Goals: Bonus: Pre Lab Questions: Display
More informationChapter 26 Topic Page 26.1 ADC12 Introduction
Chapter 26 The module is a high-performance 12-bit analog-to-digital converter (ADC). This chapter describes the. The is implemented in the MSP430x43x MSP430x44x, MSP430FG461x devices. Topic Page 26.1
More informationECE2049: Embedded Computing in Engineering Design C Term Spring Lecture #11: More Clocks and Timers
ECE2049: Embedded Computing in Engineering Design C Term Spring 2018 Lecture #11: More Clocks and Timers Reading for Today: Davie's Ch 8.3-8.4, 8.9-8.10, User's Guide Ch. 17 Reading for Next Class: User's
More informationECE2049: Embedded Computing in Engineering Design A Term Fall Lecture #9: Exam Review w/ Solutions
ECE2049: Embedded Computing in Engineering Design A Term Fall 2018 Lecture #9: Exam Review w/ Solutions Reading for Today: Review all reading and notes, Davies Ch 1, 2, 4,7, MSP430 User's Guide Ch 6.1,
More informationECE2049: Embedded Computing in Engineering Design C Term Spring 2019 Lecture #22: MSP430F5529 Operating Mode & the WDT
ECE2049: Embedded Computing in Engineering Design C Term Spring 2019 Lecture #22: MSP430F5529 Operating Mode & the WDT Reading for Today: User's Guide 1.4, Ch 16 Reading for Next Class: Review all since
More informationADC 14. Last updated 9/1/18
Last updated 9/1/18 MSP432 ADC 2 tj MSP432 ADC ARM (AMBA Compliant) ADC 14 bit resolution 1 MSPS conversion rate Integrated S/H 24 external input channels 2 internal input channels Single-ended and Differential
More informationECE PRACTICE EXAM #2 Clocks, Timers, and Digital I/O
ECE2049 -- PRACTICE EXAM #2 Clocks, Timers, and Digital I/O Study HW3, Class Notes, Davies Ch 2.6, 5.8, 8, 9.2-3, 9.7, MSP43F5529 User's Guide Ch 5, 17, 28 Work all problems with your note sheet first
More informationECE2049-E17 Lecture 6 1. ECE2049: Embedded Computing in Engineering Design E Term Lecture #6: Exam Review
ECE2049-E17 Lecture 6 1 ECE2049: Embedded Computing in Engineering Design E Term 2017 Lecture #6: Exam Review Administrivia Exam 1: Next Tuesday (6/6) HW2: Due Tonight at 7pm Lab 1: Due next Tuesday (6/6),
More informationLecture 2 ECEN 4517/5517
Lecture 2 ECEN 4517/5517 Upcoming assignments due: Exp. 1 final report due in D2L dropbox by 5:00 pm Friday Feb. 2 Exp. 3 part 1 prelab assignment due in D2L dropbox by Tuesday Feb. 6 at noon This week:
More informationLecture 2 ECEN 4517/5517
Lecture 2 ECEN 4517/5517 Upcoming assignments due: Exp. 1 final report due in D2L dropbox by 5:00 pm Friday Feb. 1 Exp. 3 part 1 prelab assignment due in D2L dropbox by Tuesday Feb. 5 at noon This week:
More informationECE2049 E17 Lecture 4 MSP430 Architecture & Intro to Digital I/O
ECE2049-E17 Lecture 4 1 ECE2049 E17 Lecture 4 MSP430 Architecture & Intro to Digital I/O Administrivia Homework 1: Due today by 7pm o Either place in box in ECE office or give to me o Office hours tonight!
More informationECE2049: Embedded Systems in Engineering Design Lab Exercise #3 C Term Making a Time and Temperature Display
ECE2049: Embedded Systems in Engineering Design Lab Exercise #3 C Term 2019 Making a Time and Temperature Display In this laboratory you will use the MSP430 and several of its peripherals to implement
More informationPhysics 319 Spring 2015: Introduction to the Programming and Use of Microprocessors
Physics 319 Spring 2015: Introduction to the Programming and Use of Microprocessors Sing Chow, Andrzej Kotlicki, Ryan Wicks, and Carl Michal December 2014 This lab is going to introduce you to the world
More informationECE2049-E18 Lecture 6 Notes 1. ECE2049: Embedded Computing in Engineering Design E Term Lecture #6: Exam Review
ECE2049-E18 Lecture 6 Notes 1 ECE2049: Embedded Computing in Engineering Design E Term 2018 Lecture #6: Exam Review Administrivia Exam 1: Next Tuesday (6/5) HW4: Short assignment, due Tuesday Lab 1: Due
More informationECE2049 Homework #2 The MSP430 Architecture & Basic Digital IO (DUE Friday 9/8/17 at 4 pm in class)
ECE2049 Homework #2 The MSP430 Architecture & Basic Digital IO (DUE Friday 9/8/17 at 4 pm in class) Your homework should be neat and professional looking. You will loose points if your HW is not properly
More informationName: Clint Furrer Project Number: TI003 Project Description: Safety Walking Lights. Description:
Description: This project addresses the concern and problem of pedestrians walking with automotive traffic. I walk to and from a bus stop every morning and evening for work. There is usually low light
More informationEEE394 Microprocessor and Microcontroller Laboratory Lab #6
Exp. No #6 Date: INTERRUPTS AND ADC IN PIC MICROCONTROLLER OBJECTIVE The purpose of the experiment is to configure external interrupt and the ADC in PIC microcontrollers. (i) To flip the LED connected
More informationDesign Document. May Logging DC Wattmeter. Team Member: Advisor : Ailing Mei. Collin Christy. Andrew Kom. Client: Chongli Cai
Design Document May13-06 Logging DC Wattmeter Team Member: Ailing Mei Andrew Kom Chongli Cai David Hoffman Advisor : Collin Christy Client: Garmin International Qiaoya Cui 0 Table of Contents EXECUTIVE
More informationECE2049: Embedded Computing in Engineering Design C Term Spring 2018
ECE2049: Embedded Computing in Engineering Design C Term Spring 2018 Lecture #19: Using SPI The LCD Screen and DAC Reading for Today: User's Manual Ch 35, Davies 101.5, DAC datasheet Reading for Next Class:
More informationUniversity of Texas at El Paso Electrical and Computer Engineering Department. EE 3176 Laboratory for Microprocessors I.
University of Texas at El Paso Electrical and Computer Engineering Department EE 3176 Laboratory for Microprocessors I Fall 2016 LAB 04 Timer Interrupts Goals: Learn about Timer Interrupts. Learn how to
More informationEECS 373 Midterm 2 Fall 2018
EECS 373 Midterm 2 Fall 2018 Name: unique name: Sign the honor code: I have neither given nor received aid on this exam nor observed anyone else doing so. Nor did I discuss this exam with anyone after
More informationWhy embedded systems?
MSP430 Intro Why embedded systems? Big bang-for-the-buck by adding some intelligence to systems. Embedded Systems are ubiquitous. Embedded Systems more common as prices drop, and power decreases. Which
More informationInterface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors
Interface DAC to a PC Engineering 4862 Microprocessors Lecture 22 Cheng Li EN-4012 licheng@engr.mun.ca DAC (Digital-to-Analog Converter) Device used to convert digital pulses to analog signals Two methods
More informationLab 5: EBI and ADC: Digital Voltmeter
Page 1/5 OBJECTIVES Learn how to use C (as an alternative to Assembly) in your programs. Learn how to use an analog-to-digital conversion (ADC, also known as A/D) system on a microcontroller. Use the ADC
More informationECGR 4101/5101, Fall 2016: Lab 1 First Embedded Systems Project Learning Objectives:
ECGR 4101/5101, Fall 2016: Lab 1 First Embedded Systems Project Learning Objectives: This lab will introduce basic embedded systems programming concepts by familiarizing the user with an embedded programming
More informationTimers and Clocks CS4101 嵌入式系統概論. Prof. Chung-Ta King. Department of Computer Science National Tsing Hua University, Taiwan
CS4101 嵌入式系統概論 Timers and Clocks Prof. Chung-Ta King Department of Computer Science, Taiwan Materials from MSP430 Microcontroller Basics, John H. Davies, Newnes, 2008 Recall the Container Thermometer Container
More informationI also provide a purpose-built ADC/DAC board to support the lab experiment. This analogue I/O board in only needed for Part 3 and 4 of VERI.
1 2 I also provide a purpose-built ADC/DAC board to support the lab experiment. This analogue I/O board in only needed for Part 3 and 4 of VERI. However I will now be examining the digital serial interface
More informationCPE 323 Introduction to Embedded Computer Systems: MSP430 System Architecture An Overview
CPE 323 Introduction to Embedded Computer Systems: MSP430 System Architecture An Overview Aleksandar Milenkovic Electrical and Computer Engineering The University of Alabama in Huntsville milenka@ece.uah.edu
More informationImplementation of Temperature Sensor on PICM4520 Microcontroller
Implementation of Temperature Sensor on PICM4520 Microcontroller Application Note Brad Pasbjerg Design Team 7 March 30 th, 2012 1 Table of Contents Cover... 1 Table of Contents... 2 Abstract... 3 Keywords...
More informationTPMC x ADC, 16x/0x DAC and 8x Digital I/O. Version 1.0. User Manual. Issue May 2018
The Embedded I/O Company TPMC533 32x ADC, 16x/0x DAC and 8x Digital I/O Version 1.0 User Manual Issue 1.0.1 May 2018 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 25469 Halstenbek, Germany Phone: +49 (0) 4101 4058
More informationCPCI-AD32. Intelligent DSP Based 32 Channel Analog Input Card for 3U CompactPCI systems REFERENCE MANUAL Version 1.
CPCI-AD32 Intelligent DSP Based 32 Channel Analog Input Card for 3U CompactPCI systems REFERENCE MANUAL 751-10-000-4000 Version 1.0 September 1998 ALPHI TECHNOLOGY CORPORATION 6202 S. Maple Avenue #120
More informationRegister Map and Descriptions
Register Map and Descriptions Table 3-1. PCI-6110E Register Map Register Name Offset Address Type Size Hex Decimal Misc Register Group Serial Command 0D 13 Misc Command 0F 15 Magic 19 25 Write-Only Status
More informationThe digital I/O is configured with user software. The setup and operation of the digital I/O is discussed in the following sections.
Digital I/O Introduction www.ti.com 8. Digital I/O Introduction MSP43 devices have up to eight digital I/O ports implemented, P to P8. Each port has up to eight I/O pins. Every I/O pin is individually
More informationPC/104 Multifunction I/O Board Hardware Manual Model 526 Rev.B February 2009
PC/104 Multifunction I/O Board Hardware Manual Model 526 RevB February 2009 1 Table of Contents TABLE OF CONTENTS2 LIMITED WARRANTY4 SPECIAL HANDLING INSTRUCTIONS4 INTRODUCTION5 PROGRAMMABLE COUNTERS7
More informationInterconnects, Memory, GPIO
Interconnects, Memory, GPIO Dr. Francesco Conti f.conti@unibo.it Slide contributions adapted from STMicroelectronics and from Dr. Michele Magno, others Processor vs. MCU Pipeline Harvard architecture Separate
More informationBy the end of Class. Outline. Homework 5. C8051F020 Block Diagram (pg 18) Pseudo-code for Lab 1-2 due as part of prelab
By the end of Class Pseudo-code for Lab 1-2 due as part of prelab Homework #5 on website due before next class Outline Introduce Lab 1-2 Counting Timers on C8051 Interrupts Laboratory Worksheet #05 Copy
More informationvolatile int results[5]; // variables para la interrupcion del acelerometro //Funciones del acelerometro para mandar y recibir información
Anexo A. Código de programación #include #include #include "lcdlib.h" // variables para guardar informacion de los canales analógicos volatile int results[5]; // variables para la interrupcion
More informationRTC Interface 89C51 DS M. Krishna Kumar MAM/M7/LU17/V1/ Vcc VCC 5 SDA P1.0 6 SCL P KHz 3 BAT 3.
RTC Interface 89C51 Vcc P1.0 10k 10k 5 SDA DS 1307 8 VCC P1.1 6 SCL X1 1 + 3 BAT X2 2 32.768KHz - 3.6V 4 GND INTB\SQW 7 M. Krishna Kumar MAM/M7/LU17/V1/2004 1 RTC Interface contd. DS 1307 is a real time
More informationAsservissement en température numérique d'une cavité ultra-stable au LPL pour le Strontium
Asservissement en température numérique d'une cavité ultra-stable au LPL pour le Strontium condition de stabilité +/- 10mK Résultas obtenus : 1mk sur la journée Compte tenu des constantes de temps d'intégration
More informationExperiment 10 Fall 2012
10/30/12 Experiment 10 Fall 2012 Experiment 10 Fall 2012 Electronic Multi-Meter - A Voltage, Temperature, and Light Meter Due: Week 11 Lab Sessions (11/06/2012) For the voltage, light and temperature gauges
More informationIV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -2 1 UNIT 2
IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -2 1 UNIT 2 1. Block diagram of MSP430x5xx series micro-controller --------------------- 1 2. CPU architecture of MSP430x5xx ------------------------------------------------
More informationFall. Accelerometer RGB LED control Vishal Shah Rebel Sequeira Pratiksha Patil Pranali Dhuru Chris Blackden. George Mason University
Fall 13 Accelerometer RGB LED control Vishal Shah Rebel Sequeira Pratiksha Patil Pranali Dhuru Chris Blackden George Mason University Introduction The ECE 511 course gave us the opportunity to team up
More informationLecture-50 Intel 8255A: Programming and Operating Modes
Lecture-50 Intel 8255A: Programming and Operating Modes Operation Description: There are three basic modes of operation that can be selected by the system software. Mode 0: Basic Input/output Mode 1: Strobes
More informationLecture 5: MSP430 Interrupt
ECE342 Intro. to Embedded Systems Lecture 5: MSP430 Interrupt Ying Tang Electrical and Computer Engineering Rowan University 1 How A Computer React to Inputs? Polling: the processor regularly looks at
More informationWireless Sensor Networks (WSN)
Wireless Sensor Networks (WSN) Operating Systems M. Schölzel Operating System Tasks Traditional OS Controlling and protecting access to resources (memory, I/O, computing resources) managing their allocation
More informationSANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1
SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 Subject: Microcontroller and Interfacing (151001) Class: B.E.Sem V (EC-I & II) Q-1 Explain RISC
More informationLecture test next week
Lecture test next week Write a short program in Assembler doing. You will be given the print outs of all the assembler programs from the manual You can bring any notes you want Today: Announcements General
More informationCPE 325: Embedded Systems Laboratory Laboratory #7 Tutorial MSP430 Timers, Watchdog Timer, Timers A and B
CPE 325: Embedded Systems Laboratory Laboratory #7 Tutorial MSP430 Timers, Watchdog Timer, Timers A and B Aleksandar Milenković Email: milenka@uah.edu Web: http://www.ece.uah.edu/~milenka Objective This
More informationBachelor of Engineering in Computer and Electronic Engineering
Bachelor of Engineering in Computer and Electronic Engineering Computer Engineering 1 Year 2 Semester 3 Autumn 08 Niall O Keeffe Instructions to Candidates: - 2 hours duration Answer 4 out of 6 questions.
More informationReview Activity 1 CALL and RET commands in assembler
Today's Plan: Announcements Review Activity 1 CALL and RET commands in assembler Lecture test Programming in C continue Announcements: Projects: should be starting to think about. You will need to provide
More informationEE251: Tuesday December 4
EE251: Tuesday December 4 Memory Subsystem continued Timing requirements Adding memory beyond 4 Gbyte Time Allowing: Begin Review for Final Exam Homework #9 due Thursday at beginning of class Friday is
More informationSupporting Information for. Simultaneous Atomic-Level Visualization and High Precision
Electronic Supplementary Material (ESI) for RSC Advances. This journal is The Royal Society of Chemistry 2017 Supporting Information for Simultaneous Atomic-Level Visualization and High Precision Photocurrent
More informationEFM8LB1 Analog to Digital Converter (ADC) 2 2 S E P T E M B E R
EFM8LB1 Analog to Digital Converter (ADC) 2 2 S E P T E M B E R 2 0 1 5 Agenda ADC Overview Input Selection, Gain Setting, Reference Option Clock Selection, Timing, Trigger Source Track Time calculation
More information8051 Microcontroller
8051 Microcontroller The 8051, Motorola and PIC families are the 3 leading sellers in the microcontroller market. The 8051 microcontroller was originally developed by Intel in the late 1970 s. Today many
More informationGoal: We want to build an autonomous vehicle (robot)
Goal: We want to build an autonomous vehicle (robot) This means it will have to think for itself, its going to need a brain Our robot s brain will be a tiny computer called a microcontroller Specifically
More informationIncorporating a Capacitive Touch Interface into Your Design
Incorporating a Capacitive Touch Interface into Your Design Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2012 32-bit 8/16-bit
More informationCopyright 2015 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..spring 2015.
Copyright 2015 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..spring 2015. Copyright 2015 by Stephen A. Zajac & Gregory M. Wierzba. All rights reserved..spring 2015. Copyright 2015 by Stephen
More informationED1021 I/O Expander with UART interface & analog inputs
Preliminary Highlights 4.5V 5.5V power supply range. 12 GPIOs. Up to 40mA maximum current in each output except GPIO8 (up to a total device current of 175mA). Most GPIOs can be an input to a 10bit ADC.
More informationHC12 Built-In Hardware
HC12 Built-In Hardware The HC12 has a number of useful pieces of hardware built into the chip. Different versions of the HC12 have slightly different pieces of hardware. We are using the MC68HC912B32 chip
More informationMOTENC-Lite 4-Axis PCI Motion & I/O Control Board. Reference Manual Rev 1.1, June 20, Copyright 2005 VITAL Systems Inc
MOTENC-Lite 4-Axis PCI Motion & I/O Control Board Reference Manual Rev 1.1, June 20, 2005 Copyright 2005 VITAL Systems Inc www.vitalsystem.com This Page Intentionally Left Blank Table of Contents 1. OVERVIEW...
More informationPCI-DAS1602/12 Specifications
Specifications Document Revision 4.2, February, 2010 Copyright 2010, Measurement Computing Corporation Typical for 25 C unless otherwise specified. Specifications in italic text are guaranteed by design.
More informationSENSYLINK Microelectronics Co., LTD. (CT1820S) Single-Wire Digital Temperature Sensor
SENSYLINK Microelectronics (CT1820S) Single-Wire Digital Temperature Sensor CT1820S is a Digital Temperature Sensor with±0.5 C Accuracy over -10 C to 80 C. Single-Wire Digital interface is Compatible with
More informationPSoC Blocks. CY8C20xx6/6A/6AS/6H/6L, CY8C20xx7/7S, CY7C643xx, CY7C604xx, CYONS2xxx, CYONSxNxxxx, CYRF89x35, CY8C20065, CY8C24x93, CY7C69xxx
Datasheet ADCINC V 3.00 001-45836 Rev. *H Incremental ADC Copyright 2008-2013 Cypress Semiconductor Corporation. All Rights Reserved. Resources PSoC Blocks API Memory (Bytes) CapSense I2C/SPI Timer Comparator
More informationMarten van Dijk Department of Electrical & Computer Engineering University of Connecticut
ECE3411 Fall 2016 Wrap Up Review Session Marten van Dijk Department of Electrical & Computer Engineering University of Connecticut Email: marten.van_dijk@uconn.edu Slides are copied from Lecture 7b, ECE3411
More informationFor reference only Refer to the latest documents for details
STM32F3 Technical Training For reference only Refer to the latest documents for details STM32F37x Specific Features/ peripherals Sigma delta analog to digital converter (SDADC) SDADC introduction (1/2)
More informationEE4390 Microprocessors. Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System
EE4390 Microprocessors Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System 1 Overview 68HC12 hardware overview Subsystems Memory System 2 68HC12 Hardware Overview "Copyright of Motorola,
More informationCHAPTER 1 GENERAL INFORMATION
PCL 812 CHAPTER 1 GENERAL INFORMATION 1.1 Introduction The PCL-812PG is a high performance, high speed, multi-function data acquisition card for IBM PC/XT/AT and compatible computers. The high-end specifications
More informationIntroduction to Embedded Systems
Stefan Kowalewski, 4. November 25 Introduction to Embedded Systems Part 2: Microcontrollers. Basics 2. Structure/elements 3. Digital I/O 4. Interrupts 5. Timers/Counters Introduction to Embedded Systems
More informationADC: Analog to Digital Conversion
ECE3411 Fall 2015 Lecture 5b. ADC: Analog to Digital Conversion Marten van Dijk, Syed Kamran Haider Department of Electrical & Computer Engineering University of Connecticut Email: {vandijk, syed.haider}@engr.uconn.edu
More informationAm186ER/Am188ER AMD continues 16-bit innovation
Am186ER/Am188ER AMD continues 16-bit innovation 386-Class Performance, Enhanced System Integration, and Built-in SRAM Am186ER and Am188ER Am186 System Evolution 80C186 Based 3.37 MIP System Am186EM Based
More informationECE2049: Embedded Computing in Engineering Design C Term Spring Lecture #3: Of Integers and Endians (pt. 2)
ECE2049: Embedded Computing in Engineering Design C Term Spring 2018 Lecture #3: Of Integers and Endians (pt. 2) Reading for Today: Davies Ch 2, MSP430 User's Guide Ch 6.1, 6.3 Reading for Next Class:
More informationPC-CARD-DAS16/12 Specifications
Specifications Document Revision 1.1, February, 2010 Copyright 2010, Measurement Computing Corporation Typical for 25 C unless otherwise specified. Specifications in italic text are guaranteed by design.
More informationDigital System Design
Digital System Design by Dr. Lesley Shannon Email: lshannon@ensc.sfu.ca Course Website: http://www.ensc.sfu.ca/~lshannon/courses/ensc350 Simon Fraser University i Slide Set: 15 Date: March 30, 2009 Slide
More informationEmbedded Systems and Software
Embedded Systems and Software Lab 6 Considerations Lab 6 Considerations, Slide 1 Big Picture Connect to internal ADC + 0-5 V - Sensor To COM port on PC LCD RTC Optional: LCD display Lab 6 Considerations,
More informationModels LR-F28335DAQ & LR-F28335DAQ8x8. Technical Reference Manual. August 25, Document Number:
Models LR-F28335DAQ & LR-F28335DAQ8x8 Technical Reference Manual August 25, 2008 Document Number: 9-403-60 Copyright 2008-2011 Link Research All Rights Reserved TABLE OF CONTENTS I.INTRODUCTION... 3 II.
More informationIntel FPGA Voltage Sensor IP Core User Guide
Intel FPGA Voltage Sensor IP Core User Guide Updated for Intel Quartus Prime Design Suite: 17.1 Subscribe Send Feedback Latest document on the web: PDF HTML Contents Contents 1 Intel FPGA Voltage Sensor
More informationPC-CARD-DAS16/16 Specifications
Specifications Document Revision 2.1, February, 2010 Copyright 2010, Measurement Computing Corporation Typical for 25 C unless otherwise specified. Specifications in italic text are guaranteed by design.
More informationMicrocontroller Introduction
Microcontroller Introduction Embedded Systems 2-1 Data Formats for the Renesas Microcontroller Byte Word 8 bits signed & unsigned unsigned range 0 to 255 unsigned char a; 16 bits signed & unsigned unsigned
More informationColor 7 click. PID: MIKROE 3062 Weight: 19 g
Color 7 click PID: MIKROE 3062 Weight: 19 g Color 7 click is a very accurate color sensing Click board which features the TCS3472 color light to digital converter with IR filter, from ams. It contains
More informationOEM-ORP ORP. Reads mV mV. Range. 1 reading every 420ms. Response time. Any type & brand. Supported probes. Single point.
V 2.3 Revised /23/18 OEM-ORP Embedded ORP Circuit Reads Range Response time ORP -19.9mV 19.9mV 1 reading every 420ms Supported probes Calibration Temp compensation Data protocol Default I 2 C address Operating
More informationUSB-1208LS Specifications
Specifications Document Revision 1.1, February, 2010 Copyright 2010, Measurement Computing Corporation Typical for 25 C unless otherwise specified. Specifications in italic text are guaranteed by design.
More informationMPLAB SIM. MPLAB IDE Software Simulation Engine Microchip Technology Incorporated MPLAB SIM Software Simulation Engine
MPLAB SIM MPLAB IDE Software Simulation Engine 2004 Microchip Technology Incorporated MPLAB SIM Software Simulation Engine Slide 1 Welcome to this web seminar on MPLAB SIM, the software simulator that
More information