Counting Clock Prescaler (Tim2_Psc); Auto-Reload Value Register (Tim2_Atrlr); Compare/Capture Registers - WCH CH32V003 Series Reference Manual

Table of Contents

Advertisement

CH32V003 Reference Manual

11.4.11 Counting clock prescaler (TIM2_PSC)

Offset address: 0x28
15
14
13
12
Bit
Name
[15:0]
PSC

11.4.12 Auto-reload value register (TIM2_ATRLR)

Offset address: 0x28
15
14
13
12
Bit
Name
[15:0]
ATRLR
11.4.13 Compare/capture register 1 (TIM2_CH1CVR)
Offset address: 0x34
15
14
13
12
Bit
Name
[15:0]
CH1CVR
11.4.14 Compare/capture register 2 (TIM2_CH2CVR)
Offset address: 0x38
15
14
13
12
Bit
Name
[15:0]
CH2CVR
11.4.15 Compare/capture register 3 (TIM2_CH3CVR)
Offset address: 0x3C
15
14
13
12
Bit
Name
V1.3
11
10
9
8
PSC[15:0]
Access
The dividing factor of the prescaler of the timer; the
RW
clock frequency of the counter is equal to the input
frequency of the divider/(PSC+1).
11
10
9
8
ATRLR[15:0]
Access
The value of ATRLR[15:0] will be loaded into the
RW
counter, read section 10.2.4 for when ATRLR acts and
updates; the counter stops when ATRLR is empty.
11
10
9
8
CH1CVR[15:0]
Access
RW Compare the value of capture register channel 1.
11
10
9
8
CH2CVR[15:0]
Access
RW Compare the value of capture register channel 2.
11
10
9
8
CH3CVR[15:0]
Access
131
7
6
5
4
Description
7
6
5
4
Description
7
6
5
4
Description
7
6
5
4
Description
7
6
5
4
Description
http://wch.cn
3
2
1
0
Reset
value
0
3
2
1
0
Reset
value
0xFFF
F
3
2
1
0
Reset
value
0
3
2
1
0
Reset
value
0
3
2
1
0
Reset
value

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents