
CH32V003
Reference Manual
V1.3
102
1: the value of the counter is captured into the capture
comparison register when the status of CC1IF has been
set.
0: No duplicate captures are generated.
8
Reserved
RO Reserved
0
7
BIF
RW0
The brake interrupt flag bit, once the brake input is
valid, by hardware for this position bit, can be cleared
by software.
1: A set valid level is detected on the brake pin input.
0: No braking event is generated.
0
6
TIF
RW0
Trigger interrupt flag bit, when a trigger event occurs
by hardware to this location bit, by software to clear.
Trigger events include the detection of a valid edge at
the TRGI input from a mode other than gated, or any
edge in gated mode.
1: Trigger event generation.
0: No trigger event is generated.
0
5
COMIF
RW0
COM interrupt flag bit, this bit is set by hardware and
cleared by software once a COM event is generated.
com events including CCxE, CCxNE, OCxM are
updated.
1: COM event generation.
0: No COM event is generated.
0
4
CC4IF
RW0 Compare capture channel 4 interrupt flag bits.
0
3
CC3IF
RW0 Compare capture channel 3 interrupt flag bits.
0
2
CC2IF
RW0 Compare capture channel 2 interrupt flag bits.
0
1
CC1IF
RW0
Compare capture channel 1 interrupt flag bits.
If the compare capture channel is configured in output
mode.
This bit is set by hardware when the counter value
matches
the
comparison
value,
except
in
centrosymmetric mode. This bit is cleared by software.
1: The value of the core counter matches the value of
compare capture register 1;
0: No match occurs.
If compare capture channel 1 is configured as input
mode. This bit is set by hardware when a capture event
occurs, and it is cleared by software or by reading the
compare capture register.
1: the counter value has been captured compare capture
register 1.
0: No input capture is generated.
0
0
UIF
RW0
Update interrupt flag bit, this bit is set by hardware
when an update event is generated and cleared by
software.
1: Update interrupt generation.
0: No update event is generated.
The following scenarios generate update events.
If UDIS = 0, when the repeat counter value overflows
or underflows.
If URS = 0, UDIS = 0, when the UG bit is set, or when
the counter core counter is reinitialized by software.
If URS = 0, UDIS = 0, when the counter CNT is
reinitialized by a trigger event.
0
10.4.6 Event generation register (TIM1_SWEVGR)
Offset address: 0x14
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0