GD32W51x User Manual
245
8.5.5.
Port input status register (GPIOx_ISTAT, x=A..C)
Address offset: 0x10
Reset value: 0x0000 XXXX
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
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
ISTAT15 ISTAT14 ISTAT13 ISTAT12 ISTAT11 ISTAT10 ISTAT 9
ISTAT 8
ISTAT 7 ISTAT 6
ISTAT 5 ISTAT 4
ISTAT 3
ISTAT 2 ISTAT 1
ISTAT 0
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value.
15:0
ISTATy
Pin input status(y=0..15)
These bits are set and cleared by hardw are.
0: Input signal low
1: Input signal high
8.5.6.
Port output control register (GPIOx_OCTL, x=A..C)
Address offset: 0x14
Reset value: 0x0000 0000
This register has to be accessed by word(32-bit)/half-word(16-bit)/byte(8-bit)
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
OCTL15 OCTL14 OCTL13 OCTL12 OCTL11 OCTL10
OCTL9
OCTL8
OCTL7
OCTL6
OCTL5
OCTL4
OCTL3
OCTL2
OCTL1
OCTL0
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value.
15:0
OCTLy
Pin output control(y=0..15)
These bits are set and cleared by softw are.
0: Pin output low
1: Pin output high