![Silicon Laboratories EFR32xG14 Wireless Gecko Скачать руководство пользователя страница 1085](http://html1.mh-extra.com/html/silicon-laboratories/efr32xg14-wireless-gecko/efr32xg14-wireless-gecko_reference-manual_12717281085.webp)
32.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 32.1 Pin Configuration on page 1085
the available configurations.
Table 32.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 Tolerance 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.
Reference Manual
GPIO - General Purpose Input/Output
silabs.com
| Building a more connected world.
Rev. 1.1 | 1085