PWM and DC Motor Control

Slides:



Advertisements
Similar presentations
More fun with Timer/Counters
Advertisements

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.
Introduction of Holtek HT-46 series MCU
8-Bit Timer/Counter 0 Counter/Timer 0 and 2 (TCNT0, TCNT2) are nearly identical. Differences: -TCNT0 can run off an external 32Khz clock (Tosc) or the.
ATtiny2313 Timers/Counters CS-423 Dick Steflik. What Do You Use Timers For? Timing of events (internal or external)‏ Scheduling Events Measuring the width.
5-1 Timer/Counters In many microprocessor systems we need to:  count logic pulses  measure the frequency of signals  measure the period of pulses 
Pulse Width Modulation modes
Timer Interface Module MTT TIMER INTERFACE MODULE (TIM)
ENEE 440 Chapter Timer 8254 Register Select The 8254 timer is actually 3 timers in one. It is an upgraded version of the 8253 timer which was.
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)
ARM Timers.
Ohm’s Law + - R E I E = I * R I = E / R R = E / I E = Voltage I = Current R = Resistance.
Timers ELEC 330 Digital Systems Engineering Dr. Ron Hayne
Unit 10.2 Timer Examples. Example – Music Generation Channel 6 – Set up as a timer Output to Generate Square Waves Channel 4 – Set up as a timer Output.
Timer Peripherals.
1 ARM University Program Copyright © ARM Ltd 2013 Timer Peripherals.
ECE 447 Fall 2009 Lecture 10: TI MSP430 Timers and Capture Modes.
PWM UNIT 17 로봇 SW 교육원 조용수. 학습 목표 PWM PWM Register 2.
ELE22MIC Lecture 18 The AVR Sleep Modes The ATMEGA128’s Timer System
Motors & Motor Drivers ECE 450.
Microprocessoren lesson 6. PWM /motor control/servo.
Space Vector Pulse Width Modulation Space Vector Pulse Width Modulation Space Vector Pulse Width Modulation Space Vector Pulse Width Modulation Dr. Pedro.
1 68HC11 Timer Chapter HC11 Timer Subsystem Several timing functions: Basic timing Basic timing Real time interrupts Real time interrupts Output.
The Silicon Laboratories C8051F020
Lecture 22: LM3S9B96 Microcontroller – SysTick and General-Purpose Timers.
#1 of 10 Tutorial Introduction PURPOSE -To explain how to configure and use the Timer Interface Module in common applications OBJECTIVES: -Identify the.
Timer 1 and 2 operation, PWM Principles. Timer 1 Operation.
1 68HC11 Timer. 2 68HC11 Timer Subsystem Several timing functions: Basic timing Basic timing Real time interrupts Real time interrupts Output compare.
The 8051 Microcontroller and Embedded Systems, 2e By Muhammad Ali Mazidi, Janice Gillispie Mazidi, and Rolin D. McKinlay © 2006 Pearson Education, Inc.
-AT91SAM7X256 – Pulse Width Modulation YoonMo Yeon
Rectifiers, Switches and Power Supplies
16F877A.
Why are Timer Functions Important?
MICROCONTROLLER AND INTERFACING
Servos Elementary Robotics with Servos
Lecture 10: TI MSP430 Timers and Capture Modes
Application Case Study Security Camera Controller
Timers and Event Counters
V.V.P. ENGINEERING COLLEGE,RAJKOT
PWM and DC Motor Control
Analog Comparator An analog comparator is available on pins PE2(AIN0), PE3(AIN1) The comparator operates like any other comparator. -when (+) exceeds (-)
AVR Addressing Modes Subject: Microcontoller & Interfacing
MSP432 ARM Timer Programming
RX 8-Bit Timer (TMR) 4/20/2011 Rev. 1.00
Freescale ARM Timer Programming
I2C Protocol and RTC Interfacing
8-Bit Timer/Counter 0 Counter/Timer 0 and 2 (TCNT0, TCNT2) are nearly identical. Differences: -TCNT0 can run off an external 32Khz clock (Tosc) or the.
Timer/Counter Modified from Dr. Lam Phung’s Slides.
8-bit Timer/Counter0 with PWM
8051 Timers Prof. Rajiv R Bhandari.
ADC, DAC, and Sensor Interfacing
PWM and DC Motor Control
PWM and DC Motor Control
Atmel ARM Timer Programming
8051 Timers / Counters It has two timers Timer 0 and Timer 1.
DC motor and PWM.
8-bit Timer/Counter2 with PWM and Asynchronous Operation
PWM and DC Motor Control
STM Arm Timer Programming
Pololu DC Motor Controller
CHAPTER 4 COUNTER.
UNIT 19 PWM 로봇 SW 교육원 조용수.
Figure PIC18 Connection to Relay
Lecture 12 Multi-Function Timer Pulse Unit 2 (MTU2a)
PWM and DC Motor Control
Timer Source: under
Timer/Counter Timer/Counter 0 Timer/Counter 1 Timer/Counter 2 8 bit
Programmable Interval Timer
Presentation transcript:

PWM and DC Motor Control Chapter 11 PWM and DC Motor Control

Selected DC Motor Characteristics (http://www.Jameco.com) Part No. Nominal Volts Volt Range Current RPM Torque 154915CP 3 V 1.5–3 V 0.070 A 5,200 4.0 g-cm 154923CP 0.240 A 16,000 8.3 g-cm 177498CP 4.5 V 3–14 V 0.150 A 10,300 33.3 g-cm 181411CP 5 V 0.470 A 10,000 18.8 g-cm

DC Motor Rotation (Permanent Magnet Field)

H-Bridge Motor Configuration

H-Bridge Motor Clockwise Configuration

H-Bridge Motor Counterclockwise Configuration

H-Bridge in an Invalid Configuration

Some H-Bridge Logic Configurations Motor Operation SW1 SW2 SW3 SW4 Off Open Clockwise Closed Counterclockwise Invalid

Bidirectional Motor Control Using an L298 Chip

Pulse Width Modulation Comparison

DC Motor Connection Using a Darlington Transistor

DC Motor Connection Using a MOSFET Transistor

SIM_SCGC6 Register

Timer Status and Control (TPMx_SC) Register

Timer Status and Control (TPMx_SC) Register Field Bits Description PS 0–2 In the prescaler, the clock is divided by 2PS. CMOD 3–4 Clock Mode Selection CPWMS 5 Center-aligned PWM select (0: Up counter mode, 1: up-down counter mode). TOIE 6 Time Overflow Interrupt Enable (0: Disabled, 1: Enabled). TOF 7 Timer Overflow Flag DMA 8 DMA Enable (0: Disabled, 1: Enabled)

CMOD and PS (Prescaler) bits

Up/Down-Counter and Up-Counter

TPMxCnSC (TPMx Channel Status and Control)

TPMxCnSC Register Field Bit Description CHF 7 Channel Flag CHIE 6 Channel interrupt enable MSB and MSA 5-4 Channel mode select ELSB and ELSA 3-2 Edge or Level Select DMA DMA enable (0: Disabled, 1: Enabled)

Edge-Aligned PWM

Edge-Aligned PWM (notice bit CPWMS=0) MSnB:MSnA ELSnB:ELSnA Mode Configuration 10 Edge-Aligned PWM (non-inverted) Set output on reload, clear output on match 01 or 11 (inverted) Clear output on reload, set output on match

The PWM output for MOD = 8, CnV = 5, ELSB:ELSA = 10 (non-inverted)

Center-Aligned PWM

Center-Aligned PWM (notice CPWMMS=1) CPWMS MSnB:MSnA ELSnB:ELSnA Mode Configuration 1 10 Center-Aligned PWM Clear output on match-up, set output on match-down X1 Set output on match-up, clear output on match-down

The PWM output for MOD = 7, CnV = 4, ELSB:ELSA = 10 (non-inverted)

Edge-aligned vs. Center-aligned Mode

Deadband