![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 149](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609149.webp)
BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
149 / 1149
Rev.1.02
Figure 6-6 timer clock selection register m (TPSm) (1/2).
symbol
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TPSm
0
0
PRS
m31
PRS
m30
0
0
PRS
m21
PRS
m20
PRS
m13
PRS
m12
PRS
m11
PRS
m10
PRS
m03
PRS
m02
PRS
m01
PRS
m00
PRS
mk3
PRS
mk2
PRS
mk1
PRS
mk0
Select the operating clock (CKmk) (k=0, 1).
f
CLK
=2MHz
f
CLK
=4MHz
f
CLK
=8MHz
f
CLK
=20MHz
f
CLK
=32MHz
0
0
0
0
f
CLK
2MHz
4MHz
8MHz
20MHz
32MHz
0
0
0
1
f
CLK
/2
1MHz
2MHz
4MHz
10MHz
16MHz
0
0
1
0
f
CLK
/2
2
500kHz
1MHz
2MHz
5MHz
8MHz
0
0
1
1
f
CLK
/2
3
250kHz
500kHz
1MHz
2.5MHz
4MHz
0
1
0
0
f
CLK
/2
4
125kHz
250kHz
500kHz
1.25MHz
2MHz
0
1
0
1
f
CLK
/2
5
62.5kHz
125kHz
250kHz
625kHz
1MHz
0
1
1
0
f
CLK
/2
6
31.3kHz
62.5kHz
125kHz
313kHz
500kHz
0
1
1
1
f
CLK
/2
7
15.6kHz
31.3kHz
62.5kHz
156kHz
250kHz
1
0
0
0
f
CLK
/2
8
7.81kHz
15.6kHz
31.3kHz
78.1kHz
125kHz
1
0
0
1
f
CLK
/2
9
3.91kHz
7.81kHz
15.6kHz
39.1kHz
62.5kHz
1
0
1
0
f
CLK
/2
10
1.95kHz
3.91kHz
7.81kHz
19.5kHz
31.25kHz
1
0
1
1
f
CLK
/2
11
977Hz
1.95kHz
3.91kHz
9.77kHz
15.6kHz
1
1
0
0
f
CLK
/2
12
488Hz
977Hz
1.95kHz
4.88kHz
7.81kHz
1
1
0
1
f
CLK
/2
13
244Hz
488Hz
977Hz
2.44kHz
3.91kHz
1
1
1
0
f
CLK
/2
14
122Hz
244Hz
488Hz
1.22kHz
1.95kHz
1
1
1
1
f
CLK
/2
15
61.0Hz
122Hz
244Hz
610Hz
977Hz
Note: The universal timer unit (TTm=0,100FH) must be stopped when changing
the clock selected as
f
CLK
(changing
the value of the system clock control register (CKC)). Even when selecting the operating clock (f
MCK
) or
the
effective edge of the input signal of the
TImn
pin, the general-purpose timer unit needs to be stopped.
Note: 1.
Bit15,
14,
11,
10
must be
set to
"0".
2. If f
CLK
(no divider) is selected as the operating clock (CKmk) and
TDRnm
is set to
"0000H"
(n =0,
1,
m=0~3),
you cannot use
interrupt requests for a universal timer unit.
Note: 1.f
CLK
:
Cpu/peripheral hardware clock frequency
2. The clock waveform selected by the TPSm register starts from the rising edge with only
1
f
CLK
period as high
(m=1~15). For details, please refer to
Counting Clock (f
TCLK
)".