
DS3171/DS3172/DS3173/DS3174
131 of 232
Register Name:
Register Description:
Register Address:
Bit #
Name
Default
Bit #
Name
Default
GL.GIOCR
Global General-Purpose IO Control Register
00Ah
15
14
13
12
11
10
9
8
GPIO8S1
0
7
GPIO4S1
0
GPIO8S0
0
6
GPIO4S0
0
GPIO7S1
0
5
GPIO3S1
0
GPIO7S0
0
4
GPIO3S0
0
GPIO6S1
0
3
GPIO2S1
0
GPIO6S0
0
2
GPIO2S0
0
GPIO5S1
0
1
GPIO1S1
0
GPIO5S0
0
0
GPIO1S0
0
Bits 15 to 14: General-Purpose IO 8 Select [1:0] (GPIO8S[1:0]).
These bits determine the function of the GPIO8
pin. These selections are only valid if
GL.CR1
.GPM[1:0] is not set to 01.
00 = Input
01 = Port 4 B status output selected by
PORT.CR4
:GPIOB[3:0] in port control registers
10 = Output logic 0
11 = Output logic 1
Bits 13 to 12: General-Purpose IO 7 Select [1:0] (GPIO7S[1:0]).
These bits determine the function of the GPIO7
pin.
00 = Input
01 = Port 4 A status output selected by
PORT.CR4
:GPIOA[3:0] in port control registers
10 = Output logic 0
11 = Output logic 1
Bits 11 to 10: General-Purpose IO 6 Select [1:0] (GPIO6S[1:0]).
These bits determine the function of the GPIO6
pin. These selections are only valid if
GL.CR1
.MEIMS=0.
00 = Input
01 = Port 3 B status output selected by
PORT.CR4
:GPIOB[3:0] in port control registers
10 = Output logic 0
11 = Output logic 1
Bits 9 to 8: General-Purpose IO 5 Select [1:0] (GPIO5S[1:0]).
These bits determine the function of the GPIO5
pin.
00 = Input
01 = Port 3 A status output selected by
PORT.CR4
:GPIOA[3:0] in port control registers
10 = Output logic 0
11 = Output logic 1
Bits 7 to 6: General-Purpose IO 4 Select [1:0] (GPIO4S[1:0]).
These bits determine the function of the GPIO4
pin. These selections are only valid if
GL.CR2
.G8KRIS=0.
00 = Input
01 = Port 2 B status output selected by
PORT.CR4
:GPIOB[3:0] in port control registers
10 = Output logic 0
11 = Output logic 1
Bits 5 to 4: General-Purpose IO 3 Select [1:0] (GPIO3S[1:0]).
These bits determine the function of the GPIO3
pin.
00 = Input
01 = Port 2 A status output selected by
PORT.CR4
:GPIOA[3:0] in port control registers
10 = Output logic 0
11 = Output logic 1
Bits 3 to 2: General-Purpose IO 2 Select [1:0] (GPIO2S[1:0]).
These bits determine the function of the GPIO2
pin. These selections are only valid if
GL.CR2.
GKROS=0.
00 = Input
01 = Port 1 B status output selected by
PORT.CR4
:GPIOB[3:0] in port control registers
10 = Output logic 0