-AT91SAM7X256 – Pulse Width Modulation YoonMo Yeon 2007. 3. 22.

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

Microcontroller Programming II MP6-1
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.
DC-DC Converters Convert a fixed DC Source into a Variable DC Source
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Copyright by UNIT III DC Choppers 4/17/2017 Copyright by
PWM Pulse Width Modulation API  Achieves PWM by cascading 2 timers…  The output of lower order will be fed to input of upper order timer…  The output.
Three-Phase AC machines Three-Phase Cage Rotor Induction Motor – Electronic Methods of Starting and Speed Control Resource 4.
POWER SUPPILES LECTURE 20.
Digital to Analog Converters
Switching Power Supplies Week 6
7/23 Timers in Coldfire Processor Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee (480)
Lecture 29: LM3S9B96 Microcontroller – Pulse Width Modulator (PWM)
Ohm’s Law + - R E I E = I * R I = E / R R = E / I E = Voltage I = Current R = Resistance.
PWM ECE 4437-EMBEDDED SYSTEMS DR. GLOVER CHRISTOPHER AHN & KHOA VAN.
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
EGRE 6311 Midsize Microcontrollers and Microprocessors The 8051 is an example of a small inexpensive microcontroller intended for simple applications.
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses.
PWM UNIT 17 로봇 SW 교육원 조용수. 학습 목표 PWM PWM Register 2.
Engineering H193 - Team Project Gateway Engineering Education Coalition Lab 2P. 1Spring Quarter Motor Dynamics Lab 2.
ELE22MIC Lecture 18 The AVR Sleep Modes The ATMEGA128’s Timer System
603 A DIGITAL PROGRAMMABLE ROBOT OVERVIEW: BASED ON CONCEPT OF PLC. IS PROGRAMMABLE USING A KEYPAD. POWERED BY A 9 VOLT BATTERY. INSTRUCTIONS CAN BE PROGRAMMED.
Space Vector Pulse Width Modulation Space Vector Pulse Width Modulation Space Vector Pulse Width Modulation Space Vector Pulse Width Modulation Dr. Pedro.
STEPPER MOTORS Name: Mr.R.Anandaraj Designation: Associate. Professor Department: Electrical and Electronics Engineering Subject code :EC 6252 Year: II.
1 Lecture on Lab 6 Lab 7 Lab 8. 2 Lab 6: Open Loop Controller As you learned in lab 5, there are two kinds of control systems: open loop and closed loop.
CCP MODULES  The CCP module (Capture/Compare/PWM) is a peripheral which allows the user to time and control different events.  Capture Mode provides.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the analog interfaces.
Microprocessors Tutorial 2: Arduino Robotics. Agenda 1. Robot Anatomy 2. Sensor Review 3. PWM 4. MAKE: Fade 5. Motors 6. H Bridge 7. Robot Control library.
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.
Microcontroller Applications ELEC 421 Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
KyungHee Univ. 1-0 Parallel Input/Output Controller (PIO)
1 4-Integrating Peripherals in Embedded Systems (cont.)
1 4-Integrating Peripherals in Embedded Systems (cont.)
Throttle Arduino RC Receiver Stock Golf Cart Motor Controller Motor 1 PWM signal: Voltage: 0 – 5V Period = 22ms Positive Pulse Width: 1ms – 2ms Digital.
Closed Loop Temperature Control Circuit with LCD Display Mike Wooldridge ECE 4330 Embedded Systems.
1 4-Integrating Peripherals in Embedded Systems (cont.)
Arduino Application: Speed control of small DC Motors
Team 7 Chaofan Chen Dhruvmin Gandhi Larry Gerhardt Pulse-width Modulation with the TIVA C.
Application Case Study Christmas Lights Controller
Why are Timer Functions Important?
MICROCONTROLLER AND INTERFACING
AT91SAM7X256 - PIO YoonMo Yeon
Timers and Event Counters
EI205 Lecture 8 Dianguang Ma Fall 2008.
EMBEDDED SYSTEMS Unit 3.
Dimming Function – Pulse-width Modulation (PWM)
Microcontroller Applications
Visit for more Learning Resources
Oct 30 Announcements Code Marked and on Blackboard
Electric Motors.
RX 8-Bit Timer (TMR) 4/20/2011 Rev. 1.00
Introduction to Microprocessors and Microcontrollers
Oct 30 Announcements Code Marked and on Blackboard
PWM and DC Motor Control
Pulse-Width Modulation (PWM)
PWM and DC Motor Control
ME 4447/6405 Pulse Width Modulation (PWM)
Architectural Overview
EECS 373: Design of Microprocessor-Based Systems
Principles & Applications Large-Signal Amplifiers
UNIT 19 PWM 로봇 SW 교육원 조용수.
CMPUT 399 Intro Robotics & Mechatronics: Motor Control
8051 Micro Controller.
Mark Bristow CENBD 452 Fall 2002
AC Drives Dr. Adel A. El-Samahy Department of Electrical Engineering University of Helwan.
Announcements Bring two motors to lab this week.
CBETA bunch pattern and BPM trigger generator Version 2
FPGA Based Single Phase Motor Control Using Multistep Sine PWM Author Name1, Author Name2., Author Name3, (BE-Stream Name) Under the Guidance Of Guide.
Presentation transcript:

-AT91SAM7X256 – Pulse Width Modulation YoonMo Yeon

Contents Speed control of DC motor Pulse Width Modulation AT91SAM7X256 PWM Controller & example

Speed control of DC motor Analogue type control Varying the voltage applied to motor Simple control circuit Heat problem (resister at voltage dropper) Low power efficiency at low speed Torque also varies Torque ∝ I V ∝ I ∴ It is not proper to vary the voltage

Pulse Width Modulation The average voltage applied to the motor is varied by switching the supply voltage very rapidly (ON/OFF) Duty Cycle

AT91SAM7X256 - PWMC PWM Controller Four channels, One 16-bit counter per channel Common clock generator providing 13 different clocks 11 : One modulo-n counter 2 : Independent linear dividers working on modulo n counter output

Set up the PWMC in your Application

PIO & PWM lines 4 Multiplexed Channel outputs with PIOB lines

Set up the PWMC in your Application

Enable the PWM Clock Clock of peripherals Power Management Controller controls the clocks of each embedded peripheral The peripheral clocks are automatically disabled after a reset

Set up the PWMC in your Application

Set up the Clock Generator Per each channel Channel Mode Register Duty Cycle Register Period Register Counter Register Update Register

CMR = 10 -> CPRE = MCK/1024 CPOL = 0 : start at low level CALG = 0 : left aligned CPRDR = > CPRE / > MCK / 1024 / 1024 ≒ 48Hz CDTYR = 256 -> Duty Cycle = CDTYR / CPRDR -> D = 256 / 1024 = 1/4

Set up the PWMC in your Application

Channel Enabling

Modify a channel period/duty cycle In running mode, modifying the duty cycle or the period value can be done only via PWM_CUPD

End of presentation