Timer 1 and 2 operation, PWM Principles. Timer 1 Operation.

Slides:



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

Pulse Width Modulation and Motor Control
More fun with Timer/Counters
Programmable Interval Timer
Sistemi Elettronici Programmabili13-1 MULTI OSC + CLOCK FILTER LVD POWER SUPPLY CONTROL 8 BIT CORE ALU PROGRAM MEMORY RAM I2CI2C PORT A SPI PORT B 16-BIT.
Software Design Considerations. Abstract  Design and build a compact robot to traverse a maze  Use the robot to generate an ASCII representation of.
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.
Potentiometer Electric circuit Cell or Battery Resistor Switch Bulb Earth/Ground LED.
Sequential Logic Design Process A sequential circuit that controls Boolean outputs and a specific time- ordered behavior is called a controller. StepDescription.
ATtiny2313 Timers/Counters CS-423 Dick Steflik. What Do You Use Timers For? Timing of events (internal or external)‏ Scheduling Events Measuring the width.
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Pulse Width Modulation modes
Pulse Width Modulation (PWM) LED Dimmer Circuit
Microcontroller Architecture PIC18F Family
T IMERS - 2. O UTPUT U NIT Each capture/compare block contains an output unit. The output unit is used to generate output signals such as PWM signals.
1 Timing System Timing System Applications. 2 Timing System components Counting mechanisms Input capture mechanisms Output capture mechanisms.
ECE 371- Unit 11 Timers and Counters (“Stop Watches and Alarm Clocks”)
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.
16F877A. Timer 0 The Timer0 module timer/counter has the following features: –8-bit timer/counter –Readable and writable –8-bit software programmable.
MS_uC / fue1 / V TIMx - Timer Programming Microcontroller TIMx - Timer Autumn term 2012.
Timers ELEC 330 Digital Systems Engineering Dr. Ron Hayne
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
ECE 447 Fall 2009 Lecture 10: TI MSP430 Timers and Capture Modes.
Timers.
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
CCP MODULES  The CCP module (Capture/Compare/PWM) is a peripheral which allows the user to time and control different events.  Capture Mode provides.
1 68HC11 Timer Chapter HC11 Timer Subsystem Several timing functions: Basic timing Basic timing Real time interrupts Real time interrupts Output.
Lecture 16: Digital to Analog Converter - PWM Implementation
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.
ECE 371 Microprocessor Interfacing
Chapter 12 Some PIC Microcontroller Advances The aims of this chapter are to introduce: To introduce in overview two microcontrollers which show some enhanced.
S4525A Peripherals & Enhanced FLASH 1 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 1 Peripherals.
Lecture 22: LM3S9B96 Microcontroller – SysTick and General-Purpose Timers.
PIC18F4431. PIC18F1330 Infrared Encoder/Decoder.
#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.
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)
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.
Guide Presented by Mr.M Cheenya V.Abhinav Kumar 11E31A0422 Asst.Professor K.Shiva Kumar 11E31A0423 K.Rajashekhar 11E31A0424 K.Chaithanya Sree 11E31A0428.
Pulse Width Modulation Instructor Dr Matthew Khi Yi Kyaw.
Team 7 Chaofan Chen Dhruvmin Gandhi Larry Gerhardt Pulse-width Modulation with the TIVA C.
Why are Timer Functions Important?
Lecture 10: TI MSP430 Timers and Capture Modes
Demodulation PWM Signal
V.V.P. ENGINEERING COLLEGE,RAJKOT
PWM and DC Motor Control
EMBEDDED SYSTEMS Unit 3.
Programmable Interval Timer
AVR Addressing Modes Subject: Microcontoller & Interfacing
16-bit Timer/Counter1 Features
8-bit Timer/Counter0 with PWM
Timers.
Programmable Peripheral Interface
UNIT 19 PWM 로봇 SW 교육원 조용수.
Figure PIC18 Connection to Relay
Example 18 Pulse Train Using Interrupts
Figure CCP1 Control Register
Timer/Counter Timer/Counter 0 Timer/Counter 1 Timer/Counter 2 8 bit
Programmable Interval Timer
Presentation transcript:

Timer 1 and 2 operation, PWM Principles

Timer 1 Operation

Timer 1 Control Register

Pulse Width Modulation (PWM)

Generating PWM signals in Software

Generating PWM using HW (1)

Generating PWM using HW (2)

Timer 2 Block diagram

Timer 2 Control Register

Capture, Compare, PWM (CCP) There are two CCP modules in the 16F877. Each has two eight bit registers. They modules work in conjunction with either timer1 or timer2. They have three main modes of operation.

CCPxCON Register

Capture Mode Operation

Compare Operation Diagram

PWM Operation Diagram

PWM Output at Pin RC2

PWM Calculations and Setup