English
Language : 

MC68HC11P2 Datasheet, PDF (143/268 Pages) Motorola, Inc – Microcontrollers
Freescale Semiconductor, Inc.
Timing System
Input capture
8.4.1 TCTL2 — Timer control register 2
Timer control 2 (TCTL2)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0021 EDG4BEDG4AEDG1BEDG1AEDG2BEDG2AEDG3BEDG3A 0000 0000
Use the control bits of this register to program input capture functions to
detect a particular edge polarity on the corresponding timer input pin.
Each of the input capture functions can be independently configured to
detect rising edges only, falling edges only, any edge (rising or falling),
or to disable the input capture function. The input capture functions
operate independently of each other and can capture the same TCNT
value if the input edges are detected within the same timer count cycle.
EDGxB and EDGxA — Input capture edge control
EDGxB
0
0
1
1
EDGxA
Configuration
0 ICx disabled
1 ICx captures on rising edges only
0 ICx captures on falling edges only
1 ICx captures on any edge
There are four pairs of these bits. Each pair is cleared by reset and
must be encoded to configure the corresponding input capture edge
detector circuit. IC4 functions only if the I4/O5 bit in the PACTL
register is set.
MC68HC11P2 — Rev 1.0
Timing System
For More Information On This Product,
Go to: www.freescale.com
Technical Data