
CH32V003
Reference Manual
V1.3
181
Chapter 18 Debug Support (DBG)
18.1 Main features
This register allows the MCU to be configured in the debug state. It includes:
l
Independent Watchdog (IWDG) enabled counters
l
Window Watchdog (WWDG) enabled counters
l
Timer1 enabled counters
l
Timer2 enabled counters
18.2 Register description
18.2.1 Debug MCU Configuration Register (DBGMCU_CR)
Offset address: 0x7C0 (CSR)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
TIM2
_STO
P
TIM1
_STO
P
Reserved
WW
DG_S
TOP
IWD
G_ST
OP
Bit
Name
Access
Description
Reset value
[31:6] Reserved
RW
Reserved
0
5
TIM2_STOP
RW
Timer 2 debug stop bit. The counter stops when
the core enters the debug state.
1: Timer 2's counter stops working.
0: Timer 2's counter is still working normally.
0
4
TIM1_STOP
RW
Timer 1 debug stop bit. The counter stops when
the kernel enters the debug state.
1: Timer 1's counter stops working.
0: Timer 1's counter is still working normally.
0
[3:2]
Reserved
RW
Reserved
0
1
WWDG_STOP
RW
WWDG debug stop bit. The debug WWDG stops
working when the core enters the debug state.
1: WWDG counter stops working.
0: WWDG counter is still working normally.
0
0
IWDG_STOP
RW
IWDG debug stop bit. The debug IWDG stops
working when the core enters the debug state.
1: IWDG counter stops working.
0: IWDG counter is still working normally.
0