Team 7 Chaofan Chen Dhruvmin Gandhi Larry Gerhardt Pulse-width Modulation with the TIVA C.

Slides:



Advertisements
Similar presentations
EMS1EP Lecture 8 Pulse Width Modulation (PWM)
Advertisements

More fun with Timer/Counters
1 ADC – Analog to Digital Converter and PWM Waveform Generation with EZDSP2812 Professor: Chen, Pei-Chung 陳 沛 仲 Student: Thanh-Nhan Nguyen 阮 誠 仁 2008,
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.
IO Controller Module Arbitrates IO from the CCP Physically separable from CCP –Can be used as independent data logger or used in future projects. Implemented.
ATtiny2313 Timers/Counters CS-423 Dick Steflik. What Do You Use Timers For? Timing of events (internal or external)‏ Scheduling Events Measuring the width.
Infineon Technologies Corp. June 99 1 HOT167-1 Version 2.0 F PWMmax = x 50ns = 78 kHz Pulse Width Modulation Unit (PWM) (20 MHz)  4 independent.
8254 Modes Made by: Ryan wahab (8) Modes Gate is low the count will be paused Gate is high Will continue counting Mode 0: An events counter.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Pulse Width Modulation modes
Pulse Width Modulation Professor: Dr. Miguel Alonso Jr.
Servo Control Using Analog Signal Obtain “analog” input using analogRead().
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.
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
Lecture 29: LM3S9B96 Microcontroller – Pulse Width Modulator (PWM)
September, 2007ENGR Low-Level Robot Control Mechatronics: Motors, sensors & embedded controls.
Collaborative mobile robots Rory McGrath Progress Report.
PWM ECE 4437-EMBEDDED SYSTEMS DR. GLOVER CHRISTOPHER AHN & KHOA VAN.
Timers ELEC 330 Digital Systems Engineering Dr. Ron Hayne
Timer Peripherals.
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses.
1 Lab 5: Controls and feedback. 2 Lab 5: Control and Feedback This embedded system uses the Photo sensor to detect the light intensity of the environment.
Lecture 15: Digital to Analog Converters Lecturers: Professor John Devlin Mr Robert Ross.
ELE22MIC Lecture 18 The AVR Sleep Modes The ATMEGA128’s Timer System
Microprocessoren lesson 6. PWM /motor control/servo.
CCP MODULES  The CCP module (Capture/Compare/PWM) is a peripheral which allows the user to time and control different events.  Capture Mode provides.
Example 12 Pulse-Width Modulation (PWM): Motors and Servos Lecture L8.1.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – Pulse Width Modulator (PWM) Refer to Chapter 21 in the reference book “Stellaris® LM3S9B96 Microcontroller.
By James Cockrell and Justin Loveless
Microcontroller Applications ELEC 421 Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
#1 of 10 Tutorial Introduction PURPOSE -To explain how to configure and use the Timer Interface Module in common applications OBJECTIVES: -Identify the.
PULSE WIDITH MODULATION EE 587 Presented by Viswanadha Kakarlapudi.
Timer 1 and 2 operation, PWM Principles. Timer 1 Operation.
PWM: Pulse Width Modulation © 2014 Project Lead The Way, Inc.Digital Electronics.
C Examples 6. Download Links MPLAB IDE dsPIC30F4011/4012 Data Sheet dsPIC30F Family Reference Manual MikroC MikroC Manual MikroC Quick Reference.
SGDRS Software System Design Justin A. King WWU EET Senior project 2013.
[Lab10] Output PWM  Output PWM Signal  Example  Exercise(Optional)
Analog Output Materials: animatronic head Processing Quiz HW: code links.
Seth Schwiethale James Crosetto James Ellison.  square pulse of ms, repeats every 20 ms  It is the same for both steering and acceleration 
Closed Loop Temperature Control Circuit with LCD Display Mike Wooldridge ECE 4330 Embedded Systems.
Atmega328p Introduction for Digital and PWM Output Brion L Fuller II Robotics Club.
Istituto Tecnico Industriale A.Monaco EURLAB Moving a robot simple example program to control a DC-Motor Next - Press the button (left)
Istituto Tecnico Industriale A.Monaco EURLAB Control a Servo Motor If you want to swing an robot arm or … steer a robot you need a special motor (Servo).
Pulse-Width Modulation: Simulating variable DC output
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.
Microcontroller basics Embedded systems for mortals.
Pulse Width Modulation Instructor Dr Matthew Khi Yi Kyaw.
-AT91SAM7X256 – Pulse Width Modulation YoonMo Yeon
Why are Timer Functions Important?
MICROCONTROLLER AND INTERFACING
Microcontroller basics
Timers and Event Counters
If you want to swing an robot arm or …
Microcontrollers, Basics Fundamentals of Designing with Microcontrollers 16 January 2012 Jonathan A. Titus.
BITS EDU. CAMPUS , VARNAMA
AVR Addressing Modes Subject: Microcontoller & Interfacing
Pulse Width Modulation (PWM) Motor Feedback - Shaft Encoder
8254 Timer and Counter (8254 IC).
CenSSIS/NE-LSAMP REU “LabVIEW control of the Sport232 Interface”
Pulse-Width Modulation (PWM)
ECE 354 Computer Systems Lab II
DC motor and PWM.
UNIT 19 PWM 로봇 SW 교육원 조용수.
ECE 477 Digital Systems Senior Design Project  Spring 2006
Wave Generation and Input Capturing
UNIT 11: RC-SERVOMOTOR CONTROL
Robotics System Lecture 11_12: DC Motor
Pulse-Width Modulation: Simulating variable DC output
Presentation transcript:

Team 7 Chaofan Chen Dhruvmin Gandhi Larry Gerhardt Pulse-width Modulation with the TIVA C

Introduction to Pulse-width Modulation (PWM) The Tiva C PWM Module Basic PWM Setup with the Tiva C Example Code Presentation Overview

Duty Cycle Period What is Pulse Width Modulation

Dimming Motor Control Servo Control Analog wave simulation Why use pulse-width modulation

Tiva C Two PWM Modules Four Generators Each generator has Two Outputs Total 16 PWM output The Tiva C PWM Module

Fast PWM Count Down Mode Phase Correct PWM Count Up/Count Down Mode Symmetric vs Asymmetric PWM

Count-Down VS Count-Up/Count-Down

Count-Up/Count-Down Example

Pulse-width Modulation with Tiva C Five Basic Steps 1)Clock Configuration 2)Peripheral Enable 3)GPIO Configuration 4)PWM Configuration 5)PWM Enable

First set the system clock In our case at 40MHz Then the PWM clock In our case 1/64 the system clock, 625KHz Clock Configuration

First enable the PWM module you would like to use. Then enable the port you would like to use for output. Peripheral Enable

Setup the pins for PWM Use default configuration Use PD0 for output Use PWM Module 1 Use Generator 0 Pin Configuration

Calculate the period of the signal Setup the desired PWM Mode Setup the calculated period PWM Configure

Setup the initial duty cycle Tell the PWM to output to pin 0 Finally enable the Generator That’s It! PWM Enable Output

UsageInitialization Tiva C PWM Example

Q&A

Tiva C PWM Workshop Tiva C User Guide 2014 PWM Team Presentation References