Example 11 Analog-to-Digital Converter Lecture L5.1.

Slides:



Advertisements
Similar presentations
Georgia Tech Digital Back-end µHRG interface Curtis Mayberry School of Electrical and Computer Engineering Georgia Institute of Technology January 13 th,
Advertisements

Arduino Real Time Data Download Arduino Mega2560: Download.
ECE 371 Unit 13 - Part 1 Serial Peripheral Interface (SPI)
Example 11 Analog-to-Digital Converter Lecture L5.1.
The Xilinx CPLD Lecture 4.2. XC9500 CPLDs 5 volt in-system programmable (ISP) CPLDs 5 ns pin-to-pin 36 to 288 macrocells (6400 gates) Industry’s.
Analog-to-Digital Converter Chapter 9 MC9S12DP256.
6/21/20151 One-Wire Bus Digital Thermometer Example.
Analog-to-Digital Converters
Analog-to-Digital Converters Lecture L11.2 Section 11.3.
Programming I/O for Embedded System. Page 2 Overview Basis: A DE2 Computer Architecture Parallel I/O 7-Segment Display Basic Manipulating 7-Segment Display.
EEE305 Microcontroller Systems Lecture 5B: Simple I/O Embedded C using PIC microcontrollers Teaching resources on on
Lecture – 7 Basic input and output
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective.
ECE 447: Lecture 6 Input/Output Interfacing LEDs, Button Switches & Port Multiplexing.
Embedded Systems Design
NetBurner MOD 5282 Network Development Kit MCF 5282 Integrated ColdFire 32 bit Microcontoller 2 DB-9 connectors for serial I/O supports: RS-232, RS-485,
Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.
COE4OI5 Engineering Design Chapter 2: UP2/UP3 board.
1 4-Integrating Peripherals in Embedded Systems (cont.)
Lecture 9. - Synchronous Devices require a timing signal. Clock generated Interval Timer Microprocessor Interval Timer Clk PCLK = MHz PCLK (for.
1 4-Integrating Peripherals in Embedded Systems. 2 Introduction Single-purpose processors  Performs specific computation task  Custom single-purpose.
Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion.
The miniDragon+ Board and CodeWarrior Lecture L2.1.
1 Keyboard Controller Design By Tamas Kasza Digital System Design 2 (ECE 5572) Summer 2003 A Project Proposal for.
Digilab2 DIO1 Board. Digilab2 – DIO1 Boards 50 MHz clock mclk Prom socket Spartan IIE.
Instrumentation & Control Engg. Section Electrical Engineering Department Ahmedabad , Gujarat.
Franz Duran INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING Engr. Franz Duran, MEP-ECE RapidSignal Electronics.
© 2008 RoboRubik1 11 Technical Communication Skills Practicum Theory of Operation and Hardware Design Narrative.
Presenter: Chia Siong Goh.  A music synthesizer that uses the 8x8 grid of 64 buttons as its user interface to produce sound and emit light.  3 music.
Presenter: Wan Qi Choo.  A music synthesizer that uses the 8x8 grid of 64 buttons as its user interface to produce sound and emit light.  3 music playing.
Example 12 Pulse-Width Modulation (PWM): Motors and Servos Lecture L8.1.
Saxion University of Applied Sciences Advanced Microcontrollers A practical approach.
Eric Tarun Craig Dave ECE 477 Design Review Team 9  Spring 2006 Galamback Chawla Noble Kristof.
 Home Security and Lighting System  Western Washington University  Jonathon Ross  28 April, 2009.
Revised: Aug 1, ECE263 Embedded System Design Lessons 27, 28 Serial Peripheral Interface.
Alpha/Numeric Keypad Functions using AVR Preliminary Design Review Luke R. Morgan ECE /17/2008.
ECE 371 Microprocessor Interfacing
Computer Science Summer term 2012 Final Project Team 2.
Humidity Sensing Fan Controller Jason Huft 05/11/10.
1 IP Checksum Calculation At the sender r Set the value of the checksum field to 0. r Divide the header into 16-bit words m Add all segments using one’s.
Team 6. Guitar Audio Amplifier Audio Codec DSP Wireless Adapter Motor Array PC LCD Display LED Arrays Pushbutton or RPG Input Device
Examples Lecture L2.2. // Example 1a: Turn on every other segment on 7-seg display #include /* common defines and macros */ #include /* derivative.
AAPT workshop W03 July 26, 2014 Saint Cloud State University, MN, USA
Vishwakarma government engineering college Prepare by. Hardik Jolapara( ) LCD Interfacing with ATmega16.
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
Module 8 Tutorial  An 8086 system is used for controlling the speed of a motor. The motor can operate at 5 different speeds (1- 5).  The speed.
Modem. Introduction: A modem [Modulator -Demodulator] is a device. Data communication means transmitting digital information form one computer to other.
WATER LEVEL INDICATOR AND AUTOMATIC MOTOR SWITCHING SYSTEM
LCD Interfacing using Atmega 32
4-Integrating Peripherals in Embedded Systems (cont.)
Example 14 Real-time Interrupts
4-Integrating Peripherals in Embedded Systems
Example 19 Measuring Pulse Widths Using Interrupts
4-Integrating Peripherals in Embedded Systems
ECET 340 Education for Service/tutorialrank.com
Example 10 ASCII String to Binary Conversion
Example 5 Pushbutton Switches: S1 and S2
Example 9 Binary to ASCII String Conversion
Example 6 Hex Keypad Lecture L3.2.
Example 15 Interrupt-Driven Controller
Example 16 Circular Queue
Example 13 The Serial Peripheral Interface (SPI)
Analog-to-Digital Converters
Example 17 SCI Receive Interrupts
Example 7 Liquid Crystal Display
Ashley Callaway Pat Doherty Nikeshia Ebron Leo Romanovsky
EE4OI4 Engineering Design
8051 Micro Controller.
Example 18 Pulse Train Using Interrupts
Presentation transcript:

Example 11 Analog-to-Digital Converter Lecture L5.1

miniDragon+ Serial cable Reset button Power plug2 pushbutton switches A/D Pot Run/Load switch 7-segment display I/O headers Keypad header LCD Header

A/D Ports MC9S12DP256

ATD0 Pins PADD0 – PADD7 (ch# 0 – 7) Pins 67,69,71,73, 75,77,79,81 ATD1 Pins PAD8 – PAD15 (ch# 0 – 7) Pins 68,70,72,74, 76,78,80,82

ATD0 Pins PADD0 – PADD7 (ch# 0 – 7) Pins 67,69,71,73, 75,77,79,81 ATD1 Pins PAD8 – PAD15 (ch# 0 – 7) Pins 68,70,72,74, 76,78,80,82 Pot

Method of Successive Approximation

// Example 11: A/D Converter -- Pot #include /* common defines and macros */ #include /* derivative information */ #include "main_asm.h" /* interface to the assembly module */ #pragma LINK_INFO DERIVATIVE "mc9s12dp256b" int val; void main(void) { PLL_init();// set system clock frequency to 24 MHz ad0_enable(); // enable a/d converter 0 lcd_init(); // enable lcd while(1) { val = ad0conv(7); // read pot on channel 7 val = val >> 1;// shift 1 bit right (divide by 2) set_lcd_addr(0x40); // display on 2nd row of LCD write_int_lcd(val);// write value in field of 5 ms_delay(100);// delay 0.1 seconds } Example 11