BAT32G1x9 User Manual | Chapter 1 CPU
27 / 1149
Rev.1.02
1.4 SWD interface pin
The 2 GPIOOs of this product can be used as SWD interface pins, which are present in all packages.
Table 1-1 SWD debug port pins
When the SWD function is not used, SWD can be disabled by setting the debug stop control register
(DBGSTOPCR).
Bit No.
31
30
29
28
27
26
25
24
DBGSTOPCR
-
-
-
-
-
-
-
SWDIS
Default value
0
0
0
0
0
0
0
0
Bit No.
23
22
21
20
19
18
17
16
DBGSTOPCR
-
-
-
-
-
-
-
-
Default value
0
0
0
0
0
0
0
0
Bit No.
15
14
13
12
11
10
9
8
DBGSTOPCR
-
-
-
-
-
-
-
-
Default value
0
0
0
0
0
0
0
0
Bit No.
7
6
5
4
3
2
1
0
DBGSTOPCR
-
-
-
-
-
-
FRZEN1
FRZEN0
Default value
0
0
0
0
0
0
0
0
SWDIS
SWD debug interface disable
0
SWD debug interface enabled. In the state of connecting the debugger, the P40 cannot be used as
a GPIO (because the ENO and DOT of the IOBOF are controlled by the debugger at this time)
1
The SWD debug interface is disabled. The P40 can be used as a GPIO
FRZEN0
When the debugger is connected and the CPU is in the debug state (HALTED=1), the timer
peripheral module action/stop
Note 1
0
Peripheral action
1
Peripheral Stops
FRZEN1
When the debugger is connected and the CPU is in the debug state (HALTED=1), the
communication system peripheral module action/stop
Note 2
0
Peripheral action
1
Peripheral Stops
Note 1: The peripheral modules of the timer system of this product include: universal timer unit Timer4/8, timer A,
timer B, timer C and timer M.
Note 2: The communication peripheral modules of this product include: communication serial communication unit,
serial IICA, etc.
SWD port name
Debugging features
Pinout
SWCLK
Serial clock
P137
SWDIO
Serial data input/output
P40