MC97F2664
124
April 11, 2014 Ver. 1.4
11.5 Timer 0/1/2/3
11.5.1 Overview
The 8-bit timer 0/1/2/3 consists of multiplexer, timer 0/1/2/3 counter register, timer 0/1/2/3 data register, timer
0/1/2/3 capture data register, and timer 0/1/2/3 control register (TnCNT, TnDR, TnCDR, TnCR).
It has three operating modes:
-
8-bit timer/counter mode
-
8-bit PWM output mode
-
8-bit capture mode
The timer/counter 0/1/2/3 can be clocked by an internal or an external clock source (ECn). The clock source is
selected by clock selection logic which is controlled by the clock selection bits (TnCK[2:0]).
- TIMER 0/1/2/3 clock source: f
X
/2, 4, 8, 32, 128, 512, 2048 and ECn
In the capture mode, by EINT1n, the data is captured into input capture data register (TnCDR). In timer/counter
mode, whenever counter value is equal to TnDR, TnO port toggles. Also the timer 0/1/2/3 outputs PWM
waveform through PWMnO port in the PWM mode.
Table 11-5 Timer 0/1/2 Operating Modes
TnEN
TnMS[1:0]
TnCK[2:0]
Timer n
1
00
XXX
8 Bit Timer/Counter Mode
1
01
XXX
8 Bit PWM Mode
1
1X
XXX
8 Bit Capture Mode
Содержание MC97F2664
Страница 20: ...MC97F2664 20 April 11 2014 Ver 1 4 4 Package Diagram Figure 4 1 64 Pin LQFP 1010 Package...
Страница 21: ...MC97F2664 April 11 2014 Ver 1 4 21 Figure 4 2 64 Pin LQFP 1414 Package...
Страница 22: ...MC97F2664 22 April 11 2014 Ver 1 4 Figure 4 3 64 Pin QFN Package...
Страница 23: ...MC97F2664 April 11 2014 Ver 1 4 23 Figure 4 4 44 Pin MQFP 1010 Package...