Timers - PowerPoint PPT Presentation

1 / 70
About This Presentation
Title:

Timers

Description:

Pulse Accumulator. Timing Interrupt Service Routines. A Circular Queue Data Structure ... Pulse Accumulator. The 74C922 16-Key Encoder. Connect pin 12 to PT7 ... – PowerPoint PPT presentation

Number of Views:198
Avg rating:3.0/5.0
Slides: 71
Provided by: Richard6
Category:

less

Transcript and Presenter's Notes

Title: Timers


1
Timers
  • Chapter 10

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

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

4
(No Transcript)
5
Timer Counter
6
Timer System Control Register
7
Setting the timer count time
8
(No Transcript)
9
(No Transcript)
10
68HC11 Timer Registers
11
(No Transcript)
12
(No Transcript)
13
Timers
  • The 68HC12 Programmable Timer
  • Output Compares
  • Input Capture
  • Pulse Accumulator
  • Timing Interrupt Service Routines
  • A Circular Queue Data Structure
  • Keypad Interfacing Using Interrupts

14
(No Transcript)
15
(No Transcript)
16
(No Transcript)
17
Pulse Train Example
18
(No Transcript)
19
(No Transcript)
20
(No Transcript)
21
(No Transcript)
22
Timers
  • The 68HC12 Programmable Timer
  • Output Compares
  • Input Capture
  • Pulse Accumulator
  • Timing Interrupt Service Routines
  • A Circular Queue Data Structure
  • Keypad Interfacing Using Interrupts

23
Input Capture
24
(No Transcript)
25
(No Transcript)
26
(No Transcript)
27
Timers
  • The 68HC12 Programmable Timer
  • Output Compares
  • Input Capture
  • Pulse Accumulator
  • Timing Interrupt Service Routines
  • A Circular Queue Data Structure
  • Keypad Interfacing Using Interrupts

28
Pulse Accumulator
29
(No Transcript)
30
(No Transcript)
31
The 74C922 16-Key Encoder
Connect pin 12 to PT7/PAI instead of PJ7
32
(No Transcript)
33
Pulse Accumulator on a 68HC11
34
(No Transcript)
35
(No Transcript)
36
Timers
  • The 68HC12 Programmable Timer
  • Output Compares
  • Input Capture
  • Pulse Accumulator
  • Timing Interrupt Service Routines
  • A Circular Queue Data Structure
  • Keypad Interfacing Using Interrupts

37
Timing Interrupt Service Routines Traffic Lights
Using Real-time Interrupt
38
Copy TRAFFIC.WHP to TRAFFIC2.WHP
39
Add
Load TRAFFIC2.WHP TEST.SETUP TEST
40
Timers
  • The 68HC12 Programmable Timer
  • Output Compares
  • Input Capture
  • Pulse Accumulator
  • Timing Interrupt Service Routines
  • A Circular Queue Data Structure
  • Keypad Interfacing Using Interrupts

41
A Circular Queue
empty
Containing 2 values
42
(No Transcript)
43
(No Transcript)
44
(No Transcript)
45
Timers
  • The 68HC12 Programmable Timer
  • Output Compares
  • Input Capture
  • Pulse Accumulator
  • Timing Interrupt Service Routines
  • A Circular Queue Data Structure
  • Keypad Interfacing Using Interrupts

46
(No Transcript)
47
(No Transcript)
48
Timers (cont.)
  • Pulse Train Using Interrupts
  • Measuring the Period of a Pulse Train Using
    Interrupts
  • The Polaroid Ultrasonic Transducer
  • An Ultrasonic Tape Measure

49
Pulse Train
50
(No Transcript)
51
(No Transcript)
52
(No Transcript)
53
Timers (cont.)
  • Pulse Train Using Interrupts
  • Measuring the Period of a Pulse Train Using
    Interrupts
  • The Polaroid Ultrasonic Transducer
  • An Ultrasonic Tape Measure

54
(No Transcript)
55
(No Transcript)
56
Timers (cont.)
  • Pulse Train Using Interrupts
  • Measuring the Period of a Pulse Train Using
    Interrupts
  • The Polaroid Ultrasonic Transducer
  • An Ultrasonic Tape Measure

57
Polaroid Ultrasonic Ranging System
58
Waveforms of Ultrasonic Ranging System
59
(No Transcript)
60
(No Transcript)
61
(No Transcript)
62
Exercises
63
(No Transcript)
64
(No Transcript)
65
(No Transcript)
66
(No Transcript)
67
(No Transcript)
68
(No Transcript)
69
(No Transcript)
70
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com