Timers Chapter 10. Timers The 68HC12 Programmable Timer Output Compares Input Capture Pulse Accumulator Timing Interrupt Service Routines A Circular Queue.

Slides:



Advertisements
Similar presentations
Lab 9: Matrix Keypad : ”No Key Press” Analysis Slide #2 Slide #3 ”Press and Hold Key 5” Analysis.
Advertisements

The 8051 Microcontroller and Embedded Systems
More fun with Timer/Counters
4-1 Timers Timers can be used for  timing  event counting  pulse width measurement  pulse generation  frequency multiplication There are 8 Timers.
PLC Timer Instructions
Programmable Interval Timer
8253/54 Timer Section /54 Timer Description and Initialization
EET 2261 Unit 10 Enhanced Capture Timer  Read Almy, Chapter 20.  Homework #10 and Lab #10 due next week.  Quiz next week.
68HC11 Polling and Interrupts
ECE 372 – Microcontroller Design Parallel IO Ports - Interrupts
The Serial Communication Interface (SCI) Chapter 11.
The Serial Peripheral Interface (SPI) Chapter 8. SPI Operation of the SPI Keypad Interfacing with Shift Registers 4-Digit Seven-Segment Display.
Interrupts Chapter 6. Interrupts 68HC12 Interrupts 68HC11 Interrupts Interrupt Vector Jump Tables Writing WHYP Interrupt Service Routines Real-Time Interrupts.
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
5-1 Timer/Counters In many microprocessor systems we need to:  count logic pulses  measure the frequency of signals  measure the period of pulses 
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
Damian Marks Rekha Vemuri Instructor: Dr. Wu Simple control system for a Stepper and DC motor using a tachometer and the HC11.
ASPPRATECH.
1 Timing System Timing System Applications. 2 Timing System components Counting mechanisms Input capture mechanisms Output capture mechanisms.
UNIT 8 Keypad Interface Contact Closure Counter Exceptions (Interrupts and Reset)
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)
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.
8254 SOFTWARE PROGRAMMABLE TIMER/COUNTER
ELEC4601 Microprocessor systems Lab 3 Tutorial
Timers.
Other Chapters From the text by Valvano: Introduction to Embedded Systems: Interfacing to the Freescale 9S12.
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.
Parallel Interfacing Chapter 7. Parallel Interfacing Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal.
Microwave Oven Controller
FIGURE 11-1 Bit assignments for the Timer Control, Mask, and Flag Register Peter Spasov Microcontroller Technology: The 68HC11, Fourth Edition Copyright.
1 68HC11 Timer Chapter HC11 Timer Subsystem Several timing functions: Basic timing Basic timing Real time interrupts Real time interrupts Output.
Math – What is a Function? 1. 2 input output function.
8254 Timer.
Appendix B: System Development Example MTT48 V2.1 B - 1 APPENDIX B: SYSTEM DEVELOPMENT.
Sonar Sensor Project Polaroid Sonar Sensor Details of the Project
1 68HC11 Timer HC11 or HC12: Chapter HC11 Timer Subsystem  Several timing functions: Basic timing Basic timing Real time interrupts Real time.
Digital System Design using VHDL
Basic Counters: Part I Section 7-6 (pp ).
#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.
Chapter 3. Advanced Hardware Fundamentals The various parts you will commonly find in an embedded-system circuit 발표일시 : 발표자 : 채화영.
EET 2261 Unit 13 Enhanced Capture Timer
BRX Technical Training
Why are Timer Functions Important?
ECE 3430 – Intro to Microcomputer Systems
68HC11 Interrupts & Resets.
Homework Reading Machine Projects Labs
8254 – SOFTWARE PROGRAMMABLE TIMER
Programmable Interval Timer
Programmable Interval Timer
Programmable Interval Timer
Programmable Interval Timer 8254 LECTURE 3
ECET 340 Education for Service/tutorialrank.com
Introduction to Microprocessors and Microcontrollers
4-Bit Counter Spencer Canavan.
Button/Switch.
التدريب الرياضى إعداد الدكتور طارق صلاح.
Programmable Interval timer 8253 / 8254
Programmable Interval timer 8253 / 8254
Example 18 Pulse Train Using Interrupts
Counter Integrated Circuits (I.C.s)
Programmable Interval Timer
ADSP 21065L.
Instruction execution and ALU
Presentation by Anthony Dotterer
Presentation transcript:

Timers Chapter 10

Timers The 68HC12 Programmable Timer Output Compares Input Capture Pulse Accumulator Timing Interrupt Service Routines A Circular Queue Data Structure Keypad Interfacing Using Interrupts

Timers (cont.) Pulse Train Using Interrupts Measuring the Period of a Pulse Train Using Interrupts The Polaroid Ultrasonic Transducer –An Ultrasonic Tape Measure

Timer Counter

Timer System Control Register

Setting the timer count time

68HC11 Timer Registers

Timers The 68HC12 Programmable Timer Output Compares Input Capture Pulse Accumulator Timing Interrupt Service Routines A Circular Queue Data Structure Keypad Interfacing Using Interrupts

Pulse Train Example

Timers The 68HC12 Programmable Timer Output Compares Input Capture Pulse Accumulator Timing Interrupt Service Routines A Circular Queue Data Structure Keypad Interfacing Using Interrupts

Input Capture

Timers The 68HC12 Programmable Timer Output Compares Input Capture Pulse Accumulator Timing Interrupt Service Routines A Circular Queue Data Structure Keypad Interfacing Using Interrupts

Pulse Accumulator

The 74C Key Encoder Connect pin 12 to PT7/PAI instead of PJ7

Pulse Accumulator on a 68HC11

Timers The 68HC12 Programmable Timer Output Compares Input Capture Pulse Accumulator Timing Interrupt Service Routines A Circular Queue Data Structure Keypad Interfacing Using Interrupts

Timing Interrupt Service Routines Traffic Lights Using Real-time Interrupt

Copy TRAFFIC.WHP to TRAFFIC2.WHP

Load TRAFFIC2.WHP TEST.SETUP TEST Add:

Timers The 68HC12 Programmable Timer Output Compares Input Capture Pulse Accumulator Timing Interrupt Service Routines A Circular Queue Data Structure Keypad Interfacing Using Interrupts

A Circular Queue empty Containing 2 values

Timers The 68HC12 Programmable Timer Output Compares Input Capture Pulse Accumulator Timing Interrupt Service Routines A Circular Queue Data Structure Keypad Interfacing Using Interrupts

Timers (cont.) Pulse Train Using Interrupts Measuring the Period of a Pulse Train Using Interrupts The Polaroid Ultrasonic Transducer –An Ultrasonic Tape Measure

Pulse Train

Timers (cont.) Pulse Train Using Interrupts Measuring the Period of a Pulse Train Using Interrupts The Polaroid Ultrasonic Transducer –An Ultrasonic Tape Measure

Timers (cont.) Pulse Train Using Interrupts Measuring the Period of a Pulse Train Using Interrupts The Polaroid Ultrasonic Transducer –An Ultrasonic Tape Measure

Polaroid Ultrasonic Ranging System

Waveforms of Ultrasonic Ranging System

Exercises