PWM ECE 4437-EMBEDDED SYSTEMS DR. GLOVER CHRISTOPHER AHN & KHOA VAN.

Slides:



Advertisements
Similar presentations
ECE/CS-352: Embedded Microcontroller Systems The Silicon Laboratories C8051F020 Enhanced 8051 Part 5 Other Subsystems.
Advertisements

The 8051 Microcontroller and Embedded Systems
Pulse Width Modulation and Motor Control
More fun with Timer/Counters
Microcontroller Programming II MP6-1
8253/54 Timer Section /54 Timer Description and Initialization
ECT 357 Ch 16 Output Control. Today’s Quote: The measure of a man is not how great his faith is bt how great his love is. The measure of a man is not.
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.
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.
5-1 Timer/Counters In many microprocessor systems we need to:  count logic pulses  measure the frequency of signals  measure the period of pulses 
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.
DC-DC Converters Convert a fixed DC Source into a Variable DC Source
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Pulse Width Modulation Professor: Dr. Miguel Alonso Jr.
8254 Programmable Interval Timer
7/23 Timers in Coldfire Processor Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee (480)
8253 TIMER. Engr 4862 Microprocessors 8253 / 8254 Timer A.k.a. PIT (programmable Interval Timer), used to bring down the frequency to the desired level.
Lecture 29: LM3S9B96 Microcontroller – Pulse Width Modulator (PWM)
8254 Counter/Timer Counter Each of the three counter has 3 pins associated CLK: input clock frequency- 8 MHz OUT GATE: Enable (high) or disable.
ARM Timers.
8254 SOFTWARE PROGRAMMABLE TIMER/COUNTER
Timers ELEC 330 Digital Systems Engineering Dr. Ron Hayne
Timers and Event Counters
Timer Peripherals.
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
1 ARM University Program Copyright © ARM Ltd 2013 Timer Peripherals.
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses.
Lecture 11: TI MSP430 Timers Compare Modes
Timers.
PWM UNIT 17 로봇 SW 교육원 조용수. 학습 목표 PWM PWM Register 2.
ECE 447: Lecture 8 Timer System (1). ECE 447: 68HC11 Timer System 1.Generating delays - imposing a specific delay between two points in the program by.
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.
University of Tehran 1 Microprocessor System Design Timers Omid Fatemi
1 68HC11 Timer Chapter HC11 Timer Subsystem Several timing functions: Basic timing Basic timing Real time interrupts Real time interrupts Output.
By Tony Hoff ECE 4220 – Real Time Embedded Computing University of Missouri - Columbia Course Instructor: Dr. Guiherme DeSouza.
Example 12 Pulse-Width Modulation (PWM): Motors and Servos Lecture L8.1.
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – Pulse Width Modulator (PWM) Refer to Chapter 21 in the reference book “Stellaris® LM3S9B96 Microcontroller.
1 68HC11 Timer HC11 or HC12: Chapter HC11 Timer Subsystem  Several timing functions: Basic timing Basic timing Real time interrupts Real time.
Microcontroller Applications ELEC 421 Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
1 Timers and Event Counters Lecture In These Notes... We learn the basics of the Timer/Counter peripheral –Called timers by Renesas We examine how.
HCC Derived Clocks. Generated Clocks The HCC generates two clocks from the ePLL 160 MHz clocks and the chip 40 MHz clock, used as a reference: An 80 MHz.
#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.
C Examples 6. Download Links MPLAB IDE dsPIC30F4011/4012 Data Sheet dsPIC30F Family Reference Manual MikroC MikroC Manual MikroC Quick Reference.
[Lab10] Output PWM  Output PWM Signal  Example  Exercise(Optional)
1 4-Integrating Peripherals in Embedded Systems (cont.)
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.
Pulse-Width Modulation: Simulating variable DC output
1 4-Integrating Peripherals in Embedded Systems (cont.)
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.
-AT91SAM7X256 – Pulse Width Modulation YoonMo Yeon
Team 7 Chaofan Chen Dhruvmin Gandhi Larry Gerhardt Pulse-width Modulation with the TIVA C.
Why are Timer Functions Important?
PWM and DC Motor Control
Programmable Interval Timer
Pulse Width Modulation (PWM) Motor Feedback - Shaft Encoder
Pulse-Width Modulation (PWM)
PWM and DC Motor Control
Signals from ucc28c42 current mode example: these show basic conflict of getting correct PWM if buffered ramp is applied at CS pin: If peak of the buffered.
UNIT 19 PWM 로봇 SW 교육원 조용수.
Computer Science & Engineering Electrical Engineering
Figure CCP1 Control Register
Programmable Interval Timer
Timers Chapter 2.
Presentation transcript:

PWM ECE 4437-EMBEDDED SYSTEMS DR. GLOVER CHRISTOPHER AHN & KHOA VAN

WHAT IS COVERED AND WHAT IS NOT Cover: Count down mode and basic configuration to get the motor run. Not cover: Count up/down mode Dead band Interrupt Others

LOAD: Determines PWM period based on system clock ADown/BDown: determine pulsewidth COMPA/COMPB: we set the value to get Adown/BDown

ILLUSTRATION Example: System clock is 80[Mhz] (can be reduced). PWM Clock will be: 80[Mhz]/64=1.25[Mhz] (period is 0.8 [us]) We want: 2[ms] period. What is the Load value? Answer: LOAD= (2[ms]/0.8[us])-1

ILLUSTRATION Now we need to generate pulse width, We will generate 20% duty cycle for PWMA for this example HOW? Easy: LOAD is 100%, so 20%*LOAD is the value for COMPA.

SUMMARY OF THE CODE: Initialize and enable the Clocks Enable the PWM Modules Configure Pin types Set Duty Cycle Enable the gate Enable generators

CODING EXAMPLE

Can be found on page 489 in: spmu298a_TivaWare_Peripheral_Driver_Lib.pdf