Jordan Barry Victor Brzeski

Slides:



Advertisements
Similar presentations
Lizard Labs Peripheral Reflex System
Advertisements

By: Russ Butler ECE4220 Spring 2012 Dr. DeSouza May 2, 2012.
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
Sistemi Elettronici Programmabili13-1 MULTI OSC + CLOCK FILTER LVD POWER SUPPLY CONTROL 8 BIT CORE ALU PROGRAM MEMORY RAM I2CI2C PORT A SPI PORT B 16-BIT.
TM Freescale Semiconductor Confidential and Proprietary Information. Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc.
SPI Serial Peripheral Interface. SPI Serial Peripheral Interface is communication between two devices, one bit at a time sequential one bit at time over.
10-1 Bard, Tiwari, Telang, Janapa Reddi, Gerstlauer, Valvano, Yerraballi EE 319K Introduction to Embedded Systems Lecture 10: Sampling, Analog-to-Digital.
1 ADC – Analog to Digital Converter and PWM Waveform Generation with EZDSP2812 Professor: Chen, Pei-Chung 陳 沛 仲 Student: Thanh-Nhan Nguyen 阮 誠 仁 2008,
Analog Comparator Positive input chooses bet. PB2 and Bandgap Reference. Negative input chooses bet. PB3 and the 8 inputs of the A/D. ACME= Analog Comparator.
Oscilloscope Watch Teardown. Agenda History and General overview Hardware design: – Block diagram and general overview – Choice of the microcontroller.
0 - 1 © 2007 Texas Instruments Inc, Content developed in partnership with Tel-Aviv University From MATLAB ® and Simulink ® to Real Time with TI DSPs Class-D.
1 Analog-to-Digital Converter (ADC). 2 ADC Features (1/3) ADC conversion rate 1 MHz and 12-bit resolution – 1µs conversion time at 56 MHz – 1.17µs conversion.
ECT 357 Ch 10 Analog to Digital COnversion. Today’s Quote: It’s better to die with a good name than to live with a bad one. It’s better to die with a.
COMP3221: Microprocessors and Embedded Systems Lecture 20: Analog Output Lecturer: Hui Wu Session 2, 2004.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
Department of Electrical Engineering Southern Taiwan University of Science and Technology Robot and Servo Drive Lab. 2015/7/2 Digital Control Strategy.
Digital I/O Connecting to the Outside World
2. Methods for I/O Operations
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Timers and Interrupts Shivendu Bhushan Sonu Agarwal.
In this PPT, all the materials covered up for the PIC microcontroller set-up would be studied. Preliminary skills: Knowing of basic C grammar and basic.
DEEPAK.P MICROPROCESSORS AND APPLICATIONS Mr. DEEPAK P. Associate Professor ECE Department SNGCE 1.
7/23 Timers in Coldfire Processor Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee (480)
ARM Timers.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 8.
MICROPROCESSOR INPUT/OUTPUT
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
Digital to Analogue Converter
Typical Microcontroller Purposes
Lecture 13 A/D Converter & D/A Converter. Outline Basic Operation Single Scan Mode Continuous Scan Mode Group Scan Mode Interrupt Sources Registers D/A.
Alex Apel Stephen Rashid Justin Robinson. Overview System Architecture PC Software Design Block Diagram GUI Design Digital Hardware Design Description.
RS232 #use rs232(baud=9600,xmit=PIN_C6,rcv=PIN_C7
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
CCP MODULES  The CCP module (Capture/Compare/PWM) is a peripheral which allows the user to time and control different events.  Capture Mode provides.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the analog interfaces.
Suleyman Demirel University CSS340 Microprocessor Systems – Lecture 2 ATMEGA328P ARCHITECTURE ANALOG INPUTS.
Embedded Network Interface (ENI). What is ENI? Embedded Network Interface Originally called DPO (Digital Product Option) card Printer without network.
By James Cockrell and Justin Loveless
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
Lab 3: ADC.
PowerBench Programmable Power Supply Dror Lazar Moran Fishman Supervisor: Boaz Mizrahi Winter Semester 2009/10 HS DSL.
Analog to Digital Converter (ADC)
ECE 4330 – Final Project By: John Litzenberger.  A IC temperature sensor (DS1620)  Reads through ADC (pin.0 Port A)  Feedback control for extreme conditions.
Closed Loop Temperature Control Circuit with LCD Display Mike Wooldridge ECE 4330 Embedded Systems.
ECE 101 Exploring Electrical Engineering Chapter 7 Data Acquisition Herbert G. Mayer, PSU Status 11/30/2015 Derived with permission from PSU Prof. Phillip.
The World Leader in High Performance Signal Processing Solutions Linux Industrial I/O Subsystem Open Platform Solutions Michael Hennerich.
EE 319K Introduction to Embedded Systems
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 AD converter.
1. PIC ADC  PIC18F877 has 8 analog input channels i.e. port A pins(RA0 to RA5) and port E pins(RE1 and RE2). These pins are used as Analog input pins.
Case Study #1 Microcontroller System. What is a microcontroller? A microcontroller can be considered a self-contained system with a processor, memory.
Application Case Study Christmas Lights Controller
Application Case Study Security Camera Controller
Timers and Event Counters
Environment Temperature Monitor
Microcontroller Applications
ADC, DAC, and Sensor Interfacing
ECET 340 Education for Service/tutorialrank.com
Introduction to Microprocessors and Microcontrollers
ECE 354 Computer Systems Lab II
PIC18F458 Analog-to-Digital
ADC and DAC Data Converter
MSP432™ MCUs Training Part 6: Analog Peripherals
Prof. Chung-Ta King Department of Computer Science
UNIT 5 Analog signals.
Introduction to Arduino
PIC Microcontroller ADC interfacing Prof. Ashvini Kulkarni
Presentation transcript:

Jordan Barry Victor Brzeski TM4C123g ADC Peripheral Jordan Barry Victor Brzeski

Brief Overview Samples, and converts an analog voltage to a digital value Used frequently in sensor measurement Conversion triggered via SWI or HWI

TM4C123g MCU’s ADC Two ADC modules 12-bit Precision 12 Input Channels each 12-bit Precision Maximum sample rate of 1 million samples/second FIFO buffers Trigger Control SWI Timers Analog Comparators PWM interrupts GPIO Interrupts

Hardware Interface Results are bound via VREFP and VREFN These are internally connected to analog supply voltage/GND Sample Averaging Circuit Averages 4 samples during conversion Useful for noisy signals Differential Sampling Difference of 2 channels Internal Temperature Sensor Can be sampled for chip temp

TI API Example Using the TI API functions listed at: TI's Website we use their short example given: Enable the channel desired for when trigger occurs Trigger sample sequence (Event Occurs eg. SWI, HWI) Wait for ADC conversion to complete (Semaphore) Read value from ADC result FIFO registers

Code Provided by TI

Triggers - \b ADC_TRIGGER_PROCESSOR - A trigger generated by the processor, via the //! ADCProcessorTrigger() function. //! - \b ADC_TRIGGER_COMP0 - A trigger generated by the first analog //! comparator; configured with ComparatorConfigure(). //! - \b ADC_TRIGGER_COMP1 - A trigger generated by the second analog //! - \b ADC_TRIGGER_COMP2 - A trigger generated by the third analog //! - \b ADC_TRIGGER_EXTERNAL - A trigger generated by an input from the Port //! B4 pin. Note that some microcontrollers can //! select from any GPIO using the //! GPIOADCTriggerEnable() function. //! - \b ADC_TRIGGER_TIMER - A trigger generated by a timer; configured with //! TimerControlTrigger(). //! - \b ADC_TRIGGER_PWM0 - A trigger generated by the first PWM generator; //! configured with PWMGenIntTrigEnable(). //! - \b ADC_TRIGGER_PWM1 - A trigger generated by the second PWM generator; //! - \b ADC_TRIGGER_PWM2 - A trigger generated by the third PWM generator; //! - \b ADC_TRIGGER_PWM3 - A trigger generated by the fourth PWM generator; //! - \b ADC_TRIGGER_ALWAYS - A trigger that is always asserted, causing the //! sample sequence to capture repeatedly (so long as //! there is not a higher priority source active).

Interrupts //! - \b ADC_INT_SS0 - interrupt due to ADC sample sequence 0. //! - \b ADC_INT_SS1 - interrupt due to ADC sample sequence 1. //! - \b ADC_INT_SS2 - interrupt due to ADC sample sequence 2. //! - \b ADC_INT_SS3 - interrupt due to ADC sample sequence 3. //! - \b ADC_INT_DMA_SS0 - interrupt due to DMA on ADC sample sequence 0. //! - \b ADC_INT_DMA_SS1 - interrupt due to DMA on ADC sample sequence 1. //! - \b ADC_INT_DMA_SS2 - interrupt due to DMA on ADC sample sequence 2. //! - \b ADC_INT_DMA_SS3 - interrupt due to DMA on ADC sample sequence 3. //! - \b ADC_INT_DCON_SS0 - interrupt due to digital comparator on ADC sample //! sequence 0. //! - \b ADC_INT_DCON_SS1 - interrupt due to digital comparator on ADC sample //! sequence 1. //! - \b ADC_INT_DCON_SS2 - interrupt due to digital comparator on ADC sample //! sequence 2. //! - \b ADC_INT_DCON_SS3 - interrupt due to digital comparator on ADC sample //! sequence 3.

Logic flow – Interrupt Based Set ADC trigger to a SWI, at a specific sampling period Eg. ADC_TRIGGER_TIMER via RTOS Configure ADC to interrupt when ADC sample sequence is complete Eg. ADC_INT_SS0 Sample values from FIFO Register Read from SSFIFO3 Register Send values to PID or bang/bang algorithm Adjust motor duty cycle

Questions Please