ECE 271 Microcomputer Architecture and Applications University of Maine. Lab 7: Pulse Width Modulation Instructor: Prof. Yifeng Zhu Spring 2016
|
|
- Malcolm Casey
- 6 years ago
- Views:
Transcription
1 Lab : Pulse Width Modulation Instructor: Prof. Yifeng Zhu pring Goals. Understand the concept of Pulse Width Modulation (PWM). Use PWM to control the LED brightness Pre-Lab Assignment. Read Chapter. PWM Output. Complete the pin and timer configuration tables Lab Demo. Periodically dimming a LED. Use an oscilloscope to measure duty cycles.. omething cool. Note that dimming another LED does not count as something cool. The following gives a few example of something cool. a. Use PWM to control stepper motors to perform micro-stepping b. Use PWM to generate a music tone (a -Hz sine wave, tone A), or play a song Post-Lab Assignment. Complete the post lab report and write your answer in Readme.md Timer Control for Channel of Timer X: The above diagram shows the functions of each pin. The green LED is connected to the pin PE. The following table shows the alternative functions available for these two pins.
2 LED Pin Available Alternative Functions Green PE TIM_CHN/DFDM_CKIN/FMC_D/AI_CK_B/EVENTOUT Migrating from TML to TML: When you use the flowchart in Figure - (Page of textbook) to program a timer as PWM output, pay attention to the following when configuring the timer. Output Enable OCxN TML OCx output is enabled by the CCxE bit in the TIMx_CCER register. Only has main output OCx but no complementary output OCxN TML OCx output is enabled by a combination of the CCxE, CCxNE, MOE, OI and OR bits (TIMx_CCER and TIMx_BDTR registers). Has both OCx and OCxN. Refer to the following Table for controlling the outputs OCx and OCxN.
3 Play a ong with PWM You can play a song by using a speaker, such as PKMEPP. Murata Electronics PKMEPPH-B peaker (Digikey # --ND) Comments about comments Properly documenting is especially important for assembly programs. Thumb of Rule: If you are able to easily and quickly modify your codes one year after your initial development, then your code comments are excellent. When writing comments, you can assume that readers of your codes know the assembly syntax but do not know your program goals, logic, and methodology. Give meaningful name to registers Recommend to using corresponding C code to make comment Instruction Bad comment Good comment add r, r, # ; add one to a register ; array_index++ sub r, r, # ; r = r - ; counter++ mul r, r, r ; r = r * r ; distance = speed * time pecific Requirements For each subroutine (also called function or procedure), your program should have a comment header. Your program should include a register usage page. Give each register a meaningful name. Here is an example. ; Name: strcat ; Description: Concatenate two strings ; Input: r pointer to the first string ; r pointer to the second string ; Returns: r pointer to the resulting string ; usage: ; r array index i of the second string ; r array index j of the resulting string ; r temporary to hold a char loaded from memory strcat PROC... ENDP
4 Lab : Pre-Lab Assignment NOTE: The Green LED (PE ) is connected the Channel N of Timer.. Configure RCC_AHBENR to enable the clock of GPIO Port E tudent Name: AHBENR RNGEN AEEN ADCEN OTGFEN GPIOPHEN GPIOPGEN GPIOPFEN GPIOPEEN GPIOPDEN GPIOPCEN GPIOPBEN GPIOPAEN Mask Write your assembly code below to enable the GPIO B clock:. Configure RCC_APBENR to enable the clock of Timer APBENR DFDMEN AIEN AIEN TIMEN TIMEN TIMEN UARTEN TIMEN PIEN TIMEN DMMCEN FIREWALLEN TIMEN YCFGEN Mask Write your assembly code below to enable the Timer clock:
5 . Configure PE (Green LED) as Alternative Function Mode GPIO Mode: Input (), Output (), AlterFunc (), Analog () GPIO MODER MODER MODER MODER MODER MODER MODER MODER MODER MODER MODER MODER MODER MODER MODER MODER MODER Mask GPIOE Mode MAK = x (in HEX) GPIOE Mode = x (in HEX). Configure and elect the Alternative Function for PE (Green LED) GPIO AFR[] AFRL[:] AFRL[:] AFRL[:] AFRL[:] AFRL[:] AFRL[:] AFRL[:] AFRL[:] MAK VALUE GPIO AFR[] AFRH[:] AFRH[:] AFRH[:] AFRH[:] AFRH[:] AFRH[:] AFRH[:] AFRH[:] MAK VALUE GPIOE Alternative Function [] MAK = x (in HEX) GPIOE Alternative Function [] = x (in HEX) GPIOE Alternative Function [] MAK = x (in HEX) GPIOE Alternative Function [] = x (in HEX)
6 . Complete the following table to configure the PWM output for Channel N of Timer Note that the alternative function of PE is TIMN, not TIM. You need to set the CCNE bit in the TIM_CCER register. Refer to the table given on Page of the lab handout for controlling OCN. Note that you need to make minor changes to the flow chart given in Figure - (Page of textbook). Offset x TIM_CR UIFREMAP CKD ARPE CM DIR OPM UR UDI CEN x TIM_CR MM[:] OI OI OI OIN OI OIN OI OIN OI TI MM [:] CCD CCU CCPC x TIM_MCR M[] ETP ECE ETP ETF[:] MM T[:] OCC M[:] xc TIM_DIER TDE COMDE CCDE CCDE CCDE CCDE UDE BIE TIE COMIE CCIE CCIE CCIE CCIE UIE x TIM_R CIF CIF BIF CCOF CCOF CCOF CCOF BIF BIF TIF COMIF CCIF CCIF CCIF CCIF UIF x TIM_EGR BG BG TG COM CCG CCG CCG CCG UG TIM_CCMR Output Compare mode OCM[] OCM[] OCCE OCM [:] OCPE OCFE CC OCCE OCM [:] OCPE OCFE CC x TIM_CCMR Input Capture mode ICF[:] IC PC CC ICF[:] IC PC CC TIM_CCMR Output Compare mode OCM[] OCM[] OCCE OCM [:] OCPE OCFE CC OCCE OCM [:] OCPE OCFE CC xc TIM_CCMR Input Capture mode ICF[:] IC PC CC ICF[:] IC PC CC
7 Offset x TIM_CCER CCP CCE CCP CCE CCP CCE CCNP CCNE CCP CCE CCNP CCNE CCP CCE CCNP CCNE CCP CCE x TIM_CNT UIFCPY CNT[:] x TIM_PC PC[:] xc TIM_ARR ARR[:] x TIM_RCR REP[:] x TIM_CCR CCR[:] x TIM_CCR CCR[:] xc TIM_CCR CCR[:] x TIM_CCR CCR[:] x TIM_BDTR BKP BKE BKF[:] BKF[:] MOE AOE BKP BKE OR OI LOC K DT[:] x TIM_DCR DBL[:] DBA[:] xc TIM_DMAR DMAB[:] x TIM_OR TI_RMP ETR_ADC_RMP ETR_ADC_RMP
8 Offset x TIM_CCMR Output Compare mode OCM[] OCM[] OCCE OCM [:] OCPE OCFE OCCE OCM [:] OCPE OCFE x TIM_CCR GCC GCC GCC CCR[:] xc TIM_CCR CCR[:] x TIM_OR ETREL [:] BKCMPP BKCMPP BKINP BKDFBKE BKCMPE BKCMPE BKINE x TIM_OR BKCMPP BKCMPP BKINP BKDFBKE BKCMPE BKCMPE BKINE
9 ECE Microcomputer Architecture and Applications Lab : Pulse Width Modulation Lab Demo Demo : Diming an LED Demo : Use an oscilloscope to measure duty cycles. Keep TIM_ARR fixed but set TIM_CCR to three different s. TIM_ARR = TIM_PC = tudent Name: Case TIM_CCR Pulse Width Measured # TIM_CCR = /* TIM_ARR Pulse Period Measured Duty Cycle Measured # TIM_CCR = /* TIM_ARR # TIM_CCR = /* TIM_ARR ECE Microcomputer Architecture and Applications Lab : Pulse Width Modulation Post-Lab Assignment uppose the HE (high-speed external clock) of MHz is selected the clock of a timer. In order to generate Hz square wave with duty cycle of %, how would set up the timer? Indicate your counting mode and show the of ARR, CRR, and PC registers.
ECE 271 Microcomputer Architecture and Applications University of Maine
ECE Microcomputer Architecture and Applications Lab : Pulse Width Modulation Instructor: Prof. Yifeng Zhu Spring Goals. Understand the concept of Pulse Width Modulation (PWM). Use PWM to control the LED
More informationELEC 3040/3050 Lab #7
ELEC 3040/3050 Lab #7 PWM Waveform Generation References: STM32L1xx Technical Reference Manual STM32L100RC Data Sheet Goals of this lab exercise Begin the primary design project for the semester Speed
More informationLab 9. Speed Control of a D.C. motor. Sensing Motor Speed (Tachometer Frequency Method)
Lab 9. Speed Control of a D.C. motor Sensing Motor Speed (Tachometer Frequency Method) Motor Speed Control Project 1. Generate PWM waveform 2. Amplify the waveform to drive the motor 3. Measure motor speed
More informationECE 271 Microcomputer Architecture and Applications University of Maine
Lab 11: Digital to Analog Converter (DAC) Instructor: Prof. Yifeng Zhu Spring 2016 Goals 1. Understand basic concepts of DAC conversions 2. Configure DAC resolution and sampling rate 3. Use a timer to
More informationFor reference only Refer to the latest documents for details
STM32F3 Technical Training For reference only Refer to the latest documents for details General Purpose Timers (TIM2/3/4/5 - TIM12/13/14 - TIM15/16/17 - TIM6/7/18) TIM2/5 TIM3/4/19 TIM12 TIM15 TIM13/14
More informationLab #10: Analog to Digital Converter (ADC) Week of 15 April 2019
ECE271: Microcomputer Architecture and Applications University of Maine Lab #10: Analog to Digital Converter (ADC) Week of 15 April 2019 Goals 1. Understand basic ADC concepts (successive approximation,
More informationAN2581 Application note
AN2581 Application note STM32F10xxx TIM application examples Introduction This application note is intended to provide practical application examples of the STM32F10xxx TIMx peripheral use. This document,
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 informationAN4277 Application note
Application note Using STM32 device PWM shut-down features for motor control and digital power conversion Introduction The purpose of this application note is to describe the STM32 device timer break feature
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 informationRC Filters and Basic Timer Functionality
RC-1 Learning Objectives: RC Filters and Basic Timer Functionality The student who successfully completes this lab will be able to: Build circuits using passive components (resistors and capacitors) from
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 informationDesigning with a Microcontroller (v6)
Designing with a Microcontroller (v6) Safety: In this lab, voltages are less than 15 volts and this is not normally dangerous to humans. However, you should assemble or modify a circuit when power is disconnected
More informationRS-232 Based Low Cost Data IO Card
International Journal of Electrical Engineering. ISSN 0974-2158 Volume 6, Number 1 (2013), pp. 47-54 International Research Publication House http://www.irphouse.com RS-232 Based Low Cost Data IO Card
More informationReview 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 informationDigital Design Laboratory Lecture 7. A/D and D/A
ECE 280 / CSE 280 Digital Design Laboratory Lecture 7 A/D and D/A Analog/Digital Conversion A/D conversion is the process of sampling a continuous signal Two significant implications 1. The information
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 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 informationECE 477 Digital Systems Senior Design Project Rev 8/09. Homework 5: Theory of Operation and Hardware Design Narrative
ECE 477 Digital Systems Senior Design Project Rev 8/09 Homework 5: Theory of Operation and Hardware Design Narrative Team Code Name: _ATV Group No. 3 Team Member Completing This Homework: Sebastian Hening
More informationReview 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 informationEVDP610 IXDP610 Digital PWM Controller IC Evaluation Board
IXDP610 Digital PWM Controller IC Evaluation Board General Description The IXDP610 Digital Pulse Width Modulator (DPWM) is a programmable CMOS LSI device, which accepts digital pulse width data from a
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 informationAN3332 Application note
Application note Generating PWM signals using STM8S-DISCOVERY Application overview This application user manual provides a short description of how to use the Timer 2 peripheral (TIM2) to generate three
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 informationUniversity of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013
Exercise 1: PWM Modulator University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013 Lab 3: Power-System Components and
More informationECE 271 Microcomputer Architecture and Applications University of Maine
ECE 7 Microcomputer Architecture and Applications Instructor: Prof. Yifeng Zhu Spring 0 Goals. Learn to use analog to digital converter to perform single or continuous conversion. Learn to use interrupts
More informationScreening Audiometer
EE89 Electronic Design Lab (EDL) Report, EE Dept, IIT Bombay, December, 00 Screening Audiometer Group No. D0 Mahim Agrawal (0D000) < mahim@ee.iitb.ac.in > Ashok Kumar Bhardwaj (0D00) < ashokkb@ee.iitb.ac.in
More informationLaboratory: Introduction to Mechatronics. Lab 5. DC Motor Speed Control Using PWM
Laboratory: Introduction to Mechatronics Instructor TA: Edgar Martinez Soberanes (eem370@mail.usask.ca) 2017-03-15 Lab 5. DC Motor Speed Control Using PWM Lab Sessions Lab 1. Introduction to the equipment
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 informationHigh Group Hz Hz. 697 Hz A. 770 Hz B. 852 Hz C. 941 Hz * 0 # D. Table 1. DTMF Frequencies
AN-1204 DTMF Tone Generator Dual-tone multi-frequency signaling (DTMF) was first developed by Bell Labs in the 1950 s as a method to support the then revolutionary push button phone. This signaling system
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 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 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 informationEECS 270: Lab 7. Real-World Interfacing with an Ultrasonic Sensor and a Servo
EECS 270: Lab 7 Real-World Interfacing with an Ultrasonic Sensor and a Servo 1. Overview The purpose of this lab is to learn how to design, develop, and implement a sequential digital circuit whose purpose
More informationLab Exercise 6: Digital/Analog conversion
Lab Exercise 6: Digital/Analog conversion Introduction In this lab exercise, you will study circuits for analog-to-digital and digital-to-analog conversion Preparation Before arriving at the lab, you should
More informationDesign Document. Analog PWM Amplifier. Reference: DD00004
Grainger Center for Electric Machinery and Electromechanics Department of Electrical and Computer Engineering University of Illinois at Urbana-Champaign 1406 W. Green St. Urbana, IL 61801 Design Document
More informationHigh Voltage Monolithic LED Driver DESCRIPTION
DEMO CIRCUIT 1521A QUICK START GUIDE LT3956 LT3956 High Voltage Monolithic LED Driver DESCRIPTION Demonstration circuit 1521A is a high voltage monolithic LED driver with an integrated 3.3A, 84V power
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 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 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 informationATmega16A Microcontroller
ATmega16A Microcontroller Timers 1 Timers Timer 0,1,2 8 bits or 16 bits Clock sources: Internal clock, Internal clock with prescaler, External clock (timer 2), Special input pin 2 Features The choice of
More informationPWM LED Color Control
1 PWM LED Color Control Through the use temperature sensors, accelerometers, and switches to finely control colors. Daniyah Alaswad, Joshua Creech, Gurashish Grewal, & Yang Lu Electrical and Computer Engineering
More informationPERIPHERAL INTERFACING Rev. 1.0
This work is licensed under the Creative Commons Attribution-NonCommercial-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/in/deed.en
More informationSelect the single most appropriate response for each question.
ECE 362 Final Lab Practical - 1 - Practice Exam / Solution PART 1: Multiple Choice Select the single most appropriate response for each question. Note that none of the above MAY be a VALID ANSWER. (Solution
More informationFour Quadrant Speed Control of DC Motor with the Help of AT89S52 Microcontroller
Four Quadrant Speed Control of DC Motor with the Help of AT89S52 Microcontroller Rahul Baranwal 1, Omama Aftab 2, Mrs. Deepti Ojha 3 1,2, B.Tech Final Year (Electronics and Communication Engineering),
More informationAC : PERSONAL LAB HARDWARE: A SINE WAVE GENERATOR, LOGIC PULSE SIGNAL, AND PROGRAMMABLE SYNCHRONOUS SERIAL INTERFACE FOR ENHANCING EDUCATION
AC 2010-1527: PERSONAL LAB HARDWARE: A SINE WAVE GENERATOR, LOGIC PULSE SIGNAL, AND PROGRAMMABLE SYNCHRONOUS SERIAL INTERFACE FOR ENHANCING EDUCATION Jeffrey Richardson, Purdue University James Jacob,
More informationChapter 6 PROGRAMMING THE TIMERS
Chapter 6 PROGRAMMING THE TIMERS Force Outputs on Outcompare Input Captures Programmabl e Prescaling Prescaling Internal clock inputs Timer-counter Device Free Running Outcompares Lesson 2 Free Running
More informationMicro Controller Based Ac Power Controller
Wireless Sensor Network, 9, 2, 61-121 doi:1.4236/wsn.9.112 Published Online July 9 (http://www.scirp.org/journal/wsn/). Micro Controller Based Ac Power Controller S. A. HARI PRASAD 1, B. S. KARIYAPPA 1,
More informationCHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER
65 CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER 4.1 INTRODUCTION Many control strategies are available for the control of IMs. The Direct Torque Control (DTC) is one of the most
More informationLaboratory Exercise 1 Microcontroller Board with Driver Board
Laboratory Exercise 1 Microcontroller Board with Driver Board The purpose of this lab exercises is to demonstrate how the Microcontroller Board can be used to control motors connected to the Driver Board
More informationLab 8. Stepper Motor Controller
Lab 8. Stepper Motor Controller Overview of this Session In this laboratory, you will learn: To continue to use an oscilloscope How to use a Step Motor driver chip. Introduction This lab is focused around
More informationSafety Mechanism Implementation for Motor Applications in Automotive Microcontroller
Safety Mechanism Implementation for Motor Applications in Automotive Microcontroller Chethan Murarishetty, Guddeti Jayakrishna, Saujal Vaishnav Automotive Microcontroller Development Post Silicon Validation
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 informationInternational Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering. (An ISO 3297: 2007 Certified Organization)
International Journal of Advanced Research in Electrical, Electronics Device Control Using Intelligent Switch Sreenivas Rao MV *, Basavanna M Associate Professor, Department of Instrumentation Technology,
More informationExercise 1: AND/NAND Logic Functions
Exercise 1: AND/NAND Logic Functions EXERCISE OBJECTIVE When you have completed this exercise, you will be able to determine the operation of an AND and a NAND logic gate. You will verify your results
More informationHOMANN DESIGNS. DigiSpeed. Instruction manual. Version 1.0. Copyright 2004 Homann Designs.
HOMANN DESIGNS DigiSpeed Instruction manual Version 1.0 Copyright 2004 Homann Designs http://www.homanndesigns.com Table of Contents Introduction...3 Features...3 DigiSpeed Operation Description...5 Overview...5
More informationEE 3101 ELECTRONICS I LABORATORY EXPERIMENT 9 LAB MANUAL APPLICATIONS OF IC BUILDING BLOCKS
EE 3101 ELECTRONICS I LABORATORY EXPERIMENT 9 LAB MANUAL APPLICATIONS OF IC BUILDING BLOCKS OBJECTIVES In this experiment you will Explore the use of a popular IC chip and its applications. Become more
More informationPreLab 6 PWM Design for H-bridge Driver (due Oct 23)
GOAL PreLab 6 PWM Design for H-bridge Driver (due Oct 23) The overall goal of Lab6 is to demonstrate a DC motor controller that can adjust speed and direction. You will design the PWM waveform and digital
More informationHello, and welcome to this presentation of the STM32 Infrared Timer. Features of this interface allowing the generation of various IR remote control
Hello, and welcome to this presentation of the STM32 Infrared Timer. Features of this interface allowing the generation of various IR remote control protocols will be presented. 1 The Infrared Timer peripheral
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 informationInstrumentation and Microcontrollers Using Automatic Code Generation
Instrumentation and Microcontrollers Using Automatic Code Generation Using and Applying Microcontrollers for the Rest of Us! Marc E Herniter 2013 Marc E. Herniter, Rose-Hulman Institute of Technology,
More informationPortland State University MICROCONTROLLERS
PH-315 MICROCONTROLLERS INTERRUPTS and ACCURATE TIMING I Portland State University OBJECTIVE We aim at becoming familiar with the concept of interrupt, and, through a specific example, learn how to implement
More informationUniversal Driver Software User Guide FP-GPIO96 FeaturePak 96-bit digital I/O module For Version and later
Universal Driver Software User Guide FP-GPIO96 FeaturePak 96-bit digital I/O module For Version 7.0.0 and later Copyright 2015 Diamond Systems Corporation www.diamondsystems.com 1.0 Table of Contents 1.0
More informationGreen Electronics Library Documentation
Green Electronics Library Documentation Ned Danyliw September 30, 2016 1 Introduction The Green Electronics libraries provide a simplified interface to the STM32F3 microcontroller for the labs in this
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 informationPIC Analog Voltage to PWM Duty Cycle
Name Lab Section PIC Analog Voltage to PWM Duty Cycle Lab 5 Introduction: In this lab you will convert an analog voltage into a pulse width modulation (PWM) duty cycle. The source of the analog voltage
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 informationGraphical Control Panel User Manual
Graphical Control Panel User Manual DS-MPE-DAQ0804 PCIe Minicard Data Acquisition Module For Universal Driver Version 7.0.0 and later Revision A.0 March 2015 Revision Date Comment A.0 3/18/2015 Initial
More informationAdafruit PCA9685 Library Documentation
Adafruit PCA9685 Library Documentation Release 1.0 Radomir Dopieralski Aug 25, 2018 Contents 1 Dependencies 3 2 Usage Example 5 3 Contributing 7 4 Building locally 9 4.1 Sphinx documentation..........................................
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 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 informationI2C Demonstration Board LED Dimmers and Blinkers PCA9531 and PCA9551
I2C 2005-1 Demonstration Board LED Dimmers and Blinkers PCA9531 and PCA9551 Oct, 2006 Intelligent I 2 C LED Controller RGBA Dimmer/Blinker /4/5 Dimmer PCA9531/2/3/4 1 MHz I²C Bus PCA963X PCA9533 PCA9533
More informationTOSHIBA BiCD Digital Integrated Circuit Silicon Monolithic TB62757FPG
TOSHIBA BiCD Digital Integrated Circuit Silicon Monolithic Step Up Type DC/DC Converter for White LED The is a high efficient Step-Up Type DC/DC Converter specially designed for constant current driving
More informationLINE MAZE SOLVING ROBOT
LINE MAZE SOLVING ROBOT EEE 456 REPORT OF INTRODUCTION TO ROBOTICS PORJECT PROJECT OWNER: HAKAN UÇAROĞLU 2000502055 INSTRUCTOR: AHMET ÖZKURT 1 CONTENTS I- Abstract II- Sensor Circuit III- Compare Circuit
More informationEE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter
EE283 Electrical Measurement Laboratory Laboratory Exercise #7: al Counter Objectives: 1. To familiarize students with sequential digital circuits. 2. To show how digital devices can be used for measurement
More informationSwitch/ Jumper Table 1-1: Factory Settings Factory Settings (Jumpers Installed) Function Controlled Activates pull-up/ pull-down resistors on Port 0 digital P7 I/O lines Activates pull-up/ pull-down resistors
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 informationDallastat TM Electronic Digital Rheostat
DS1668, DS1669, DS1669S Dallastat TM Electronic Digital Rheostat FEATURES Replaces mechanical variable resistors Available as the DS1668 with manual interface or the DS1669 integrated circuit Human engineered
More informationModule: Arduino as Signal Generator
Name/NetID: Teammate/NetID: Module: Laboratory Outline In our continuing quest to access the development and debugging capabilities of the equipment on your bench at home Arduino/RedBoard as signal generator.
More information2 A Simple Logic Gate
2 Simple ogic Gate This experiment introduces the student to a simple logic element, an inverter, contained in a 14 Dual-in-line (DIP) package. The student will use equipment skills learned in the first
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 informationMD04-24Volt 20Amp H Bridge Motor Drive
MD04-24Volt 20Amp H Bridge Motor Drive Overview The MD04 is a medium power motor driver, designed to supply power beyond that of any of the low power single chip H-Bridges that exist. Main features are
More informationDirect Current Waveforms
Cornerstone Electronics Technology and Robotics I Week 20 DC and AC Administration: o Prayer o Turn in quiz Direct Current (dc): o Direct current moves in only one direction in a circuit. o Though dc must
More informationCALIFORNIA SOFTWARE LABS
Pulse Shaping on the Palm Pilot With serial, infrared and remote control applications CALIFORNIA SOFTWARE LABS R E A L I Z E Y O U R I D E A S California Software Labs 6800 Koll Center Parkway, Suite 100
More informationDS1669 Dallastat TM Electronic Digital Rheostat
Dallastat TM Electronic Digital Rheostat www.dalsemi.com FEATURES Replaces mechanical variable resistors Electronic interface provided for digital as well as manual control Wide differential input voltage
More informationAnalog-to-Digital Converter. Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name
MPSD A/D Lab Exercise Analog-to-Digital Converter Student's name & ID (1): Partner's name & ID (2): Your Section number & TA's name Notes: You must work on this assignment with your partner. Hand in a
More informationExperiment 4.B. Position Control. ECEN 2270 Electronics Design Laboratory 1
Experiment 4.B Position Control Electronics Design Laboratory 1 Procedures 4.B.1 4.B.2 4.B.3 4.B.4 Read Encoder with Arduino Position Control by Counting Encoder Pulses Demo Setup Extra Credit Electronics
More informationTimer A. Last updated 8/7/18
Last updated 8/7/18 Advanced Timer Functions Output Compare Sets a flag and/or creates an interrupt when the counter value matches a value programmed into a separate register Input Capture Captures the
More informationLBI-38392C IC DATA MAINTENANCE MANUAL LOGIC BOARD U707 OCTAL DATA LATCH 19D902172G1 & G2 TABLE OF CONTENTS
LBI-38392C MAINTENANCE MANUAL LOGIC BOARD 19D902172G1 & G2 U707 OCTAL DATA LATCH IC DATA TABLE OF CONTENTS Page DESCRIPTION........................................... Front.. Cover CIRCUIT ANALYSIS........................................
More informationELG4139: DC to AC Converters
ELG4139: DC to AC Converters Converts DC to AC power by switching the DC input voltage (or current) in a pre-determined sequence so as to generate AC voltage (or current) output. I DC I ac + + V DC V ac
More informationTimer 0 Modes of Operation. Normal Mode Clear Timer on Compare Match (CTC) Fast PWM Mode Phase Corrected PWM Mode
Timer 0 Modes of Operation Normal Mode Clear Timer on Compare Match (CTC) Fast PWM Mode Phase Corrected PWM Mode PWM - Introduction Recall: PWM = Pulse Width Modulation We will mostly use it for controlling
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 informationIntroduction. Theory of Operation
Mohan Rokkam Page 1 12/15/2004 Introduction The goal of our project is to design and build an automated shopping cart that follows a shopper around. Ultrasonic waves are used due to the slower speed of
More informationEIE/ENE 334 Microprocessors
EIE/ENE 334 Microprocessors Lecture 13: NuMicro NUC140 (cont.) Week #13 : Dejwoot KHAWPARISUTH Adapted from http://webstaff.kmutt.ac.th/~dejwoot.kha/ NuMicro NUC140: Technical Ref. Page 2 Week #13 NuMicro
More informationArbStudio Training Guide
ArbStudio Training Guide Summary This guide provides step by step instructions explaining how to create waveforms, use the waveform sequencer, modulate waveforms and generate digital patterns. The exercises
More informationDigital Fundamentals 8/25/2016. Summary. Summary. Floyd. Chapter 1. Analog Quantities
8/25/206 Digital Fundamentals Tenth Edition Floyd Chapter Analog Quantities Most natural quantities that we see are analog and vary continuously. Analog systems can generally handle higher power than digital
More informationCOMP 4550 Servo Motors
COMP 4550 Servo Motors Autonomous Agents Lab, University of Manitoba jacky@cs.umanitoba.ca http://www.cs.umanitoba.ca/~jacky http://aalab.cs.umanitoba.ca Servo Motors A servo motor consists of three components
More informationSatellite STB Bluetooth Speaker Large TFT screen bias Other application which needs high voltage and high current generation
Description The is a high efficiency step-up converter with an internally integrated 20V power MOSEFT. It runs with an optimal 1MHz frequency that enables the use of small external components while still
More informationOcean Controls KT-5198 Dual Bidirectional DC Motor Speed Controller
Ocean Controls KT-5198 Dual Bidirectional DC Motor Speed Controller Microcontroller Based Controls 2 DC Motors 0-5V Analog, 1-2mS pulse or Serial Inputs for Motor Speed 10KHz, 1.25KHz or 156Hz selectable
More information