
CH32V003
Reference Manual
V1.3
125
11.4.5 Interrupt Status Register (TIM2_INTFR)
Offset address: 0x10
15 14 13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
CC4OF CC3OF CC2OF CC1OF Reserved TIF Reserved CC4IF CC3IF CC2IF CC1IF UIF
Bit
Name
Access
Description
Reset
value
[15:13] Reserved
RO Reserved
0
12
CC4OF
WO Compare capture channel 4 to repeat capture flag bits.
0
11
CC3OF
WO Compare capture channel 3 to repeat capture flag bits.
0
10
CC2OF
WO Compare capture channel 2 to repeat capture flag bits.
0
9
CC1OF
WO
The compare capture channel 1 repeat capture flag bit
is used only when the compare capture channel is
configured for input capture mode. This flag is set by
hardware and a software write of 0 clears this bit.
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.
0
[8:7]
Reserved
RO Reserved
0
6
TIF
WO
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
Reserved
RO Reserved
0
4
CC4IF
WO Compare capture channel 4 interrupt flag bits.
0
3
CC3IF
WO Compare capture channel 3 interrupt flag bits.
0
2
CC2IF
WO Compare capture channel 2 interrupt flag bits.
0
1
CC1IF
WO
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 compare 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 in 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
WO
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
0