English
Language : 

MC68HC705C8A Datasheet, PDF (90/222 Pages) Motorola, Inc – HCMOS Microcontroller Unit
Capture/Compare Timer
Because of the 16-bit timer architecture, the I/O registers for the input
capture and output compare functions are pairs of 8-bit registers.
Because the counter is 16 bits long and preceded by a fixed
divide-by-four prescaler, the counter rolls over every 262,144 internal
clock cycles. Timer resolution with a 4-MHz crystal is 2 µs.
8.3.1 Input Capture
The input capture function can record the time at which an external event
occurs. When the input capture circuitry detects an active edge on the
input capture pin (TCAP), it latches the contents of the timer registers
into the input capture registers. The polarity of the active edge is
programmable.
Latching values into the input capture registers at successive edges of
the same polarity measures the period of the input signal on the TCAP
pin. Latching the counter values at successive edges of opposite polarity
measures the pulse width of the signal. Figure 8-3 shows the logic of the
input capture function.
15
$0018
8
TIMER REGISTER HIGH
7
$0019
0
TIMER REGISTER LOW
TCAP
EDGE
SELECT/DETECT
LOGIC
LATCH
15
8
INPUT CAPTURE REGISTER HIGH
$0014
7
0
INPUT CAPTURE REGISTER LOW
$0015
TIMER
INTERRUPT
REQUEST
Technical Data
90
TIMER CONTROL REGISTER
$0012
TIMER STATUS REGISTER
$0013
Figure 8-3. Input Capture Operation
Capture/Compare Timer
MC68HC705C8A — Rev. 2.0
MOTOROLA