
CMT2380F17
Rev0.1 | 142/347
www.cmostek.com
16.2.2
Timer 2 Mode 1 (Auto-Reload with External Interrupt)
Figure 16
–13 shows Timer 2 Mode 1, which enables Timer 2 to count up automatically. In this mode there
are two options selected by bit EXEN2 in T2CON register. If EXEN2=0, then Timer 2 counts up to 0FFFFH
and sets the TF2 (Overflow Flag) bit upon overflow. This causes the Timer 2 registers to be reloaded with the
16-bit value in RCAP2L and RCAP2H. The values in RCAP2L and RCAP2H are preset by firmware. If
EXEN2=1, then a 16-bit reload can be triggered either by an overflow or by a 1-to-0 transition at input T2EXI,
one of 8 Timer 2 external inputs. This transition also sets the EXF2 bit. The Timer 2 interrupt, if enabled, can
be generated when either TF2 or EXF2 are 1. T2EXH performs the same function as EXEN2 but it enables
the detecting a 0-to-1 transition at input T2EXI.
Figure 16-13. Timer 2 Mode 1 Structure (Auto-Reload with External Interrupt Mode)
Summary of Contents for CMT2380F17
Page 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Page 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Page 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...