English
Language : 

MC68HC705C8ACFNE Datasheet, PDF (93/222 Pages) Freescale Semiconductor, Inc – Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
Capture/Compare Timer
Timer Operation
8.3.2 Output Compare
The output compare function can generate an output signal when the
16-bit counter reaches a selected value. Software writes the selected
value into the output compare registers. On every fourth internal clock
cycle the output compare circuitry compares the value of the counter to
the value written in the output compare registers. When a match occurs,
the timer transfers the programmable output level bit (OLVL) from the
timer control register to the output compare pin (TCMP).
Software can use the output compare register to measure time periods,
to generate timing delays, or to generate a pulse of specific duration or
a pulse train of specific frequency and duty cycle on the TCMP pin.
Figure 8-4 shows the logic of the output compare function.
15
COUNTER HIGH BYTE
0
COUNTER LOW BYTE
16-BIT COMPARATOR
15
8
OUTPUT COMPARE REGISTER HIGH
$0016
7
0
OUTPUT COMPARE REGISTER LOW
$0017
PIN
CONTROL
LOGIC
TCMP
TIMER
INTERRUPT
REQUEST
TIMER STATUS REGISTER
$0012
TIMER STATUS REGISTER
$0013
Figure 8-4. Output Compare Operation
MC68HC705C8A — Rev. 3
MOTOROLA
Capture/Compare Timer
For More Information On This Product,
Go to: www.freescale.com
Technical Data