PWM UNIT 17 로봇 SW 교육원 조용수. 학습 목표 PWM PWM Register 2.

Slides:



Advertisements
Similar presentations
The 8051 Microcontroller and Embedded Systems
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.
Figure 7–1 Two versions of SET-RESET (S-R) latches
EECS 373: Design of Microprocessor-Based Systems Timers, count, capture and PWM Some material from Thomas Schmid, Mark Brehob.
AD Converter UNIT 19 로봇 SW 교육원 조용수. 학습 목표 AD Converter AD Converter Register 2.
PWM ON SAMSUNG's S3C2410X. Building Embedded LINUX SYSTEM Outline SAMSUNG's S3C2410X components CLOCK & POWER MANAGEMENT PWM TIMER I/O PORTS Finally Project.
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.
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.
DC-DC Converters Convert a fixed DC Source into a Variable DC Source
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
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.
Single Phase Induction Motor Adjustable Speed Control Using DSP and Micro-Controller Jianming Yao ECE734 Project Fall 2000.
I2C UNIT 23 로봇 SW 교육원 조용수. 학습 목표 I2C I2C Protocol 구조 N051 I2C 동작 I2C Register 2.
Pulse Width Modulation
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.
PWM ECE 4437-EMBEDDED SYSTEMS DR. GLOVER CHRISTOPHER AHN & KHOA VAN.
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.
Department of Electrical Engineering, National Taiwan Ocean University Pulse Width Modulation 4/25/2013 Richard Kuo Assistant Professor.
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
1 ARM University Program Copyright © ARM Ltd 2013 Timer Peripherals.
ECE 447 Fall 2009 Lecture 10: TI MSP430 Timers and Capture Modes.
EGRE 6311 Midsize Microcontrollers and Microprocessors The 8051 is an example of a small inexpensive microcontroller intended for simple applications.
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.
전자의료시스템 및 실습 PWM 구 환 경희대학교 전자정보대학 동서의료공학과. PWM Description - PWM(Pulse Width Modulation) - 일정한 전압에 일정한 주기를 갖는 펄스 열에서 High 레벨의 펄스 폭 이 사용자가 지정한 값으로 바뀌는.
PWM Circuit Based on the 555 Timer. Introduction In applications LED Brightness Control we may want to vary voltage given to it. Most often we use a variable.
ELE22MIC Lecture 18 The AVR Sleep Modes The ATMEGA128’s Timer System
Space Vector Pulse Width Modulation Space Vector Pulse Width Modulation Space Vector Pulse Width Modulation Space Vector Pulse Width Modulation Dr. Pedro.
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.
Lecture 12 Multi-Function Timer Pulse Unit 2 (MTU2a)
UNIT 11 UART 로봇 SW 교육원 조용수.
MCS51 - lecture 3. Lecture 3 2/30 Timers/counters MCS51.
Microcontroller Applications ELEC 421 Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
PWM Test 2 UNIT 20 로봇 SW 교육원 조용수. 학습 목표 PWM Servo 제어 2.
S4525A Peripherals & Enhanced FLASH 1 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 1 Peripherals.
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 4-Integrating Peripherals in Embedded Systems (cont.)
#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.
Timer & Watch Dog Test UNIT 16 로봇 SW 교육원 조용수. 학습 목표 Timer Init Timer Delay Test Timer Interrupt Test –One Shot Mode –Periodic Mode Watch Dog Test 시계 만들어.
1 4-Integrating Peripherals in Embedded Systems (cont.)
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.
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
Why are Timer Functions Important?
Study Report for Brushless DC (BLDC) Motors
V.V.P. ENGINEERING COLLEGE,RAJKOT
Pulse Width Modulation
PWM and DC Motor Control
EMBEDDED SYSTEMS Unit 3.
Pulse Width Modulation (PWM) Motor Feedback - Shaft Encoder
8-bit Timer/Counter0 with PWM
PWM and DC Motor Control
PWM and DC Motor Control
ME 4447/6405 Pulse Width Modulation (PWM)
UNIT 19 PWM 로봇 SW 교육원 조용수.
UNIT 24 I2C Test 로봇 SW 교육원 조용수.
Timer/Counter Timer/Counter 0 Timer/Counter 1 Timer/Counter 2 8 bit
Presentation transcript:

PWM UNIT 17 로봇 SW 교육원 조용수

학습 목표 PWM PWM Register 2

PWM Pulse Width Modulation 진폭이 일정한 상태에서 펄스 폭을 증 / 감 하여 신호 를 변화시키는 방법 디지털 출력으로 아날로그 회로를 제어할 수 있음. Duty Cycle : High Level 과 Low Level 간의 비율 3

4 N051 PWM Four PWM Generators, each generator supports One 8-bit prescaler One clock divider ( 1, ½, ¼, 1/8, 1/16) Two PWM-timers for two outputs, each timer includes A 16-bit PWM down-counter A 16-bit PWM reload value register (CNR) A 16-bit PWM compare register (CMR) One dead-zone generator Two PWM outputs. 8 PWM channels or 4 PWM paired channels. 16 bits resolution. Support edge and center aligned modes Single-shot or Continuous mode PWM.

PWM/Capture Clock Source 5

6 PWM Edge Align Mode Duty ratio = (CMR+1) / (CNR+1) Duty = (CMR+1) x (clock period) Period = (CNR+1) x (clock period)

7 PWM Double Buffering Illustration New period (CNR) New duty (CMR) S/W write new period (CNR) And new duty (CMR) First cycle Second cycle

8 Operation of Dead Zone Generator Why need the dead zone control? –To avoid a paired-PWM outputs overlapping on duty-on dur ation. –For example, in Motor Driver application, it needs to avoid t he upper and lower power switch turn on simultaneously. Insert a delay time (dead zone) before duty on at each channel of paired-PWM. 8-bit dead-zone timer from PWM clock.

PWM Register 9

10

PWM Register 11

PWM Register 12

PWM Register 13

PWM Register 14

PWM Register 15

PWM Register 16

PWM Register 17

PWM Register 18

PWM Register 19

PWM Register 20

PWM Register 21

PWM Register 22

PWM Register 23

PWM Register 24

PWM Register 25

PWM Register 26

PWM Register 27