Seth Schwiethale James Crosetto James Ellison.  square pulse of 1.0-2.0 ms, repeats every 20 ms  It is the same for both steering and acceleration 

Slides:



Advertisements
Similar presentations
NETWORK RC CAR © James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Engineering) Seth Schwiethale BS (Computer Science)
Advertisements

More fun with Timer/Counters
Microcontroller Programming II MP6-1
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.
EET 2261 Unit 10 Enhanced Capture Timer  Read Almy, Chapter 20.  Homework #10 and Lab #10 due next week.  Quiz next week.
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 
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Pulse Width Modulation modes
NETWORK RC CAR © James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Engineering) Seth Schwiethale BS (Computer Science)
1 Timing System Timing System Applications. 2 Timing System components Counting mechanisms Input capture mechanisms Output capture mechanisms.
NETWORK RC CAR © James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Engineering) Seth Schwiethale BS (Computer Science)
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.
1 Chapter 4 Timer Operation (I. Scott MacKenzie).
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)
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.
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.
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.
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
PIT Programming Examples Working with the modes of PIT.
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.
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
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.
1 68HC11 Timer Chapter HC11 Timer Subsystem Several timing functions: Basic timing Basic timing Real time interrupts Real time interrupts Output.
James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Science and Computer Engineering) Seth Schwiethale BS (Computer.
8254 Timer.
1 68HC11 Timer HC11 or HC12: Chapter HC11 Timer Subsystem  Several timing functions: Basic timing Basic timing Real time interrupts Real time.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This course provides an introduction to the peripheral functions.
Network and Systems Laboratory nslab.ee.ntu.edu.tw.
James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Science and Computer Engineering) Seth Schwiethale BS (Computer.
#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.
PWM: Pulse Width Modulation © 2014 Project Lead The Way, Inc.Digital Electronics.
1 68HC11 Timer. 2 68HC11 Timer Subsystem Several timing functions: Basic timing Basic timing Real time interrupts Real time interrupts Output compare.
SGDRS Software System Design Justin A. King WWU EET Senior project 2013.
Closed Loop Temperature Control Circuit with LCD Display Mike Wooldridge ECE 4330 Embedded Systems.
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.
EET 2261 Unit 13 Enhanced Capture Timer
Why are Timer Functions Important?
NETWORK RC CAR© James Crosetto BS (Computer Science and Computer Engineering) Jeremy Ellison BS (Computer Engineering) Seth Schwiethale BS (Computer Science)
Application Case Study Security Camera Controller
Timers and Event Counters
V.V.P. ENGINEERING COLLEGE,RAJKOT
ECE 3430 – Intro to Microcomputer Systems
Timer and Interrupts.
AVR Addressing Modes Subject: Microcontoller & Interfacing
Oct 30 Announcements Code Marked and on Blackboard
RX 8-Bit Timer (TMR) 4/20/2011 Rev. 1.00
Timer/Counter Modified from Dr. Lam Phung’s Slides.
16-bit Timer/Counter1 Features
Oct 30 Announcements Code Marked and on Blackboard
8254 Timer and Counter (8254 IC).
DC motor and PWM.
UNIT 19 PWM 로봇 SW 교육원 조용수.
Lecture 12 Multi-Function Timer Pulse Unit 2 (MTU2a)
Example 18 Pulse Train Using Interrupts
Hitec HS 303: Robotic Servo Motor
MCO556 Timer System Exercise.
Timer/Counter Timer/Counter 0 Timer/Counter 1 Timer/Counter 2 8 bit
Programmable Interval Timer
Presentation transcript:

Seth Schwiethale James Crosetto James Ellison

 square pulse of ms, repeats every 20 ms  It is the same for both steering and acceleration  width of the pulse determines the direction/speed w/ 1.5 ms as the nominal center  the amplitude of the pulse is from the reference level of the Vcc (5v)

 1 “alarm” output  max activation is 100 times/sec (increments of 10 ms)

 Camera’s output can’t produce a 20ms PWM signal that is high between 1-2ms  Car cannot be driven by Camera directly  need something that modifies the output signal of the camera so it can be used by the car

 Using a microprocessor (MC9S12DP256)  has a clock signal rate of 24MHz  has registers for a Pulse Width Modulator and an Enhanced Capture Timer  Signal from the camera can be varied between ms for speed and ms for steering

car’s input camera’s output microprocessor

 used to create correct output signal  uses CPU clock signal to generate signal lengths  current signal is 24MHz and we need a 50Hz (20ms) signal (Factor of !)

 Initializing the Pulse Width Modulator

 The pulse width modulator uses registers to decrease the frequency of the clock signal before it is used as an output signal  Two output signals can be generated from the clock signal Allows for finer control of signal

 The periods of both SA and SB need to be 20ms

 The duty cycle (the part of the PWM signal that is high) needs to be 1-2ms in length  Initialized to 1.5 ms Notice the difference!

 Used to trigger interrupts  Set up to trigger an interrupt every time a signal goes high or low on an input port (TCTL4 and TIE)

 Timer Register (TCNT) is incremented every clock cycle (24MHz clock = 24 million times per second)  Clock slowed to KHz  TCNT is 16-bit register ( )  Overflows about every 1/3 second (65535/187500)  Never overflows more than once per input signal from camera