26.3.1 Pin Configuration
In addition to setting the pins as either outputs or inputs, the GPIO_Px_MODEL and GPIO_Px_MODEH registers can be used for more
advanced configurations. GPIO_Px_MODEL contains 8 bit fields named MODEn (n=0,1,..7) which control pins 0-7, while
GPIO_Px_MODEH contains 8 bit fields named MODEn (n=8,9,..15) which control pins 8-15. In some modes GPIO_Px_DOUT is also
used for extra configurations like pull-up/down and glitch suppression filter enable.
Table 26.1 Pin Configuration on page 875
the available configurations.
Table 26.1. Pin Configuration
MODEn
Input
Output
DOUT
Pull-
down
Pull-
up
Alt Port
Ctrl
Input
Filter
Description
DISABLED
Disabled Disabled 0
Input disabled
1
On
Input disabled with pull-up
INPUT
Enabled
if not
DINDIS
0
Input enabled
1
On
Input enabled with filter
INPUTPULL
0
On
Input enabled with pull-
down
1
On
Input enabled with pull-up
INPUTPULLFILTER
0
On
On
Input enabled with pull-
down and filter
1
On
On
Input enabled with pull-up
and filter
PUSHPULL
Push-
pull
x
Push-pull
PUSHPULLALT
x
On
Push-pull with alternate
port control values
WIREDOR
Open
Source
(Wired-
OR)
x
Open-source
WIREDORPULLDOWN
x
On
Open-source with pull-
down
WIREDAND
Open
Drain
(Wired-
AND)
x
Open-drain
WIREDANDFILTER
x
On
Open-drain with filter
WIREDANDPULLUP
x
On
Open-drain with pull-up
WIREDANDPULLUPFILTER
x
On
On
Open-drain with pull-up
and filter
WIREDANDALT
x
On
Open-drain with alternate
port control values
WIREDANDALTFILTER
x
On
On
Open-drain with alternate
port control values and fil-
ter
WIREDANDALTPULLUP
x
On
On
Open-drain with alternate
port control values and
pull-up
WIREDANDALTPULLUPFILTER
x
On
On
On
Open-drain with alternate
port control values, pull-up
and filter
MODEn determines which mode the pin is in at a given time. Setting MODEn to DISABLED disables the pin, reducing power consump-
tion to a minimum. When the output driver, input driver and Over Voltage Tolearance is disabled, the pin can be used as a connection
for an analog module. An input is enabled by setting MODEn to any value other than DISABLED while DINDIS for the given port is
cleared. Set DINDIS to disable the input of a gpio port. The pull-up, pull-down and glitch filter function can optionally be applied to the
input, see
Figure 26.2 Tristated Output with Optional Pull-up or Pull-down on page 876
EFM32JG1 Reference Manual
GPIO - General Purpose Input/Output
silabs.com
| Smart. Connected. Energy-friendly.
Preliminary Rev. 0.6 | 875