MICROPROCESSOR TECHNICS II
|
|
- Allen Cummings
- 6 years ago
- Views:
Transcription
1 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 English translation: Paweł Russek
2 1. INTRODUCTION 1.1. GOAL The main objective of this tutorial is to make student familiar with: the correct initialization procedure of AD converter, the Pulse-Width Modulation (PWM) mode of TPM timer, a technics of combining functions of different peripheral devices with the examples of AD converter used for light detector and PWM module used for an LED intensity control, the noise filtering that is gained thanks to an averaging technics and reference signal of 10 Hz in Kinetis L series of microcontroller from Freescale Semiconductor REQUIREMENTS Hardware and software platforms: PC with Keil s uvision v.5 development software installed, the FRDM-KL46Z microcontrollers development kit from Freescale Semiconductor. Prerequisites: fundamental concepts of Digital Electronics, fundamental ideas from the course of Microprocessors Technics part 1. Literature: Lecture materials: Timers and Analog Interfacing. KL46 Sub-Family Reference Manual, Freescale Semiconductor. Kinetis L Peripheral Module Quick Reference, Freescale Semiconductor.
3 2. ANALOG TO DIGITAL CONVERTER The microcontroller MKL46Z256VLL4, which is the heart of FRDM-KL46Z development kit, offers the multichannel, 16-bit Analog-to-Digital Converter (ADC) as its standard peripheral (Fig. 1). Figure 1. A block diagram of the Analog to Digital Converter All ADC inputs can be configured as single-ended inputs that measure voltage with respect to the VREFL signal (typically GND). Some inputs (DADP0..3 on Figure 1) can work as differential inputs (with respect to DADM0..3). These input s properties impact a binary format and resolution (bit-width) of ADC results. There are 8, 10, 12, and 16-bit modes, and the results are unsigned data for single-ended measures. Respectively, there are 9, 11, 13, and 16-bit modes, and the results are U2-coded signed data for differential measures. The
4 reference voltage for ADC (VREFH) is 3.3V on the FRDM-KL46Z board. Please remember, to not exceed the 3.3V value on the ADC inputs. The calibration is the very first step that must be conducted before an ADC can be used for voltage measurements. In your program code, a procedure of the calibration should be preceded by a set-up of the appropriate values in microcontroller s registers. The preparation of your program code for the tutorial exercise goes as follows. Change the definition of CLOCK_SETUP symbol to 1 in the system_mkl46z4.c file. For that selection, the clock configuration for the microcontroller is: o 8 MHz reference clock for the MCG module, o 48 MHz core clock, o 24 MHz bus clock. Enable the module clock for the ADC in the SIM->SCGC6 register. Select the source of the ADC conversion clock, its divider ratio, and the long conversion time in the ADC0->CFG1 (ADICLK, ADIV, ADLSMP). Choose appropriate parameters to provide a conversion clock that does not exceed 4 MHz. Enable the support for the long sample time (ADC0->CFG1[ADLSMP]), select the additional long sample time, and allow 2 additional ADCK cycles to total conversion time to allow higher speed conversion clocks (ADC0->CFG2[ADLSTS:ADHSC]). Select an external reference voltage in ADC0->SC2[REFSEL]. Enable hardware averaging and select the maximum samples averaged in ADC0->SC3[AVGE:AVGS]. Set ADC0->SC3[CAL] to start calibration. The selection of the channel number, conversion mode (single, continuous), compare parameters, result precision, and input mode (single-ended, differential) are not necessary for calibration. Put your code in a waiting loop to allow the calibration to finish; check the eadc0->sc3[cal] bit for 0 to detect that the calibration completed. Check the bit ADC0- >SC3[CALF] is clear to ensure that the calibration was successful. If CALF is set, the error should be handled; for example the calibration procedure should be repeated. On success, the calibration results have to be processed and the results have to be written to appropriate ADC registers. The procedure is as follows: Declare and clear uint16_t variable Add all values in the ADC0->CLPx registers up. Divide the result by 2. Set the most significant bit of the result. Write the result to the ADC0->PG register. Add all values in the ADC0->CLMx registers up. Divide the result by 2. Set the most significant bit of the result. Write the result to the ADC0->MG register The ADC is calibrated and ready to work now, but some other parameters have to be set additionally. Perform the following steps in your program code:
5 Select the input clock as Bus clock/2, set the clock divide ratio to 1, enable the long sample time, and 12-bit resolution mode in ADC0->CFG1 Enable interrupt in the ADC0->SC1[0][AIEN]. Other ADC parameters, like the software triggering of a conversion (ADTRG=0 in ADC0->SC2), are set to their default values after the Reset signal and there is no need to set them in the program. The measurement is triggered by a software when the input channel number is written to the ADC0->SC1[0][ADCH] field. The conversion result is available in the ADC0->R[0] register when the conversion complete flag is set in the SC1[0] register (ADC0->SC1[0][COCO]). 3. PWM MODE OF THE TPM TIMER The TMP timers of Kinetis L microcontrollers (TPM0, TPM1, and TPM2) provide six channels that can be used in various working modes. Here, we will focus our attention on the Pulse Width Modulation (PWM) working mode of the TMP. Other working modes of TPMs are introduced in more details by Tutorial 5 of the laboratory course. For the reference, Table 1 presents all the modes of TMP channels. Table 1. TPM working modes
6 We will put our attention to "Edge-aligned PWM" and "Center-aligned PWM" modes in Table 1. The first mode regards pulse width modulation that is synchronized to a pulse edge. The other mode is pulse width modulation that is synchronized to a pulse center (see lecture notes for detailed explanation). We will choose the "Edge-aligned PWM" in this laboratory exercise. Add the following steps to your program code to initialize the TPM0 timer: Enable the port D and E modules clock in the SIM->SCGC5 register. Enable TMP0 module clock in the SIM->SCGC6 register. Select the TMP0 clock source in SIM->SOPT2[TPMSRC:PLLFLLSEL]. We will use "MCGFLLCLK clock or MCGPLLCLK/2" and "MCGPLLCLK clock with fixed divide by two" in this exercise. Select up counting mode of the TMP0 counter and set the clock divider to 128 in TPM0->SC[CPWMS:PS] Set a range of the TMP0 counter to 4095 (this corresponds to 12-bit range) in the TPM0->MOD register. Choice the "Edge-aligned PWM High-true pulses" in channel 2 of TMP0 in TPM0->CONTROLS[2].CnSC (see Table 1 for right bit values) Specify the "Edge-aligned PWM Low-true pulses" in channel 5 of TMP0 in TPM0->CONTROLS[5].CnSC (see Table 1 for right bit values) Set the PWM duty cycle to 0 in TPM0->CONTROLS[x].CnV for both channels. Enable TMP0 counter in TPM0->SC[CMOD]. 4. EXERCISE Use the red and green LEDs and the light sensor of FRDM-KL46Z to develop the application: Measures the voltage on the collector of the Q1 fototransistor (Fig. 2) and presents the value on LCD display of FRDM-KL46Z (use all four digits of the LCD). The light sensor input is connected to pin PTE22, which corresponds to channel 3 of ADC0. Use an interrupt to collect ADC data. The channel 2 of TPM0, which is in the "Edge-aligned PWM High-true pulses" mode, controls the red LED, and its brightness is proportional to the ambient light intensity (it is brighter in the light). The channel 5 of TPM0, which is in the "Edge-aligned PWM High-true pulses" mode, controls the green LED, and its brightness is reverse proportional to the ambient light intensity (it is brighter in the dark). Change the TMP0 mode from the "Edge-aligned PWM" to "Center-aligned PWM". 5. HOMEWORK 1. Use the SysTick timer to generate 100ms interrupt and implement light measure averaging in your program. Display average value on the LCD. 2. Uses ADC0 to measure the VREFH reference voltage. Display the measured value on LCD. 3. Uses ADC0 to measure the voltage from the temperature sensor that is embedded in the microcontroller. Display the value on LCD.
7 Figure 2. The light sensor of FRDM-KL46z.
Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes
Purpose The intent of this course is to provide you with information about the main features of the S08 Timer/PWM (TPM) interface module and how to configure and use it in common applications. Objectives
More informationMicrocontroller: 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 informationMicroprocessor & Interfacing Lecture Programmable Interval Timer
Microprocessor & Interfacing Lecture 30 8254 Programmable Interval Timer P A R U L B A N S A L A S S T P R O F E S S O R E C S D E P A R T M E N T D R O N A C H A R Y A C O L L E G E O F E N G I N E E
More informationI hope you have completed Part 2 of the Experiment and is ready for Part 3.
I hope you have completed Part 2 of the Experiment and is ready for Part 3. In part 3, you are going to use the FPGA to interface with the external world through a DAC and a ADC on the add-on card. You
More informationTopics Introduction to Microprocessors
Topics 2244 Introduction to Microprocessors Chapter 8253 Programmable Interval Timer/Counter Suree Pumrin,, Ph.D. Interfacing with 886/888 Programming Mode 2244 Introduction to Microprocessors 2 8253/54
More informationHello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its
Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its main features and the application benefits of leveraging
More informationDesigning with STM32F3x
Designing with STM32F3x Course Description Designing with STM32F3x is a 3 days ST official course. The course provides all necessary theoretical and practical know-how for start developing platforms based
More informationSensorless PMSM Field-Oriented Control on Kinetis KV and KE
NXP Semiconductors Document Number: AN5237 Application Note Rev. 3, 10/2016 Sensorless PMSM Field-Oriented Control on Kinetis KV and KE By: Josef Tkadlec 1. Introduction This application note describes
More informationCprE 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 informationDASL 120 Introduction to Microcontrollers
DASL 120 Introduction to Microcontrollers Lecture 2 Introduction to 8-bit Microcontrollers Introduction to 8-bit Microcontrollers Introduction to 8-bit Microcontrollers Introduction to Atmel Atmega328
More informationPeripheral Link Driver for ADSP In Embedded Control Application
Peripheral Link Driver for ADSP-21992 In Embedded Control Application Hany Ferdinando Jurusan Teknik Elektro Universitas Kristen Petra Siwalankerto 121-131 Surabaya 60236 Phone: +62 31 8494830, fax: +62
More informationHardware Flags. and the RTI system. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff
Hardware Flags and the RTI system 1 Need for hardware flag Often a microcontroller needs to test whether some event has occurred, and then take an action For example A sensor outputs a pulse when a model
More informationHello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs.
Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs. 1 The purpose of this course is to provide an introduction to the RL78 timer Architecture.
More informationLM4: The timer unit of the MC9S12DP256B/C
Objectives - To explore the Enhanced Capture Timer unit (ECT) of the MC9S12DP256B/C - To program a real-time clock signal with a fixed period and display it using the onboard LEDs (flashing light) - To
More informationIowa State University Electrical and Computer Engineering. E E 452. Electric Machines and Power Electronic Drives
Electrical and Computer Engineering E E 452. Electric Machines and Power Electronic Drives Laboratory #5 Buck Converter Embedded Code Generation Summary In this lab, you will design the control application
More informationHashemite University Faculty of Engineering Mechatronics Engineering Department. Microprocessors and Microcontrollers Laboratory
Hashemite University Faculty of Engineering Mechatronics Engineering Department Microprocessors and Microcontrollers Laboratory The Hashemite University Faculty of Engineering Department of Mechatronics
More informationSystem Board 6219 MAXREFDES89#: MAX14871 Full-Bridge DC Motor Driver MBED Shield
System Board 6219 MAXREFDES89#: MAX14871 Full-Bridge DC Motor Driver MBED Shield Introduction Brushed DC motors provide cost-effective, convenient motion in many applications ranging from electric toothbrushes
More informationTraining Schedule. Robotic System Design using Arduino Platform
Training Schedule Robotic System Design using Arduino Platform Session - 1 Embedded System Design Basics : Scope : To introduce Embedded Systems hardware design fundamentals to students. Processor Selection
More informationARDUINO / GENUINO. start as professional. short course in a book. faculty of engineering technology
ARDUINO / GENUINO start as professional short course in a book faculty of engineering technology Publisher Universiti Malaysia Pahang Kuantan 2017 Copyright Universiti Malaysia Pahang, 2017 First Published,
More informationEE 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 informationME 461 Laboratory #2 Timers and Pulse-Width Modulation
ME 461 Laboratory #2 Timers and Pulse-Width Modulation Goals: 1. Understand how to use timers to control the frequency at which events occur. 2. Generate PWM signals using Timer A. 3. Explore the frequency
More informationME 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 informationEmbedded Robotics. Software Development & Education Center
Software Development & Education Center Embedded Robotics Robotics Development with ARM µp INTRODUCTION TO ROBOTICS Types of robots Legged robots Mobile robots Autonomous robots Manual robots Robotic arm
More informationMICROPROCESSORS 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νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ
θωερτψυιοπασδφγηϕκλζξχϖβνµθωερτψ υιοπασδφγηϕκλζξχϖβνµθωερτψυιοπασδ φγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκλζ ξχϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµ EE 331 Design Project Final Report θωερτψυιοπασδφγηϕκλζξχϖβνµθωερτψ
More informationECE251: 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 informationSPI Slave to PWM Generation
April 2011 Introduction Reference Design RD1107 Pulse-width modulation (PWM) uses a rectangular pulse wave whose pulse width is modulated resulting in the variation of the average value of the waveform.
More informationEMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER
EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER A Thesis Submitted in partial Fulfillment Of the Requirements of the Degree of Bachelor of Technology In Electronics
More informationLab 5 Timer Module PWM ReadMeFirst
Lab 5 Timer Module PWM ReadMeFirst Lab Folder Content 1) ReadMeFirst 2) Interrupt Vector Table 3) Pin out Summary 4) DriverLib API 5) SineTable Overview In this lab, we are going to use the output hardware
More informationUsing the HCS08 TPM Module In Motor Control Applications
Pavel Grasblum Using the HCS08 TPM Module In Motor Control Applications Designers can choose from a wide range of microcontrollers to provide digital control for variable speed drives. Microcontrollers
More informationMICROCONTROLLER TUTORIAL II TIMERS
MICROCONTROLLER TUTORIAL II TIMERS WHAT IS A TIMER? We use timers every day - the simplest one can be found on your wrist A simple clock will time the seconds, minutes and hours elapsed in a given day
More informationESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab
ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab The purpose of this lab is to learn about sensors and use the ADC module to digitize the sensor signals. You will use the digitized signals
More informationPIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232
PIC Functionality General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232 General I/O Logic Output light LEDs Trigger solenoids Transfer data Logic Input Monitor
More information32-bit ARM Cortex-M0, Cortex-M3 and Cortex-M4F microcontrollers
-bit ARM Cortex-, Cortex- and Cortex-MF microcontrollers Energy, gas, water and smart metering Alarm and security systems Health and fitness applications Industrial and home automation Smart accessories
More informationMeasuring Distance Using Sound
Measuring Distance Using Sound Distance can be measured in various ways: directly, using a ruler or measuring tape, or indirectly, using radio or sound waves. The indirect method measures another variable
More informationµtasker Document µtasker Hardware Timers
Embedding it better... µtasker Document utaskerhwtimers.doc/0.07 Copyright 2016 M.J.Butcher Consulting Table of Contents 1. Introduction...3 2. Timer Control Interface...3 3. Configuring a Single-Shot
More informationGrundlagen Microcontroller Counter/Timer. Günther Gridling Bettina Weiss
Grundlagen Microcontroller Counter/Timer Günther Gridling Bettina Weiss 1 Counter/Timer Lecture Overview Counter Timer Prescaler Input Capture Output Compare PWM 2 important feature of microcontroller
More informationCOSC 3215 Embedded Systems Laboratory
Introduction COSC 3215 Embedded Systems Laboratory Lab 5 Temperature Controller Your task will be to design a temperature controller using the Dragon12 board that will maintain the temperature of an object
More informationME 461 Laboratory #5 Characterization and Control of PMDC Motors
ME 461 Laboratory #5 Characterization and Control of PMDC Motors Goals: 1. Build an op-amp circuit and use it to scale and shift an analog voltage. 2. Calibrate a tachometer and use it to determine motor
More informationM16C/26 APPLICATION NOTE. Using The M16C/26 Timer in PWM Mode. 1.0 Abstract. 2.0 Introduction
APPLICATION NOTE M16C/26 1.0 Abstract PWM or Pulse Width Modulation is useful in DC motor control, actuator control, synthesized analog output, piezo transducers, etc. PWM produces a signal of (typically)
More informationLow Cost PMSM Sensorless Field-Oriented Control Based on KE02
NXP Semiconductors Document Number: AN5294 Application Note Rev. 1, 05/2017 Low Cost PMSM Sensorless Field-Oriented Control Based on KE02 1. Introduction This application note describes the design of a
More informationTimer A (0 and 1) and PWM EE3376
Timer A (0 and 1) and PWM EE3376 General Peripheral Programming Model l l l l Each peripheral has a range of addresses in the memory map peripheral has base address (i.e. 0x00A0) each register used in
More informationuc Crash Course Whats is covered in this lecture Joshua Childs Joshua Hartman A. A. Arroyo 9/7/10
uc Crash Course Joshua Childs Joshua Hartman A. A. Arroyo Whats is covered in this lecture ESD Choosing A Processor GPIO USARTS o RS232 o SPI Timers o Prescalers o OCR o ICR o PWM ADC Interupts 1 ESD KILLS!
More informationELCT 912: Advanced Embedded Systems
ELCT 912: Advanced Embedded Systems Lecture 5: PIC Peripherals on Chip Dr. Mohamed Abd El Ghany, Department of Electronics and Electrical Engineering The PIC Family: Peripherals Different PICs have different
More informationLab 7 ADC Apr
Lab 7 ADC Apr. 2016 1 Objective 1. To be familiar with analog to digital converter module in LPC2138. Introduction Analog-to-digital conversion (ADC) is necessary because, while embedded systems deal with
More informationEE251: 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 informationHello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which
Hello, and welcome to this presentation of the STM32 Digital Filter for Sigma-Delta modulators interface. The features of this interface, which behaves like ADC with external analog part and configurable
More information8253 functions ( General overview )
What are these? The Intel 8253 and 8254 are Programmable Interval Timers (PITs), which perform timing and counting functions. They are found in all IBM PC compatibles. 82C54 which is a superset of the
More informationReal Time Embedded Systems. Lecture 1 January 17, 2012
Analog Real Time Embedded Systems www.atomicrhubarb.com/embedded Lecture 1 January 17, 2012 Topic Section Topic Where in the books Catsoulis chapter/page Simon chapter/page Zilog UM197 (ZNEO Z16F Series
More informationEE 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 informationRoland Kammerer. 13. October 2010
Peripherals Roland Institute of Computer Engineering Vienna University of Technology 13. October 2010 Overview 1. Analog/Digital Converter (ADC) 2. Pulse Width Modulation (PWM) 3. Serial Peripheral Interface
More informationGUJARAT TECHNOLOGICAL UNIVERSITY
Type of course: Engineering (Elective) GUJARAT TECHNOLOGICAL UNIVERSITY ELECTRICAL ENGINEERING (09) ADVANCE MICROCONTROLLERS SUBJECT CODE: 260909 B.E. 6 th SEMESTER Prerequisite: Analog and Digital Electronics,
More informationEE445L 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 informationEE445L 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 information5 Channel Multifunctional PWM Controller. HomLiCon LCH5T. Technical Specifications
5 Channel Multifunctional PWM Controller Application Control of groups LED and LED strips Control of relays, small motors, fans, etc. Control models Technical Specifications Number of Channels 5 Color
More informationEE445L 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 informationMonitoring Temperature using LM35 and Arduino UNO
Sharif University of Technology Microprocessor Arduino UNO Project Monitoring Temperature using LM35 and Arduino UNO Authors: Sadegh Saberian 92106226 Armin Vakil 92110419 Ainaz Hajimoradlou 92106142 Supervisor:
More informationWhen to use an FPGA to prototype a controller and how to start
When to use an FPGA to prototype a controller and how to start Mark Corless, Principal Application Engineer, Novi MI Brad Hieb, Principal Application Engineer, Novi MI 2015 The MathWorks, Inc. 1 When to
More informationMechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators
Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators Ahmed Okasha, Assistant Lecturer okasha1st@gmail.com Objective Have a
More informationMicrocontrollers: Lecture 3 Interrupts, Timers. Michele Magno
Microcontrollers: Lecture 3 Interrupts, Timers Michele Magno 1 Calendar 07.04.2017: Power consumption; Low power States; Buses, Memory, GPIOs 20.04.2017 Serial Communications 21.04.2017 Programming STM32
More informationP89LPC935 ADC/DAC Tutorial
P89LPC935 ADC/DAC Tutorial The P89LPC935 microcontroller has 2 on-board analog to digital modules Each module contains a 4-channel 8-bit successive approximation ADC 89LPC935 ADC/DAC Tutorial 1 ADC Module
More informationUSB4. 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 informationDNT24MCA DNT24MPA. Low Cost 2.4 GHz FHSS Transceiver Modules with I/O. DNT24MCA/MPA Absolute Maximum Ratings. DNT24MCA/MPA Electrical Characteristics
- 2.4 GHz Frequency Hopping Spread Spectrum Transceivers - Direct Peer-to-peer Low Latency Communication - Transmitter RF Power Configurable - 10 or 63 mw - Built-in Chip Antenna - 250 kbps RF Data Rate
More information3.3V regulator. JA H-bridge. Doc: page 1 of 7
Cerebot Reference Manual Revision: February 9, 2009 Note: This document applies to REV B-E of the board. www.digilentinc.com 215 E Main Suite D Pullman, WA 99163 (509) 334 6306 Voice and Fax Overview The
More informationFlexTimer and ADC Synchronization
Freescale Semiconductor Application Note AN3731 Rev. 0, 06/2008 FlexTimer and ADC Synchronization How FlexTimer is Used to Synchronize PWM Reloading and Hardware ADC Triggering by: Eduardo Viramontes Systems
More informationarxiv:physics/ v1 [physics.ed-ph] 19 Oct 2004
I. SIMPLE 8085 µp COMPATIBLE I/O CARD with Arti Dwivedi Abstract A simple interfacing project with the 8085-microprocessor kits available in under graduate college labs has been discussed. The interface
More informationGenerating DTMF Tones Using Z8 Encore! MCU
Application Note Generating DTMF Tones Using Z8 Encore! MCU AN024802-0608 Abstract This Application Note describes how Zilog s Z8 Encore! MCU is used as a Dual-Tone Multi- (DTMF) signal encoder to generate
More informationArduino Microcontroller Processing for Everyone!: Third Edition / Steven F. Barrett
Arduino Microcontroller Processing for Everyone!: Third Edition / Steven F. Barrett Anatomy of a Program Programs written for a microcontroller have a fairly repeatable format. Slight variations exist
More informationTemperature Monitoring and Fan Control with Platform Manager 2
August 2013 Introduction Technical Note TN1278 The Platform Manager 2 is a fast-reacting, programmable logic based hardware management controller. Platform Manager 2 is an integrated solution combining
More informationDesign and Implementation of AT Mega 328 microcontroller based firing control for a tri-phase thyristor control rectifier
Design and Implementation of AT Mega 328 microcontroller based firing control for a tri-phase thyristor control rectifier 1 Mr. Gangul M.R PG Student WIT, Solapur 2 Mr. G.P Jain Assistant Professor WIT,
More informationEE 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 informationFABO ACADEMY X ELECTRONIC DESIGN
ELECTRONIC DESIGN MAKE A DEVICE WITH INPUT & OUTPUT The Shanghaino can be programmed to use many input and output devices (a motor, a light sensor, etc) uploading an instruction code (a program) to it
More informationEmbedded Hardware Design Lab4
Embedded Hardware Design Lab4 Objective: Controlling the speed of dc motor using light sensor (LDR). In this lab, we would want to control the speed of a DC motor with the help of light sensor. This would
More informationUsing 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 informationUsing FTM, PDB, and ADC on KE1xF to Drive Dual PMSM FOC and PFC
NXP Semiconductors Document Number: AN5380 Application Note Rev. 0, 11/2016 Using FTM, PDB, and ADC on KE1xF to Drive Dual PMSM FOC and PFC 1. Introduction This application note describes the design for
More informationREAD THIS FIRST: *One physical piece of 8.5x11 paper (you may use both sides). Notes must be handwritten.
READ THIS FIRST: We recommend first trying this assignment in a single sitting. The midterm exam time period is 80 minutes long. Find a quiet place, grab your cheat sheet* and a pencil, and set a timer.
More informationEE 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 informationUsing the Z8 Encore! XP Timer
Application Note Using the Z8 Encore! XP Timer AN013104-1207 Abstract Zilog s Z8 Encore! XP microcontroller consists of four 16-bit reloadable timers that can be used for timing, event counting or for
More informationMC9S08MP16 High Speed BLDC Sensorless Drive Petr Staszko Freescale Czech System Laboratories Roznov pod Radhostem, Czech Republic
Freescale Semiconductor Application Note Document Number: AN4142 Rev. 0, 10/2010 MC9S08MP16 High Speed BLDC Sensorless Drive by: Petr Staszko Freescale Czech System Laboratories Roznov pod Radhostem, Czech
More informationTechnical Brief FAQ (FREQUENCLY ASKED QUESTIONS) For further information, please contact Crystal Semiconductor at (512) or 1 (800)
Technical Brief FAQ (FREQUENCLY ASKED QUESTIONS) 1) Do you have a four channel part? Not at this time, but we have plans to do a multichannel product Q4 97. We also have 4 digital output lines which can
More informationEE 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 informationProgramming and Interfacing
AtmelAVR Microcontroller Primer: Programming and Interfacing Second Edition f^r**t>*-**n*c contents Preface xv AtmelAVRArchitecture Overview 1 1.1 ATmegal64 Architecture Overview 1 1.1.1 Reduced Instruction
More informationME 333 Assignment 7 and 8 PI Control of LED/Phototransistor Pair. Overview
ME 333 Assignment 7 and 8 PI Control of LED/Phototransistor Pair Overview For this assignment, you will be controlling the light emitted from and received by an LED/phototransistor pair. There are many
More informationCSE 3215 Embedded Systems Laboratory Lab 5 Digital Control System
Introduction CSE 3215 Embedded Systems Laboratory Lab 5 Digital Control System The purpose of this lab is to introduce you to digital control systems. The most basic function of a control system is to
More informationEE445L Fall 2015 Quiz 2A Solution Page 1
EE445L Fall 2015 Quiz 2A Solution Page 1 Jonathan W. Valvano First: Last: Solution November 20, 2015, 10:00-10:50am. Open book, open notes, calculator (no laptops, phones, devices with screens larger than
More informationGeneral Purpose Controller Software for Controls Lab
General Purpose Controller Software for Controls Lab Andrew J. Blauch School of Engineering Grand Valley State University Abstract Many industrial control compensators are implemented using microcontrollers.
More informationXGATE Library: PWM Driver Generating flexible PWM signals on GPIO pins
Freescale Semiconductor Application Note AN3225 Rev. 0, 2/2006 XGATE Library: PWM Driver Generating flexible PWM signals on GPIO pins by: Armin Winter, Field Applications, Wiesbaden Daniel Malik, MCD Applications,
More informationFreescale Semiconductor Application Note. Document Number: AN3467 Rev. 0, 05/2007
Freescale Semiconductor Application Note Document Number: AN3467 Rev. 0, 05/2007 Using Processor Expert with Flexis TM Microcontrollers by: Bruno Castelucci / Paulo Knirsch Field Application Engineers
More informationTimer/Counter with PWM
Timer/Counter with PWM The AVR Microcontroller and Embedded Systems using Assembly and C) by Muhammad Ali Mazidi, Sarmad Naimi, and Sepehr Naimi ATMEL 8-bit AVR Microcontroller with 4/8/16/32K Bytes In-System
More informationDNT90MCA DNT90MPA. Low Cost 900 MHz FHSS Transceiver Modules with I/O
- 900 MHz Frequency Hopping Spread Spectrum Transceivers - Direct Peer-to-peer Low Latency Communication - Transmitter Power Configurable to 40 or 158 mw - Built-in 0 dbi Chip Antenna - 100 kbps RF Data
More informationHello, 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 informationLaserPING Rangefinder Module (#28041)
Web Site: www.parallax.com Forums: forums.parallax.com Sales: sales@parallax.com Technical:support@parallax.com Office: (916) 624-8333 Fax: (916) 624-8003 Sales: (888) 512-1024 Tech Support: (888) 997-8267
More information02 Digital Input and Output
week 02 Digital Input and Output RGB LEDs fade with PWM 1 Microcontrollers utput ransducers actuators (e.g., motors, buzzers) Arduino nput ransducers sensors (e.g., switches, levers, sliders, etc.) Illustration
More informationTemperature Monitoring and Fan Control with Platform Manager 2
Temperature Monitoring and Fan Control September 2018 Technical Note FPGA-TN-02080 Introduction Platform Manager 2 devices are fast-reacting, programmable logic based hardware management controllers. Platform
More informationCHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM
74 CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM 4.1 LABORATARY SETUP OF STATCOM The laboratory setup of the STATCOM consists of the following hardware components: Three phase auto transformer used as a 3
More informationPrototyping Unit for Modelbased Applications
PUMA Software and hardware at the highest level Prototyping Unit for Modelbased Applications With PUMA, we offer a compact and universal Rapid-Control-Prototyping-Platform optionally with integrated power
More informationCastle Creations, INC.
Castle Link Live Communication Protocol Castle Creations, INC. 6-Feb-2012 Version 2.0 Subject to change at any time without notice or warning. Castle Link Live Communication Protocol - Page 1 1) Standard
More informationInstrument Cluster Display. Grant Scott III Erin Lawler Mike Carlson
Instrument Cluster Display Grant Scott III Erin Lawler Mike Carlson ECE 570 December 4 th, 2014 Presentation Outline Introduction and Motivation Features Temperature Sensing LCD Display Fahrenheit/Celsius
More informationLecture 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 informationPulse Generation. Pulsout. 555 Timer. Software version of pulse generation Pulsout pin, Period
Lecture 9 Pulse Generation Pulsout Software version of pulse generation Pulsout pin, Period Pin: specified I/O pin from 0 to 15 Period: 2 µsec per each unit 555 Timer Hardware version of pulse generation
More information