MC68HC11F1MFN2 FREESCALE [Freescale Semiconductor, Inc], MC68HC11F1MFN2 Datasheet - Page 61

no-image

MC68HC11F1MFN2

Manufacturer Part Number
MC68HC11F1MFN2
Description
Technical Summary 8-Bit Microcontroller
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
TCTL2 — Timer Control 2
EDGxB, EDGxA — Input Capture Edge Control
TMSK1 — Timer Interrupt Mask 1
OCxI — Output Compare x Interrupt Enable
I4/O5I — Input Capture 4/Output Compare 5 Interrupt Enable
ICxI — Input Capture x Interrupt Enable
TFLG1 — Timer Interrupt Flag 1
MC68HC11F1/FC0
MC68HC11FTS/D
RESET:
RESET:
RESET:
Each EDGxB, EDGxA pair determines the polarity of the input signal on the corresponding ICx that will
trigger an input capture, as shown in Table 30. IC4 functions only if the I4/O5 bit in the PACTL register
is set.
Bits in TMSK1 correspond bit for bit with flag bits in TFLG1. Each bit that is set in TMSK1 enables the
corresponding interrupt source.
If the OCxI enable bit is set when the OCxF flag bit is set, a hardware interrupt sequence is requested.
When I4/O5 in PACTL is one, I4/O5I is the input capture 4 interrupt enable bit. When I4/O5 in PACTL
is zero, I4/O5I is the output compare 5 interrupt enable bit.
If the ICxI enable bit is set when the ICxF flag bit is set, a hardware interrupt sequence is requested.
Bits in TFLG1 are cleared by writing a one to the corresponding bit positions.
EDG4B
OC1F
OC1I
Bit 7
Bit 7
Bit 7
0
0
0
EDG4A
OMx
OC2F
OC2I
0
0
1
1
6
0
6
0
6
0
EDGxB
Freescale Semiconductor, Inc.
0
0
1
1
For More Information On This Product,
OLx
Table 30 Input Capture Configuration
EDG1B
0
1
0
1
OC3F
Table 29 Output Compare Actions
OC3I
5
0
5
0
5
0
Timer disconnected from output pin logic
Toggle OCx output line
Clear OCx output line to zero
Set OCx output line to one
Go to: www.freescale.com
Action Taken on Successful Compare
EDGxA
EDG1A
OC4F
OC4I
0
1
0
1
4
0
4
0
4
0
EDG2B
I4/O5F
I4/O5I
Capture disabled
Capture on rising edges only
Capture on falling edges only
Capture on any edge
3
0
3
0
3
0
Configuration
EDG2A
IC1F
IC1I
2
0
2
0
2
0
EDG3B
IC2F
IC2I
1
0
1
0
1
0
EDG3A
Bit 0
IC3F
Bit 0
Bit 0
IC3I
0
0
0
$x021
$x022
$x023
61

Related parts for MC68HC11F1MFN2