GD32A50x User Manual
218
9.5.10.
Shifter control x register (MFCOM_SCTLx)
Address offset: 0x80 + 0x04 * x, (x = 0 to 3)
Reset value: 0x0000 0000
This register has to be accessed by word (32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
TMSEL[1:0]
TMPL
Reserved
SPCFG[1:0]
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
SPSEL[2:0]
SPPL
Reserved
SMOD[2:0]
rw
rw
rw
Bits
Fields
Descriptions
31:26
Reserved
Must be kept at reset value.
25:24
TMSEL[1:0]
Timer select
Selects the timer used to generate the shift clock and control the shift logic.
00
:
Select timer 0
01
:
Select timer 1
10
:
Select timer 2
11
:
Select timer 3
23
TMPL
Timer polarity
0: Shift on rising edge of shift clock
1: Shift on falling edge of shift clock
22:18
Reserved
Must be kept at reset value.
17:16
SPCFG[1:0]
Shifter pin configuration
00: Shifter pin input
01: Shifter pin open drain
10: Shifter cascade pin input/output data
11: Shifter pin output
15:11
Reserved
Must be kept at reset value.
10:8
SPSEL[2:0]
Shifter pin select
Select the pin to use for the shifter input or output.
7
SPPL
Shifter pin polarity
0: Pin active high
1: Pin active low
6:3
Reserved
Must be kept at reset value.
2:0
SMOD[2:0]
Shifter mode
Configures the mode of the shifter.