
CH32V003
Reference Manual
V1.3
97
update interrupt or DMA request is generated by any of
the following events.
-Counter overflow/underflow
-Setting the UG position
-Updates generated from the mode controller
1
UDIS
RW
Disable updates, the software allows/disables the
generation of UEV events by means of this bit.
1: UEV is disabled. no update event is generated and
the registers (ARR, PSC, CCRx) keep their values. If
the UG bit is set or a hardware reset is issued from the
mode controller, the counters and prescaler are
reinitialized.
0: UEV is allowed. update (UEV) events are generated
by any of the following events:
-Counter overflow/underflow
-Setting the UG position
-Updates generated from the mode controller
Registers with caches are loaded with their preloaded
values.
0
0
CEN
RW
Enables the counter.
1: Enables the counter.
0: Disable the counter.
Note: The external clock, gated mode and encoder
mode will not work until the CEN bit is set in software.
Trigger mode can automatically set the CEN bit in
hardware.
0
10.4.2 Control Register 2 (TIM1_CTLR2)
Offset address: 0x04
15
14
13
12
11
10
9
8
7
6 5
4
3
2
1
0
Reserved OIS4 OIS3N OIS3 OIS2N OIS2 OIS1N OIS1 TI1S MMS[2:0] CCDS CCUS Reserved CCPC
Bit
Name
Access
Description
Reset
value
15
Reserved
RO Reserved
0
14
OIS4
RW
Output idle state 4.
1: When MOE=0, if OC4N is implemented, OC1=1
after deadband;
0: When MOE=0, if OC4N is implemented, OC1=0
after deadband.
Note: This bit cannot be modified after LOCK
(TIMx_BDTR register) level 1, 2 or 3 has been set.
0
13
OIS3N
RW
Output idle state 3.
1: OC1N = 1 after the dead zone when MOE = 0.
0: When MOE=0, OC1N=0 after dead zone.
Note: This bit cannot be modified after the LOCK
(TIMx_BDTR register) level 1, 2 or 3 has been set.
0
12
OIS3
RW Output idle state 3, see OIS4.
0
11
OIS2N
RW Output idle state 2, see OIS3N.
0
10
OIS2
RW Output idle state 2, see OIS4.
0
9
OIS1N
RW Output idle state 1, see OIS3N.
0
8
OIS1
RW Output idle state 1, see OIS4.
0
7
TI1S
RW
TI1 selection.
1: TIMx_CH1, TIMx_CH2 and TIMx_CH3 pins
connected to TI1 input after heterodyning.
0: TIMx_CH1 pin is connected directly to TI1 input.
0
[6:4]
MMS
RW Master mode selection:These 3 bits are used to select
0