
CH32V003
Reference Manual
V1.3
59
PA12
_RM
Reserved
TIM2RM[1:0] TIM1RM[1:0]
Reserved
USAR
T1_
RM
I2C1
RM
SPI1
RM
Bit
Name
Access
Description
Reset value
[31:27] Reserved
RO Reserved
0
[26:24] SWCFG
WO
These bits are used to configure the I/O ports for
SW function and trace function. SWD (SDI) is the
debug interface to access the core. It is always
used as a SWD port after system reset.
0xx: SWD (SDI) enabled.
100: Turn off SWD (SDI), which functions as a
GPIO.
Others: Invalid.
0
23
TIM1_IREMAP
RW
Control timer 1 channel 1 selection
0: Select external pins
1: Select internal LSI clock
0
22
I2C1REMAP1
RW
I2C1 remapping high bit (used in conjunction with
AFIO_PCFR1 register bit1 I2C1_RM [22,1]).
00: default mapping (SCL/PC2, SDA/PC1).
01: Remapping (SCL/ PD1, SDA/ PD0).
1X: Remapping (SCL/PC5, SDA/PC6)
0
21
USART1_RM1
RW
USART1 mapping configuration high (used in
conjunction with AFIO PCFR1 register bit2
USART1RM [21,2]).
00: default mapping (CK/PD4, TX/PD5, RX/PD6,
CTS/PD3, RTS/PC2, SW_RX/PD5).
01: Remapping (CK/PD7, TX/PD0, RX/PD1,
CTS/PC3, RTS/PC2, SW_RX/PD0).
10: Remapping (CK/PD7, TX/PD6, RX/PD5,
CTS/PC6, RTS/PC7, SW_RX/PD6).
11: Remapping (CK/PC5, TX/PC0, RX/PC1,
CTS/PC6, RTS/PC7, SW_RX/PC0).
0
[20:19] Reserved
RO Reserved
0
18
ADC_ETRGREG_R
M
RW
Remap bit for ADC external trigger rule
conversion.
0: ADC external trigger rule conversion connected
to PD3.
1: ADC external trigger rule conversion connected
to PC2.
0
17
ADC_ETRGINJ_R
M
RW
Remap bit for ADC external trigger rule
conversion.
0: ADC external trigger rule conversion connected
to PD3.
1: ADC external trigger rule conversion connected
to PC2.
0
16
Reserved
RO Reserved
0
15
PA12_RM
RW
Pin PA1 & PA2 remapping bit, this bit can be read
or written by user. It controls the proper function
of PA1 and PA2 (set to 1 when connected to an
external crystal pin)
0: Pin is used as GPIO and multiplexed function
1: No functional role for pins
0
[14:10] Reserved
RO Reserved
0
[9:8]
TIM2RM
RW
Remap bits for timer 2. These bits can be read and
written by the user. It controls the mapping of
Timer 2's channels 1 through 4 and external trigger
(ETR) on the GPIO ports.
0