
CH32V003
Reference Manual
V1.3
103
Reserved
BG TG COMG CC4G CC3G CC2G CC1G UG
Bit
Name
Access
Description
Reset
value
[15:8] Reserved
RO Reserved
0
7
BG
WO
The brake event generation bit, which is set and cleared
by software, is used to generate a brake event.
1: Generate a brake event. At this point, MOE=0,
BIF=1, if the corresponding interrupt and DMA are
enabled, the corresponding interrupt and DMA are
generated.
0: No action.
0
6
TG
WO
The trigger event generation bit, which is set by
software and cleared by hardware, is used to generate a
trigger event.
1: Generate a trigger event, TIF is set, and the
corresponding interrupts and DMAs are generated if
enabled.
0: No action.
0
5
COMG
WO
Compare capture control update generation bit.
Generates a compare capture control update event. This
bit is set by software and automatically cleared by
hardware.
1: when CCPC = 1, allow updating of CCxE, CCxNE,
OCxM bits.
0: No action.
Note: This bit is only valid for channels with
complementary outputs (channels 1, 2, 3).
0
4
CC4G
WO
Compare capture event generation bit 4. generates
compare capture event 4.
0
3
CC3G
WO
Compare capture event generation bit 3. generates
compare capture event 3.
0
2
CC2G
WO
Compare capture event generation bit 2. generates
compare capture event 2.
0
1
CC1G
WO
Compare capture event generation bit 1. generates
compare capture event 1.
This bit is set by software and cleared by hardware. It
is used to generate a compare capture event.
1: Generate a compare capture event on compare
capture channel 1.
If compare capture channel 1 is configured as
output.
Set the CC1IF bit. Generate the corresponding
interrupts and DMAs if they are enabled.
If compare capture channel 1 is configured as input.
The current core counter value is captured to compare
capture register 1; set the CC1IF bit to generate the
corresponding interrupts and DMAs if they are enabled;
if CC1IF is already set, set the CC1OF bit.
0: No action.
0
0
UG
WO
Update event generation bit to generate an update
event. This bit is set by software and is automatically
cleared by hardware.
1: Initialize the counter and generate an update event.
0: No action.
Note: The prescaler counter is also cleared to zero, but
the prescaler factor remains unchanged. The core
counter is cleared if in centrosymmetric mode or
0