Product Specs

Table Of Contents
20 GPIO General purpose input/output
Page
123
Bit number
31 30
29
28
27
26
25
24
23 22 21 20 19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Id
f e
d
c
b
a
Z
Y
X W V U T
S
R
Q
P
O
N
M
L
K
J
I
H
G
F
E
D
C
B
A
Reset 0x00000000
0 0
0
0
0
0
0
0
0 0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Id
RW Field
Value Id
Value
Description
Low
0
Pin input is low
High
1
Pin input is high
U
R
PIN20
Low
0
Pin 20
Pin input is low
High
1
Pin input is high
V
R
PIN21
Low
0
Pin 21
Pin input is low
High
1
Pin input is high
W
R
PIN22
Low
High
0
1
Pin 22
Pin input is low
Pin input is high
X
R
PIN23
Low
High
0
1
Pin 23
Pin input is low
Pin input is high
Y
R
PIN24
Low
High
0
1
Pin 24
Pin input is low
Pin input is high
Z
R
PIN25
Low
High
0
1
Pin 25
Pin input is low
Pin input is high
a
R
PIN26
Low
High
0
1
Pin 26
Pin input is low
Pin input is high
b
R
PIN27
Low
High
0
1
Pin 27
Pin input is low
Pin input is high
c
R
PIN28
Low
High
0
1
Pin 28
Pin input is low
Pin input is high
d
R
PIN29
Low
High
0
1
Pin 29
Pin input is low
Pin input is high
e
R
PIN30
Low
High
0
1
Pin 30
Pin input is low
Pin input is high
f
R
PIN31
Pin 31
Low 0 Pin input is low
High 1 Pin input is high
20.3.5 DIR
Address offset: 0x514
Direction of GPIO pins
Bit number
31 30
29
28
27
26
25
24
23 22 21 20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Id
f e
d
c
b
a
Z
Y
X W V U
T
S
R
Q
P
O
N
M
L
K
J
I
H
G
F
E
D
C
B
A
Reset 0x00000000
0 0
0
0
0
0
0
0
0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Id
RW Field
Value Id
Value
Description
A
RW
PIN0
Input
0
Pin 0
Pin set as input
Output
1
Pin set as output
B
RW
PIN1
Input
0
Pin 1
Pin set as input
Output
1
Pin set as output
C
RW
PIN2
Pin 2