English
Language : 

MC68HC05P9A Datasheet, PDF (90/158 Pages) Freescale Semiconductor, Inc – HCMOS Microcontroller Unit
Timer
Freescale Semiconductor, Inc.
TCAP
EDGE
SELECT/
DETECT
LOGIC
ICRH
ICRL
IEDG
TRH
TRL
ICF
TIMER
INTERRUPT
ICIE
REQUEST
Figure 44. Input Capture Operation
Output Compare
The output compare function is a means of generating 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 TCMP pin.
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 45 shows the logic of the output compare function.
16-BIT COUNTER
16-BIT COMPARATOR
OCRH ($0016)
OCRL ($0017)
PIN
CONTROL
LOGIC
OLVL
OCF
TCMP
OCIE
TIMER
INTERRUPT
REQUEST
Figure 45. Output Compare Operation
10-tim1ic1oc_a
90
Timer
MOTOROLA
For More Information On This Product,
Go to: www.freescale.com