176
MC97F60128
ABOV Semiconductor Co., Ltd.
11.7 Timer 7/8
11.7.1 Overview
Timer 7 and timer 8 can be used either two 8-bit timer/counter or one 16-bit timer/counter with combine them.
Each 8-
bit timer/event counter module has multiplexer, comparator, 8-bit timer data register, 8-bit counter register, control
register and capture data register (T7CNT, T7DR, T7CAPR, T7CR, T8CNT, T8DR, T8CAPR, T8CR). For PWM, it has
PWM register (T8PPRL. T8PPRH, T8ADRL, T8ADRH, T8BDRL, T8BDRH, T8CDRL, T8CDRH, T8DLYA, T8DLYB,
T8DLYC).
It has five operating modes:
−
8-bit timer/counter mode
−
8-bit capture mode
−
16-bit timer/counter mode
−
16-bit capture mode
−
10-bit PWM mode
The timer/counter 7 and 8 can be clocked by an internal or an external clock source (EC7).
The clock source is
selected by clock selection logic which is controlled by the clock selection bits (T7CK[2:0], T8CK[3:0]). Also the
timer/counter 8 can use more clock sources than timer/counter 7.
−
TIMER 7 clock source: f
X
/2, 4, 8, 32, 128, 512, 2048 and EC7
−
TIMER 8 clock source: f
X
/1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384 and T7 clock
In the capture mode, by EINT17/EINT18, the data is captured into input capture data register (T7CAPR, T8CAPR).
In 8-bit timer/counter 7/8 mode, whenever counter value is equal to T7DR/T8DR, T7O/T8O port toggles. Also In 16-bit
timer/counter 7 mode,
The timer 7 outputs the comparison result between counter and data register through T7O port.
The PWM wave form
to PWMAA, PWMAB, PWMBA, PWMBB, PWMCA, PWMCB Port (6-channel) in the PWM mode.
16BIT
T7MS
T8MS
PWM8E
T7CK[2:0]
T7CK[3:0]
Timer 7
Timer 8
0
0
0
0
XXX
XXXX
8 Bit Timer/Counter Mode
8 Bit Timer/Counter Mode
0
1
1
0
XXX
XXXX
8 Bit Capture Mode
8 Bit Capture Mode
1
0
0
0
XXX
XXXX
16 Bit Timer/Counter Mode
1
1
1
0
XXX
XXXX
16 Bit Capture Mode
0
X
X
1
XXX
XXXX
10 Bit PWM Mode
Table 11-9
Timer 7/8 Operating Modes
Содержание MC97F60128
Страница 17: ...17 MC97F60128 ABOV Semiconductor Co Ltd 4 Package Diagram Figure 4 1 100 pin LQFP 1414 Package...
Страница 18: ...18 MC97F60128 ABOV Semiconductor Co Ltd Figure 4 2 80 Pin LQFP 1212 Package...
Страница 19: ...19 MC97F60128 ABOV Semiconductor Co Ltd Figure 4 3 80 Pin LQFP 1414 Package...
Страница 20: ...20 MC97F60128 ABOV Semiconductor Co Ltd Figure 4 4 64 Pin LQFP 1414 Package...