English
Language : 

MC68HC705P9 Datasheet, PDF (104/160 Pages) Motorola, Inc – HCMOS Microcontroller Unit 
Timer
Freescale Semiconductor, Inc.
TCAP
EDGE
SELECT/
DETECT
LOGIC
ICRH
ICRL
IEDG
TRH
TRL
ICF
TIMER
INTERRUPT
ICIE
REQUEST
Figure 9-3. Input Capture Operation
9.4.3 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 9-4 shows the logic of the output compare function.
Technical Data
104
16-BIT COUNTER
16-BIT COMPARATOR
OCRH ($0016)
OCRL ($0017)
PIN
CONTROL
LOGIC
OLVL
OCF
TCMP
OCIE
TIMER
INTERRUPT
REQUEST
Figure 9-4. Output Compare Operation
Timer
For More Information On This Product,
Go to: www.freescale.com
MC68HC705P9 — Rev. 4.0
MOTOROLA