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