XC886/888CLM
Timers
User’s Manual
13-20
V1.3, 2010-02
Timers, V 1.0
13.2.5
External Interrupt Function
While the timer/counter function is disabled (TR2 = 0), it is still possible to generate a
Timer 2 interrupt to the core via an external event at T2EX, as long as Timer 2 remains
enabled (PMCON1.T2_DIS = 0). To achieve this, bit EXEN2 in register T2CON must be
set. As a result, any transition on T2EX will cause either a dummy reload or a dummy
capture, depending on the CP/ RL2 bit selection.
By disabling the timer/counter function, T2EX can be alternatively used to provide an
edge-triggered (rising or falling) external interrupt function, with bit EXF2 serving as the
external interrupt flag.
13.2.6
Port Control
When functioning as an event counter, Timer 2 and Timer 21 count 1-to-0 transitions at
their external input pins, T2 and T21, which can be selected from two different sources,
T2_0 and T2_1 for Timer 2, and T21_0 and T21_1 for Timer 21. This selection is
performed by the SFR bits MODPISEL2.T2IS and MODPISEL2.T21IS.
MODPISEL2
Peripheral Input Select Register
Reset Value: 00
H
7
6
5
4
3
2
1
0
0
T21IS
T2IS
T1IS
T0IS
r
rw
rw
rw
rw
Field
Bits
Type Description
T2IS
2
rw
T2 Input Select
0
Timer 2 Input T2_0 is selected.
1
Timer 2 Input T2_1 is selected.
T21IS
3
rw
T21 Input Select
0
Timer 21 Input T21_0 is selected.
1
Timer 21 Input T21_1 is selected.
0
[7:4]
r
Reserved
Returns 0 if read; should be written with 0.
*
Содержание XC886CLM
Страница 1: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 3: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 324: ...XC886 888CLM Serial Interfaces User s Manual 12 52 V1 3 2010 02 Serial Interfaces V 1 0...
Страница 663: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG...