
CH32V003
Reference Manual
V1.3
107
15
14 13 12
11
10
9
8
7
6
5
4
3
2
1
0
OC4CE OC4M[2:0] OC4PE OC4FE
CC4S[1:0]
OC3CE OC3M[2:0] OC3PE OC3FE
CC3S[1:0]
IC4F[3:0]
IC4PSC[1:0]
IC3F[3:0]
IC3PSC[1:0]
Comparison mode (pin direction is output).
Bit
Name
Access
Description
Reset
value
15
OC4CE
RW Compare capture channel 4 clear enable bit.
0
[14:12] OC4M
RW Compare the Capture Channel 4 mode setting field.
0
11
OC4PE
RW Compare Capture Register 4 preload enable bit.
0
10
OC4FE
RW Compare capture channel 4 fast enable bit.
0
[9:8]
CC4S
RW Compare capture channel 4 input selection fields.
0
7
OC3CE
RW Compare capture channel 3 clear enable bit.
0
[6:4]
OC3M
RW Compare capture channel 3 mode setting field.
0
3
OC3PE
RW Compare Capture Register 3 preload enable bit.
0
2
OC3FE
RW Compare capture channel 3 fast enable bit.
0
[1:0]
CC3S
RW Compare capture channel 3 input selection fields.
0
Capture mode (pin direction is input).
Bit
Name
Access
Description
Reset
value
[15:12] IC4F
RW Input capture filter 4 configuration field.
0
[11:10] IC4PSC
RW
Compare the capture channel 4 prescaler configuration
field.
0
[9:8]
CC4S
RW Compare capture channel 4 input selection fields.
0
[7:4]
IC3F
RW Input capture filter 3 configuration field.
0
[3:2]
IC3PSC
RW
Compare capture channel 3 prescaler configuration
fields.
0
[1:0]
CC3S
RW Compare capture channel 3 input selection fields.
0
10.4.9 Compare/Capture enable register 2 (TIM1_CCER)
Offset address: 0x20
15 14 13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserve
d
CC4
P
CC4
E
CC3N
P
CC3N
E
CC3
P
CC3
E
CC2N
P
CC2N
E
CC2
P
CC2
E
CC1N
P
CC1N
E
CC1
P
CC1
E
Bit
Name
Access
Description
Reset
value
[15:14] Reserved
RO Reserved
0
13
CC4P
RW
Compare the capture channel 4 output polarity
setting
bit.
0
12
CC4E
RW Compare capture channel 4 output enable bit.
0
11
CC3NP
RW
Compare capture channel 3 complementary output
polarity setting bit.
0
10
CC3NE
RW
Compare capture channel 3 complementary output
enable bits.
0
9
CC3P
RW
Compare the capture channel 3 output polarity setting
bit.
0
8
CC3E
RW Compare the capture channel 3 output enable bit.
0
7
CC2NP
RW
Compare capture channel 2 complementary output
polarity setting bit.
0
6
CC2NE
RW
Compare capture channel 2 complementary output
enable bits.
0
5
CC2P
RW
Compare the capture channel 2 output polarity setting
bit.
0