
CMT2380F17
Rev0.1 | 141/347
www.cmostek.com
16.2
Timer 2
Timer 2 is a 16-bit Timer/Counter which can operate either as a timer or an event counter, as selected by
C/T2 in T2CON register. Timer 2 has four operating modes: Capture, Auto-Reload (up or down counting),
Baud Rate Generator and Programmable Clock-Out, which are selected by bits in the T2CON, T2MOD and
T2MOD1 registers.
16.2.1
Timer 2 Mode 0 (Auto-Reload and External Interrupt)
In this mode, Timer 2 provides a 16-bit auto-reload timer/counter. The TF2, Timer 2 overflow flag, is one
of the Timer 2 interrupt source which interrupt function can be blocked by TF2IG. EXEN2 enables a 1-to-0
transition at T2EXI to set the flag, EXF2, for an external input interrupt to share the Timer 2 interrupt with TF2.
T2EXI is the selection result of 8 Timer 2 external inputs. T2EXH performs the same function as EXEN2 but it
enables the detecting a 0-to-1 transition at T2EXI input.
The Timer 2 overflow event (T2OF) in this module will be output to other peripheral as clock input or
event source. Timer 2 Mode 0 is illustrated in Figure 16
–12.
Figure 16-12. Timer 2 Mode 0 Structure (Auto-Reload and Exteranl Interrupt Mode)
Содержание CMT2380F17
Страница 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Страница 111: ...CMT2380F17 Rev0 1 111 347 www cmostek com INT2IS 1 0 Selected Port Pin of nINT2 00 P4 4 01 P3 0 10 P1 1 11 P1 6...
Страница 131: ...CMT2380F17 Rev0 1 131 347 www cmostek com Figure 16 1 Timer 0 Mode 0 Structure Figure15 2 Timer 1 Mode 0 Structure...
Страница 161: ...CMT2380F17 Rev0 1 161 347 www cmostek com Figure 16 32 Split Timer 3 Mode 1 Structure AR with Ex INT...
Страница 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Страница 239: ...CMT2380F17 Rev0 1 239 347 www cmostek com Figure 19 5 8 bit Timer Mode Configuration for S1BRG S1TME 1...
Страница 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...
Страница 289: ...CMT2380F17 Rev0 1 289 347 www cmostek com...