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

Slides:



Advertisements
Similar presentations
Arduino Real Time Data Download Arduino Mega2560: Download.
Advertisements

Digital Thermostat and Data Logger Brandon Wagner and David Southwick.
ECE FPGA Design: Breakout Semester Project Proposal Derek Rose Richard Wunderlich.
C and Assembler Subroutines: Using the LCD. Outline Basic structure of CW-created C programs for the HC12 How to incorporate assembly code How to use.
9/23/02 Program Flow Chart User Hits Key Setup Key Product Key Product Program Direct Robot Programming Area Perimeters Hopper Position Assembly Area Position.
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.
Lecture – 7 Basic input and output
ECE 447: Lecture 6 Input/Output Interfacing LEDs, Button Switches & Port Multiplexing.
Voice Controlled Helicopter Team Members: Jonathan Lam, Mian Zhu.
PROGRAMMING WITH ARDUINO. Arduino An open-source hardware platform based on an Atmel AVR 8-bit microcontroller and a C++ based IDE Over boards.
PICS in Am Radio Andy Talbot G4JNT. SO what is this magic device ?  The PIC processor is a Single Chip with Input and Output lines that can be programmed.
Embedded Systems Design
1 Starting & Stopping Motors Pico Pico LAB#4. 2 Program a series of three basic ladder logic rungs. These basic rungs are the most common rungs found.
2.0 EMBEDDED CONTROLLER Engr. Hj. Mohamad Fauzi bin Zakaria Department of Mechatronics and Robotics Engineering Faculty of Electrical and Electronic Engineering.
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.
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.
© 2000 Morgan Kaufman Overheads for Computers as Components I/O devices  I/O devices:  serial links  timers and counters  keyboards  displays  analog.
© 2008 RoboRubik1 11 Technical Communication Skills Practicum Theory of Operation and Hardware Design Narrative.
Example 11 Analog-to-Digital Converter Lecture L5.1.
Example 12 Pulse-Width Modulation (PWM): Motors and Servos Lecture L8.1.
Saxion University of Applied Sciences Advanced Microcontrollers A practical approach.
 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.
Programming Microcontrollers in C Lecture L7.1. C Data Types TypeSizeRange char1 byte-128 – 127 unsigned char1 byte0 – 255 Int2 bytes – unsigned.
CSE 171 Lab 11 Digital Voltmeter.
RFID Access Control System Lucius Knight. General System Design  Microcontroller  PSoC CY8C29466  24MHz Bus Frequency  Memory Available  32kB FLASH.
Computer Science Summer term 2012 Final Project Team 2.
Humidity Sensing Fan Controller Jason Huft 05/11/10.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
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
ECE 101 Exploring Electrical Engineering Chapter 7 Data Acquisition Herbert G. Mayer, PSU Status 11/30/2015 Derived with permission from PSU Prof. Phillip.
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.
Arduino Board SHUBHAM PANCHAL: What is an Arduino? A microcontroller board + programming IDE Microcontrollers & Robotics.
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
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
Technical Communication Skills Practicum
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

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