GD32W51x User Manual
1019
00:External CKINx input is selected for SPI clock source, sampling point is
determined by SITYP[1:0]
01: Internal CKOUT output is selected for SPI clock source, sampling point is
determined by SITYP[1:0]
10: Internal CKOUT is selected for SPI clock source, sampling point on each second
CKOUT falling edge.
11: Internal CKOUT output is selected for SPI clock source, sampling point on each
second CKOUT rising edge.
These bits can be configured only w hen CHEN=0.
1:0
SITYP[1:0]
Serial interface type
00: SPI interface, sample data on rising edge
01: SPI interface, sample data on falling edge
10: Manchester coded input: rising edge = logic 0, falling edge = logic 1
11: Manchester coded input: rising edge = logic 1, falling edge = logic 0
These bits can only be configured w hen CHEN=0.
Channel x configuration register 0 (HPDF_CHxCFG0)
Address offset: 0x04 + 0x20 * x, (x = 0, 1)
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
CALOFF[23:8]
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CALOFF[7:0]
DTRS[4:0]
Reserved
rw
rw
Bits
Fields
Descriptions
31:8
CALOFF[23:0]
24-bit calibration offset
Calibration offset must be performed for each conversion result of the channel.
These bits can be set by softw are.
7:3
DTRS[4:0]
Data right bit-shift
0-31: The number of bits that determine the right shift of data
Bit-shift is performed before offset correction. The data shift rounds the result to the
nearest integer value and the sign is preserved.
These bits can be configured only w hen CHEN=0 (in HPDF_CHx CTL register).
2:0
Reserved
Must be kept at reset value.